cancel
Showing results for 
Search instead for 
Did you mean: 

Settlement at operation level User exit

ali_dai
Contributor
0 Kudos

Hi experts,

we have activated LOG_EAM_OLC functionality in order to be possible to gather costs at operation level of a PM order.

I am looking for a user exit to handle the settlement rule at operation level. I know about IWO10027 that can be used for header settlement rule, but when i am at operation level, the exit is not called.

Do you have any ideas about this?

BR

Accepted Solutions (0)

Answers (6)

Answers (6)

0 Kudos

Hi Ali Dai,

In your shared document you dnt done time confirmation for the operations.

Yes in OLC for every operation individual settlement rule will generated the main purpose OLC is to generated individual settlement rule only.

After time confirmation of operation the cost will be actual cost.

Then you will settle the cost by KO88 or KO8G it will flow through individual cost centers maintained in the settlement rule.

dimasluis_defaria
Active Participant
0 Kudos

Hi Ali,

After all configuration

Example attach

Dimas Faria

ali_dai
Contributor
0 Kudos

Hi Dimas,

Thank you very much for your support. I have managed with the help of my Abaper to create the settlement rule, however i am facing an issue.

The settlement rule is created during release (for my doc. type i have set it as mandatory for release).

The criteria to define the settlement rule is the equipment or the functional location in the order and the work center per operation.

However, If i change the equipment or the Function location of the order the badi is not called again.

Is there a way to call it or find an alternative in order to avoid this issue?

BR

dimasluis_defaria
Active Participant
0 Kudos

Hi,

When it saves the order, call BADI again (fif the order is already released, and somebody to try to save the order)

You need  Badi (exit) for Order change too

Dimas Faria

ali_dai
Contributor
0 Kudos

Hi,

How to call the Badi during change if it is released? As far as i understand, the badi is called if no rule exits. As long a rule exists, how can i call it again?

BR

dimasluis_defaria
Active Participant
0 Kudos

Hi,

Two options:

1) easier - change the rule of the creation of settlement rule for the moment of the complete of the order (status: TECO)

OR

2) ABAP

a) See the code ABAP used in BAdI (BADI_OLC_SETTL_RULE_DET_OPR)

b) Use  other BadI (order change), put a verification if order already liberated, to check the settlement rule is right for operation (to check the equipment / cost center it changed).  use the code based on previous BAdI

Dimas Faria

ali_dai
Contributor
0 Kudos

Hi Dimas,

Thank you again very much for your help. Can you please indicate which Badi or exit i can use for Order change. Cause i see exits for order release or on save, but not for change.

Best Regards

Former Member
0 Kudos

Hi ,

Did you tried user exit IWO10027?

Thanks

Yogesh

ali_dai
Contributor
0 Kudos

Hi,

This user exit is for header settlement rule.

BR

Former Member
0 Kudos

Then I guess you might want to check BAPI BAPI_ALM_ORDER_MAINTAIN. This might help.

Thanks

Yogesh

ali_dai
Contributor
0 Kudos

I am trying with this one as well, but my issue is that as long as the Work order is released (and thus a settlement rule has been created) i have not find a way if the equipment is changed to go through BADI_OLC_SETTL_RULE_DET_OPR again, in order to redefine the settlement rule.

As far as i understand, as long as a settlement rule exists, this BADI_OLC_SETTL_RULE_DET_OPR is not called again.

BR

Former Member
0 Kudos

So if I understood correctly, if after order is released and settlement rule is created and some one change equipment in order you want to change settlement rule. Now can you tell me why would you allow to change equipment if order is released. Let's say some one post cost for operation 0010 for equipment X and now some one change it to equipment Y where will be total cost settled?

Thanks

Yogesh

ali_dai
Contributor
0 Kudos

Hi Yogesh,

You have understood correctly and i totally agree with your way of thinking. However, as standard SAP allows the equipment change, i would like to be sure about the settlement rule.

Cause for example, maybe during order release the user realizes he selected wrong equipment and want to change it. Then it would be difficult if i restrict it with a Badi or exit and not allow equipment change.

