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: 

Not able to upload the vendor classification data using bapi

Former Member
0 Kudos

Hi all,

I have designed the custom screen for the vendor classification in the module pool and i am trying to save the vendor classification data using the fm bapi_objcl_change,

CALL FUNCTION 'BAPI_OBJCL_CHANGE'

        EXPORTING

          OBJECTKEY                = OBJECTNAME

          OBJECTTABLE              = 'LFA1'

          CLASSNUM                 = VENDOR

          CLASSTYPE                = '010'

          STATUS                       = '1'

          STANDARDCLASS       = 'X'

        TABLES

          ALLOCVALUESNUMNEW        = ALLOCVALUESNUM

          ALLOCVALUESCHARNEW       = ALLOCVALUESCHAR

          ALLOCVALUESCURRNEW       = ALLOCVALUESCURR

          RETURN                   = RETURN.

the data which is available in the table those are getting updated but when i am trying to save the value which is in the standard class either 'X' or '  ', it is not uploading with the same FM.

but when i am trying to display the data of the vendor classification using the FM BAPI_OBJCL_GETDETAILS, i am able to get the standardclass and its displaying what ever the values is there, but if i change the value of the standard class and saving it is not updating.

Can any  one help me out in this how to save the standardclass data.

Thanks in advance......

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Are you having Vendor no in Objectname?

If not, use the Vendor no there and try?

6 REPLIES 6

kesavadas_thekkillath
Active Contributor
0 Kudos

Missing a BAPI Commit ?

0 Kudos

Hi Kesavdas,

BAPI commit i am already using it..... only standard class value is not getting updated but the rest values are getting updated whatever are available in the tables.

Thanks in advance.

Former Member
0 Kudos

Are you having Vendor no in Objectname?

If not, use the Vendor no there and try?

0 Kudos

i am passing the correct data to all the fields..... i am passing vendor no in the objectkey, table name in the object table, VENDOR in the classnum, 010 in the classtype...

Former Member
0 Kudos

Hi Ali,

1st you can take the save button in screen, after that you can write the logic (Bapi commit) for save button.

Former Member
0 Kudos

Please check the character names you are passing in table ALLOCVALUESCHARNEW, its working fine. Dont forget to use commitwork after the Bapi.