2020-08-18 15:32发布
加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)
先生,
请帮助我
我想查询退货后获取GR PO接收的数量。 我想查看SAP B1的单个查询中返回的po qty,qty recd,qty
嗨,
尝试此查询,
选择T0。[DocNum]作为PO#,T0。[DocDate],T0。[CardName],T1。[ItemCode] ,T1。[Dscription],T1。[Quantity] as POQty,T3。[DocNum] as GRPO#,T2。[Quantity] as GRPOqty,T5。[DocNum] As GR#,T4。[Quantity] as GRQty p>
FROM
OPOR T0内连接POR1 T1在T0上。[DocEntry] = T1。[DocEntry]
左连接PDN1 T2在T2上。[BaseEntry] = T1 。[DocEntry]和T2。[BaseLine] = T1。[LineNum]内连接OPDN T3在T2上。[DocEntry] = T3。[DocEntry]
左连接RPD1 T4 ON T4。[BaseEntry] = T2。[DocEntry]和T4。[BaseLine] = T2。[LineNum]内部联接ORPD T5在T4上。[DocEntry] = T5。[DocEntry]
WHERE T0。[DocDate]之间[%0 ]和[%1]
致谢,
Nagarajan
最多设置5个标签!
嗨,
尝试此查询,
选择T0。[DocNum]作为PO#,T0。[DocDate],T0。[CardName],T1。[ItemCode] ,T1。[Dscription],T1。[Quantity] as POQty,T3。[DocNum] as GRPO#,T2。[Quantity] as GRPOqty,T5。[DocNum] As GR#,T4。[Quantity] as GRQty p>
FROM
OPOR T0内连接POR1 T1在T0上。[DocEntry] = T1。[DocEntry]
左连接PDN1 T2在T2上。[BaseEntry] = T1 。[DocEntry]和T2。[BaseLine] = T1。[LineNum]内连接OPDN T3在T2上。[DocEntry] = T3。[DocEntry]
左连接RPD1 T4 ON T4。[BaseEntry] = T2。[DocEntry]和T4。[BaseLine] = T2。[LineNum]内部联接ORPD T5在T4上。[DocEntry] = T5。[DocEntry]
WHERE T0。[DocDate]之间[%0 ]和[%1]
致谢,
Nagarajan
一周热门 更多>