SP_Transaction notification Production order

Hello All:
   I alwasy thought that you can do store procedure against production for some reason, but I just realized that production order OWOR does not have objtype. What can I do to alert user when creating proudction order of certain specific problem and prevent them from doing it?
Sincerely Yours

Hi ,
Production order type = 202
U can get effect on any change in po order.
IF @transaction_type IN (N'A', N'U') AND
(@Object_type IN ('202'))
BEGIN
SET @error = 10
SET @error_message = N'Check PO Order'
END
Regards,
Avijit

Similar Messages

  • Use SP_Transaction notification for Production Oder

    Hi all!
    Can i use SP_Transaction notification  for Production Order.
    We have two user A and B is manager of A.
    When A create a production order  but A can not use Release function in order to chage status from Planed to Relase.
    Only B can Release.
    How can use SP_Transaction notification  .
    Thanks!

    Import this code into sp_transaction notifocation:
    If @object_type =N'202'
    begin
    If (@transaction_type = N'A')
    begin
    declare @userBO nvarchar(2)
    set @userBO = (select T0.usersign from OWOR T0 where T0.docentry=@list_of_cols_val_tab_del)
    if @userBO = '1' --code user 'A'
    begin
    update OWOR
    set status = 'R'
    where docentry=@list_of_cols_val_tab_del
    end
    end
    end
    Then user A try to add document, click on add button, sp_transaction notification procedure will be executed, and status document will change to 'Released'

  • QM01 - Add Production Order field to Create Quality Notification

    Hi all SDNers,
    I have searched and found many threads related to my question BUT I'm new to this and I don't know how to implement in detail.
    Would you please guide me step by step adding a field into a standard TCode?
    My requirement is to add the Production Order field (VIQMEL-FERTAUFNR) to the Create Quality Notification (QM01) Tcode under the 1st screen in Reference Documents section of the Reference Objects tab.
    The program is SAPMQM00 and screen number is 3011.
    Thanks,
    Khanh

    Hi all,
    I used the screen number 0140 in program SAPLQM03 as the initial screen before creating Notification type Q2.
    Use SPRO:
    Quality Management --> Quality Notifications --> Notification Creation --> Notification Type
    --> Define Screen Templates --> Define Initial Screens
    Then use Function Module QM03_CREATE_QMEL_WITH_WINDOW and screen 0140 above to configure.
    Hope this will help others.
    Regards,
    Khanh

  • Notification on Receipt and Purchase documents getting fired on Production order having Items with planning method as MRP

    I have written a SP Notification to block adding of documents if block number is not provided. Notification is working fine on Purchase and Receipt documents. This notification also gets executed on Production Order where items included in Production order have planning method as MRP.
    Can anyone explain me the relationship between
    "MRP planned items"
    and
    "Purchase documents (Purchase Order; GRPO; Purchase Return; AP Invoice and Credit Memo) and Receipt of Production."
    Thanks & Regards
    Sonil Bhardwaj

    Hi Sonil,
    Can you post your SP , to look if there is any problem with SP ..
    Regards

  • Transaction Notification for Restrict user to delere row but new item addition will allowed in Production Order

    Dear All Experts,
    My client having some custom requirement in Production Order.
    1) When Production Order will created and its status will released then it will allowed user to update any quantity of any items or add any new items but it will not allowed to delete any items from row level.
    2) When any item will be deleted then our transaction notification will be raised.
    I created one Transaction Notification Code but it will restricted to update anything or delete.
    IF (@transaction_type = 'A' or @transaction_type = 'U') AND @object_type = '202'
    BEGIN
    Declare @VisOrder1 nvarchar(255)
    Set @VisOrder1=(SELECT Top 1 T1.VisOrder+1 FROM OWOR T0 INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry 
    WHERE (T0.Status = 'R' and T1.VisOrder=(select TOP 1 VisOrder from wor1 where DocEntry=@list_of_cols_val_tab_del order by VisOrder Desc)))
      If @VisOrder1 >0
      begin
      SET @error = 231
      SET @error_message =  'You have not rights to delete any Item - Please Contact System Administrator ' + @VisOrder1
      end
    END
    Please help me for solve this problem.
    I wait for your warm replay.
    Thanks & Regards,
    Nishit Makadia

    Hi,
    Please check these threads. Let me know your feedback.
    http://scn.sap.com/thread/3518208
    http://scn.sap.com/thread/3545101
    Thanks & Regards,
    Nagarajan

  • Production Order Creation in QM Notification

    Hi,
    Is there possibility to add an option for creation production order in the QM notification Action Box?
    How to do that?
    Regards
    Ramakanth

    fetch FM :  BAPI_PRODORD_CREATE in action box

  • Sp_Transaction Notification For Purchase Order Item Checking

    Hello All,
    I need to create a sp_Transaction notification for Purchase Order where system will check that the document to be added
    with Vendor 'A' and ItemCode 'ERT' should not be be previously added for the same vendor 'A.
    Example:-
    Doc No.  Vendor   Item Code
    1                A            ERT
    Is added
    Next if the Purchase Order is added with same vendor and same Item then system should block the entry and throw a message
    'Purchase Order Already Entered for Vendor 'A' with Item Code 'ERT'"
    This checking will be done for each line item of currently entered Purchase Order Document.
    Thanks ,
    Amit

    Hi Amit,
    i found this on forum. Try this,
    if @object_type = N'22' and @transaction_type in (N'A', N'U')
    begin
    declare @line1 int
    declare @lin1 int
    declare @out1 int
    Set @out1 = 0
    SET @lin1 = 0
    Declare @Vend as varchar(200)
    Declare @ItemCode as varchar(200)
    Select @Vend = CardCode From OPOR Where DocEntry = @list_of_cols_val_tab_del
    Select @line1 = Max (LineNum)FROM POR1 WHERE POR1.DocEntry = @list_of_cols_val_tab_del
    While @lin1 < @line1
    Begin
         Select @ItemCode=ItemCode From POR1 Where DocEntry=@list_of_cols_val_tab_del and LineNum = @lin1
          if (SELECT COUNT(T0.DocEntry) FROM POR1 T0 inner join OPOR T1 on T0.DocEntry = T1.DocEntry
          WHERE T0.ItemCode = @ItemCode and T1.CardCode = @Vend)> 1
          Begin
               Set @Out1 = 1
               Break;
          END
               Else
               Begin
               Set @lin1 = @lin1+1
               Continue
          END
    END
    Set @lin1 = @lin1 + 1
    if @out1 = 1
    begin
          Set @error = 1
          Set @error_message = 'Item Code in line ' + CONVERT(nvarchar(4), @lin1) + N'already Exists For This Vendor!'
    End
    END
    Check this too Stored procedure in purchase order for duplicate item for a vendor
    Thanks,
    Joseph
    Edited by: Joseph Antony on Jan 11, 2011 1:37 PM

  • Rework of Production order through Q notification

    Hi,
    I want to insert an reowrk operation / create new production order through Q Notifcation. Could some one provide me Config for the same. I am mainly interested in how to choose right function module
    Thanks in Advance

    Function module"
    CO_ZF_PRODUCTIONORDER_CREATE
    MD_ORDERTYPE_PRODUCTION_ORDER
    BAPI:-
    BAPI_PRODORD_CREATE

  • Production Order Control

    Hi ,
    In Production order the User name can be selected from header of the table.
    We did a SP_transaction notification like only manager can do some exceptions which other users can buy pointing to UserSign of Owor. it worked fine.
    Problem is, now the other users found the breach, like changing the user name to Manager and doing those exceptions. unable to control this, do any one have new idea to overcome this?
    I thought i wud be better in case if we cud catch the current loggin user n check with those exception conditions, so tht only in manager loggin can do those things.
    i dont know how to get the thing done... plz help!!
    Thanks

    Restrict user name visibilty of production order thru form settings.
    De tick User Name.
    and also apply authorization General ---> Document Settings ---> No authorization

  • Creation of a production order with CO_KO1_ORDER_ENTRY_EXT

    Hi,
    out from the Action Box of a Quality Notification I want to create a production order. I used the function 'CO_KO1_ORDER_ENTRY_EXT' which has several import parameters. In the parameter 'ORDPEX_IMP'  I set the field PRCTR (Profitcenter). The order was created but the profit center was not set (although it was the correct profit center from the material master)
    regards
    Arthur

    problem did occurr again

  • Issue in committing material for production order

    Hi, we are facing an error situation that when we try to release production order there came an issue that few component committed quantity is less than required quantity. When we check the stock of the components they were having enough stock to consider for this production order.
    What could be the other reasons or cause for this situation. Can any one suggest for the correction action.
    would reservation cause this problem when i check the component availability overview it has ATP 0.   will it cause this.
    When i look in to the system there were several Orders that were in CRT state that were using same components as used in the current order under discussion.
    Edited by: kkr_chandran66 on Jan 6, 2011 3:16 AM

    Hi All
    Even MD04 also seems to be showing as if the material is available.  Pl. see the data against 13/12 hereunder.
    06.01.2011     Stock                                                            6,370/      6,370
    08.12.2010     Ord.DS     4604767106/00100                         80-/     6,290
    09.12.2010     OrdRes     420252                         2,740-/     3,550
    13.12.2010     OrdRes     420268                         3,420-/     130
    availability overview CO09 shows as follows for the component:
    13.12.2010     OrdRes     Totals record     3,420-(receipt/req)       0(confirmed)
    13.12.2010     OrdRes     420268                          3,420-(receipt/req)        0(confirmed)                       0(ATP quantity)
    scope of check:
    to include
    purchase order
    include dependent requirements
    sales requirements
    deliveries
    include shipment notifications
    all reservations
    check releases for transport orders only
    take all productions orders into account.
    With this scenario what can i do get it working.
    Edited by: kkr_chandran66 on Jan 6, 2011 6:46 AM
    Edited by: kkr_chandran66 on Jan 6, 2011 6:59 AM
    Edited by: kkr_chandran66 on Jan 6, 2011 7:00 AM

  • Error Message in SP_Transaction Notification

    Dear Experts,
    is it possible to include for example the row number or the item code into the error message from the SP_Transaction Notification?
    I have edit the SP to avoid that items with property 3 can be used in Sales Order. It works fine, but if there are 50 items or more in a sales order, it is very hard for the user to find out which item or which row number is mean.
    Thanks,
    Jacqueline

    Hi Jacqueline,
    It may be possible to include dynamic values in the SP error however what if you have mutliple rows with Property 3?
    What you coud do is add a UDF to the marketing lines, then apply the following formatted search to the field;
    SELECT T0.\[QryGroup3\] FROM OITM T0 WHERE T0.\[ItemCode\] = $\[$38.1.0\]
    Have it auto-refresh when the item code or name changes, this will then copy either N or Y to the field, all the items with Y in this new field will have property 3 set so the user can easily identify it.
    Regards,
    Adrian

  • Production Order - Segregating Costs for different cost elements.

    Hi Experts,
    I am a QM Key User and have been asked to look into improving our current Non-conformance / re-work process.
    My plan is to include the rework operations within the original PP01 Production Order.
    So far:
    Three Work Centres have been created:
    1. NCRTEST u2013 1st WC to collect hours
    2. NCRTEST2 u2013 2nd WC to collect hours
    3. NCROUTSO u2013 To collect costs associated with outsource operations i.e. weld repair, shaft straightening.
    NCR-02: Activity Type Created
    Two new control keys created
    1. NC01: Confirmation of hours
    2. NC02: Outsource operations (requisition generated)
    NCRTEST-CC: Cost Centre Created
    The Price Planning for Cost Centre/Activity has been specified (KP26 and KPB6)
    Two new Cost Elements have been created:
    1. 43001201 u2013 Costs associated with the outsource operation
    2. 94301021 u2013 NCR Labour Hour Costs 
    On a test production order we have managed to isolate the NCR hours to cost element 94301021 and the outsource operation costs to 43001201; however these costs are automatically settling to the production order material which then settle to the WBS (that is my understanding).
    Is there any way of stopping the costs associated with the two cost elements from settling to the Production Order material? The costs cannot be settled this way as my intention, is for a new development which allocate the costs to the relevant notification QM Order.
    The QM Order will then be settled in the normal way. Settling the production order and the QM order will result in duplicate costs.
    I am not sure if this is a possible solution but is it possible for a negative cost to automatically post to the production order material for the two cost elements. The production order value would be correct and the QM Order could be posted as normal.
    Thanks in Advance
    Ben

    Hi,
       I would expect that the costs get settled to the material only when you settle the production order to the receiver material. I don't think that happens automatically....it will have to be done explicitely
    regards
    Waman

  • BAPI-To create production orders with reference to sales order & item

    Hi,
    Can anyone tell me which is the best method to create open production orders?
    Is there any BAPI available for creating production orders with reference to sales order & item.
    I tried this BAPI "BAPI_PRODORD_CREATE".
    I am getting pop up to enter serial number while executing the custom program.
    Which table contains the serial number(effectivity parameters)?.

    I have custom screen fields on notification service!
    i think a bdc is better.

  • Mtl Availability Problem @ Production Order Release

    Hello All,
    For production order creation and order release we have different types of availability checks:
    1: Order creation: check all purchase orders (ZP02)
    2: Order release: do not take purchase orders into account (ZV02)
    In the material master the field "availability check" is always set to 02.
    The problem with this is that as soon as we want to release a production order, the future purchase orders are not taken into account, but the corresponding production orders (created ones) are. This yields missing parts at release, even though there is enough in stock.
    The following options are now selected for ZV02:
    [ ] incl. purchase orders
    [ ] incl. purchase reqs
    [V] incl. dependent reqs
    [V] incl. reservations
    [V] incl. sales reqmts
    [V] incl. deliveries
    [ ] incl. ship notific.
    incl depend reservat [x] all
    incl rel order reqs [ ] do not check
    incl planned orders [ ] do not check
    incl production orders [x] all
    I tried changing OPPJ. Things that do not work or are unwanted are:
    changing ZP02 identical to ZV02, since purchase orders should be included for orders in the future
    changing ZV02 identical to ZP02, since purchase orders confirmed to today might be delivered tomorrow, which would yield missing parts.
    changing ZV02, incl. Production orders from [x] to [F]. Still missing parts @ release.
    Thanks in advance.
    Regards,
    Marc

    Hello
    I assume here that 02 is for the component in the production order, am I right ?
    All components have the material availability at 02, so you are right.
    Now in 02-ZV02 , the you are considering all the reqmts coming from planned or production orders, is that right ?
    Yes, both planned and production orders are checked in ZV02 and ZP02.
    Is ZP02 working according to what you need ?
    ZP02 is used @ order creation. This works fine, because it takes purchase orders into account that are confirmed in the future. This is correct at order creation.
    Cna you check the differences between both rules ?
    Purchase orders are not taken into account for ZV02
    Purchase orders are taken into account for ZP02.
    The rest is identical to the previous list
    An example:
    Day 0 (current stock): 200 of material X
    Day 1: Production order requires 200 material X
    Day 2: Purchase order is confirmed for 200 material X
    Day 3: Production order requires 200 material X
    Result of ZP02: in stock: 200, required 200 + 200, confirmed @ day 2: 200 --> No missing Part
    Result of ZV02: in stock: 200, required 200 + 200 --> Missing Part
    The best solution would be for the system not to look at the requirements of the orders in the future which are not released yet. Therefore I changed the key ZV02: incl. Production orders from [x] to [F]. However, this did not have any effect!
    Regards,
    marc.

