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
What is an rfc?
Can you create a table with fields not referring to data elements? : abap data dictionary
What is an abap?
What data is contained in data dictionary? : abap data dictionary
Lock objects and what are parameters of ENQUEUE FM?
What is the function of the transport system and workbench organizer?
What is repository info. Systems? : abap data dictionary
What are the basic objects of the data dictionary?
Explain the sequences of event block?
What is the difference between dialog program and a report?
What are the arithmetic operators in the sap abap?
What does the insert statement in extract datasets do?
What are the two ways for restricting the value range for a domain ?
What statement will be found in an sap application program that implements a function module exit?
Do you know any other patterns if yes.. explain