‎2006 Aug 18 11:53 AM
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.
‎2006 Aug 18 11:57 AM
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.
‎2006 Aug 18 11:58 AM
Hi,
Use the following in PAI.
chain.
*Mention the fields you want to capture
field mara-matnr.
endchain.
‎2006 Aug 18 12:01 PM