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

FM CACL_OBJECT_VALIDATION_MAINT

Former Member
0 Likes
1,611

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,208

This can be used for updation also.

CLAP_DDB_UPDATE_CLASSIFICATION try this also.

5 REPLIES 5
Read only

Former Member
0 Likes
1,209

This can be used for updation also.

CLAP_DDB_UPDATE_CLASSIFICATION try this also.

Read only

0 Likes
1,208

But am I wrong when I say that the FM CACL_OBJECT_VALIDATION_MAINT is used for creation and not update?

Thanks Rama

Read only

0 Likes
1,208

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!

Read only

0 Likes
1,208

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.

Read only

0 Likes
1,208

BAPI_OBJCL_CHANGE - forgot to give the BAPI name