Skip to Content

Query pegging information Sap Business One

Hi expert

does anyone has created a query for MRP pegging (table MSN2 and MSN3)?

i want to find the demand document and the supply document, with the MRP Proposal

thank you

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Oct 16, 2019 at 07:35 AM

    try this

    SELECT T0."MsnCode", T1."ItemCode", T1."Quantity",
    T1."StockType", T1."StartDate",
    T1."EndDate", T1."BaseObj",
    T1."BaseDocNum",T1."BaseDue",T1."ParentCode"
    FROM OMSN T0
    INNER JOIN MSN3 T1 ON (T0."AbsEntry" = T1."AbsEntry")
    WHERE (T0."MsnCode" = N'[%0]' OR '[%0]' = '')
    AND (T1."ItemCode" = N'[%1]' OR '[%1]' = '')
    AND (T1."StartDate" = TO_DATE('[%2]', 'YYYYMMDD') OR '[%2]' = '')

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 16, 2019 at 09:39 AM

    Hi Mohd

    thank you for your support. My problem is to undestand the field in this table.

    i want to show in the first line the requirements. then from requirements i want to show the recommendation (Purchase Order, Production order)

    can i use stock type? Q = Stock Operation Type? and I = inventory result?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.