‎2010 Aug 18 12:56 PM
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
‎2010 Aug 18 1:06 PM
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,
‎2010 Aug 18 1:10 PM
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
‎2010 Aug 18 1:14 PM
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
‎2010 Aug 18 1:10 PM
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
‎2010 Aug 18 1:13 PM
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
‎2010 Aug 18 1:28 PM
‎2010 Aug 18 1:31 PM
‎2010 Aug 18 1:15 PM
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,
‎2010 Aug 18 1:20 PM
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