User exit IWO10027 - additional info
Can I get some additional info about IWO10027:
- is it possible to provide Source assignemet with this user exit COBRB-URZUO).
-under what conditions this UserExit works.
Thanks for any idea.
Cheers, Ivan
iBLA,
Read the user-exit documentation:
This customer exit can be used to generate settlement rules.
You can use it, if an object list with different account assignment objects is assigned to the order, and you want to distribute the settlement of costs proportionally to the account assignment objects.
The function module has the following parameters:
1. Import parameter:
CAUFVD_IMP: Order header data
2. Tables:
PMDFU_TAB: Settlement rule(s) to be generated
RIWOL_TAB: Object list for order (if available)
Prerequisites
To form the settlement rules, enter the required data in the following fields of the internal table PMDFU_TAB:
PMDFU_TAB-KONTY: Account assignment receiver category
The following account assignment receiver categories are supported:
Cost center
Order
WBS element
Profitability segment
Fixed asset
G/L account
Sales and distribution document PMDFU_TAB-FDIND: Receiver
PMDFU_TAB-FDIND2:
For those cases where there are two key fields (for example, fixed asset, and sales and distribution document), enter the second key here.
PMDFU_TAB-PERBZ: Period description
PMDFU_TAB-PROZS: Percentage
PMDFU_TAB-AQZIF: Equivalence number
SAP is continuing to enhance the structure PMDFU.
Exceptions
DO_NOT_BUILD_SETTLEMENTRULE: The setting of this exception prevents the system from generating a settlement rule with a default for the distribution rule. This can be necessary, for example, if very complex settlement rules are involved.
Example
The following ABAP coding example should show how 50% rules can be generated for the cost centers A100 and K011:
First entry in table PMDFU_TAB:
PMDFU_TAB-KONTY = 'KS'.
PMDFU_TAB-FDIND = 'A100 '.
PMDFU_TAB-PERBZ = 'GES'.
PMDFU_TAB-PROZS = '50'.
append pmdfu_tab.
Second entry in table PMDFU_TAB:
PMDFU_TAB-KONTY = 'KS'.
PMDFU_TAB-FDIND = 'K011 '.
PMDFU_TAB-PERBZ = 'GES'.
PMDFU_TAB-PROZS = '50'.
append pmdfu_tab.
Hi PeteA,
thanks for input.
I already read this info but based on it I didn't succeed to create a working user exit. Do you have any practise with it?
Cheers, Ivan
hello,
I activated this customer exit some years ago in a 46b environment without any problem. Precondition is that you have the automatic settlement rule mechanism activated in customising. The customer exit runs after automatic rule mechanism.
At that moment, however, it was not possible to fill the source structures.
Regards. Didier
Didier,
Just tested it in 47 and its still the same.
You need to have a default cost object in the Settlement Profile, and you need to select the "With Defualt" pop-up option when selecting the Settlement button in the order.
OK, now I also succeeded (a bit tricky coding - if you make mistake just doesn't work).
What about Source Assignement? We would like to settle primary cost to Fixed Assets and secondary costs to CO-PA. Did anyone succeed to handle this with user exit?
Cheers, Ivan
iBLA,
Talk to your FI/CO team, they should be able to help you.
After all, settlement is a financial function!!
I asked my FI-CO expert (this is me by-the-way) and he doesn't know the answer.
Cheers, Ivan
Ivan,
Have a look at Allocation Structures which assigned to your Settlement Profile:
SAP Definition:
The allocation structure is entered in the settlement profile. You use the allocation structure to settle the costs that arise for one sender to different receivers, according to the cost element/cost element group.
Dear PeteA,
It is very kind of you to help but pls also read my question carefully:
My issue is how to create settlement rule with allocation structure (COBRB-URZUO) automatically - with user exit.
Cheers, Ivan
Sorry Ivan, this is out of my PM/CS sphere.
Try posting this issue under the Financial Forum