‎2010 Oct 15 12:55 PM
Hi,
If networkplan and activity are filled in a service order, I need to create settlement rules through exit EXIT_SAPLCOI1_027.
pmdfu_tab-konty = 'NWA'.
pmdfu_tab-fdind = caufvd_imp-aufnt.
pmdfu_tab-fdind2 = caufvd_imp-aplzt.
pmdfu_tab-perbz = 'PER'.
pmdfu_tab-prozs = '100'.
append pmdfu_tab
My receiver should contain caufvd_imp-aufnt ' ' caufvd_imp-aplzt
After te exit the fields from table pmdfu_tab are mapped to cobrb through table tkb2c
Defult rule Obj. Type Category Sequence Receiver field Default field
PMU OR NV 1 COBRB-NPLNR PMDFU-FDIND
PMU OR NV 2 COBRB-APLZL PMDFU-FDIND2
PMU OR NV 3 COBRB-AUFPL LV_AUFPL
PMU OR NV 4 COBRB-AQZIF PMDFU-AQZIF
PMU OR NV 5 COBRB-PROZS PMDFU-PROZS
PMU OR NV 6 COBRB-URZUO L_URZUO
PMU OR NV 7 COBRB-BETRR L_BETRR
In order to create the settlement rule I assume I should pass caufvd_imp-aufnt which is COBRB-AUFPL.
Reading the table, I should fill LV_AUFPL in my exit. But it does not exist in the exit and neither does it on the place of the mapping.
Does someone know if the entries in the table are correct?
If they are correct, what is wrong in my code here above?
Thanks
‎2010 Oct 15 2:11 PM
Hi!
We are using only WBS elements and costcenters in this user exit, maybe posting to NWA is not allowed (I don't know exactly).
pmdfu_tab-konty = 'PR'. "WBS element
pmdfu_tab-fdind = caufvd_imp-pspel.
...
pmdfu_tab-konty = 'KS'. " Costcenter
pmdfu_tab-fdind = '654100'.Regards
Tamá
‎2010 Nov 03 4:16 PM
Tamás
Indeed it isn't possible to post to networkactivity from this exit.
Now I should create a line with Settlement type 'PER' and one with Settlement type 'TOT' and post it to WBS element.
But I'm having an error when posting the TOT line.
Did you have similar problem?
Kr
‎2010 Dec 06 9:22 PM
‎2011 Jul 13 5:18 PM
This can simply be solved by creating an append structure to PMDFU with field AUFNT and then map this new field in table TKB2C by changing the relevant two entries.
PMDFU:
.APPEND Z_SETT_RULE 0 0 Append Structure for Settlement Rule
AUFNT CO_TEILNET CHAR 12 0 Number of superior network
TKB2C:
COBRB-NPLNR PMDFU-AUFNT
COBRB-APLZL PMDFU-FDIND2
COBRB-AUFPL PMDFU-FDIND
Cheers
Martin