This is why i would like the settlement rule to be generated again.

BR

MTerence
Active Contributor
0 Kudos

Hi Ali,

Check whether this link is useful for you

The SAP Fan Club Forums • View topic - PM Order - Settlement Receivers

Regards

Terence

ali_dai
Contributor
0 Kudos

Hi Maria,

I do not want to check the settlement rule, i want to re-determine it if equipment is changed. The issue here is how i can call badi BADI_OLC_SETTL_RULE_DET_OPR that work perfectly when the equipment is changed.

BR

MTerence
Active Contributor
0 Kudos

Hi Ali,

I am not technically sound, its good, if you have posted this kind of questions in ABAP forum , you could get more clear picture of your request.

Regards

Terence

0 Kudos

Hi Ali,

I have some basic data on Operation levelling planning.

After activating the Business Function, we need to assign the OLC to the required order types in SPRO then we can see the settlement rule option for every individual operation.

dimasluis_defaria
Active Participant
0 Kudos

Hi Ali,

Did you made the configurations ?

- Define costing settings

- Regeneration of order costs: Tables PMCO and PMCO_OP

Regards

Dimas Faria

ali_dai
Contributor
0 Kudos

HI Dimas,

This is the configuration for activating settlement at operation level. I am looking for an exit in order to create the settlement rule per operation.

BR

dimasluis_defaria
Active Participant
0 Kudos

Hi]

Check

Settlement rule for operation: BADI_OLC_SETTL_RULE_DET_OPR

BAdI: Define Default Values for Operation Account Assignment - The BAdI uses the interface IF_EX_EAM_OAA_DEFAULT

Regards

Dimas Faria

ali_dai
Contributor
0 Kudos

HI Dimas,

Thanx for the Badi but i see that is called only if i go to operation account assignment and press the settlement button. I want during Order save the settlement to be determined automatically based on specific customer rule.

BR

jogeswararao_kavala
Active Contributor
0 Kudos

Hello Ali,

There seems no such enhancement facility except for exploring the program SAPLCOIH to find an Implicit Enhancement Point in a suitable include/Form. May also contact SAP through OSS.

Regards

KJogeswaraRao

dimasluis_defaria
Active Participant
0 Kudos

Hi,

This exit works the way you're talking about. It uses the settlement of creating rules as defined in the IMG. Try a test. It is an SAP recommendation

Dimas Faria

ali_dai
Contributor
0 Kudos

Hi Dimas,

\

Can you please give me more details?

We have activated operation account assignment and in spro for our document type it is active. We have activated the Badi, but when we create a PM order during save the badi is not called. it is only called if you enter the settlement (go to operation's settlement rule).

However, i want no interaction of this with the user.

BR

MTerence
Active Contributor
0 Kudos

Hi,

Have a look at this note

195607 - FAQ: Default settlement rule for PM/CS order


This is not related to User Exit, you can check whether all the settings are made.


Regards

Terence

Former Member
0 Kudos

Hi Ali Dai,

I am not sure but can you please try with COOM0003.

Regards,

Amol

ali_dai
Contributor
0 Kudos

Hi Amol,

I activated and entered a break point but during PM order creation the exit is not called.

Any ideas?

BR

Former Member
0 Kudos

Hi Ali,

I am not sure but have you created all the basic elements required for this exit?

Please consult you FICO team member to get more assistance on this.

Regards,

Amol.

ali_dai
Contributor
0 Kudos

Hi Amol,

After checking the exit cannot be used for PM. It requires customizing that can be done only for Intenral Orders.

Any other ideas please? It is very crucial!

thanx

Former Member
0 Kudos

Hi Ali,

This seems to be a good knowledge thread. Lets wait for others comments

Meanwhile request you to check through

Working with Order Operations as Account Assignments - Orders (CS-SE/PM-WOC-MO) - SAP Library

PM Order costs at operation level not displayed. | SCN

Regards,

Amol

ali_dai
Contributor
0 Kudos

It is indeed a good issue, but i do not see postings and i am not very confident!

Lets wait and see.

BR