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 background processing

Former Member
0 Likes
377

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

2 REPLIES 2
Read only

Former Member
0 Likes
350

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

Read only

Nawanandana
Active Contributor
0 Likes
350

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