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

error while executing BDC in background

Former Member
0 Likes
1,427

Hi SDN,

I have a BDC program for Re-ATP check using VA02 . When i execute this program in foreground it is executing successfully where as when i execute the same program in background sheduling jobs i am getting the following error:

"No batch input data for screen SAPMV45A". So please any one suggest me how to rectify the above error and make the status as "SUCCESS".

Thanks in Advance.

Regards

Basha

14 REPLIES 14
Read only

Former Member
0 Likes
1,349

Hi Basha,

Where are you getting the data from while running the program in background?

regards,

Atish

Message was edited by:

Atish Sarda

Read only

0 Likes
1,349

Hi Atish,

Thanks for your quick reply.

Just i am giving the input data in the selection screen and execting the program from the menu Program-->Executing in background option.

Regards

Basha

Read only

Former Member
0 Likes
1,349

Hi Basha,

When you execute this program in foreground are you pressing ENTER key at any particular screen. Which mode you are choosing for foreground.

Regards,

Atish

Read only

0 Likes
1,349

Hi Atish,

I tried with both the modes 'N' and 'A' in the foreground and it is working fine. And when i am executing in background job i am using the mode 'N'. Even i tried with 'A' to find out the error but it is not working.

Regards

Basha

Read only

0 Likes
1,349

Can you paste your code?

Read only

0 Likes
1,349

Hi Atish,

Here is the part of the code.

FORM REATP_BDC.

REFRESH: T_BDCDATA, T_MESSTAB.

CLEAR: T_BDCDATA, T_MESSTAB.

SET PARAMETER ID 'AUN' FIELD T_DATA-SO.

PERFORM BDC_DYNPRO USING 'SAPMV45A' '0102'.

PERFORM BDC_FIELD USING 'BDC_CURSOR'

'VBAK-VBELN'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'/00'.

  • PERFORM BDC_FIELD USING 'VBAK-VBELN'

  • T_DATA-SO.

PERFORM BDC_DYNPRO USING 'SAPMV45A' '4001'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=POPO'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPMV45A'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPMV45A'.

  • PERFORM BDC_FIELD USING 'KUWEV-KUNNR'

  • P_KUNNR.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPMV45A'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPMV45A'.

  • PERFORM BDC_FIELD USING 'RV45A-KPRGBZ'

  • 'D'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPMV45A'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPLV45W'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPMV45A'.

PERFORM BDC_FIELD USING 'BDC_CURSOR'

'RV45A-MABNR(01)'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPMV45A'.

PERFORM BDC_DYNPRO USING 'SAPMV45A' '0251'.

PERFORM BDC_FIELD USING 'BDC_CURSOR'

'RV45A-POSNR'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=POSI'.

PERFORM BDC_FIELD USING 'RV45A-POSNR'

T_DATA-SOITM.

PERFORM BDC_DYNPRO USING 'SAPMV45A' '4001'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=PEIN'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPMV45A'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPMV45A'.

  • PERFORM BDC_FIELD USING 'KUWEV-KUNNR'

  • P_KUNNR.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPMV45A'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPMV45A'.

  • PERFORM BDC_FIELD USING 'RV45A-KPRGBZ'

  • 'D'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPMV45A'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPLV45W'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPMV45A'.

PERFORM BDC_FIELD USING 'BDC_CURSOR'

'RV45A-MABNR(01)'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPMV45A'.

PERFORM BDC_DYNPRO USING 'SAPMV45A' '4003'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=PORE'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPMV45A'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPMV45A'.

PERFORM BDC_FIELD USING 'BDC_CURSOR'

'RV45A-ETDAT(01)'.

  • PERFORM BDC_FIELD USING 'VBAP-VRKME'

  • T_DATA-UNIT.

PERFORM BDC_DYNPRO USING 'SAPLATP4' '0500'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'RV03V-ETDTL(01)'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=TEIL'.

PERFORM BDC_DYNPRO USING 'SAPMV45A' '4003'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=SICH'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPMV45A'.

PERFORM BDC_FIELD USING 'BDC_SUBSCR'

'SAPMV45A'.

PERFORM BDC_FIELD USING 'BDC_CURSOR'

'RV45A-ETDAT(01)'.

  • PERFORM BDC_FIELD USING 'VBAP-VRKME'

  • T_DATA-UNIT.

And then

CALL TRANSACTION 'VA02' USING T_BDCDATA

UPDATE 'S'

MODE 'N'

MESSAGES INTO T_MESSTAB.

Regards

Basha

Read only

0 Likes
1,349

Hi Basha,

Can you replace

SET PARAMETER ID 'AUN' FIELD T_DATA-SO.

with

<b>PERFORM BDC_FIELD USING 'VBAK-VBELN'

T_DATA-SO.</b>

and try.

Regards,

Atish

Read only

0 Likes
1,349

Hi Atish,

I tried it before itself but no use.

Regards

Basha

Read only

0 Likes
1,349

Have you tried running it in the foreground with mode 'E'?

Rob

Read only

0 Likes
1,349

run ur program in <b>foregroud after error mode (E)</b> and you ll get the screen in which the data is missing from your batch input.

check that and correct it.

Read only

0 Likes
1,349

Hi Asisf,

First of all thanks for your support.

Actually in foreground either with 'E', 'N' or 'A' modes it is executing successfully but the problem is with background job only.

Regards

Basha

Read only

0 Likes
1,349

Hi Basha,

I am also facing a similar problem that the sales order create works in foreground but in background it errors out with the message "No batch input data for screen SAPMV45A 4001"

Were you able to solve your problem , its a little while ago, if you remember it will help me

Thanks

Hari

Read only

0 Likes
1,349

Not sure, i think input data for the BDC should not be uploaded from the presentation server, bankground jobs wont work for the files present in presentation server.

Rajesh.

Read only

0 Likes
1,349

hi

the sales order create works in the R4.6 , we did an upgrade to 4.7 and it stopped working when executed in back ground in we19 , IDoc_input_orders. checked the OSS notes but thats also didnt help

I think that it might be an upgrade issue , but am ot aware of the solution

Thanks

Hari