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.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / nitin gautam
That's ok...But you shoud have used Select options stmt while declaring the multiple field ranges...
Please correct me also if i am wrong
Is This Answer Correct ? | 1 Yes | 0 No |
What are the techniques involved in using SAP supplied programs? Do you prefer to write your own programs to load master data? Why?
Can I run normal abap applications in browser?if yes how?
what is the meaning of movement type and how do we find this .....
In events, start-of-selection is a default event. When we have to use this event explicitly? Why?
How do you validate the selection criteria of a report? And how do you display initial
which one is efficient in following command to copy data from one itab1to another itab2 . both itab table has same structure. 1. move itab1 to itab2 2.move corresponding field of itab1 to itab2 3. itab2[] = itab2[] 4.appends line of itab1 to itab2..
what is the structure of itab of screen?
How is conversion of data types done between abap/4 & db layer?
What are the types of table fields in the sap abap?
What is a table pool? : abap data dictionary
Describe the difference between macro and subroutine?
full buffering would be appropiate what type of tables ?