Skip to Content
avatar image
Former Member

Prevent Order Creation and Goods Mvt for Materials with no std Cost Setup

Hi All,

I need to prevent the creation for the following orders if no standard cost is maintained in the material master:

1) Sales Order

2) Purchase Order

3) Production Order

Also, i need to prevent any goods mvt. from being posted if no std. cost exists (eg. 101, 261, etc.)

So far i have found user exit PPCO0007 to prevent creation of production order, but is there a way through configuration?

Also, is there a way through configuration to block the sales orders and purchsae orders? and the goods movements?

Thanks, Erik

Prevent Order Creation and Goods Mvt for Materials with no std Cost Setup

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

5 Answers

  • Sep 16, 2010 at 10:02 PM

    Hi Erik,

    regarding production orders please check out the t-code OPKT

    and adjust your Settlement profile

    good luck.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 17, 2010 at 01:18 AM

    I think the transaction BS22 which controls the system status may be alble to help you.

    You know that the SAP object like production order have system status like PRC (Pre-costed) or else, then you can go to BS22 double click the system status then you can control what kind of actions, e.g. goods posting etc, can be done or not once the system status is set.

    I am not sure what system status may set if there is no standard cost, please check.

    On the other hand, you can also consider the user status in BS02, this also can control the actions based on the user status set.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 17, 2010 at 04:49 AM

    Hi Erik,

    1. For both the SAles order and also the Purhcase orders, goods movement also we need to use the suitable user exit only to block them, there is no standard way of blocking this.

    Reg

    Dsk

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 17, 2010 at 05:10 AM

    Hi Erik,

    for production order try following user exit to prevent them from creation if no standard cost is setup for material

    PPCO0012 Production Order: Display/Change Order Header Data

    PPCO0007 Exit when saving production order

    PPCO0018 |Check for changes to production order header

    for Sales Order

    USEREXIT_PRICING_PREPARE_TKOMK :Use this user exit if you want to include and assign a value to an additional header field in the communication structure KOMK taken as a basis for pricing.

    if you got some solution please reply here...as it wil help others too....

    Regards,

    KApil Bhalke

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 17, 2010 at 05:19 AM

    Dear Erik,

    Use the BADI - " WORKORDER_UPDATE" using the method at save or at release .You can write the FS for building the logic either

    using the method at save or at release to make a system check for the field LPLPR from the table MBEW,by passing the material

    and valuation area.

    Check this link to explore more,

    [Error message if no std.cost exists during Prod .Order creation|error-msg-if-no-standard-cost-present-for-producti]

    check whether the same BADI can be used for check during sales order creation.

    This particular requirement can not be met through configuration setting.

    The other option is create a new material status in OMS4 ,blocking for production order and purchase and assign this key in the

    material matser.

    But why do you want the system to block the creation of Purchase order?

    Check and revert

    Regards

    S Mangalraj

    Edited by: Mangalraj.S on Sep 17, 2010 10:50 AM

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Erik,

      We handle this a little diferrently. We use the Material master status (MARA-MSTAE) field to control most SAP transactions.

      For this use tcode: OMS4 to configure various material status. Mat. status can be used to control with either warning or error following objects.

      - purchase orders, BOM, routing, production orders,inventory management among other options.

      So a good business process flow would be -

      1. when material is first created, it gets status ZI- infancy

      2. when all views of material are created & std. costing is updated then status is changed to ZR -release

      I am sure this will help you provide some solution to your team as a more cost effective solution than enhancements like BADI, user exits etc..

      thanks,

      Ram