2007 Dec 04 6:52 AM
hi experts ,
i have two table control in two different screen.suppose i am entering some value in screen A with some amount , two to three line i enter.
when i press Enter key and Click on BACK (PAI) button i am getting corresponding sum of all field in Table control of Screen B . ITs working fine.
Now my quation that
If i never press Enter key and dirctly clicking on Back (PAI) button then corresponding sum is not reflecting in second table control of B screen.
How to solve above problem..
Point is assured.
2007 Dec 04 7:29 AM
How have you defined "Back" in you PF-STATUS?... if it's defined as an exit command and you are handling the navigation back to the prior screen via something like "module at_exit_command at exit-command." then you will not be reaching the loop at table control in the PAI and thus not able to do the calculation. If so, you'll need to change the PF-STATUS and allow the logic to get past the loop at table control before leaving to the prior screen.
Jonathan
2007 Dec 04 7:29 AM
How have you defined "Back" in you PF-STATUS?... if it's defined as an exit command and you are handling the navigation back to the prior screen via something like "module at_exit_command at exit-command." then you will not be reaching the loop at table control in the PAI and thus not able to do the calculation. If so, you'll need to change the PF-STATUS and allow the logic to get past the loop at table control before leaving to the prior screen.
Jonathan
2007 Dec 04 7:47 AM
YES jONTH,
I AM WORKING ON cOMMAND_EXIT.
WHAT SHOULD BE LOGIC THEN
2007 Dec 04 7:57 AM
Typically your PAI should follow something like the following:
process after input.
module at_exit_command at exit-command. "don't exit here if you want TC data!!
module d9999_before_tc.
loop with control tc_9999.
chain.
field:
gs_9999_tc-sel,
gs_9999_tc-field1.
module d9999_line_tc_handler.
endchain.
endloop.
module d9999_user_command. "put your exit in here instead...
module d9999_pai_scroll.
in other words, you need to let the logic get through the loop on the table control so that you can get the info from the screen, and then you can exit back to the prior screen...
Jonathan
2007 Dec 04 8:15 AM
Thanks
Jonathan Coleman ,
my problem has been solved, point has been given to you for your valuable Logic or advice,
for further query would you please give your Personal. ID or mail
Thanks again