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


Please Help Members By Posting Answers For Below Questions

What are the 3 types of function modules in sap?

791


What is off cycle payroll run

2144


What is pretty printer?

766


What is the use of abap data dictionary? : abap data dictionary

783


Explain what is a foreign key relationship? Explain this with the help of an example.

798






How does the system handle roll areas for external program components?

835


What are different data types in abap/4?

713


Differentiate between transparent tables, cluster tables and pooled tables

763


How to find the return code of an stmt in abap programs?

822


When you prefer lsmw?

763


A field containing quantity amounts (data type quan) must be assigned to a reference table and a reference field. Explain? : abap data dictionary

844


identify valid statement when coding a field exit ? a) submit RSCA101X b)MESSAGE E101 C)MESSAGE I101 d)BREASK-POINT

2186


What is the difference between field-group header and other field groups? : abap modularization

742


What are the Synchronous and asynchronous methods in bdc ?

797


A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain?

1111