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

Problem with Table control

Former Member
0 Likes
814

Hi Experts,

I had a problem with Table Control. I give input values to the table , it disappears after PRESSING ENTER.

After entering the values to the screen, going debug mode and see data is correctly passing to the corresponding structure in the PAI. This is not happening properly in my case.

Can anyone tell me what is the problem.

Thanks & Regards,

Srini

9 REPLIES 9
Read only

Former Member
0 Likes
787

Hi Srinu,

This is because the no of lines in table control is determined in PBO which is triggerred when you press enter. To avoid this you have to make the size of table control equal to no of lines entered in the PBO of the screen.

For this you can use "Describetable control" option in the PBO. Hope this helps.

Please find the syntax.

Regards,

Read only

0 Likes
787

Hi Nagraj,

Thanks for your reply, But when we press Enter, PAI will trigger first, and My Internal table is having none of the values even if i make an entry in Table.

Regards,

Srini

Read only

0 Likes
787

Hi,

that what i am try to tell you.

See the sample program in se38-->DEMO_DYNPRO_TABCONT_LOOP_AT

instead of using Modify try to Use Append to internal table from Table control.

Prabhudas

Read only

Former Member
0 Likes
787

Hi,

they are different thing when you are working with table control.

First check in the PAI

are you Using Modify Statment inside the table control.

if it is new line try to USe the append to internal table in the table control.

and check in the PBO r u passign properly internal table to Table control fields with cursor.

See the sample program in se38-->DEMO_DYNPRO_TABCONT_LOOP_AT

Prabhudas

Read only

0 Likes
787

Hi Prabhu,

Present i am using Modify Statement on Internal table, But my Work area present the values, After Modify statement, sy-subrc is showing as 4. Thats why Internal table consists not values.

Regads,

Srini

Read only

0 Likes
787

Problem Solve.

Read only

0 Likes
787

Gr8......

Read only

Former Member
0 Likes
787

You can try the below code snippet in your PAI to get the entered data into your internal table.

MODULE TC_UA_OPERATION_MODIFY INPUT.

MODIFY <intenal table>

FROM <table control work area>

INDEX TC_UA_OPERATION-CURRENT_LINE.

ENDMODULE.

TC_UA_OPERATION : Table control name.

Try coding this after the Loop ...Endchain statement in your PAI of the screen.

Regards,

Read only

former_member233090
Active Contributor
0 Likes
787

Hi srinu,

you can see many threads related to this

what might happen is ,loop in the PAI is missing which transfers the data from the table control to the internal table

ooor the loop in the PBO which transfers the data back from the internal table to the table control. If one of those is missing, the data you put in on the screen will disappear after hitting enter.

and even check this link

Cheers,

bhavana