cancel
Showing results for 
Search instead for 
Did you mean: 

generate settlement rule while project creation

Former Member
0 Kudos

Hi,

Below is the requirement.

1. We need to automatically generate settlement rule to the WBS without running T-code CJB1 or CJB2.

2. We should not do it through CJ20N edit screen also.

3. The settlement rule has to be generated upon project creation.

Is there any user exit can generate settlement rule for WBS element while project creation?

Please advise.

Accepted Solutions (1)

Accepted Solutions (1)

kenmelching
Active Contributor
0 Kudos

You cannot explicitly create the settlement rule during project creation.  The project must be saved first so the structure records exist in the database.  Then you can create a settlement rule.

There are development tricks to use a user exit to start a background program that runs after the project is saved.  You can also schedule the settlement rule creation program to run periodically.  There would be a short delay from project creation to settlement rule.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi there,

Our system is using assembly process to create project.

Currently, project is created after create contract (with assembly material).

Please let me know, where should we include the Z exit?

Former Member
0 Kudos

HI Than,

Does your system have Asset accounting? Do you want to create settlement rule for any reciever or only to AUC?

Do you want to create settlement rule at the the time of creationg or after REL?

If, yes, this can be achieved by Investment profile settings which can be assinged to WBS element.

Or the other option as Naga has suggested.

Thanks and regards,

Narender.

former_member203098
Active Contributor
0 Kudos

Hi,

Create your own Z exit and write code for automatic creation of settlement rules in WBS elements. Insert the Z exit in include LCNPB_MF2R. Before implementing, please keep in mind that

1. Settlement rule created when you save the project for first time because project data will not update in data base tables with out save. So once data base table updates, settlement rules will be created automatically in the project based on the project hierarchy.

2. Z exit triggers all the time in the backend when you open and save the project in cj20n. this leads to performance issue for cj20n transaction. So proper validation to code is require to avoid multiple triggers of exit.

Regards,