Quantcast
Channel: SCN: Message List - Reporting and Printing
Viewing all articles
Browse latest Browse all 2719

Re: Bin Location Tables

$
0
0

Hi Martin,

I know it is an old post. But maybe someone finds it useful. The bin locations are not saved in the document, but you can retrieve them like that  ( just replace DOCNUM with your value ) :

 

SELECT

     t1.BASE_REF AS DocNum

    ,t1.DocLineNum

    ,BinCode

    ,Quantity

FROM [dbo].[B1_OinmWithBinTransfer] T1

LEFT OUTER JOIN [dbo].[OBTL] T2 ON T1.[InvPLMessageID] = T2.[MessageID]

LEFT OUTER JOIN [dbo].[OBIN] T3 ON T3.[AbsEntry] = T2.[BinAbs]

WHERE BASE_REF = '<DOCNUM>'

    AND TransType = 15 --Delivery

 

TransType is defining the document type.

 

 

hope it helps,

Maik


Viewing all articles
Browse latest Browse all 2719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>