Call function ' BDC_Insert' exporting tr. code = ' enter tr.code1 here' table = 'give an internal table related totr.code1 here' call function 'BDC_INSERT' exporting tr.code = ' enter 2nd tr code' tables = ' 2nd internal table'
“Check” and “Continue”. What is the difference? Check statement, checks the condition with in a loop and if it satisfies the condition, the control moves to next statement in the loop. Otherwise, it terminates the loop.
Continue statement, acts like goto statement. If the condition is true, it processes the remaining statements and if the condition is false, then the control moves to the top of loop. At-Line selection, At user-command etc..,
In at line-selection system defined fcode will be generated In at user-command we need to define the fcode and fkey manually then only it will triggers.
“Exit” and “Stop”. What is the difference? exit statments is exit the current loop. and moving to next loop but stop statement move to end of selection. it's not check all other loops.
strat_form using this we can open many layoutses open_form using this we can open the layout performance will be high
Open_form -- is used to initialize the spool request. Start_form-- is used to initialize the layout.
We can Navigate from basic list to secondary list with the help the event called AT LINE-SELECTION. for every Secondary List the System Field SY-LSIND increases by 1. So there will be Totally 21 list possible in SAP.
One Basic List 20 Secondary List.
- STANDARD TABLE: The key is, by default, set to NON-UNIQUE. You may not use the UNIQUE addition.
- SORTED TABLE: Unlike stadard tables, sorted table have no default setting for the uniqueness attribute. If you do not specify either UNIQUE or NON-UNIQUE, the system defines a generic table type, where uniqueness is irrelevant. You can use generic types to specify the type of generic subroutine parameters.
- HASHED TABLE: Hashed tables have no default setting. You must use the UNIQUE addition with hashed tables. You may not use NON-UNIQUE.
COLLECT allows you to create unique or summarized datasets. The system first tries to find a table entry corresponding to the table key. The key values are taken either from the header line of the internal table itab, or from the explicitly-specified work area. If the system finds an entry, the numeric fields that are not part of the table key (see ABAP number types) are added to the sum total of the existing entries. If it does not find an entry, the system creates a new entry instead. The way in which the system finds the entries depends on the type of the internal table:
- STANDARD TABLE: The system creates a temporary hash administration for the table to find the entries. This means that the runtime required to find them does not depend on the number of table entries. The administration is temporary, since it is invalidated by operations like DELETE, INSERT, MODIFY, SORT, ...). A subsequent COLLECT is then no longer independent of the table size, because the system has to use a linear search to find entries. For this reason, you should only use COLLECT to fill standard tables.
- SORTED TABLE: The system uses a binary search to find the entries. There is a logarithmic relationship between the number of table entries and the search time.
A Great Tutorials Portal
Aquarian Infotech System
Copyright © 2008 interviewmaterial.com. All rights reserved.