cancel
Showing results for 
Search instead for 
Did you mean: 

User exit for profitability segment in service order settlement rule

Luiza_Ogihara
Participant
0 Kudos
1,765

Does anybody know if exit EXIT_SAPLKEAK_001 works for the profitability segment creation during the creation of a settlement rule of a service order?

The context is the following: the company uses service orders which are settled periodically (it receives revenue from sales order which is posted to the service orders at time of billing, and also costs at time of goods issue). The profitability segment in the settlement rule of the service order needs to be the same as the one from the billing document that posted to the order.

Can I use EXIT_SAPLKEAK_001 to find the characteristics from the billing document and populate it in the PSG of the settlement rule? If yes, could this be applied to only one specific service order type?

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

sanilbhandari
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi

If your settlement is triggered by a batch or is triggered by a workflow exit EXIT_SAPLKEAK_001 is not run. From release 5.00 on characteristic groups are indeed not considered any more during batch input processes because there were problems before with initial chars of a CO-PA line item resulting from a batch input process that actually shouldn't be initial.

Refer SAP Note 581739, which put an end to usage of char groups during batch input processes. Also refer SAP Note 142628.

Regards

Sanil Bhandari

Edited by: Sanil K Bhandari on Jun 23, 2011 10:12 AM

Answers (1)

Answers (1)

ajaycwa1981
Active Contributor
0 Kudos

Hi

Try exit MV45AFZZ or ZB and see if you can populate the settlement rule same as Sales Order

You can read the chars from the sales order settlement rule using FM RKE_GET_CHARS_FOR_PAOBJNR...

you can create a PSG using the chars read above from the FM COPA_PROFITABILITY_SEGMENT

br, Ajay M