Skip to Content

How to block BOM Updation by SP_TN

Dear All,

please help on this

SQL/HANA

--------Updation Block BOM

IF :object_Type = '66' AND :Transaction_Type ='U' THEN

Declare BOMM_0 integer;

SELECT

(SELECT "Code"

FROM OITT B

WHERE (B."Qauntity" <>

(SELECT B."Qauntity"

FROM AITT C

WHERE (B."LogInstac" =

(SELECT COUNT(C."LogInstac") AS "Expr1"

FROM AITM A

WHERE (B."Code" = C."Code"))) AND (C."Code" = B."Code"))) and B."UserSign2">0 AND

(B."Code" = :list_of_cols_val_tab_del)) INTO BOMM_0 FROM DUMMY;

IF :BOMM_0 > 0 THEN

error := 466;

error_message := 'Mandatory Field Not Update (Statandard Batch Size (XQauntity)*)';

END IF;

END IF;

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 15, 2016 at 05:13 PM

    The history table for BOM is AITT, not AITM.

    Frank

    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.