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 |
28) What is the significance of Data element and Domain?
What is the meaning of abap editor integrated with abap data dictionary? : abap data dictionary
What is narrow casting and wide casting?
How we can give authorization on the fields of table control in a dialog-programming?
What is modularization and its benefits?
Select up to 1 row and select single difference ?
whats the difference between ERROR MESSAGE AND WARNING MESSAGE
What is the difference between open sql & native sql ?
which layout sets you used?
what are system Variables?
How to decide whether we can use BDC (OR) LSMW for a given transaction?
What are types of select statements?