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:
REFERENCE(CAUFVD_IMP) LIKE CAUFVD STRUCTURE CAUFVD
PMDFU_TAB STRUCTURE PMDFU OPTIONAL
RIWOL_TAB STRUCTURE RIWOL OPTIONAL
COMP_TAB STRUCTURE RESBDGET OPTIONAL
OPR_TAB STRUCTURE AFVGDGET OPTIONAL
REFERENCE(APROF) LIKE TKB1A-APROF OPTIONAL
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?