Skip to Content

Call transaction

I have created a custom screen with verios buttons. Each button triggers a call transaction. The first button triggers CT04 and works the way I would like it to. The user creates a characteristic, saves and clicks the back arrow to go back to the custom screen where they have the option of clicking on another button. However, none of the other transactions - CU01, CL02 etc allows the user to go back to the custom screen after saving and clicking the back arrow. Rather they are taken back to the application menu (and totally out of my program). I found for example if I went to CU03 (display) then backing out also takes the user to the custom screen. Create and change is the problem. Any suggestions would be greatly appreciated.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    May 20, 2004 at 03:48 AM

    Hi Jill,

    The problem that you are facing is because of code in this manner.

    If you just debug you will see that we have the following.

    If its batch input, then leave.

    else leave to transaction CU01.

    So to make it appear like a batch input session what you might do is.

    Do call transaction give empty bdcdata table, and specify the options as follows.

    DATA: options TYPE ctu_params.

    DATA: bdcdata TYPE STANDARD TABLE OF bdcdata.

    options-racommit = 'X'.

    options-dismode = 'E'.

    sy-binpt = 'X'.

    CALL TRANSACTION 'CU02' USING bdcdata

    OPTIONS FROM options.

    If you remove the parameter racommit = 'X' then it will automatically come back to ur previous session on pressing save, but if u want to press back to come back to the previous session then racommit must be 'X'. You should be able find similar work arounds in other cases as well.

    Pavan

    Add comment
    10|10000 characters needed characters exceeded

  • May 20, 2004 at 02:41 PM

    Thanks Pavan (especially for your timely response) - it worked like a dream

    Jill

    Add comment
    10|10000 characters needed characters exceeded