05-16-2011 8:39 AM
Hi experts,
I have wriiten BDC for F-43..it is executing in foreground(A)..Document is also generated...But not in Background(N mode)
Can any body plz check my code and suggest me please?
LOOP AT GT_F43 INTO GS_F43 WHERE BLART = GS_F43_DT-BLART.
ADD '1' TO LINE_COUNT.
some perform statements
ENDLOOP.
perform bdc_dynpro using 'SAPMF05A' '0330'.
perform bdc_field using 'BDC_CURSOR'
'BSEG-ABPER'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
perform bdc_dynpro using 'SAPMF05A' '0300'.
perform bdc_field using 'BDC_CURSOR'
'BSEG-WRBTR'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
perform bdc_field using 'DKACB-FMORE'
'X'.
PERFORM POPULATE_CODING_BLOCK_F43.
PERFORM BDC_DYNPRO USING 'SAPMF05A' '0700'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RF05A-NEWBS'.
PERFORM BDC_DYNPRO USING 'SAPMF05A' '0700'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=BS'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RF05A-NEWBS'.
PERFORM BDC_DYNPRO USING 'SAPMF05A' '0700'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=BU'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RF05A-NEWBS'.
Thanks in advance,
Veena
05-16-2011 9:08 AM
hi veena i think there is small mistake in your program.
So please paste the complete program here or
save the program in notepad and upload it into any free uploading sites and paste the url here so that it may be helpful.
05-16-2011 9:20 AM
05-16-2011 9:21 AM
05-16-2011 9:23 AM
05-16-2011 9:51 AM
05-16-2011 9:54 AM
hi veena please mark this as closed thread.
(if possible post the solution)
05-16-2011 11:08 AM
Hi Veena,
If the recording contains error or warning it will not generate the document in background but it will generate in foreground.
Regards,
Pawan.
05-16-2011 11:00 AM
Hi,
What is the error message you are getting? Also, can you try executing your recording in SHDB with mode 'P' - Background processing, debugging possible and check where exactly the problem is with the BDC.
Regards,
Shyam.
05-18-2011 12:01 PM
Hi,
After entring the header data in the main screen clcik fast data entry tab for entering line items while recording.
- Syerra