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

Function Module to calculate Open Contract Quantity

Former Member
0 Likes
2,464

Hi All,

Is there a function module to calculate Open Contract Quantity?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,346

Check the below..I think it gives the release qty.

/PBS/ME_READ_RELEASE_QUANTITY

and you can subtract the total qty - release = Open

5 REPLIES 5
Read only

Former Member
0 Likes
1,346

YOu can use the bapi:

BAPI_SALESORDER_GETSTATUS

Pass the contract number to the bapi and look at the STATUSINFO table that is returned.

Regards,

ravi

Read only

0 Likes
1,346

Hi Ravi,

Thanks for the reply.

For this FM, i need to pass the Sales Doc Number. Is there an FM where i can pass the contract number?

Best regards,

Sindy

Read only

0 Likes
1,346

Hi Sindy,

You can pass the contract number also to this fm.

Regards,

Ravi

Read only

Former Member
0 Likes
1,347

Check the below..I think it gives the release qty.

/PBS/ME_READ_RELEASE_QUANTITY

and you can subtract the total qty - release = Open

Read only

0 Likes
1,346

Hi Anurag,

Many thanks for the reply. Solved my problem.

Regards,

Sindy