‎2012 May 17 6:35 AM
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......
‎2012 May 17 1:27 PM
Are you having Vendor no in Objectname?
If not, use the Vendor no there and try?
‎2012 May 17 11:37 AM
‎2012 May 17 12:53 PM
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.
‎2012 May 17 1:27 PM
Are you having Vendor no in Objectname?
If not, use the Vendor no there and try?
‎2012 May 17 1:53 PM
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...
‎2012 May 21 8:01 AM
Hi Ali,
1st you can take the save button in screen, after that you can write the logic (Bapi commit) for save button.
‎2012 May 21 10:13 AM
Please check the character names you are passing in table ALLOCVALUESCHARNEW, its working fine. Dont forget to use commitwork after the Bapi.