Application Development 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: 

WBS settlement Rule in CJB1

Former Member
0 Kudos

Hello Experts,

I have a following requirement for a client.

1) They would like to customize the settlement rule generation by intergrating a custom table which reads project type and corresponding G/L account for the concerned WBS and would like to populate this G/L account value in settlement reciever field during creation of Settlement rule ( as in transaction CJ20N) via transaction code CJB1.

Analysis so far:

1)The BADI WBS_SETTLEMENT_RULE was not helpful as it returns only the Strategy( STRAT) and the code to be added will not satisfy the requirement.

2) I have tried finding a good Enhancement spot but not successful till date.

Is there a enhancement spot to add this extra code beore it creates a rule ,maybe , before FORM create_settlement_rule in include LKSRG02 of program SAPLKSRG (program behind transaction CJB1)

There are couple of spots I found before FORM but not very clear.

I would really appreciate if anyone could help me in this regard.

Thanks.

6 REPLIES 6

kanishakgupta1
Contributor
0 Kudos

HI,

You can use the Enhancement

EXIT_SAPLCOI1_027 IWO10027 User exit: Generate user-defined settlement rule but this only works if some configuration settings are done so that the settlement rule is not generated automatically......

So first make the changes in the configuration settings with the help of ur functional and then put the break point in this exit...

Secondly there is one SAP report also to generate the settlement rule automatically u can see that report also....

RKAZCJB1

Regards

kanishak

0 Kudos

Hi ,

Thanks for the reply and suggesions. I really appreciate it.

1) I have explored the exit you mentioned.

This does not solve the purpose as:

a) The automatic generation of settlement rule is set in customizing to run via CJB1.

b) This exit is used for order specifc and does not hit CJB1 .The requirement I have is Account Assignment Category( G/L- as settlement reciever)

2) The report RKAZCJB1 calls transaction CJB1 internally so it basically is the same thing.

I have tried the BADI- WBS_ELEMENT_RULE

I tried to use this and export a "new" strategy and the flag that the category was created by exit , but CJB1 gives an error as"Strategy not defined" as it checks against table TSR01 for this new Category.

Continuing my research on this.

Des anyone have any more suggesions on solution- whether it is possible to customize the creation of settlement rule while the setting is set for Automatic Generation ?

Former Member
0 Kudos

I have found the solution on my own. an implicit enhancement spot needs to be created.

0 Kudos

Hi,

My requirments are similar like yours. Can you denote place where you made changes?

Regards

Pawel

0 Kudos

Hello Neha, I ahve very similar requiremet as of you could you suggest me how can i proced in same case.

I have a following requirement for a client.

1) They would like to customize the settlement rule generation by intergrating a custom table which reads project type and corresponding G/L account for the concerned WBS and would like to populate this G/L account value in settlement reciever field during creation of Settlement rule ( as in transaction CJ20N) via transaction code CJB1.

Analysis so far:

1)The BADI WBS_SETTLEMENT_RULE was not helpful as it returns only the Strategy( STRAT) and the code to be added will not satisfy the requirement.

2) I have tried finding a good Enhancement spot but not successful till date.

Is there a enhancement spot to add this extra code beore it creates a rule ,maybe , before FORM create_settlement_rule in include LKSRG02 of program SAPLKSRG (program behind transaction CJB1)

There are couple of spots I found before FORM but not very clear.

I would really appreciate if anyone could help me in this regard.

Thanks.

wsantosws
Explorer
0 Kudos

Hi,

Pelase, Try using the BADI K_SETTLEMENT_3.

Regards.