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

Former Member
0 Likes
351

Hi Abapers,

is there any way with which I capture that some values in fields change ? cause after pressing ENTER the table control again change to original one even after changing some fields. I know that the PBO again fires and it fills the table again with original values as i wrote the select query in PBO module.

but on same screen I have some selection fields on the basis of which the table fills and displayed in table control on same screen.

Now my ENTER button perform two task.

one fills the table control if selection criteria changes.

second fills the table control if selection criteria changes and also modify the values of internal table , so that table control never shows original values even chaging some fields.

Points will be rewarded to helpful answer.

3 REPLIES 3
Read only

Former Member
0 Likes
323

Hi adams,

1. In flow logic,

in PAI,

we also have to write some extra code.

2. eg.

PROCESS AFTER INPUT.

LOOP WITH CONTROL TC.

module TC_pai.

ENDLOOP.

3. This will ensure

that the fields have the user has modified,

goes back to the corresponding internal table.

(so that, in pbo, it shows again, the latest ones)

4. eg.

module TC_pai.

  • data : tabix like sy-tabix.

LINE_INFO-SIZE = SY-LOOPC.

LINE_INFO-ACTUAL = LINE_INFO-TOP + SY-STEPL.

READ TABLE itq9015 INDEX LINE_INFO-ACTUAL.

if sy-subrc = 0.

tabix = sy-tabix.

MOVE-CORRESPONDING YHRS_Q9015 to ITQ9015 .

modify itq9015 index tabix.

else.

exit from step-loop.

endif.

ENDMODULE.

regards,

amit m.

Read only

Former Member
0 Likes
323

Hi,

Use the following in PAI.

chain.

*Mention the fields you want to capture

field mara-matnr.

endchain.

Read only

Former Member
0 Likes
323

REFER SAP HELP