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: 

How SAP B1 specifically in picking module create information from "bin location allocation - Issue"?

IkkiThePhoenix
Discoverer
0 Kudos
282

Hi,
I have a little question about how SAP B1 create the information from "bin location allocation - Issue" to show. I would like to recreate this using a queary, I very confuse about which table are consulting.

IkkiThePhoenix_0-1739907898884.png

Thanks.

3 REPLIES 3

williamwachholz
Active Participant
229

Hello,

Check the table OIBQ - Item Bin Accumulator Table. 

SELECT  OIBQ."BinAbs" AS "BinAbsEntry"OIBQ."OnHandQty" AS "Quantity"

FROM OIBQ

INNER JOIN OBIN ON OBIN."AbsEntry" = OIBQ."BinAbs"

WHERE OIBQ."ItemCode" = '99999'

AND OIBQ."WhsCode" = '01'

AND OIBQ."OnHandQty" > 0

Best regards

IkkiThePhoenix
Discoverer
0 Kudos
201

Hello,

Thanks for answering @williamwachholz help a lot.

With this information from the table OIBQ how SAP can know exactly the items are Available ? I can't find it, that make me think that SAP manages his own logic or query internally.

Thanks

189

You have to search for documents with open quantity holding the item. This can be done search the transaction log tables (OITL and OBTL).

Here is an example for sales orders. You will have to adapt the query to search all open sales orders for the item that are holding its quantity.

SELECT OBTL."BinAbs" AS "BinAbsEntry",

OBTL."Quantity"

FROM OITL

INNER JOIN OBTL ON OBTL."ITLEntry" = OITL."LogEntry"

WHERE OITL."DocType" = 17

AND OITL."DocEntry" = 9999999