Skip to Content

block Goods Return qty not Equal GRPO qty

Hi All,

block Goods Return qty not Equal GRPO qty

Please assist.

SAP B1 HANA /SQL

Danish

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2015 at 11:52 AM

    Hi Danish,

    Would the transaction notification of sql help?

    I dont have knowledge of HANA yet..

    Thanks,

    Joseph

    Add a comment
    10|10000 characters needed characters exceeded

    • Thanks Dear

      SAP HANA 9.1 Query...

      IF (:transaction_type ='A' or :transaction_type='U') AND (:Object_type = '21') THEN

      Declare temp_var_0 integer;

      SELECT

      (SELECT Count (T0."BaseEntry")

      FROM "RPD1" T0

      INNER JOIN "PDN1" T1 ON T1."DocEntry" = T0."BaseEntry"

      WHERE T0."BaseType" = 20 AND T0."ItemCode" = T1."ItemCode" AND T0."BaseLine" = T1."LineNum" AND

      T0."DocEntry" = :list_of_cols_val_tab_del

      GROUP BY T0."BaseEntry" HAVING (SUM(T0."Quantity") <> SUM(T1."Quantity")) OR

      SUM(t0."Quantity") > SUM(t0."BaseOpnQty")) INTO temp_var_0 FROM DUMMY;

      IF :temp_var_0 > 0 THEN

      SELECT 10, 'Return Quantity is not equal to GRPO quantity' INTO Error, error_message FROM DUMMY;

      END IF;

      END IF;

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.