Application Development 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: 

Bdc data upload

vidyasagarc
Explorer
0 Kudos
221

I am trying to do bdc for ac02, using session method, data is updating in bdcdata table,

its not getting into the database,

PERFORM :

fill_bdc_data USING 'SAPLBAS0' '0300' 'X' ' ' ' ',

fill_bdc_data USING '' '' '' 'BDC_OKCODE' '=NEW',

fill_bdc_data USING '' '' '' 'ASMDT-ASKTX' fs_field-ASKTX, "SERVICE TEXT.

fill_bdc_data USING '' '' '' 'BDC_OKCODE' '/00', " Enter.

*ERROR

  • fill_bdc_data using '' '' '' '0300', "'SAPLBAS0' '0300',

  • fill_bdc_data using '' '' '' 'BDC_CURSOR', "'ASMD-ASNUM', "fs_field-asnum,

  • fill_bdc_data using '' '' '' 'BDC_OKCODE' '=NEW' ,

ERROR

fill_bdc_data USING 'SAPLBAS0' '0300' 'X' ' ' ' ',

fill_bdc_data USING '' '' '' 'ASMD-ASTYP(01)' fs_field-ASTYP, " SERVICE CATERGORY.

fill_bdc_data USING '' '' '' 'BDC_OKCODE' '/00', " Enter.

fill_bdc_data USING '' '' '' 'ASMD-MEINS(01)' fs_field-MEINS, " BASE UNIT.

fill_bdc_data USING '' '' '' 'BDC_OKCODE' '/00', " Enter.

fill_bdc_data USING '' '' '' 'ASMD-MATKL(01)' fs_field-MATKL, " SERVICE GROUP.

fill_bdc_data USING '' '' '' 'BDC_OKCODE' '/00', " Enter.

fill_bdc_data USING '' '' '' 'ASMD-SPART(01)' fs_field-SPART, " DIVISION.

fill_bdc_data USING '' '' '' 'BDC_OKCODE' '/00', " Enter.

fill_bdc_data USING 'SAPLBAS0' '0300' 'X' '' '' ,

fill_bdc_data USING '' '' '' 'BDC_OKCODE' ' /12'. " Save.

ENDFORM. " POPULATE_BDCDATA

10 REPLIES 10

Former Member
0 Kudos
151

Hi,

Check whether the record you have created for recording is updated in the database or not.

Regards,

Vamshi.

0 Kudos
151

in recording it is updating,

here it is not getting updated,

Former Member
0 Kudos
151

try a commit statement after the BDC call

0 Kudos
151

hi mishra,

doing that bdc in session method not call transaction method.

Former Member
0 Kudos
151

Hey Sagar,

What do you mean by database is not getting updated??

Do you mean that whether session is not getting created? OR

After processing of the session in SM35 tables involved in AC02 are not getting updated?

Please be more specific so that it's easy for us to help you out.

Cheers

VJ

0 Kudos
151

Hi vishal,

after the process,

data in ac02 is not getting updated,

0 Kudos
151

hi ,

fill_bdc_data USING '' '' '' 'BDC_OKCODE' ' /12'. " Save.

it should be

fill_bdc_data USING '' '' '' 'BDC_OKCODE' ' /11'. " Save.

regards

Deepak.

0 Kudos
151

i have changed to 11, even though it was updated,

0 Kudos
151

hi,

if still not getting saved then debug for saving Using BDC . what you are getting when pressing SAVE or POST .

regards

Deepak.

Former Member
0 Kudos
151

Hi,

Check whether you are doing recording properly or not. And try to do recording for more tha one record using t-code SHDB.

still if you have same problem, check in all screen mode ( Mode = 'A' ), definitely u will get some clue.

Ram.