‎2009 Aug 14 7:14 AM
Hi Experts,
User Requirement:
When user blocks particular cost center (through KS02 or KS01),details of that cost center should be mailed (Through SAP R3) to concerned person.
I have used following user-exit COOMKS02 Cost Center: Checks When Saving
But when i am blocking any cost center through KS02 i am receiving mail as required but lock indicator tick is not getting reflected in table CSKS and not even in KS02 for that particular cost center.
Please suggest.
Regards,
Kaustubh Kabre.
‎2009 Aug 14 7:22 AM
Hi,
This exit is only for checks while saving here you cannot changing any variable as you can see the FM EXIT_SAPLKMA1_003 only has a import parameter so change is not possible.
I think it is not possible using a EXIT try using a enhancement spot if you are in ECC 6.
Regards,
Himanshu
‎2009 Aug 14 7:22 AM
Hi,
This exit is only for checks while saving here you cannot changing any variable as you can see the FM EXIT_SAPLKMA1_003 only has a import parameter so change is not possible.
I think it is not possible using a EXIT try using a enhancement spot if you are in ECC 6.
Regards,
Himanshu
‎2009 Aug 14 7:40 AM
‎2009 Aug 14 8:06 AM
Hi,
I am not sure if it can be done directly using an enhancement but in your exit after you send the mail you can call a BAPI FM on commit to update the cost centre like : BAPI_COSTCENTER_CHANGEMULTIPLE ro you can write a small program using this BAPI and update the indicator.
Regards,
Himanshu
‎2009 Aug 14 7:58 AM
‎2009 Aug 14 10:09 AM
Hi,
Try to use workflow with triggering event as CHANGED for business object BUS0012. This event is being triggered after DB updation.
Regards,
Raju.