Câu truy vấn (query...
 
Notifications
Clear all

Câu truy vấn (query) thông tin hàng tồn kho với batch và bin location

2 Posts
1 Users
0 Reactions
77 Views
admin
Posts: 511
Admin
Topic starter
(@admin)
Knight3
Joined: 3 years ago

Người dùng có thể sử dụng báo cáo chuẩn từ hệ thống Batch Number Transaction Report.

Tuy nhiên trong 1 số trường hợp cần thêm các thông tin khác: UDF hoặc các thông tin khác mà báo cáo chuẩn không đáp ứng đủ >>> có thể dùng câu query sau để truy vấn các thông tin chính (Item / Batch / Bin) và chỉnh sửa theo yêu cầu của người dùng 

select T0.ItemCode, T1.DistNumber 'Batch No.', T2.BinCode 'Bin Location', T0.OnHandQty
from OBBQ T0 left join OBTN T1 on T0.SnBMDAbs=T1.AbsEntry
						left join OBIN T2 on T0.BinAbs=T2.AbsEntry
where T0.OnHandQty>0

Reply
1 Reply
1 Reply
admin
Admin
(@admin)
Joined: 3 years ago

Knight3
Posts: 511

Query for HANA version

select T0."ItemCode", T1."DistNumber" "Batch No.", T2."BinCode" "Bin Location", T0."OnHandQty"
from OBBQ T0 left join OBTN T1 on T0."SnBMDAbs"=T1."AbsEntry"
						left join OBIN T2 on T0."BinAbs"=T2."AbsEntry"
where T0."OnHandQty">0
Reply
Share:
x  Powerful Protection for WordPress, from Shield Security
This Site Is Protected By
Shield Security