when you are using 2 internal table in program, you have
decided to use for all entries statement to retrieve data
but unfortunately there are no records in the first internal
table. What will be the result? (2nd internal table contains
records).
Answer Posted / lokesh
The driver Internal table 0r First internal Table Must have
records in it , if u use For All Entries . If the First
Internal table is initial (means no records in it) then the
For All entries will fetch all the records from the DB
table , which can be real perfromance Issue.
so before making a 'For all entries" for a table make a
check that its not empty.
eg. code :
select matnr werks from marc
into table t_marc
where matnr = p_matnr.
if t_marc is not initial.
select matnr mbrsh meins matkl from mara
into table t_mara
for all entries in t_marc
where matnr = t_marc-matnr.
else.
write : / 'No data was fetch by t_marc'.
endif.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Explain the data types of internal tables?
What is img? : sap abap hr
How to transfer data into line items using batch input session method? : abap bdc
In which particular scenario we use sorted table and which particular scenario we use standard table?
Define external layer?
Differentiate between static and dynamic step loops?
How to convert the Unit for 'Distance' (The value from one Unit to another).
How can we use / display table in a screen?
What is view? Different types of view.
What is locking ?
What is a data dictionary? : sap abap data dictionary
What are internal tables? How do you get the number of lines in an internal table? How to use a specific number occurs statement?
What is function group?
Can you give the Example for the structure of an ABAP program? REPORT... NODES: SPFLI, SFLIGHT. DATA:... INITIALIZATION. AT SELECTION-SCREEN. START-OF-SELECTION. GET SPFLI... GET SFLIGHT... GET SPFLI LATE. END-OF-SELECTION. FORM... ENDFORM.
What is the different type of projects? : sap abap hr