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

Zero stock check

Former Member
0 Likes
824

Hi All

Please find my requirement below:

I have created a program to confirm the TO. For this I'm calling L_TO_CONFIRM FM to confirm TO. But my client asks to perform Zero Stock Check, as in LT12, in my program befor TO confirm. Please tell me how to do this?

And, the condition for this is I need to check if the Bin doesn't have any more quantities. For this, I'm asked to activate this check when the TO quantity and BIN quantity is equal. Please tell me how to check this as well with Technical field names.

Thanks in advance.

Skysen

4 REPLIES 4
Read only

mvoros
Active Contributor
0 Likes
716

Hi,

you can get list of all quants for selected material with BAPI BAPI_WHSE_STOCK_GET_LIST. BAPI BAPI_WHSE_STOCK_GET_DETAIL will give you an information about quant. You should be able to do zero stock check from data retrieved by these two BAPIs. Another way is to debug LT12 to figure out how SAP does zero stock check.

Cheers

Read only

Former Member
0 Likes
716

Hi

Thaknks all.

I just enabled a parameter to activate 0 stk check.

Regards

Senthil

Read only

0 Likes
716

hi Senthil,

Can u explain how u solved your problem

Read only

0 Likes
716

hi Senthil,

Can u explain how u solved your problem