am facing problem in inserting multiple data from user
defined selection screen to internal table can anyone tel
me any small code tht can insert multple data from screen
to inernal table.
thanks in advance.
Answer Posted / malathy
*For example i have used the scarr table
*Internal table declaration.
Data: Begin of Itab occurs 0,
carrid like scarr-carrid,
carrname like scarr-carrname,
currcode like scarr-currcode,
end of itab.
*Fields on selection screen.
parameter : carrid for scarr-carrid ,
carrname for scarr-carrname,
currcode for scarr-currcode.
*To insert data from Selection screen fields to the
*internal table
loop at itab.
itab-carrid = carrid.
itab-carrname = carrname.
itab-currcode = currcode.
append itab.
clear itab.
endloop.
Just by looping you can insert multiple data to the
internal table. Let me know if this code worked for you.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
In order to upload purchase order details, how you handle multiple values for a single field?
How can end-of-selection be used?
Is it possible to pass data to and from include programs explicitly? : abap modularization
What is the use of message command in a report? What are the different message types?
Why lsmw does not support call transaction method? : abap bdc
On ABAP, Did you set up a workflow? Are you familiar with all steps for setting up a workflow?
Explain what is an rfc?
How many main windows are allowed in sapscript?
What are the different types of mode (run code) in call transaction method?
What is a data dictionary? : abap data dictionary
What two statements are required in an abap program to output an icon using a write statement?
Explain the difference between a pool table and a transparent table?
What are conversion routines? : abap data dictionary
What does the insert statement in extract datasets do? : abap modularization
What is the difference between rfc and bapi function modules? : abap bdc