Block the user updating UDF in Production Order

Hi All,
I want to block a particular user updating a UDF in the Production Order. He should not update the UDF only. But ha can update other fields in Production Order. He can add row or delete row or change quantity or change the status. But he should not update the UDF only.
Can anyone help me in how to write a Stored Procedure for this.
Thanks..
Marikannan

Hello,
By standard the Editing feature of UDF can be customized by User.
Open  Production Order, and Press CTRLSHIFTB.  On the window apperaring is similar to Form settings. You can unmark the Active Flag, and the fields will be read only.
Please note: stored procedure is not a good way, because it is running after the data has been written into the database.
Regards,
J

Similar Messages

  • Userexit for updating sales order user status based on Production Order

    Hi.
    My clients requirent is
    Sales order user status should get updated based on production order creation,GR for PO creation etc.
    Basically depending on PO & GR For PO,various user stauts in sales order should get updated.
    Can you please suggest me some userexits in PP for this requirement?
    I am a SD Consultant and not having much idaes about PP
    Thanks
    Nisha

    hi,
    if you are not going to update it in the SO..
    then you need different exits as those are different transactions.

  • User Exit for the Settle rule of a Production Order

    Hello all
    i got a requirement to change the settlement rule of a production order to multiple receivers.
    suppose i have the following rule
    Categeory | Settlement Reciever | Receiver Short text |   %   | Settlement Type | No | Source Assignment
        MAT             ZMDT89                   ZMDT88              100        FUL                 1            left as blank
    now my requirement is that i have to default the source assignment as 200 (Materials) so as to allow the other reciever entered with the same settlement type as FUL and also the No should be 2
    i.e. my req is like this
    Categeory | Settlement Reciever | Receiver Short text |   %   | Settlement Type | No | Source Assignment
        MAT             ZMDT89                   ZMDT88              100        FUL                 1            200
        G/L             G/L A/C no                G/L shor text       100        FUL                 2            100
    the bold one is i have to ADD
    the T-Code is CO02.
    your help is highly appreciated...
    thanks in advance

    hi,
    check these exits in co02.
    Transaction Code - CO02                     Change Production Order
    Enhancement/ Business Add-in            Description
    Enhancement
    PPCO0010                                Enhancement in make-to-order production - Unit of measure
    PPCO0012                                Production Order: Display/Change Order Header Data
    PPCO0013                                Change priorities of selection crit. for batch determination
    PPCO0015                                Additional check for document links from BOMs
    PPCO0016                                Additional check for document links from master data
    PPCO0017                                Additional check for online processing of document links
    PPCO0018                                Check for changes to production order header
    PPCO0019                                Checks for changes to order operations
    PPCO0021                                Release Control for Automatic Batch Determination
    PPCO0022                                Determination of Production Memo
    PPCO0023                                Checks Changes to Order Components
    STATTEXT                                Modification exit for formatting status text lines
    PPCO0009                                Enhancement in goods movements for prod. process order
    CCOWB001                                Customer exit for modifying menu entries
    COIB0001                                Customer Exit for As-Built Assignment Tool
    COZF0001                                Change purchase req. for externally processed operation
    COZF0002                                Change purchase req. for externally procured component
    PPCO0001                                Application development: PP orders
    PPCO0002                                Check exit for setting delete mark / deletion indicator
    PPCO0003                                Check exit for order changes from sales order
    PPCO0004                                Sort and processing exit: Mass processing orders
    PPCO0005                                Storage location/backflushing when order is created
    PPCO0006                                Enhancement to specify defaults for fields in order header
    PPCO0007                                Exit when saving production order
    PPCO0008                                Enhancement in the adding and changing of components
    reward points if hlpful.

  • Why user can not open Production Order form with readonly privilege?

    hi guys,
    today I got a problem when I assign the minimize privilege for a new user.
    the user only want to query status about Production Order, so I assigned the privilege with readonly on Production Order, and disabled all others.
    But when user logged on, and click on the 'Menu -> Production -> Production Order', there pops up an error message said 'To generate the document, first define the numbering series in the Administration module'.
    Do I have to find some other privileges to assign for the user account?
    thanks for your help.

    Thanks.
    But there were 10 groups look like from 'Series - Group No. 1' to 'Series - Group No. 2', How did I know which one was assigned to Production Order?

  • Updating Target cost: Production Order

    Hi All,
    My compnay is using V as a price indicator on all the materials including Semi-Fin and Finished and expecting to update the target cost by the Moving average price instead of Standard or planned price stored in the material master when confirming a prodcution order. The costing variant used by production order is standard PPP! and PPP2.
    Any one can help me on this.
    Thanks
    MKR

    Hi
    I'm sure you know this but just to say, V-price control for semi finished/finshed is not recommended.
    As to the issue in transaction OKV6 these settings control what values are used to update the target costs.
    In the detail display you can see the 3 options;
    (1) Plan/Preliminary Cost Estimate
    (2) Alternative Material Cost Est
    (3) Current Std Cost Est.
    The last being the normal default.
    Regards, Elaine

  • Is it possible to change the user status of a TECO Order

    Hello Folks
    Is it possible to changes the user status of a TECO Order?
    I have tried to change it using the FM 'STATUS_CHANGE_EXTERN'. Its working fine for NON TECO Orders but not for TECO Orders.
    On the other hand I was able to manually change the user status for a TECO Order in transaction IW32.
    I need to change the user status from NFBK to FBK.
    Please provide some inputs for the same.
    Thanks n Regards
    Ramesh

    The simple way is via the Internationalization settings via ARD or RDP or Screen Sharing, either via System Preferences or (if enabled) via the menu bar. If you're looking for a lower-level approach, there's not AFAIK a direct command for this. As for one possible approach, might [threadID=2106201|http://discussions.apple.com/thread.jspa?threadID=2106201] help?

  • Logged-in user info doesn't display after the user updates their info

    I created 2 pages. Page 1 has a recordset that displays only the users username and password, I did a filter on this recordset as username = session var = MM_Username. when they click update, which is just a link to page 2, they go to page 2 which has a recordset that filters their user info the same way and allows them to update their username and password. I used an update behavior on this page as well. So, when the user updates their info it DOES change the database info and works great.
    The problem: When the user goes back to page 1 to see their updated username and password that they just updated, it is BLANK. no info displays on screen, even when I refresh the page. it's if the MM_Username var is not refreshing while logged-in. Because when the user logs out and logs back in, it DOES display new username and password on page 1.
    Now it DOES work when I take the filter off of page 1's recordset, but this won't do me any good b/c the user should of course only see their info.
    I am running DW CS3, php, and mysql.
    Please Help! thanks.

    PAGE 1
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", 
    $theNotDefinedValue = "")
       $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : 
    $theValue;
       $theValue = function_exists("mysql_real_escape_string") ? 
    mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
       switch ($theType) {
         case "text":
           $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
           break;
         case "long":
         case "int":
           $theValue = ($theValue != "") ? intval($theValue) : "NULL";
           break;
         case "double":
           $theValue = ($theValue != "") ? "'" . doubleval($theValue) . 
    "'" : "NULL";
           break;
         case "date":
           $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
           break;
         case "defined":
           $theValue = ($theValue != "") ? $theDefinedValue : 
    $theNotDefinedValue;
           break;
       return $theValue;
    $colname_rsUpdateUser = "-1";
    if (isset($_SESSION['MM_Username'])) {
       $colname_rsUpdateUser = $_SESSION['MM_Username'];
    mysql_select_db($database_kh_space, $kh_space);
    $query_rsUpdateUser = sprintf("SELECT username, parentEmail FROM users 
    WHERE username = %s", GetSQLValueString($colname_rsUpdateUser, "text"));
    $rsUpdateUser = mysql_query($query_rsUpdateUser, $kh_space) or 
    die(mysql_error());
    $row_rsUpdateUser = mysql_fetch_assoc($rsUpdateUser);
    $totalRows_rsUpdateUser = mysql_num_rows($rsUpdateUser);
    ?>
    PAGE 2
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", 
    $theNotDefinedValue = "")
       $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : 
    $theValue;
       $theValue = function_exists("mysql_real_escape_string") ? 
    mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
       switch ($theType) {
         case "text":
           $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
           break;
         case "long":
         case "int":
           $theValue = ($theValue != "") ? intval($theValue) : "NULL";
           break;
         case "double":
           $theValue = ($theValue != "") ? "'" . doubleval($theValue) . 
    "'" : "NULL";
           break;
         case "date":
           $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
           break;
         case "defined":
           $theValue = ($theValue != "") ? $theDefinedValue : 
    $theNotDefinedValue;
           break;
       return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
       $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
       $updateSQL = sprintf("UPDATE users SET username=%s, password=%s 
    WHERE userId=%s",
                            GetSQLValueString($_POST['username'], "text"),
                            GetSQLValueString($_POST['password'], "text"),
                            GetSQLValueString($_POST['userId'], "int"));
       mysql_select_db($database_kh_space, $kh_space);
       $Result1 = mysql_query($updateSQL, $kh_space) or die(mysql_error());
       $updateGoTo = "confirmation.php";
       if (isset($_SERVER['QUERY_STRING'])) {
         $updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
         $updateGoTo .= $_SERVER['QUERY_STRING'];
       header(sprintf("Location: %s", $updateGoTo));
    $colname_rsUpdateUser = "-1";
    if (isset($_SESSION['MM_Username'])) {
       $colname_rsUpdateUser = $_SESSION['MM_Username'];
    mysql_select_db($database_kh_space, $kh_space);
    $query_rsUpdateUser = sprintf("SELECT userId, username, password, 
    parentEmail FROM users WHERE username = %s", 
    GetSQLValueString($colname_rsUpdateUser, "text"));
    $rsUpdateUser = mysql_query($query_rsUpdateUser, $kh_space) or 
    die(mysql_error());
    $row_rsUpdateUser = mysql_fetch_assoc($rsUpdateUser);
    $totalRows_rsUpdateUser = mysql_num_rows($rsUpdateUser);
    ?>

  • Transfer to PA the target costs of a production order

    Hi everyone,
    How can I transfer to PA the target costs of a production order?
    Thanks
    Cátia Pereira

    Hi
    1. Check your settings in KE4U - Strategy 001 must be assigned to PV=01 and Rec Type F
    Tick the "Mat Cstng" indicator and assign COPA Qty Field ABSMG
    2. Assign costing key to Mat Type in KE4J or KEPC
    3. assign Cost Comp Str to VF in KE4R
    4. Assign Value Fields to your variance categories in PA Transfer Structure....
    Tick "Variances to Costing Bsed COPA" in your settlement profile
    Br, Ajay M

  • Is there any BAPI or FM to update the scheduled dates of a production order

    Hi Friends,
    I would like to know if there is any BAPI or function module available to update
    the Scheduled finish and Scheduled start dates (GLTRS,GSTRS fields from AFKO table) of
    a production order.
    I have searched the forum, but I could not find anything.
    It would be of great help if anybody let me know about any Function Module / BAPI.
    Regards
    Aditya

    Hi ravi,
    in crm we have a t-code to cancel billing doc just execute and provide billing doc no and test run.
    that automatically cancel the billing doc. CRMD_BILL_REV Cancel Billing Document
    and here is the function module to cancel the billing doc..
    BAPI_BILLINGDOC_CANCEL1  Cancel billing document.
    if you want to more just fallow this links i think this might be help full to you..
    https://help.sap.com/saphelp_sm40/helpdata/en/6f/f26863448111d5992400508b6b8b11/content.htm
    Cancellation of Billing - Billing - SAP Library
    let me know if there is any queries.
    Thanks & Regards,
    Srinivas.

  • How to block the Statistical delivery date in purchase order from updation

    Hello All,
        We have the following requirement from our client.
    The client wants to track the delay in delivery of purchase orders raised to vendors. Currently the users, change the delivery date and then process the PO if there are any delays. The client wants to STOP this and track any changes being made.
        We created a new screen layout for purchase orders and checked the Statistics relevant delivery date as DISPLAY
    However, when we tested the same, the statistical delivery date was changed along with delivery date, when the delivery date was changed in the Purchase order, though the option for statistical delivery date was seen a DISPLAY field only.
    Please provide us your suggestions on any other options available.
    R's
    Manoj.

    if your client wants to track the delay of a delivery from your vendor, then he has to give the vendor a chance that he can deliver on time. And the usual way to do this is by sending the PO to the vendor.
    if you cange the delivery date before output of messagem then your vendor could not even know the original delivery date, so it is not the vendors fault if he cannot meet this date.
    if you change the delivery date after output of message , then the statistical delivery date will stay with the old date.
    the field is always open to maintain because it is not always the vendor who is reponsible for a delivery date change.
    if you want to change the delivery date because you can take the quantity at that date, then it is not the vendors fault, in this case you have to change the statistical delviery date to evaluate the vendors delivery performance against the new date.
    And often forgotten in this evaluation process is the warehouse personell that finally posts the goods receipt. if they post it with delay and do not change the goods reeipt date, then the vendor is as well evaluated to bad.

  • How to update UDF of sales order line of closed sales order header

    Hello experts,
    We are using SAP 8.81.313  PL 05  and we noticed that through SDK using businessobject SAPbobsCOM.BoObjectTypes.oOrders,  we can't update an user defined field on sales order line for a sales order with header closed.
    calling the method  Update()   it returns 0  but actually the table field  was not changed !
    Also we noticed that It's possible to make an update of UDF of delivery line for a delivery with header closed.
    I don't understand why.
    Is it a bug or the expected behavior ?
    Our customer needs to change some UDF of sales order line even when the order header is CLOSED.
    Please help me.
    Many thanks for your time.
    Best regards
    Andrea

    Hi Elio,
    Yes from UI it's the expected behavior but through DI API  I could update an user defined field of sales order line even if the LineStatus is equal to "C" (Closed) but only if the order header is not closed.
    Regards
    Andrea

  • Blocking the Creation of PO in Service Order

    Hello SAP folks,
    I have got an issue where I have to block the Creation of Purchase Requisation Number(BANFN) which is generated  in the background after the creation of the Service order(IW31)  I have tried the user exit EXIT_SAPLCOIH_009 but while coding i could'nt trace the field which is holding the value of PR number.Please let me know is it possible to stop the creation of PR if Yes, Please guide me in this issue in terms of coding.
    Thanxs in advance.
    Regards,
    Indira

    Hi Indira,
    Try these User Exits.
    CNEX0013  Order: Cust. enhancement: Default item category comp. a
    CNEX0026  Customer enhancement for general inspection of material
    CNEX0027  Customer enhancement: Plant, storage loc. finding for c
    IWO10004  Maintenance order: Customer check for order completion
    IWO10005  Maintenance order: Cust.-specif. determination of profi
    IWO10006  Maint. order: Fcode exclusion through cust. enhancement
    IWO10007  Maint.order: Customer enhancement - permits in the orde
    IWO10008  Cust. enhancement: Determination of tax jurisdiction co
    IWO10009  PM Order: Customer Check for 'Save' Event
    IWO10010  Maint. order: Cust. enhancement for determining WBS ele
    IWO10011  Maint. order: Customer enhancement for component select
    IWO10015  Maintenance order: F4 Help for user fields on operation
    IWO10016  PM Order: Cust. enhancement to check operation user fie
    IWO10017  Determine external order number by customer logic
    IWO10018  Maintenance order: User fields on order header
    IWO10020  Maintenance order: Automatically include task list
    IWO10021  Automatic task list transfer when creating order from n
    IWO10022  Determine calendar from user exit
    IWO10023  Service order: Change header data for advance shipment
    IWO10024  Service order: Changes to items for advance shipment
    IWO10025  PM/SM order: Finding responsible cost center
    IWO10029  Inclusion of bill of material in PM/SM order
    IWO10030  Preset Fields for Event Object
    IWO10031  Hide personnel number in PM/SM order
    IWO10033  Customer-Specific Authorization Check Maint./Service Or
    IWO10034  Operation status based on the status of capacity reqs
    Regards,
    Vijay

  • Block the output in R/3 if order is not compliant

    Hello All
    We are currently implementing SAP GTS  compliance module.  To integrated SAP GTS with the rest of the solution, we want to block the output for purchase orders and sales orders and the creation of the subsequent document.
    For the creation of the subsequent document, there are some SAP notes related to it and it doesn't really create an issue for us
    For the output, we are currently struggling to find a correct solution
    So far, we had found the oss note 900555 to block the printed output for the Purchase order but how can we do it  for the others ?
    In addition, I didn't find any solution for the sales orders output  ( expecially we hae some EDI messages that we want to block)
    Currently we were investigating an  other way to do it:
    - Send back a user status that we will use as condition to determine the output. We have still some concerns about this solution because it means that by default we should put this user status as "non-compliant" for all the orders and only when the status is sent back from GTS we can execute the output
    An issue that raise to me also the developper is that in R/3 the output determination is executed before the first call to GTS.
    I hope that some members of the community have better solution which ideally can cover PO and SO with real time call
    Thank you in advance
    Nicolas

    Hello Bastian,
    We had the same issue and didn't find something useful to block the outputs completely.
    Instead, for EDI Outputs probably you can have an extra text segment added in the idoc structure. And put the document compliant status as Yes/No in that segment. The document status will be available.
    But however as we expect, the Outputs cannot be blocked. But atleast notification about the status can be sent to Third party. You can liaise with third party to have a logic implemented to check the status of this field and pass the information to destination.
    Regards
    Dhilipan

  • User Exit/BADI for Production Order Availability Check

    Hi PP experts,
    Is there any user exit or BADI which can be used for Production Order Availability Check during order creation/release or while running collective availability check (COMAC) to include additional check conditions such as do not commit quantity (commitment qty = 0) if storage location for a component is missing in the production order due to storage location is not maintained/specified for that component in the material master.
    Note: In this case the availability check is set (configured)  to check at the storage location level.

    Dear ,
    Availablity Check is not Plant Specific or Storage Loaction spefic .ATP does not check the stock for any particualar stock in storage loaction rather it cheks various stocks based inward and out ward movement time through PR/PO/Dependent /Planned Order /Stock Type  irrespective of any Storage Location .
    BAPI which can be used :
    1.BAPI_PRODORD_CHECK_MAT_AVAIL
    can we exclude materials of prod order in availability check
    what is availability check concept  how it is used in SAP
    Check the above if it is useful
    Regards
    JH

  • User Exit to Create Production Order when creating of Purchase Order

    Hi Guru's,
    I want to create the Production Order when creating the Purchase Order. i want to know is there any user exit exists for that??
    My scenario is as follows.
    we are converting the Purchase Requisition to the Purchase Order , while doing this we want to create the Production Order.. Is this possible??
    If possible how can we do that???Please suggest me the possible solution.
    Thanks in advance.
    Thank you,
    Adi.

    Teja,
    My Scenario is as follows.
    P1- Manufacturing Plant
    P2 - WareHouse Plant (Procures Material from P1 using STO)
    When we run the MRP in P2, it creates a Purchase Requisition, that Purc.Req is going to be convert as STO (Stock Transport Order) in P1 Plant.
    When converting the Purchase Req to STO, we need to create a Production Order in P1 Plant.
    we know that system will creae the Purchase Order only, is there any possibility that,For creating the Production Order is there any user Exit/BADI or any other procedure while creating the Purchase Order????
    Thanks,
    Adi.

Maybe you are looking for

  • Can I install a Windows operating system on my Macbook pro

    I have been using VMWare Fusion virtual machine to access the windows side of my computer, but I think it is very complicated. It seems to me at one time you could install Windows directly on the Mac. Because of the people I serve I still have need o

  • Adobe Acrobat Pro 9.5.5 / Crash when converting JPG to PDF

    Hello all,      Not sure if anyone else has this issue that just started today.  I have approximately 8 JPG photos taken at 640x480 res (approx. 654kb total) that I'm trying to "Combine supported files in Acrobat".  The program will load the dialog b

  • Unexpected behavior with Color Sampler Tool

    Hi, I have a small AppleScript that used the Color Sampler Tool to place two color samples on an image. I am able to read back the (r,g,b) color values for these color samples, but the results in the script do not always match the info windows. It lo

  • Unknown error 2984? Itunes on Vista

    Im trying to upgrade to 7.3 Itunes on my vista, but Im getting a process id number of 2984. what is that and how do i fix it. Id appreciate some help.

  • Some question about control file

    Hello, ALTER DATABASE BACKUP CONTROLFILE TO TRACE - in my case I have three control files. The above command will generate the SQL command for regeneration of all three control files? - is there any way to find in which trace file the SQL script will