01-05-2007 2:49 PM
Hi,
I've created a batch input for 'LQ02' transaction. In this transaction you can mark all the registers with a button (materials) to move (another button).
When I do it manually, that means I mark all the registers with the button and move them with the other button, it works properly. But, with the batch input only does the first (however all the registers are marked).
Some idea why?
This is the batch input:
<i>report Z_LIBERA
no standard page heading line-size 255.
include bdcrecx1.
start-of-selection.
perform open_group.
perform bdc_dynpro using 'RLLQ0200' '1000'.
perform bdc_field using 'BDC_CURSOR'
'PA_BUDAT'.
perform bdc_field using 'BDC_OKCODE'
'=ONLI'.
perform bdc_field using 'S1_LGNUM'
'E'.
perform bdc_field using 'S1_LGTYP-LOW'
'001'.
perform bdc_field using 'PA_BWLVS'
'904'.
perform bdc_field using 'PA_BLDAT'
''.
perform bdc_field using 'PA_BUDAT'
''.
perform bdc_dynpro using 'SAPMSSY0' '0120'.
perform bdc_field using 'BDC_OKCODE'
'=MKAL'.
perform bdc_dynpro using 'SAPMSSY0' '0120'.
perform bdc_field using 'BDC_OKCODE'
'=UMBU'.
perform bdc_transaction using 'LQ02'.
perform close_group.</i>
01-05-2007 3:04 PM
Hi
Have you tried to do a submit for the report RLLQ0200 instead of the BDC?
Max
01-05-2007 3:04 PM
Hi
Have you tried to do a submit for the report RLLQ0200 instead of the BDC?
Max
01-08-2007 11:04 AM
Hi Max,
thank's for reply but I didn't understood your answer..
Finally I found something in a thread that were useful:
I've added this code to the report:
<i>
DATA: BEGIN OF git_ctu.
INCLUDE STRUCTURE ctu_params.
DATA: END OF git_ctu.
here I comment the perform, to do the call transaction by own code
*perform bdc_transaction using 'LQ02'.
GIT_CTU-DISMODE = 'E'.
GIT_CTU-UPDMODE = 'A'.
GIT_CTU-RACOMMIT = 'X'.
CALL TRANSACTION 'LQ02'
USING GIT_BDCDATA
options from git_ctu
MESSAGES INTO GIT_MESSTAB.</i>
Cheers!
Xavi.
Message was edited by:
Xavier Murillo