Application Development 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: 

BaCK button.PAI

Former Member
0 Kudos
174

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
102

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

4 REPLIES 4

Former Member
0 Kudos
103

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

Former Member
0 Kudos
102

YES jONTH,

I AM WORKING ON cOMMAND_EXIT.

WHAT SHOULD BE LOGIC THEN

0 Kudos
102

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

Former Member
0 Kudos
102

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