Académique Documents
Professionnel Documents
Culture Documents
Rajagopalan
Data Element:
It is used to describe the semantic definition of the table fields like description the field. Data element
describes how a field can be displayed to end-user.
Pooled tables.
Pooled tables in the dictionary has a many-to-one relation with the table in database. Table in the
database has the different name as in the dictionary. Pooled table are stored in table pool at the database level.
For creating a ABAP/4 Query, programmer has to create user group and a functional group. Functional
group can be created using with or without logical database table. Finally, assign user group to functional group.
Finally, create a query on the functional group generated.
31/Oct/2007 1 of 9
QB – 6 M. Rajagopalan
15. What is ALV programming in ABAP? When is this grid used in ABAP?
ALV is Application List viewer. Sap provides a set of ALV (ABAP LIST VIEWER) function modules which
can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the
readability and functionality of any report output. Cases arise in sap when the output of a report contains
columns extending more than 255 characters in length. In such cases, this set of ALV functions can help choose
selected columns and arrange the different columns from a report output and also save different variants for
report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report
output. The report output can contain up to 90 columns in the display with the wide array of display options.
31/Oct/2007 2 of 9
QB – 6 M. Rajagopalan
18. What are logical databases? What are the advantages / disadvantages of logical databases?
To read data from a database tables we use logical database. A logical database provides read-only
access to a group of related tables to an ABAP/4 program.
Advantages:
i) Check functions which check that user input is complete, correct and plausible.
ii) Meaningful data selection.
Iii) Central authorization checks for database accesses.
iv) Good read access performance while retaining the hierarchical data view determined by the
application logic.
Disadvantages:
i) If you do not specify a logical database in the program attributes, the GET events never occur.
ii) There is no ENDGET command, so the code block associated with an event ends with the next event
statement (such as another GET or an END-OF-SELECTION).
22. How can I make a differentiation between dependent and independent data?
Client dependent or independent transfer requirements include client specific or cross client objects in
the change requests. Workbench objects like SAPscripts are client specific, some entries in customizing are
client independent. If you display the object list for one change request, and then for each object the object
attributes, you will find the flag client specific. If one object in the task list has this flag on, then that transport will
be client dependent.
24. Is there any standard SAP report which gives a count of the number of times a program is
executed?
Try transaction STAT
25. When we create a customer the information is updated in structure RF02D and the some tables like
KNA1 are updated. How can we find the tables for master data transactions?
Go to ABAP Workbench -> Overview -> application hierarchy - SAP -> follow the customizing based
tree for your application. Double click on a lowest hierarchy level to get for the correct marked development
class. Here you can find all the tables, views, logical databases etc. used for a system operation.
31/Oct/2007 3 of 9
QB – 6 M. Rajagopalan
29. How to find what transactions a particular user was running for a given period in the past
(Eg: from 1st of a month)
You may use the transaction - STAT.
30. We want protect / lock a field so that only selected people can change the value while others can
only read. How to set the authorizations?
Create an authorization object for change mode. Loop at screen in the user exit and set input to 0.
Check the user based on sy-uname and the authorization. Decide whether input should be 0 or 1.
31. How to lock a user defined transaction for some time during which no user can access the same?
Use transaction SM01. Scroll through the transactions and check against the transaction to be locked.
And after the maintenance is over, go back to SM01 and uncheck the same to unlock.
32. Our ABAP program is working properly in Foreground. Can I schedule it for background processing
on the weekend?
SAP standard program RSBDCSUB helps you to schedule the job. Create a variant for RSBDCSUB
with the BDC session name.
33. How can we send a mail to the user intimating him that his report/BDC is completed in background?
You can use FUNCTION RS_SEND_MAIL_FOR_SPOOLLIST
If Unix is being used, you may send a report to any internet mail with the following:
REPORT ZSNDMAIL .
DATA: COMND(200) type c.
DATA: RESULT(200) type c occurs 100 with header line.
PARAMETERS: FILE(60) type c lower case default '/sapdata/sd_outbound/testmail.dat'.
PARAMETERS: SUBJECT(60) type c lower case.
PARAMETERS: EMAIL(60) type c lower case.
INITIALIZATION.
TRANSLATE EMAIL TO LOWER CASE.
START-OF-SELECTION.
TRANSLATE EMAIL TO LOWER CASE.
CONCATENATE 'cat' FILE '| elm -s "' subject '"' email into comnd seperated by space.
CALL 'SYSTEM' ID 'COMMAND' FIELD comnd 'TAB' FIELD UNIX_RESULTS-*SYS*.
Loop at Results.
write: /1 results.
endloop
end-of-selection.
31/Oct/2007 4 of 9
QB – 6 M. Rajagopalan
SAPScript
34. We get the total number of pages as expected by using 'SAPSCRIPT-FORMPAGES' in a duplex
layout. In our case duplex case is always 'Terms & Conditions'. We do not want the number of pages as
in duplex printing. What is the best possible solution?
On the Terms & Conditions page, Change the Page counter mode to 'HOLD' to keep the page counter
from incrementing when you print the Term & Conditions.
Run RSTXLDMC
Enter file name C:\MAIL\COMPLOGO.TIF
Resolution for Tiff file
Absolute X-position
Absolute Y-position
Absolute positioning
Reserved height
Shift to right
UOM = CM
Text title
Line width for text = 132
Text name ZHEX-MACRO-COMPLOGO
Text ID ST
Text language = E
Postscript scaling
Width & Height according to PS scaling
Number of Tiff gray levels (2,4,9) 2
Then Create a new window 'COMP' with attributes;
Window COMP description Company Logo
Window type CONST
Left margin 7.00 CH window width 10.00 CH
Upper margin LN window height 8.00 LN
Finally in the text element , mention
/: INCLUDE 'ZHEX-MACRO-COMPLOGO' OBJECT TEXT ID ST LANGUAGE 'E'.
Please note that if object name is not indicated as 'ZHEX...', the logo may not be printed!
You will not be able to see the logo in a test print. The same will be printed in actual printout.
If you are using two logos in the same layout, the names of the logos should be unique. Say 'ZHEX-MACRO-
OGO1' and 'ZHEX-MACRO-LOGO2'. Else all the information will be overwritten.If the logo is not EXACTLY
TIFF 6.0 , the same will not be printed.
See OSS notes 5995, 18045, 39031 for some inputs.
31/Oct/2007 5 of 9
QB – 6 M. Rajagopalan
RFC:
TABNAM
MANDT
SDATA
we have no Exporting parameters.
How shall we set the parameters?
Install the PS utilities, which are part of SAPGUI install CD. You may run report RIACCESS from SE38.
Go to SALE -> Communication -> Define RFC Destination. Setup two RFC destinations PS_ACCESS_1 and
PS_ACCESS_2 and will have to get them to point to wdpsastr.exe and wdpsatab.exe respectively. Then
execute RIACCESS and choose PS_ACCESS_1 to generate access tables. Please note that Access only
supports tables with up 255 fields.
37. We want an RFC do the following transactions - MB1A, MB1C,>MB01 (goods receipt/issue).
Call the RFC INBOUND_IDOC_PROCESS with IDOC_CONTROL and IDOC_DATA. The structure in
the fields data in the IDOC_DATA are e1mbxyh and e1mbxyi.
Transports
38. In a Dev instance, we want to transport a modification to a layout set from one client to another.
What is the best way?
Use transaction SE71. Choose Utilities->Copy from Client. Layout sets need not be transported
between clients, via transport requests DEVKxxxxxx.
39. We need to keep track of the transports that need to flow through to other systems (ie, DEV, TST,
TRN, PRD etc). Is there a way do this?
SAPCRAFT enables you to control the CTS from DEV system. This keeps track of all transports at all
Stages and enables you to allocate Import, export and Authorization functions to specific user.
Tables
39. We specify the logical database. And we want a field that is not present in any of the tables
defaulted in logical database. How can we want to add this additional field from a different table?
Presume you have a logical database, table 1, table 2, table 3. Define the required field as additional
field say fld of table 1, table 2 or table 3 and then in the code section define.
Perform get_f1d(zxxxxxxx) using f1d.
Form zxxxxxxx could be like;
Form get_f1d using f.
Select * from where 'conditions'
f = table4 - f1d.
40. We need to download an internal table to the Presentation Server(local workstation). Whenever we
run the program, the same file has to be saved as a separate file in sequential order. Ex: 0001.txt,
0002.txt etc. Where can we store the last file number?
SAP has a table TVARV for storing the variants. A record may be created in TVARV for all the programs
that require this kind of incremental records
For Ex: the record could be 100Zmm10001 MM sequence rec where first part consists of client code and the
program being run. Client code is required because TVARV does not has a field for client code. The second part
is the description indicating the purpose what the record is created. This entire string may be posted in the
Name field (char - 30).
The Type field ( char- 1) may be populated with P or S (Parameter or Selection) Low field (char- 45) may be
populated with '0001' when run first time and increment it by one in your program for downloading of the internal
table.
31/Oct/2007 6 of 9
QB – 6 M. Rajagopalan
42. What are some sample direct input data transfer programs?
In MM for Material Master data – RMDATIND
FI - for Accounting Documents - RFBIBL00
PP - for Independent requirements - RM06IN00
CA - for Classification data - RCCLBI03
http://service.sap.com/instguides
There are all the relevant installation guides. You NEED SAPNet access because without a registered and
licensed SolMan installation number you will not be able to generate the SolMan key for the ECC installation.
Upgrade to 4.7
Have you gone through an upgrade to 4.7? What is the difference or changes associated with 4.7.
If you are currently on 4.6C and are inching forward to upgrading to 4.7 then this information might be useful to
you. There is very little difference between 4.6 and 4.7, the only "steps" you should need are steps in SU25
(skip step 1) Then go through all your role and perform a merge old new to bring in the new authorization
objects Just to forewarn you of a potential problem which have been encounter at the point of writing.
After updating/ modifying roles in step 2C, when going back into 2C to make sure all roles are now green, 70%
have gone back to red! The maintenance done is ok, but there seems to be a problem while trying to go back
into the roles again to re-generate.
SAP recognizes them as needing "adjustment", so you cannot pick them up in mass generate in PFCG as they
do not come in, even though the authorizations tab is red.
This problem is currently with SAP and it is confirmed that nothing have been done wrongly. Generally, the work
is quite manageable in the upgrade, but don't be surprised at how big the upgrade is when compared to
upgrading from 46b to 46c.
If we have full software of 46c and 47E is it possible to upgrade 46c to 47E or there is a separate 47E
upgrade software need to be requested from SAP? Where I can get the document with upgrade steps
on the service market place?
For Upgrades it is recommended to read ALL the notes mentioned in the upgrade guide and to make sure one
is using the correct version of the "tp" program the correct version of the "R3trans" program
the correct version of the "R3up" program
-
All that is explained in the upgrade guide and in the corresponding notes.
If this is your first upgrade you should take a person, that has some experience on doing that for the first time.
31/Oct/2007 7 of 9
QB – 6 M. Rajagopalan
Configuration is :
DB - Oracle 9i
SAP 4.7
http://service.sap.com/instguides
SAP Components
SAP R/3 Enterprise
SAP R/3 Enterprise Core 4.70 / Ext. Set 2.00 (SR1)
Inst. Guide - R/3 Enterprise 4.7 x 2.00 SR1 on Win: Oracle
The above url is the SAP Service Marketplace with all the information you need to install, configure and run
system. You need to be a valid licensed customer with a user ID and PASSWORD to use that. Without access
you won't be able to successfully run any SAP systems because it has notes, patches etc.
The following might help in explaining the difference between MPS and its counter part MRP.
Main Idea : Master production scheduling (MPS) is a form of MRP that concentrates planning on the
parts or products that have the great influence on company profits or which dominate the entire production
process by taking critical resources. These items are marked as parts (MPS items) and are planned with extra
attention.
These items are selected for a separate MPS run that takes place before the MRP run. The MPS run is
conducted without a BOM explosion so that the MRP controller can ensure that the Master schedule items
(MSI) are correctly planned before the detailed MRP run takes place.
The master production schedule is a line on the master schedule grid that reflects the anticipated build
schedule for those items assigned to the master scheduler. The master scheduler maintains this schedule, and
in turn, it becomes a set of planning numbers that drives material requirements planning. It represents what the
company plans to produce expressed in specific configurations, quantities, and dates. The master production
schedule is not a sales item forecast that represents a statement of demand. The master production schedule
must take into account the forecast, the production plan, and other important considerations such as backlog,
availability of material, availability of capacity, and management policies and goals. Syn: master schedule.
(1) the quantity of all components and materials required to fabricate those items and
(2) the date that the components and material are required. Time-phased MRP is accomplished by exploding
the bill of material, adjusting for inventory quantities on hand or on order, and offsetting the net requirements by
the appropriate lead times.
31/Oct/2007 8 of 9
QB – 6 M. Rajagopalan
6. What is the use of trusted system? I know that there is no need of UID and PWD to communicate with
partner system. In what situation it is good to go for Trusted system?
E.g. if you have an R/3 system and a BW system and don't want to maintain passwords. Same goes for
CRM and a lot of other systems/applications.
2) Asynchronous RFC is used incase if the system initiated the RFC call no need to wait for the response before
it proceeds to something else.
But keep in mind, that it's not only a technical issue whether to switch to asynchronous. The application must
also be able to handle that correctly.
31/Oct/2007 9 of 9