2011 Dec 23 10:21 AM
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.
2011 Dec 23 10:33 AM
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
2011 Dec 23 10:33 AM
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
2011 Dec 23 10:39 AM
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
2011 Dec 23 10:48 AM
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
2011 Dec 23 10:50 AM