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

Not able to upload the vendor classification data using bapi

Former Member
0 Likes
1,663

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
Read only

Former Member
0 Likes
1,007

Are you having Vendor no in Objectname?

If not, use the Vendor no there and try?

6 REPLIES 6
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,007

Missing a BAPI Commit ?

Read only

0 Likes
1,007

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.

Read only

Former Member
0 Likes
1,008

Are you having Vendor no in Objectname?

If not, use the Vendor no there and try?

Read only

0 Likes
1,007

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...

Read only

Former Member
0 Likes
1,007

Hi Ali,

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

Read only

Former Member
0 Likes
1,007

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