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
Module Pool Programming: Events and Table Control handling.
Can we reuse a userexit?
How can an internal table with header line and one without header line bedistinguished when passed to a subroutine?
What is the maximum number of structures that can be included in a table or structure : abap data dictionary
how to update the filed value in SAP in ZAWSYS and create time and date? please tell me the answer
What is the meaning of abap editor integrated with abap data dictionary? : abap data dictionary
What are the drill-down features provided by abap/4 in interactive lists?
What are the different functions used in sap script?
Reports: Event functionality.
What is append search help? : sap abap data dictionary
I am uploading 100 records out of which say 59th record has error so what will happen if I am using synchronous or asynchronous method of bdc? Can we update the database using local update mode how? : abap bdc
In tm, if a group of employees gets 10 days of annual leave, what will be the time evaluation status? : sap abap hr
What is the function of the transport system and workbench organiser?
how to Create reports in SD module such as sales order report, which covers all organization levels, delivery status, invoice status, shipping details and partner function details. The data will be extracted from VBAP, VBPA, VBAK, VBUP, VBFA, KNA1, LIPS, VBRP, MARA, VBEP and KONV tables. plz mention the detail coding Tahnks, Rahul
how to use the xk01 in realtime.can it apply the others. how it it will goes to first page and next page.