cancel
Showing results for 
Search instead for 
Did you mean: 

Generate user-defined settlement rule - IWO10027 EhP 7

mornee_parsons
Explorer
0 Kudos

Hi,

In order to redefine settlement rules in IW31, I implemented user exit IWO10027, activated it.

The issue is, when creating the order and hitting the settlement rule builder, the user is not triggered.

i.e. SAP is not calling the exit.

Is there anything that must be done in order to get this working?

Accepted Solutions (1)

Accepted Solutions (1)

mornee_parsons
Explorer
0 Kudos

And also, we are on Enhancement Pack 7 using the settlement rules per operation, not on header.

I think the user exit does not cater for this.

rakesh_mane
Active Contributor
0 Kudos

hello

yes correct.

Br

Rakesh

peter_atkin
Active Contributor
0 Kudos

Is a settlement profile assigned to the order type?

Also check out this OSS Note which lists the conditions required to trigger the user-exit.

PeteA

mornee_parsons
Explorer
0 Kudos

How do you suggest we do this per operation?  OSS?

Answers (5)

Answers (5)

sulthan_irfan
Explorer
0 Kudos

Creating a Customer Project in CMOD --> Add the Enhancement --> Activate.

This resolves the problem.

Even though its a old post, I hope it helps someone. 🙂

mornee_parsons
Explorer
0 Kudos

I will log an OSS as user exit does not support operations.

Thanks all.

mornee_parsons
Explorer
0 Kudos

So I did manage to find a place with debugger where the user exit will trigger:

Program SAPLCOI1

Include LCOI1U03

Function CO_I1_ABRV_ARCH_FREI

ENHANCEMENT-SECTION     SAPLCOI1_OLC_003 SPOTS ES_SAPLCOI1.

* check switch for OLC...

     IF cl_erp_co_olc_tools=>is_olc_relevant( caufvd_imp-netzkont )

       = abap_false.


The above check fails which skips the user exit


       PERFORM abrv_arch_frei  USING caufvd_imp

                                     trtyp_imp

                               CHANGING  continue.

     ENDIF.

END-ENHANCEMENT-SECTION.

.

rakesh_mane
Active Contributor
0 Kudos

Hello

Please check in below configuration path

Plant Maintenance--> Maintenance and Service Processing-->Maintenance and Service Orders--> Functions and Settings for Order Types--> Define Settlement Rule, Time and Distribution Rule.

As per STD SAP Settlement rule is created When the order is released Or Only when the order is completed.

So Check what is the setting in Plant Maintenance--> Maintenance and Service Processing-->Maintenance and Service Orders--> Functions and Settings for Order Types--> Define Settlement Rule, Time and Distribution Rule.

Br

Rakesh

mornee_parsons
Explorer
0 Kudos

Check my previous post

jogeswararao_kavala
Active Contributor
0 Kudos

See this link whether it has got any clue for you.

rakesh_mane
Active Contributor
0 Kudos

Hello

Might below thread will give some clue

http://scn.sap.com/thread/108485

Br

Rakesh

peter_atkin
Active Contributor
0 Kudos

Mornee Parsons,

Some things to try:

  • Releasing your order
  • Check your IMG settings for element: Settlement Rule: Define Time and Creation of Distribution Rule
  • Make sure the user-exit is active in CMOD
  • Make sure your code is activated
  • Put a break-point in function module EXIT_SAPLCOI1_027

PeteA

mornee_parsons
Explorer
0 Kudos
  • Releasing your order
    • Does not trigger EXIT_SAPLCOI1_027.
  • Check your IMG settings for element: Settlement Rule: Define Time and Creation of Distribution Rule
  • Make sure the user-exit is active in CMOD
  • Make sure your code is activated
    • Code is active
  • Put a break-point in function module EXIT_SAPLCOI1_027
    • Breakpoint is in.