Skip to Content
author's profile photo Former Member
Former Member

BaCK button.PAI

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 07: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 07:47 AM

    YES jONTH,

    I AM WORKING ON cOMMAND_EXIT.

    WHAT SHOULD BE LOGIC THEN

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 08: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.