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

Problem in User-Exit

Former Member
0 Likes
961

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
833

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

5 REPLIES 5
Read only

Former Member
0 Likes
834

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

Read only

0 Likes
833

Please suggest user exit for the same

Kaustubh

Read only

0 Likes
833

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

Read only

RaymondGiuseppi
Active Contributor
0 Likes
833

How did you write in the exit, did you use a CALL FONCTION IN UPDATE/BACKGROUND TASK or A PERFORM AT COMMIT, or ?

Regards,

Raymond

Read only

Former Member
0 Likes
833

Hi,

Try to use workflow with triggering event as CHANGED for business object BUS0012. This event is being triggered after DB updation.

Regards,

Raju.