Skip to Content
0
Former Member
May 17, 2012 at 05:35 AM

Not able to upload the vendor classification data using bapi

594 Views

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