cancel
Showing results for 
Search instead for 
Did you mean: 

Query For Stock Transfer

Former Member
0 Kudos

Dear Experts,

I want to write a query for Stock Transfer Report. I want Item Code, From Warehouse, To Warehouse, From Bin , To Bin, Qty.

Valuation method is FIFO. Item is not managed by Serial or Batch.

Plz reply.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

edy_simon
Active Contributor
0 Kudos

Hi Kuldeep,

DECLARE @DocEntry INT = 1

SELECT T2.BinCode, T0.ItemCode, T0.ActionType, T0.EffectQty

FROM OILM T0 JOIN OBTL T1 ON T0.MessageID = T1.MessageID

  JOIN [dbo].[OBIN] T2  ON  T2.[AbsEntry] = T1.[BinAbs]  

WHERE T0.TransType = 67 AND T0.DocEntry = @DocEntry

There will be two lines for each item. 1 is From Bin, the other is To Bin.

Regards

Edy

edy_simon
Active Contributor
0 Kudos

Hi /

Does the query solve  your problems ?

Use the Inventory Transfer DocEntry for the @DocEntry.

As per your requirement : You need only for items without batch/Serial.

Regards
Edy

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi ,

Thanks dear for your reply. Also thanks for sharing such valuable query. Although I tried to write this query for Kuldeep, But I also was not successful to get the From Bin Location and To Bin Location information. I tried to search for the threads but mostly were not answered.

Hope your query will help others in future. I also will inform you, if there will be any problem to get the output for the same.

Thanks & Regards

Ankit Chauhan

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear All,

Plz reply for getting this query.

Regards

Former Member
0 Kudos

Dear All,

Please reply me to get this query. It is needed urgently.

Regards

Former Member
0 Kudos

Dear All,

Plz reply..

Regards

Former Member
0 Kudos

Hi,

I'm not sure what you need exectly.

Do you mean Inventory Transfere?

Then something like this:

select ItemCode, Quantity, WhsCode, FromWhsCod from WTR1

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Thomas,

Is there any field from Where I can get the information of  'From Bin Location' and 'To Bin Location' ?

Because I have tried with many tables but not able to get that.

Hope you can help me.

Thanks & Regards

Ankit Chauhan

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Kuldeep,

There are several threads regarding this. You may check these:

Hope it helps.

Thanks & Regards

Ankit Chauhan