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: 

Not the same behaviour between SUBMIT and CALL TRANSACTION

former_member215107
Active Participant
0 Kudos
205

Dear All,

1-From a normal screen, i need to call a program ZHR_TOTO.

Inside this program, i call the FM BAPI_PO_CREATE1 then i do a COMMIT WORK AND WAIT and display an alv.

2-To call the program from my screen, i use the following command:

CALL TRANSACTION 'ZHR_TOTO' USING t_bdcdata

MODE 'E'

UPDATE 'S'

MESSAGES INTO t_messtab.

=> the called program exit without displaying the alv.

I debug and i contast that the command COMMIT WORK AND WAIT make directly an exist of the program without continuing.

3-I change the method to call the program from my screen:

SUBMIT ZHR_TOTO

WITH s_week IN lr_week

WITH s_date IN lr_date

AND RETURN via SELECTION-SCREEN.

=> it seems to work!

Can you explain me why ?

thanks a lot

Rodolphe.

1 ACCEPTED SOLUTION

surajarafath
Contributor
0 Kudos
179

In SUBMIT you can call the report.

In CALL TRANSCATION only transaction code has been called.

Report Id and transaction code is different.

May be create a transaction code for your program then try

4 REPLIES 4

surajarafath
Contributor
0 Kudos
180

In SUBMIT you can call the report.

In CALL TRANSCATION only transaction code has been called.

Report Id and transaction code is different.

May be create a transaction code for your program then try

0 Kudos
179

Hi playsuji,

I already created a transaction code for this program.

The two methods call the report (i see with the debugger) but with the call transaction method

report exit without terminating

Edited by: Rodolphe LALOUX on Dec 23, 2011 11:39 AM

former_member537489
Participant
0 Kudos
179

Hi Rodophe,

Maybe you needes to add an additional option in your call transaction parameters:

call transaction... ... OPTIONS FROM opt

opt-RACOMMIT = X.

This makes your code continue after the commit work.

Thanks,

Roxani

0 Kudos
179

Yes thanks !