Skip to Content
author's profile photo Former Member
Former Member

Regarding production order

Hi,

In production order, for example there are 4 items, enduser can not add or delete row items in that particular production order. Once raise the production order, if any one can add or delete any row that screen can not be updated. is there any restrictions to using stored procedure to block that production order or disable that update button.

Kindly provide the query for me.

Regards,

VRK

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2013 at 06:47 AM

    Hi VRK,

    You can use Sp_TransactionNotification stored procedure to block the updation of "Released" production order. Please use following sp

    GO

    /****** Object: StoredProcedure [dbo].[SBO_SP_TransactionNotification] Script Date: 12/09/2013 11:52:49 ******/

    SET ANSI_NULLS ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    ALTER proc [dbo].[SBO_SP_TransactionNotification]

    @object_type nvarchar(20), -- SBO Object Type

    @transaction_type nchar(1), -- [A]dd, [U]pdate, [D]elete, [C]ancel, C[L]ose

    @num_of_cols_in_key int,

    @list_of_key_cols_tab_del nvarchar(255),

    @list_of_cols_val_tab_del nvarchar(255)

    AS

    begin

    -- Return values

    declare @error int -- Result (0 for no error)

    declare @error_message nvarchar (200) -- Error string to be displayed

    select @error = 0

    select @error_message = N'Ok'

    --------------------------------------------------------------------------------------------------------------------------------

    -- ADD YOUR CODE HERE

    --------------------------------------------------------------------------------------------------------------------------------

    if(@object_type=202 And @transaction_type in ('A','U'))

    begin

    if exists (select * from AWOR T0 where T0.DocEntry =@list_of_cols_val_tab_del and T0.Status ='R' )

    begin

    select @error =1

    select @error_message ='You can not update prodution order'

    end

    end

    -- Select the return values

    select @error, @error_message

    end

    Please go through the following link

    http://scn.sap.com/people/lisa.mulchinock/blog/2009/05/22/the-sptransactionnotification-stored-procedure

    Hope this will help to resolve your issue.

    Regards

    Manoj

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 09, 2013 at 10:04 AM

    Hi VRK,

    We can block the production order update when child item missing or different from bill of material.

    Regards,

    Ganesh

    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.