‎2008 May 24 8:00 AM
HI folks,
My requirement is to update classification view fields in cl24n transaction code using customer no ,using bapi function module ,hey can any body help me which bapi FM helps me so that i can update the classification view fields so hwo to proceed ?what needs to be done , iam trying with bapi's like bapi_class_* now iam getting bapi's which has fields like class, class type ,but iam not able to find which bapi has customer no in structure plz help me out ,POINTS will be awarded for all answers .
‎2008 May 25 12:49 PM
Hi,
U can do this using bapi_objcl_create_key. This bapi creates classification assingment for object.
Please remeber that this step must be done only after u have created characteristics (with possible values, if u wish) and then classes with their characteristics. The last step is to assign class to object, as usual (this should be done anyways, whether in cl24n or via bapi).
If u use this bapi, u have to pass clobjectkey_new which is object number generated from your customer no (to learn how to convert it read the bapi documentation in se37) and classnum_new which is the class no (u created before) u wish to assign to your object (in your case - customer). U might need to pass status and std class and in some objects u will need keydate and change umber (i don't think u need them in customer). The last u have to pass to the bapi is the value of the characteristics: u pass the values to allocvaluesXXX (replace XXX with val/char/curr according to the characteristic). Now run it and u r good to go...
Hope this helps, pls award points if so.
Good luck
Igal