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: 

Problems when calling a transaction from another txn and then closing

0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

Hi Dhilip,

Do you use

 Call Transaction 

or

 Leave to Trasaction 

?

Try using both statement and see the outcome?

Jey

0 Kudos

HI Jey ,

I'm using Call Transaction

regards,

Dilip

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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' .

MarcinPciak
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Dilip,

Check this link [; .

Hope this is helpful.

Cheers,

Vivek.