cancel
Showing results for 
Search instead for 
Did you mean: 

User Exit IWO10027-Could not determine automatic settlement rule for NWA receiver

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

peter_atkin
Active Contributor
0 Kudos

GEORGIOS MICHALOS,

Why can't your code determine the network activity?

Is there an error message?

PeteA

Former Member
0 Kudos

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

peter_atkin
Active Contributor
0 Kudos

GEORGIOS MICHALOS,


Ensure you are including all the leading zeros in the network order number e.g. 000000001234567890

PeteA

Former Member
0 Kudos

Hi PeteA,

The network order number is without leading zeros in table aufk.

I tried with the leading zeros but nothing changed.

peter_atkin
Active Contributor
0 Kudos

Try entering: pmdfu_tab-konty = 'NWA'.


PeteA

Former Member
0 Kudos

Dear PetA,

The parameter PMDFU_TAB-KONTY, in the debug mode is getting 2 digits field and the system converts NWA in NV.

I am trying to examine the parameters AUFPL and APLZ.

Thank you for your consideration

peter_atkin
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Answers (0)