‎2007 Oct 30 1:00 AM
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
‎2007 Oct 30 1:03 AM
Hi Basha,
Where are you getting the data from while running the program in background?
regards,
Atish
Message was edited by:
Atish Sarda
‎2007 Oct 30 1:10 AM
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
‎2007 Oct 30 1:19 AM
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
‎2007 Oct 30 1:30 AM
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
‎2007 Oct 30 1:30 AM
‎2007 Oct 30 1:39 AM
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
‎2007 Oct 30 1:51 AM
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
‎2007 Oct 30 2:19 AM
‎2007 Oct 30 2:52 AM
Have you tried running it in the foreground with mode 'E'?
Rob
‎2007 Oct 30 7:33 PM
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.
‎2007 Oct 31 1:03 AM
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
‎2008 Jan 09 9:20 AM
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
‎2008 Jan 09 11:31 AM
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.
‎2008 Jan 10 6:38 AM
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