Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

table control - internal table is blank

Former Member
0 Likes
1,829

hi experts,

I have developed dynpro using table control(wizard).

driver prog internal table name is I_ZESP and screen internal table name is CT_ZESP.

now prog is running fine. but when i press save button whatever data is in CT_ZESP table is not coming in i_zesp table.

some programming is missing .. how i come to know where i am making mistake.

raj

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,028

try this code in pai.

in screen.

loop with control <control name>.

module modify_itab.

endloop.

in abap.....

module modify_itab input.

move-corresponding <screen table name for table cntrl> to itab.

modify itab index <control name>-current_line.

endmodule.

7 REPLIES 7
Read only

Former Member
0 Likes
1,028

Probably you are making mistake in the AT USER COMMAND statement. Please check it, put a debug point and rectify the problem. I hope you can find it easily !

Read only

Former Member
0 Likes
1,028

sandeep,

this is my dialog programming, module PAI input is get fire. in this module internal table is blank, but on screen i have entered data.

raj

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
1,028

Hi,

IN the PAI of the screen you should use LOOP ENDLOOP to copy the data from the table control to internal table.

This code is must for the table control data to reflect in the internal table. There is not done by the program you have to do it your self.

Check out some example programs(RSDEMO02) for table control.

Regards,

Sesh

Message was edited by: Seshatalpasai Madala

Read only

Former Member
0 Likes
1,028

ONCE AGAIN I AM ASKING SAME QUESTION

MY I/O FIELD NAME IS I_ZESP-SALESPERSON.

I AM ENTERING DATA IN THIS FIELD. THEN PRESS SAVE.

NOW WHEN PAI FIRED I WRITE CODE FOR COMMIT_DATA.

HERE I AM APPLYING (LOOP/ENDLOOP) LOGIC FOR DATA INSERTION FROM I_ZESP INTERNAL TABLE TO ZTABLE.

<b>IN COMMIT_DATA I FOUND THAT I_ZESP IS BLANK.</b>

HOW TO RECTIFY IT.

RAJ

Read only

Former Member
0 Likes
1,029

try this code in pai.

in screen.

loop with control <control name>.

module modify_itab.

endloop.

in abap.....

module modify_itab input.

move-corresponding <screen table name for table cntrl> to itab.

modify itab index <control name>-current_line.

endmodule.

Read only

gopi_narendra
Active Contributor
0 Likes
1,028

demo_dynpro_tabcont_loop

demo_dynpro_tabcont_loop_at

Please check thru these SIMPLE standard programs related to Table Control.

Regards

- Gopi

Read only

Former Member
0 Likes
1,028

thanks shiba - full points