Skip to Content
author's profile photo
Former Member

calling transaction codes.

Hi Everyone,

I have around 5 different programs, and have transaction codes for them. Now if I navigate from one screen to another say for until the 4 screen and then again if I press the back button, it has to come back to the previous screen until the last one.

Can this be implemented through callstack if so, how can it be done, any suggestions.

It would be of great help if anyone can help me.

Thanks,

Prabs.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • author's profile photo
    Former Member
    Sep 30, 2005 at 08:42 PM

    Hi

    You can use statament CALL TRANSACTION to go to next program and LEAVE PROGRAM to go back.

    Max

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 01, 2005 at 05:02 AM

    Hi

    If you use call transaction then you can go back only one step with leave program . There is no way to determine previuos steps. You can still achieve this -

    In Program for ( TRANSACTION Z1 )

    CALL TRANSACTION Z2 .

    In Program for ( TRANSACTION Z2 )

    CALL TRANSACTION Z3 .

    LEAVE PROGRAM.

    In Program for ( TRANSACTION Z3 )

    CALL TRANSACTION Z4 .

    LEAVE PROGRAM.

    If now you branch to Z4 and click a back button here it will goto ( internally ->Z3 -> Z2 ) to Z1 . You have to place the "LEAVE PROGRAM" just after the call transaction.

    If you are using call screen ( within same program ) you can use SET SCREEN 0 . LEAVE SCREEN to branch to first screen in call sequence.

    You can also try function module SYSTEM_CALLSTACK in your code . With every call transaction a new call stack is created.

    ( You can even check in debugging the call stack ).

    Cheers

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 03, 2005 at 04:25 AM

    Use

      CASE p_column.
      WHEN 'KNUMA'.
        IF NOT lw_output-knuma IS INITIAL.
        SET PARAMETER ID 'VBO' FIELD lw_output-knuma.
     <b>CALL TRANSACTION 'VBO3' AND <i>SKIP FIRST SCREEN</i>.</b>   ENDIF.
      ENDCASE.

    Hope this helps.

    Kindly reward and close the thread.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 03, 2005 at 05:19 AM

    Hi,

    In case you have called the transactions 4 times as said in the above explanations please also note that you have to close all the Windows that were opened if you would like to close this application.

    Please reward points if this explanation is useful.

    Regards,

    Siva

    Add comment
    10|10000 characters needed characters exceeded