Application Development and Automation 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: 
Read only

BDC F-43 problem

Former Member
0 Likes
1,494

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

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

9 REPLIES 9
Read only

koolspy_ultimate
Active Contributor
0 Likes
1,382

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.

Read only

0 Likes
1,382

hI

Thanq for your replyinggg..can you plz tell me uploading site

Read only

0 Likes
1,382

.

Read only

0 Likes
1,382

This message was moderated.

Read only

0 Likes
1,382

This message was moderated.

Read only

0 Likes
1,382

hi veena please mark this as closed thread.

(if possible post the solution)

Read only

0 Likes
1,382

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.

Read only

Former Member
0 Likes
1,382

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.

Read only

Former Member
0 Likes
1,382

Hi,

After entring the header data in the main screen clcik fast data entry tab for entering line items while recording.

- Syerra