‎2007 Mar 12 8:56 AM
Hi Experts,
I am trying to use the above FM CACL_OBJECT_VALIDATION_MAINT to update classification values for Service Master.
Meaning in my program, it shows a classification value as XXX and user changes it to YYY. I want to use this FM to update the value from XXX to YYY.
However, I realized that this FM is not used to update, instead just to create. As such, in my database table, I have the existing XXX as well as the new one YYY.
Could it be that I have left out some parameters when using this FM? Or is there another FM that allows update/deletion, etc?
Thanks
‎2007 Mar 12 9:29 AM
This can be used for updation also.
CLAP_DDB_UPDATE_CLASSIFICATION try this also.
‎2007 Mar 12 9:29 AM
This can be used for updation also.
CLAP_DDB_UPDATE_CLASSIFICATION try this also.
‎2007 Mar 12 9:31 AM
But am I wrong when I say that the FM CACL_OBJECT_VALIDATION_MAINT is used for creation and not update?
Thanks Rama
‎2007 Mar 12 9:35 AM
Characteristics are part of Classification system, so you would not find a specific BAPI for services or material characteristic maintenance. Use the below function to update characteristics of any classification relevant object including services, materials.
For example in the context of a material CLOBJECTKEY is Class type value that you see when you select Classification view in Materiam master MM03. Play around with it comparing its interface with MM03 classification. For services also you must be knowing these variables as you played with the other function.
Also classification can be accessed Sap Menu -> Cross application components -> Classification system
CALL FUNCTION 'BAPI_OBJCL_CHANGE_KEY'
EXPORTING
CLOBJECTKEY =
CLASSNUM =
* STATUS_NEW = '1'
* STANDARDCLASS_NEW =
* CHANGENUMBER =
* KEYDATE = SY-DATUM
* NO_DEFAULT_VALUES =
* IMPORTING
* CLASSIF_STATUS =
TABLES
ALLOCVALUESNUM_NEW =
ALLOCVALUESCHAR_NEW =
ALLOCVALUESCURR_NEW =
RETURN =
I have used it several times in my tech specs and my developers enjoyed using it, it should work for you too!
‎2007 Mar 12 9:39 AM
CHeck the BAPI line no - 315. there it is used to CHnage the classification.
Also chk where-used list on the FM u hav given.. it can be used for craete as well as change.
Also after calling the FM call this FM "CACL_CLASSIFICATION_SAVE" to get the commit-work done. Check this. Hope it will solve ur porblem.
‎2007 Mar 12 9:40 AM