Skip to Content

Problems when calling a transaction from another txn and then closing

Hi Colleagues ,

when i call a transaction from another transaction and then try closing the window , i get a dialog saying

"The transaction was terminated by the user" with a exit button , the long text has the message number - Message no. 00359.

when i click on exit , it returns to the previous transaction.

question is : can i avoid this dialog and close the window immediately?

regards,

Dilip

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 15, 2011 at 05:49 AM

    Hi Dhilip,

    Do you use

     Call Transaction 

    or

     Leave to Trasaction 

    ?

    Try using both statement and see the outcome?

    Jey

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 15, 2011 at 05:59 AM

    HI Jey ,

    I'm using Call Transaction

    regards,

    Dilip

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 15, 2011 at 06:48 AM

    Hi Jey,

    My use-case is that , i should come back to the previous transaction .

    using leave transaction i wont be able to achieve it.

    regards,

    Dilip

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 15, 2011 at 08:02 AM

    Dhilip,

    If you are using standard transaction...give me that i will try and let you know....or else if its customized tcode use Leave Trasaction to 'Tcode' in both the exit function code to go back and forward.

    Rgds,

    Jey

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 15, 2011 at 09:50 AM

    Hi Jey,

    I'm passing parameters to the transaction using "Call Transaction" ,

    i'm using the following code :

    wa_bdc_data-program = 'XXXX'.

    wa_bdc_data-dynpro = '0100'.

    wa_bdc_data-dynbegin = 'X'.

    APPEND wa_bdc_data TO lt_bdc_data

    CLEAR wa_proc_bdc_data.

    wa_bdc_data-fnam = 'XXXXXX.'

    wa_proc_bdc_data-fval = gs_process-process_type_id.

    APPEND wa_bdc_data TO lt_bdc_data.

    CLEAR wa_bdc_data wa_proc_bdc_data-fnam = 'XXXXX.'

    wa_bdc_data-fval = XXXXXX.

    APPEND wa_bdc_data TO lt_bdc_data.

    CLEAR wa_bdc_data wa_bdc_data-fnam = 'BDC_OKCODE'.

    wa_bdc_data-fval = 'HIDE'.

    APPEND wa_bdc_data TO lt_bdc_data.

    CALL TRANSACTION 'XXXX' USING lt_bdc_data

    MODE 'E' .

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 15, 2011 at 11:18 AM

    when i call a transaction from another transaction and then try closing the window

    Don't close that window. Using CALL TRANSACTION you chain the execution of different units. As long as they reside (or acutally caller) in the memory (were not closed using EXIT/BACK button) you will keep getting that mesage as you obviously trying to interupt its execution. If, as noted above you will be using LEAVE TO TRANSACTION this wouldn't be an issue anymore as there is no caller program residing in the memory, so the only execution you are affecting is current transaction.

    Regards

    Marcin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 18, 2011 at 04:15 AM

    Hi Dilip,

    Check this link [difference bet ween LEAVE TO TRANSACTION & CALL TRANSACTION; .

    Hope this is helpful.

    Cheers,

    Vivek.

    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.