on 08-28-2015 9:04 AM
Hi SAP people..
I've implemented user exit IWO10027, in order to determine automaticaly settelement rule at PM Order.
When the user release order, the user exit determine the settlement receiver from a z-table and create settlement rule automaticaly.
In case of cost center or internal order as a receiver, the user exit acts correctly.But when the cost receiver is network with activity the user exit can not determine the exactly settlement rule.
can you help me?
GEORGIOS MICHALOS,
Why can't your code determine the network activity?
Is there an error message?
PeteA
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pete and thank you for your immediate answer.
At the end of the process the system error is:
System error: network activity with invalid internal number.
the code to determine the network receiver is:
CALL FUNCTION 'CONVERSION_EXIT_OBART_INPUT'
EXPORTING
input = 'NWA'
IMPORTING
output = pmdfu_tab-konty
EXCEPTIONS
not_found = 1
OTHERS = 2.
pmdfu_tab-fdind = wa_zded_pm_equichck-network."zded_pm_equichck:z-table with receivers"
pmdfu_tab-fdind2 = wa_zded_pm_equichck-vornr.
pmdfu_tab-perbz = 'PER'.
pmdfu_tab-prozs = 100
I think it may work as follows - I certainly got it to work via debug+replace...
PMDFU_TAB-KONTY = 'NV'.
PMDFU_TAB-FDIND = AUFK-AUFNR.
PMDFU_TAB-FDIND2 = AFVC-APLZL.
PMDFU_TAB-LV_AUFPL = AFVC-AUFPL. (you will need to append this field to PMDFU_TAB)
PMDFU_TAB-PERBZ = 'PER'.
PMDFU_TAB-PROZS = 100.
APPEND PMDFU_TAB.
Please let us know if you manage to get it working.
PeteA
Hi PeteA,
Finaly it works fine.We first added at SAP table V_TKB2_2 for Type:ORD,Cat:NWA,Receiver Field:COBRB-AUFPL,Default Field:PMDFU-LV_AUFPL
and after that we added the code just as you said:
select single afvc~aufpl afvc~aplzl
from caufv inner join afvc on afvc~aufpl = caufv~aufpl
and afvc~bedid = caufv~bedid
into (pmdfu_tab-lv_aufpl , pmdfu_tab-fdind2).
so the exit finds AUFPL and adds it at the structure pmdfu_tab and the exit returns correctly the network with the activity
User | Count |
---|---|
92 | |
11 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.