Hi all,
I am running a BDC program in Foreground and the program posts FI docs in F-43.
If I run the same in background it does not generate any FI docs.
data: begin of i_bdcdata occurs 0. " BDC data table
include structure bdcdata.
data: end of i_bdcdata.
data: begin of i_bdcmessage occurs 0. " BDC Messages
include structure bdcmsgcoll.
data: end of i_bdcmessage.
parameters:p_mode type c.
start-of-selection.
perform bdc_screen using 'SAPMF05A' '0100'.
perform bdc_field_in using 'BDC_OKCODE'
'/00'.
perform bdc_field_in using 'BDC_CURSOR'
'RF05A-NEWKO'.
perform bdc_field_in using 'BKPF-BLDAT'
'06/06/2008'.
perform bdc_field_in using 'BKPF-BLART'
'KR'.
perform bdc_field_in using 'BKPF-XBLNR'
'test'.
perform bdc_field_in using 'RF05A-NEWBS'
'31'.
perform bdc_field_in using 'RF05A-NEWKO'
'FRED'.
perform bdc_screen using 'SAPMF05A' '2302'.
perform bdc_field_in using 'BDC_OKCODE'
'SB'.
perform bdc_field_in using 'BDC_CURSOR'
'BSEG-ZLSCH'.
perform bdc_field_in using 'BSEG-WRBTR'
'224'.
perform bdc_field_in using 'BSEG-GSBER'
'2000'.
perform bdc_field_in using 'BSEG-ZLSCH'
'F'.
perform bdc_screen using 'SAPMF05A' '0310'.
perform bdc_field_in using 'BDC_OKCODE'
'SB'.
perform bdc_field_in using 'BDC_CURSOR'
'BSEG-KOSTL(01)'.
perform bdc_field_in using 'BSEG-BSCHL(01)'
'40'.
perform bdc_field_in using 'RF05A-KONTO(01)'
'705000'.
perform bdc_field_in using 'BSEG-WRBTR(01)'
'224'.
perform bdc_field_in using 'BSEG-GSBER(01)'
'2000'.
perform bdc_field_in using 'BSEG-KOSTL(01)'
'10193031'.
perform bdc_screen using 'SAPMF05A' '0310'.
perform bdc_field_in using 'BDC_OKCODE'
'BU'.
perform bdc_field_in using 'BDC_CURSOR'
'BSEG-BSCHL(01)'.
call transaction 'F-43' using i_bdcdata
mode p_mode
update 'S'
messages into i_bdcmessage.
commit work.
Any reason why?
Thanks,
Subba