Skip to Content
0
Former Member
Jul 20, 2009 at 10:21 AM

Setting automatically the settlement rule on IW31

228 Views

Hi all,

i have problems on setting automatically the settlement rule by the transaction IW31.

In particular i have tried doing it by using the enhancement IWO10027 that as a function module for creating the settlment rule.

Its interface is defined as:

IMPORTING

REFERENCE(CAUFVD_IMP) LIKE CAUFVD STRUCTURE CAUFVD

TABLES

PMDFU_TAB STRUCTURE PMDFU OPTIONAL

RIWOL_TAB STRUCTURE RIWOL OPTIONAL

COMP_TAB STRUCTURE RESBDGET OPTIONAL

OPR_TAB STRUCTURE AFVGDGET OPTIONAL

CHANGING

REFERENCE(APROF) LIKE TKB1A-APROF OPTIONAL

EXCEPTIONS

DO_NOT_BUILD_SETTLEMENTRULE

To create the settlment rule, i assign a specified value to the exporting parameter APROF, but when i test if the changing are made, the next message appears:

"No default could be formed for the distribution rule".

If i save the order, the value assigned for the settlement rule is different by the one that i specified on the code written into the FM.

What i have to do?

Thanks

Lello