Skip to Content

Query for MRP run

Hi Gurus !

Can anyone give me a query for an approval procedure which triggers only when a PO is created during the MRP run?

Thanks for your help

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jan 07, 2013 at 03:57 PM

    Hi

    Try This query

    SELECT 'TRUE' where $[OPQT.COMMENTS]='Origin: MRP'

    Terms Based On User Queries

    In addition to the 6 terms embedded in SAP Business One, it is possible to attach user defined queries as terms for launching an approval procedure.

    You first need to define a user defined query using a specific structure;

    This specific SQL sentence has to start with SELECT 'TRUE' or SELECT DISTINCT 'TRUE'.

    This SQL query structure indicates SAP Business One whether the term you define to trigger the approval procedure is fulfilled or not i.e. true or false.

    Use the structure SELECT 'TRUE' in order to launch the approval procedure only in case the query returns a single true result (rather than multiple true results).

    Use the structure SELECT DISTINCT 'TRUE' in order to launch the approval procedure whenever the query returns one or more true results.

    In order to run the query on data you are currently processing in a certain document rather than on data recorded in the company database, use the query structure $[Table.Field] (as described below). Note that you can use this structure only on header tables (e.g. OINV, ORDR) and not on row tables (e.g. INV1, RDR1).

    Hope helpful 😊

    Regards

    Kennedy

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 07, 2013 at 12:10 PM

    Hi,

    Please check http://scn.sap.com/thread/3251380 thread.

    Thanks & Regards,

    Nagarajan

    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.