Professional Documents
Culture Documents
In synchronous updated the parent table is updated along with the child tables and then a sy-subrc is
returned. 0 for successful and 4 or 8 for not successful.
While in asynchronous updating after the updation of the parent table we get a sy-subrc return. The
system is not bothered if the child tables are updated or not.
BDCMSGCOLL is a structure available in the abap dictionary. We use this structure to handle all
errors in call transaction. We need to declare an internal table like bdcmsgcoll. When a database
table is updated we get some messages like successful, or not successful or successful with some
warning message.
All these messages pass through this structure. We can capture them using a function module called
FORMAT_MESSAGE.
1
11. Describe data classes.
Master data: It is the data which is seldom changed.
Transaction data: It is the data which is often changed.
Organization data: It is a customizing data which is entered in the system when the system is
configured and is then rarely changed. System data: It is the data which R/3 system needs for itself.
13. The following statements will clear the header-line of an internal table:
Ans: CLEAR ITAB.
15. The statement used to clear all the contents of an internal table is.
REFRESH itab & FREE itab.
17. In a BDC program, how would you handle errored records? Would you…
c) Generate a batch-input session with errored records
2
20. A database commit is triggered by
a) ABAP/4 command COMMIT WORK or BAPI_TRANSACTION_COMMIT.
24. If COLLECT is used on an internal table, which has a non-key character field.
c) Compilation error
27. The user-list in a given SAP client can be found using transaction.
c) SM04
29. Which of the following statements can work without a corresponding END-statement?
d) SELECT
3
a) TRUE
32. TOP-OF-PAGE
This is called when a new page is started with an ABAP list and is used to display a header for
the list.
34. END-OF-PAGE
This is displayed at the end of each page if there is a line reservation in the addition LINE-COUNT of
the initiating statement for a page footer.
REPORT demo_rep NO STANDARD PAGE HEADING LINE-COUNT 0(1).
35. START-OF-SELECTION
This is the first event after all screen selection processing has been completed. If no other
events are declared then there is no need to manually code this event as all processing
statements will be automatically assigned to an implicit START-OF-SELECTION block. It is a
good ideal to put it in though as it separates the code and makes it easier to read. Generally
you would put all your data selection ABAP code within this event.
END-OF-SELECTION
If your report is linked to a logical database this event is called after the logical database has
completely finished its work. Otherwise this event is trigged after the START-OF-SELECTION
event so you would generally use it to processes the data retrieved in that event.
This is called just before the selection screen is displayed and can be used to manipulate the
actual selection screen attributes using the loop at screen functionality. This allows you to do
things like hide fields, grey them out so they are output only or make them intensified etc.
LOOP AT SCREEN.
IF SCREEN-name = 'P_FIELd1'.
SCREEN-INTENSIFIED = '1'.
MODIFY SCREEN.
CONTINUE.
ENDIF.
ENDLOOP.
4
37. INITIALIZATION
Called after the abap selection screen code has been processed (i.e. parameters, select-options etc)
but before these are displayed to the user. So you can use it to initialize input fields of the selection
screen or change the default values of these before the user gets to enter data into them.
38. LOAD-OF-PROGRAM
First event to be called before any of the other ABAP code is processed.
-Load-of-program
This event is used to load program into memory for execution and this is the first event in
execution sequence.
Initialization
This event is used to initialize variables, screen default values and other default actions.
-At Selection-Screen output
By using this event we can manipulate dynamic selection-screen changes.
-At Selection-Screen on field
At Selection-Screen
-End-of-Selection
-Top-of-Page
-End-of-Page
43. TYPE-POOLS: slis. " SLIS contains all the ALV data types
44. The commonly used ALV functions used for this purpose are:
1. REUSE_ALV_VARIANT_DEFAULT_GET
2. REUSE_ALV_VARIANT_F4
3. REUSE_ALV_VARIANT_EXISTENCE
5
4. REUSE_ALV_EVENTS_GET
5. REUSE_ALV_COMMENTARY_WRITE
6. REUSE_ALV_FIELDCATALOG_MERGE
7. REUSE_ALV_LIST_DISPLAY
8. REUSE_ALV_GRID_DISPLAY
9. REUSE_ALV_POPUP_TO_SELECT
10. ALSM_EXCEL_TO_INTERNAL_TABLE
The report RSTXLDMC allows a TIFF graphics file to be uploaded from the file system of the
R/3 GUI to a standard text in the R/3 word processor SAP script.
1. at selection-screen on field :
This event occurs after the runtime environment has passed all input data from the selection screen
to the ABAP program.
2. at selection-screen output :
3. at selection-screen block:
- PAI Event
4. at selection-screen on value-request :
- This event is triggered for F4 help.
6
Append structures are used for enhancements that are not included in the standard.An append
structure is a structure that is assigned to exactly one table or structure.The following enhancements
can be made to a table or structure TAB with an append structure:
· Insert new fields in TAB,
· Define foreign keys for fields of TAB that already exist,
· Attach search helps to fields of TAB that already exist,
This is for data dictionary corrections. If any standard tables have been modified, then that object
appears in the list and you have to adjust it again after comparing the versions.
This is for repository objects (programs, screens, functions, classes, etc.). These have to be compared
to the previous versions too and any missing modified code is too re-inserted. SPAU comes after the
downtime phase of upgrade and is carried in normal client.
This is nothing but physical area of database tables which is assigned to data class for storage
purpose. Following are the types of data classes.
APPL0- Master data (data frequently accessed but rarely updated).
APPL1- Transaction data (data that is changed frequently).
APPL2- Organizational data (customizing data that is entered when system is configured and then
rarely changed).
The delivery class controls the degree to which the SAP or the customer is responsible for table
maintenance. or Gives the owner of the table.
Size Category defines expected space, which is required for table in the database. You can choose a
size Category from 0 -4. Each Category is assigned a certain fixed memory size in database. When
table is created initial space is reserved in the database.
7
Technical setting in tables makes controls over the tables. It consist of delivery class which is used
for managing and transport of tables While upgrade. It consists of table types as below.
- A: Application table
- B: Customer table
- C:Ten. Data table
- G: Customer table
61. Diffcurance:
Select single fetch first matching records whereas select up to 1 rows fetch all matching records into
database.
8
63. Domain:
Domain defines set of possible values , allocated to field. It also describe technical characteristics ,
no of characters , output length , sign , lower case , upper case details, value tables. Etc.
PR > ME51
RFQ > ME41
Quotation > ME41N
Quotation Compare > ME49N
Purchase Order > ME21N
GRN > MIGO
Invoice > MIRO
Vendor payment finally.
65. Workbench request is client independent , when it import into client 100. Then it
automatically reflects into all clients. Whether Customizing request is client dependent.
Check tables used for validation whether data is exit or not. It’s validation at field level. It checks
both transaction data as well as master data.
Value table maintained at domain level. In this we entered allowed values. Then system used only
entered values.
9
- Independent - Dependent
- Use of copy window - No
- XML output supported - No
- Generate function modules - No
- Color functionality - No
- Main window must or not - Must
71. When we want to validate single field on selection screen that time we used FIELD
Command.
Without finishing current screen. If we wish to continue next screen that time we use this
command.
Call to next screen and return to back screen is not automated in this case.
With call screen current screen suspended and next screen called after that called screen
called to suspended screen by using “LEAVE SCREEN TO SCREEN 0”.
- LF : Standard delivery
- LR : Return delivery
- NL : Replenishment delivery
- LO: Delivery without reference
- RL : Return delivery from PO
A tabstrip control is a screen object consisting of two or more pages. Tabstrip controls allow you to
place a series of screens on a single screen.To use a tabstrip control in your ABAP program, you must
create a control for each in the declaration part of your program using the following statement:
CONTROLS <ctrl> TYPE TABSTRIP. Which is always in PBO.
10
System fields are set at the PAI (Process After Input) event for every screen.These can be also used
for interactive list processing, except for SY-DATUM, SY-LOOPC, and SY-STEPL. SY-SLSET Variant
used to fill the selection screen.
To change the title of the standard SAP screen, follow these steps:
1. Execute transaction SE63
2. Follow the menu path -->translation -->shorttext -->transactions
3. Enter the transaction code and press EDIT. (check whether the target language is set to ENGLISH)
4. You will get the existing title on the first line. In the second line, you can edit that title.
5. Now click on SAVE to save the changes
6. Now execute that transaction to check the change in the title
7. You can also translate Menu texts, screen texts and others using this SE63 transaction.
81. HR Infotypes:
Infotypes are units of information in the Human Resource Management System. Examples:
82 . SUBSCREEN IN ABAP:
83 . SAP PP Tables:
11
84. BADI & Why is it?
BADI (Business Add-In) is a new SAP Object Oriented enhancement technique which is used to add
our own business functionality to the existing SAP standard functionality. BADI follows Object
Oriented approach to make them reusable. A BADI can be used any number of times where as
standard enhancement techniques can be used only once. For example if we assign an enhancement
to one custom project, then that enhancement cannot be assigned to any other custom projects. To
overcome this drawback SAP has provided a new enhancement technique called BADI.
Transaction code for BADI Definition: SE18
Transaction code to Implement BADI: SE19
There are two types of BADI's.
1) Multi use BADI:
With this option, any number of active implementations can be assigned to the same definition
BADI. By default this option is checked. If we want the BADI for multiple use If you have multiple-use
BADI definitions, the sequence must not play any role.
The drawback in Multiple use BADI is, it is not possible to know which BADI is active especially in
country specific version.
2) Filter dependent BADI:
Using this option we can define the BADI's according to the filter values to control the add-in
implementation on specific criteria.
Ex: Specific country value.
12
7. You can find the BADI name in field EXIT_NAME and if you double click on it, we can get the
corresponding BADI name before hit the corresponding screen. Based on the requirement find the
BADI name and accordingly implement your functionality using the transaction se19.
Whenever you have a breakpoint, once system brings you debugger, you can now use the Skip field
for each breakpoint. Whatever number you enter in the field, system would NOT stop to the
breakpoint for those many iterations.
13
After the condition is met, the breakpoint behaves normally – means flow of execution would be
interpreted whenever the statement is executed.
14
- In the transaction SE71, enter the Form name and choose the menu, Utilities->Copy from
client to copy SAPscripts from one client to another.
- Use RSTXSCRP to import/export SAPscripts.
92. How can I change the page size of the layout?
- In the SAPscript, Goto -> Header -> Basic Settings
- Here you could configure the page settings and their orientation
93. How to find the Driver Program for the given SAPscript?
1. Go to the Table TNAPR using SE11
2. Get the Contents of the Table(CNTRL+SHIFT+F10)
3. On the Table Content Selection Screen, Type the SAPscript Name for which we have find the
Driver Program in the field FONAM and execute(F8)
4. PGNAM field of the result display contains the Driver Program Name for our SAPscript.
15
- Table STXH, with field values tdobject = 'FORM' and tdid = 'TXT' and tdname = form name
-/: IF...ELSE/ELSEIF...ENDIF
/: CASE...ENDCASE
101. How can I set the header and footer in the main window?
The TOP...END TOP and BOTTOM...ENDBOTTOM commands are used to set the header and footer
texts in the main window respectively.
These texts will be displayed on the start and end of every new page in the output.
To disable these texts enclose empty commands between the commands.Eg.:
/: TOP
/: ENDTO
16
102. How can I trigger new page in SAPscripts?
Use the command NEW-PAGE to trigger a new page in SAPscript.
/: NEW-PAGE
You can explicitly trigger a page not in sequence by specifying the name pf page with the command
NEW-PAGE
/: NEW-PAGE <pagename>
/: NEW-WINDOW
104. What is the use of the POSITION and SIZE command in SAPscripts?
The POSITION command is used to x, y coordinate position which is used by the BOX command. The
offset from the current window positions are specified which could be either positive or negative.
Similarly the SIZE command sets the width and height parameters.
181. What is the difference between the SAPscript texts, 'Customer &KNA1-KUNNR&' and
'&Customer KNA1-KUNNR&'?
● In the first case of 'Customer : &KNA1-KUNNR&', the text 'Customer : ' is displayed
regardless of the variable KNA1-KUNNR even if it has initial value
● In the second case of '&Customer : KNA1-KUNNR&', the text 'Customer :' and KNA1-KUNNR
is displayed only when the variable KNA1-KUNNR has non-initial value.
105. How can I format the time in the SAPscript?
Similar to SET DATE MASK for date fields we can use SET TIME MASK for formatting time fields.
106. How can I format the date being displayed in the SAPscript?
The date fields in SAP scripts can be formatted using the SET DATE MASK control command.
17
&DATE& , &DAY& , &MONTH& , &YEAR& , &TIME& , &HOURS& ,&MINUTES& ,&SECONDS&
,&PAGE&,&NEXTPAGE&,&SPACE&, &ULINE& , &VLINE& ,&NAME_OF_MONTH&, &SAPSCRIPT-
FORMPAGES& ,&SAPSCRIPT-JOBPAGES&.
108. How can I print logos in SAPscripts?
TIFF files (*.tif):
● Use the program RSTXLDMC to convert the TIFF file to standard text.
● Print this using the INCLUDE command:
● INCLUDE ZLOGO OBJECT TEXT ID ST
● Bitmap files (*.bmp)
● Go to transaction SE78
● Choose BMAP under GRAPHICS
● Choose Import Graphic (F5)
● Select the image and upload
● In SE71 choose Insert->Graphics and then choose the image for display.
<C1>&vbeln&</>
where C1 is the character format created and vbeln is the variable for which the barcode is to be
created.
110. How can I Word Wrap the text being displayed in SAPscript?
Use the Function Module RKD_WORD_WRAP to wrap the text and use this for output.
111. How do I create standard texts for the SAPscripts?
You can create standard texts using the transaction SO10. Then to insert these standard texts in the
SAPscript choose the menu, Insert->Text->Standard and choose the standard text that you want to
choose.
Alternatively, you can display standard texts in your SAPscripts using the command:
18
- program Symbol : &WA_KNA1-KUNNR&.
117. This program executes the following popup function modules, to help choosing the right
one:
19
● POPUP_WITH_TABLE_DISPLAY
● POPUP_TO_CONFIRM_STEP
● POPUP_TO_DECIDE_WITH_MESSAGE
● POPUP_TO_DECIDE
● POPUP_TO_SELECT_MONTH
● POPUP_TO_CONFIRM_WITH_VALUE
● POPUP_TO_CONFIRM_WITH_MESSAGE
● POPUP_TO_DISPLAY_TEXT
● POPUP_TO_CONFIRM
● POPUP_TO_CONTINUE_YES_NO
● POPUP_TO_CONFIRM_DATA_LOSS
20
Specify the request which the chosen task will be moved in (target request):
21
121. SAP Request Tables:
E070 -> Change & Transport System: Header of Requests/Tasks
E070A -> Change & Transport System: Attributes of a Request
E070C -> CTS: Source/Target Client of Requests/Task
E070CREATE -> Change & Transport System: Creation Date of Request
E070DEP -> Change & Transport System: Dependencies of Requests
E071 -> Change & Transport System: Item of Requests/Tasks
E070TC -> Help Table for E070 for Client-Specific Imports
22
129. BAPI to read characteristics value : BAPI_OBJCL_GETCLASSES.
130. Function module to read selection screen data : RP_PNP_SHOW_SELECTOPTIONS.
131. Increase page size of report at output
132. REPORT ZTEST_01 NO STANDARD PAGE HEADING LINE-SIZE 533.
133. SE81 - Application Components hierarchy details
134. CONVERSATION ROUTINES FOR QUANTS : MEINS
135. CONVERSATION_EXIT_CUNIT_OUTPUT
136. Method for deleting file on Application server: NEW_FILE TYPE STRING.
137. CALL METHOD CL_GUI_FRONTEND_SERVICES => FILE_DELETE
138. EXPORTING = NEW_FILE
139. CONVERSATION ROUTINES FOR character name to char. number
140. CONVERSATION_EXIT_ATINN_INPUT
141. NAST : Message status table
142. SELECT - ENDSELECT :
Select end select is used if you want to operate on each record that you will get from the
database.
143. SELECT - SINGLE:
Select single is used for selecting single record from database.
144. SU21 - Maintain Authorization objects
145. A classic BAdI :
A classic BADI can be called only once and the call positions are registered centrally.
With the classical BAdIs, the filter values are stored in a structure and passed with the call of
the BAdI methods. With classic BAdIs, a BAdI object is created by calling a factory method,
and referenced via a reference variable of the type of the BAdI interface.
23
148. SAP Memory ABAP Memory
- Global - Local
- using get , set data on screen - import & export
- Available through out session - Only limited session
Menu exits add items to the pull down menus in standard SAP applications. You can use these menu
items to call up your screens or to trigger entire add-on applications.
SAP creates menu exits by defining special menu items in the Menu painter. These special entries
have function codes that begin with ‘+’ (a plus sign).
Customer exit:- The R/3 enhancement concept allows you to add your own functionality to SAP’s
standard business applications without having to modify the original applications. SAP creates
customer exits for specific programs, screens, and menus within standard R/3 applications. These
exits do not contain any functionality. Instead, the customer exits act as hooks. You can hang your
own add-on functionality onto these hooks.customer exits are available for all the modules such as
MM,SD,FI , etc.customer Exits make use of Function modules . customer exits we can only access the
import/export/changing/tables parameters of the Function modules . customer exits are restrictive
and consistent. Created in customer namespace.You dont require access key to make
changes.customer exits are reusable.
24
151. Customer exits can be further classified as:
Menu Exits:
Menu exits add items to the pulldown menus in standard SAP applications. You can use these menu
items to call up your own screens or to trigger entire add-on applications.
SAP creates menu exits by defining special menu items in the Menu Painter. These special entries
have function codes that begin with "+" (a plus sign). You specify the menu item’s text when
activating the item in an add-on project.
Screen Exits :
Screen exits add fields to screens in R/3 applications. SAP creates screen exits by placing special
subscreen areas on a standard R/3 screen and calling a customer subscreen from the standard
screen’s flow logic.
Function Module Exits :
Function module exits add functions to R/3 applications. Function module exits play a role in both
menu and screen exits. When you add a new menu item to a standard pull down menu, you use a
function module exit to define the actions that should take place once your menu is activated.
Function module exits also control the data flow between standard programs and screen exit fields.
SAP application developers create function module exits by writing calls to customer functions into
the source code of standard R/3 programs.
These calls have the following syntax:
CALL CUSTOMER-FUNCTION ‘001’.
Field Exits:
Field exits allow you to create your own programming logic for any data element in the Dictionary.
You can use this logic to carry out checks, conversions, or business-related processing for any screen
field. Example: The data element BBBNR identifies a company’s international location number. You
might want to set up your R/3 System so that all international location numbers are larger than 100.
152. Deep structures contain at least one deep component at any nesting level.
153. Nested structures contain at least one sub-structure. Whether a nested structure is flat or
character-like depends on all the components in it.
154. We can use projection views and database views in program declarations.
155. Table maintenance generator is used to create entries add, modify, delete record from
database table. SM30 creation. SE11 menu Option , SE37 - delete tmg.
25
156. Single step & two step we used this concepts in module pool programming.
Single step: Only overview screen is created i.e. the Table Maintenance Program will have
only one screen where you can add, delete or edit records.
Two step: Two screens namely the overview screen and Single screen are created. The user
can see the key fields in the first screen and can further go on to edit further details.
160. Change package: from Menu > EDIT > Object Directory entry > Here we can change existing
package
161. Working with Version Management: Utilities -> Versions-> Version Management.
26
By using this we can see last object changes who has changed objects , last
changed details.
162. SE14 - database utility if we modified any z tables then we need to use this t-code.
27
39 SE11 Data dictionary maintenance`
28
60 SM30 Maintain tables(not all tables can use SM30)
73 SP00 Spool
29
81 SPIC Spool; installation check
103 NACE conditions of output control (to create a link between forms and
30
driver programs)
169. Smartforms Request : SE03 : Enter object SSFO then we can see all details for particular
Smartforms.
31
174. SM35 Stages - Processed , Being Recorded , Incorrect , Batch.
Initialization , At selection screen (IS PAI Events) , Start of selections, End of Selections.
178. SY-STEPL:
Refers to index of screen tables , that is currently processed. it has important during loop -
endloop. outside the loop it has no valid value.
179. TBTCO (Job headers) and TBTCO (Job steps)
180. Structure of a smartforms Form:
A form consists of pages, output areas, addresses, graphics (such as company logo, Scanned
Signature Of HR Manager), and data or text contents. Within an output area, you can use static or
dynamic tables to display data or texts in lines, columns, or cells. To further structure and format
text and data, use paragraphs with the paragraph and character formats. In SAP we call output areas
as Windows.
181. MAIN Window is used to Print the Dynamic Length Items, Sales Order Items.
182. Secondary Window :
In a secondary window you display text and data in predefined output area. There is no flow text
display with page breakup. If you position a secondary window with same name on several pages ,
the system displays the contents of this window on each page.
32
on the first page within a condition the total number of pages, which the system calculates only after
processing all pages.
184. What is OOS Note : Online service note. SAP tries to solve problem by providing OSS notes.
185. How to disable screen fields in Module pool:
LOOP AT SCREEN.
IF screen-name = 'DISP'.
IF p_pspnr = 'X'.
screen-input = 1.
ELSE.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
189. INSERT - inserts a new record. INSERT expects that a record with the required key does NOT
exist in the table. Therefore, if a record with the same key already exists, a runtime error occurs.
190. UPDATE - update an existing record. UPDATE expects that a record with required key exists
in the table. If a record with the required key does not exist, it issue an error (sy-subrc is 4).
191. MODIFY - acts like a combination of INSERT and UPDATE. If a record with the specified key
does not exist, it adds it to the table. If a record with the specified key does exist, it modifies it.
So MODIFY actually acts like "Insert or change record".
192. Binary statement always used with sorted tables and cant used with hashed tables.
193. SE09: request owner can be changed using this.
194. LFB1 : vendor master company code
33
195. MODIFY ...TRANSPORTING STATEMENT:
MODIFY ...TRANSPORTING STATEMENT statement is used to modify the fields in the internal
table that are given after TRANSPORTING.
MODIFY ITAB INDEX P_NO TRANSPORTING SNAME AGE.
196. TSPAT : Org. Unit sales division
197. TQOST : QM table for certification type
34
Screen Part Description
Screen Layout The screen layout describes both the screen elements
and their layout. The most common screen elements
are I/O fields, text fields, checkboxes, radio buttons,
pushbuttons and controls. Fields are defined in the
ABAP Dictionary or in your program.
Flow Logic The flow logic controls the flow of your program
a) .at first
b) .at new
c) .at last
218. The difference between the table and template is that, table is a dynamic and template is a
static.
219. What is table buffer? Which type of tables used this buffer?
35
Over here, buffer means memory area, table buffer means the table information is available
on the application server. When you call data from database table, it will come from
application server. Transparent tables and pool tables are buffered, while cluster table
cannot be buffered.
‘Type’: You assign data type directly to the data object while declaring.
‘Like’: You assign the data type of another object to the declaring data object.
‘Type’ refers the existing data type while ‘Like’ refers to the existing data object
A cluster table contains data from multiple DDIC tables. It stores data as name value pair.
To fetch the data from the table by the specified field Group by Clause is used
IF R1 = ‘X’.
PERFORM MODIFY.
endif.
FORM MODIFY.
loop at screen.
IF SCREEN-NAME = ‘X’.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDFORM.
36
This statments Leaves the current program and continues processing after CALL
TRANSACTION , CALL DIALOG or SUBMIT prog AND RETURN .
The main diff. between them is, while we use SELECT-OPTIONS system implicitly creates the
select options internal table which contains the fields of SIGN,OPTION,LOW & HIGH. But in
case of RANGES, this internal table should be defined explicitly.
238. When the SELECT-OPTIONS statement is executed, an internal table containing four
components, SIGN, OPTION, LOW, and HIGH is created. These components correspond to the
field of a database table or an internal field in the corresponding program
241. Generally CTU_PARAMS Is used to avoid unnecessary screens,even though they will not
appear in the recording. To handle screen resolutions in bdc.
242. BDCrecx1 is an include which contains selection-screen which we get when we execute the
BDC program using Recording.It contains Performs BDC_DYNPRO and BDC_FIELD which are
used to pass screen numbers and screen fields.It contains Session logic and call transaction
logic.just double click on BDCRECX1 and check it once.
243. Difference between call transaction ands session method (CLASSICAL BATCH INPUT):
Immediate updation in the database tabl Data is not updated in the database table until the
session is processed.
37
Error need to be handled explicitly. Error log is created for error records.
- go to se11
- utilities - table maintenance
- enter authorization group
- enter function group
- specify screen type , single , two
- create t-code
- save & activate
38
wait = 'X'.
- Let’s first create the Standard text using transaction code SO10
- Hence, Create the TR using SE09
- Change the type using Request/Task -> Change Type.
- Select the “Development/Correction” and click on Ok.
- Go to SE38 and type RSTXTRAN and click on execute and fill the details as follows.
- Click on Execute and you will get the Provisional List of Text to be transferred.
- Click on the button “Trsfr texts to corr.” and then pop up will come.
- Click yes and you will get the text transfer result.
- let’s do the client copy using transaction code SCC1
- Don’t select test run
- Pass the request number
- Click on Start Immediately and you will then get the success message
- You will see the same Standard text in on other client for further testing.
484. Before deleting your code always save it into tmp for further references.
39
485. T001F - Company code-dependent form selection
486. T001G - Company Code-Dependent Standard Texts
487. T021M - Sort Variants
488. TBSL - Posting Key
- Go to Start -> Run -> regedit and click ok. It will open the following screen.
- Expand the node HKEY_USERS.
- After that expand the selected node and again expand it.
Click on Software -> SAP -> SAPGUIFront.
- Finally, expand the SAPGUIFront and click on Code. It will open the desired list of all t
codes - which user has entered on the command line on a SAP system in that particular
Computer.
40
- Go the transaction code SE03 or execute the program “RSWBO099” using
- Double click on Unlock objects (Expert tool)
- Screen will appear. Enter the transport request and click execute
- Screen will appear. Click on unlock.
- The corresponding transport request will be unlocked.
- Go to any t-code (SE38/SE24/SE37) and enter space. program history will appear.
- This can be disabled by clicking SPACE+CONTROL and right click.
- By default “Use Default Settings” will be selected. Click Disable history to disable
- Now we can’t see the input history.
- Enable the history.
- Check the history. The history of the program names will be available.
ABAP Test Cockpit (ATC) is an SAP new tool for ABAP programs quality checking. ATC is
available from EhP2 for SAP NetWeaver 7.0 with support package stack 12. The ABAP Test
Cockpit is directly integrated into the ABAP workbench as well as in the ABAP Development
Tools for Eclipse and allows checking code from just within the development environment
the ABAP developer is used to.
SE38 > Menu > program > check > ABAP Test cockpit.
41
Go to transaction ATC -> ATC Administration -> Setup -> Configure ATC.
504. Function Modules used in read & save text : read_text & Save_text
LOOP AT it_nfal.
AT FIRST.
"Get Function module name for given smartform
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZTEST_SMARTFORM'
IMPORTING
fm_name = fm_name.
ENDAT.
IF sy-tabix = no_of_records.
flag = 'Y'.
42
ENDIF.
APPEND it_nfal TO it_nfal_final.
A Remote Function Call(RFC) is a call to a function module running in a system different from the
caller's. The remote function can also be called from within the same system (as a remote call).The
RFC interface provides the ability to call remote functions.
Execute transaction code SE10, select the radio button “Workbench Requests” and click on display.
43
For example you need to merge above two transport requests into one request.
First click on New and create a workbench request.
Now select the Transport request in which you want to merge another request. Click on merge
button and give the transport request no. Click on Green tick.
44
Now expand the request, you will get the entry of merged transport request.
With same steps you can add more transport requests in your request.
Above steps holds good if you need to add/merge one or two transport requests. Sometimes there
might be a requirement to merge more requests in one. In such cases, proceed as mentioned
below:
First create a new transport request and click on merge as specified in above steps. Now select
‘Object lists from multiple requests’ and press on green tick.
45
Following screen is displayed:
Now enter all the transports requests numbers which need to be merged and execute.
46
Click on“Merge”
A popup screen to confirm the action is displayed. Click on “Execute online”.
Now expand the transport request. You will find all the merged transport requests.
1.1.1.1
1.1.1.2 How can I provide a background shading to the table?
In the Table Painter, you can specify the color and shading for the table lines.
SO_DOCUMENT_SEND_API1
47
To get subtotals on each page in smartforms
If the requirement is to get subtotal on each page, we can use calculation tab of smartforms which is
present on table line as shown in the figure below.
Put the name of the field of the table whose subtotal you want in the column Field Name.
Put a variable in the column Target Field Name. This variable will have the value of subtotal which
you got to print.
48