cancel
Showing results for 
Search instead for 
Did you mean: 

Open quantity in contracts which have calloffs archived

Former Member
0 Kudos

Hi all!!

We have contracts with their corresponding calloffs created. If the calloffs are archived, how can we obtain the open quantities in the contract in a Z-program? That is, which fields have to be checked? In VBUK table there is no "archived status" or soemthing like that. In table VBUP there is a field RFGSA which indicates if the item has been referenced totally or partially but I don't how to use it together with any other status.

Example:

Contract 1000 pcs.

Call off: 500 pcs archived

Call off: 400 pcs archived

There are still 100 pcs. opened but in our report it's displayed 1000 pcs as opened.

How can we get that 100 pcs are opened and 900 are archived?

Thanks in advance for any idea & best regards

Accepted Solutions (0)

Answers (1)

Answers (1)

od_manikandan
Active Contributor
0 Kudos

Hai icasado,

In standard SAP

Contract - SO will updates once it is processed.

In case in sales order is rejected with some reason then the quantity will flow back to contract.

For the similar requirment we had made enhancement in sales order to check

At the time of saving sales order, system check

what is the refereed contract

for that what is list of sales order prepared

(Contract - Sales order quanity) - Current sales order qunaity = X

1000 - (500+400) - 1000 = -900

If X is less than 0,

system displays ( Contract qty + -900) = 100

Only 100 Mt can be allowed.

Regards,

Mani