06-27-2022 7:57 AM
How to transfer data entered by user in a table control to an internal table? A sample code will be truely useful
06-27-2022 8:35 AM
06-27-2022 8:42 AM
06-27-2022 9:03 AM
Hi,
Please find below sample code.
In my sample code I created table control with wizard and I loop to internal table which is automatically created after creation of table control with wizard.
Get button is present on screen 100 where table control wizard is present. So once the get button is click i will get data from table control to my internal table.
I just write below code.
case sy-ucomm.
when 'EXIT'.
LEAVE PROGRAM.
when 'GET'.
loop at G_TABEMP_ITAB into G_TABEMP_WA.
wa_emp-employee_id = G_TABEMP_WA-employee_id.
wa_emp-employee_name = G_TABEMP_WA-employee_name.
wa_emp-gender = G_TABEMP_WA-gender.
wa_emp-blood_group = G_TABEMP_WA-blood_group.
append wa_emp to it_emp.
endloop.
call screen 300.
endcase.
06-27-2022 1:31 PM
Basically, you should have already built two loops in your dynpro logic based on table control
There is also a wizard in screen painter for your first try.
What did you already do, where are you stuck?