‎2009 Dec 16 4:13 AM
Hi Experts,
Need help.
I am adding sizes to production order using bdc recording for transaction CO02. bdc is getting failed in the background processing. When I run it in the forground it's working fine. I checked the return message table. It returns an information message and one success message. Just wanted to check with you If BDC returns any information in the back ground processing whether it will get failed.
Thanks for ur help in adavance.
Regards
Saroj
‎2009 Dec 16 4:20 AM
Hi Saroj,
BDC will not fail for Message I/w... Unless the message treated like error in code
ex: Message e .. display like I
or a flag set to exit the transaction after the I/w message
Try adding OKCODE '/00' in the code and check.
Nag
‎2009 Dec 16 4:37 AM
hi
Normaly you cant do the background using GUI_UPLOAD funtion , if ur gng to background process you have to use the open data set
Eg:
parameters: d1 type localfile default '/usr/sap/TST/SYS/Data1.csv'.
data: begin of itab occurs 0,
fld1(20) type c,
fld2(20) type c,
fld3(20) type c,
end of itab.
data: wa(2000) type c.
start-of-selection.
open dataset d1 for input in text mode.
if sy-subrc = 0.
do.
read dataset d1 into wa.
if sy-subrc <> 0.
exit.
endif.
split wa at ',' into itab-fld1 itab-fld2 itab-fld3.
append itab.
enddo.
endif.
close dataset d1.
regard
nawa