cancel
Showing results for 
Search instead for 
Did you mean: 

How to replace expired condition contract with an active condition contract?

Sagar1991
Discoverer
0 Kudos
269

I wanted to address a recurring issue that our business team has encountered regarding returns credit note and their impact on our System. At times, our business team creates return orders against the billing documents that were generated at least two years ago. In these cases, the System automatically determines the expired condition contracts from the original billing documents to the newly created return order and subsequently to return credit note. Also, as these return credit notes gets settled in the previous month under the new condition contracts (using t-code: WB2R_SC), we have been observing a discrepancy. Requesting you to let us know, if there is any BAdI or a User Exit that we can make use of to resolve this issue.

Sagar1991
Discoverer
0 Kudos
We are unable to replace expired condition contracts with active ones while creating subsequent documents like return orders, return billing documents, etc. It seems like during order or billing document creation, condition contracts corresponding to the condition types will be present in the internal table CT_CONTRACTS (change parameter of the method); however, condition contracts with an inactive state are not being passed into this internal table. For this reason, we are unable to replace the expired condition contracts with the new ones. We tried this using the BAdi WB2_COCO_DETERM_CHANGE_FINAL
gvictor
Active Participant
0 Kudos

Hi @Sagar1991

I've seen your inbox message but answering here for sharing with others. 

Before checking BADI, I would recommend to check your pricing type used from the copy control and/or the condition class used for the accrual condition in the Billing document pricing procedure. 
I guess the accrual is not redetermined in the return because of the copy control, and the system will capture as is the condition record determined at the time of the billing document 2 years ago. 

Haven't tested and not sure if it will work for a return in reference to a billing document but you can as well check to create a requirement routine in copy of 67 - which I believe you're using in the billing doc pricing procedure for accrual in case you have have multiple relevant value - and add a check for the contract to be active. 

Last resource would be to use BADI, but from my point of view the first recommendation should help you. 

Regards, 
Gauthier Victor

View Entire Topic
Haribsap
Discoverer
0 Kudos

Hi Sagar,

Check the settings in your accrual condition type. Condition category should be L. This will make sure that your condition type is redetermined 

Regards

Hari