Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Settlement rule

Former Member
0 Likes
1,826

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

4 REPLIES 4
Read only

Former Member
0 Likes
1,183

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á

Read only

Former Member
0 Likes
1,183

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

Read only

Former Member
0 Likes
1,183

Posting to NWA is not foreseen by SAP in this exit

Read only

martin_jonsson
Participant
0 Likes
1,183

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