Maybe you are looking for

  • Logical standby not working

    Hi, i have configured logical standby in 11gr2. IT replicates properly. Now the replication get stopped and it show the below error. Please suggest me to start the replication. LOGMINER: Begin mining logfile during commit scan for session 1 thread 1

  • 30" new display won't work on PC

    Need help!!! Just purchased the HP D4999T PC, set it up and the Cinema HD 30" Display just shows a black screen. The power light is on, on the display and the computer is showing that the monitor is recognized. Attached an old Dell monitor and it wor

  • Why doesn't Webm and HTML5 Video doesn't work on youtube with Firefox 4.0b8pre?

    I go to http://www.youtube.com/html5 and enable html5. I do not get any video tags or content of the sort. If I do a search: http://www.youtube.com/results?search_query=gods+gonna+cut+you+down&aq=0&webm=1 None of those videos will appear with the vid

  • HOW TP PASS A WINDOW AS A PARAMETER

    HI WHAT TO PASS THE WINDOW OF THE CANVAS AS PARAMETER TO A PROGRAM UNIT IT NEED S IT TO DO SOMETHING TO THE WINDOW TO CHANGE ITS APPERANCE.SO SHALL I PASS IT AS A STRING OR WHAT .THE PROGRAM UNIT DATA TYPE IS OLEOBJECT.SO CAN U TELL ME HOE AND BY THE

  • Allow spotify to sync on a mobile device when it is idle

    Spotify stops syncing to my mobile device when the app is "idle".  There are a few suggestions on the forums about how to get round this, but they are cludgy workarounds. (play a song on repeat on the device or disable your lockscreen).  Neither of t