Planned Ord. to Production Order User Exit (PPCO0005)

Hi Guys,
I am trying to change the Storage location field on the GOODS RECEIPT tab in transaction CO40. I get there using MD04 and change a planned order to a production order.
The user-exit that sap recommends (PPCO0005) works fine to change the storage location for the components of the production order. It does NOT change the actual storage location of the production order.
The storage location of the actual production order is found under the GOODS RECEIPT tab of the production order. Any thoughts on what could be done to change the actual storage location of the production order. Is there any other user-exit that comes to mind?
Also, I changed the storage location in the PLAF table for the planned order in user-exit PPCO0005. This works when the production order is displayed again. It does not display the changed location the FIRST time the order comes up. Any ideas on how to make the screen field change it value. The screen field is AFPOD-LGORT.
Regards,
Salil

Hi Julius,
I used an implicit enhancement in include LCOSDF36 under the form TRANSFER_DATA_PLANNED_ORDER. The enhancement builder allows you to change standard SAP code without creating a project via CMOD.
If you are on ECC versions of SAP you could use it. Go to include LCOSDF36 and switch 'on' the builder via the menu path.
If you are on older versions of SAP, you will have to locate a user-exit for PP. There are several of them available. You could also search right here on SDN.
Let me know if you have any other questions.
Kindly,
Salil

Similar Messages

  • Production order user exit

    I will create a production order in CO01.I wont use planned order,MRP etc.I will assign a WBS element in production orderin assignment tab.Then i will confirm the order and do goods receipt in MB31.When I do goods receipt my finished material should go to project stock.Is there any user exit for this.

    dear colleague,
    when you assign a WBS to a production order it is only a statistic assignment.
    You have to create the  PP order through the MRP in order to transfer the stock type through the requirement type or create the the production order in CO10.
    Through CO10 the stock type will be 'project type'.This is the standard logic. There isn´t any user exit that allows to post in 'Q' stock and order created through CO01.
    If you create in CO01 you have to move the stock through transfer movements.
    best regards

  • EXIT_SAPLCOBT_001 - Production Order User Exit

    We are using the above mentioned user exit at the time of production order saving. 
    1) If we are using error message like message e014(zk) then it is giving dump and no help provided in the dump.
    2) Is there any method to go to the Production Order Component screen after warning / information message (customer message thru the exit).
    Pl help
    Regards
    balakumar

    Hi,
    There is no export parameters for this exit , if you look at the exit EXIT_SAPLCOMK_006 , there is one export parameter  'E_MESSAGE' , like this export parameters are there in the exit EXIT_SAPLCOBT_001 ,then you can handle the messages.
    *"       EXPORTING
    *"             VALUE(E_MATERIAL) LIKE  COMP_EXIT_EXP
    *"                             STRUCTURE  COMP_EXIT_EXP
    *"             VALUE(E_MESSAGE) LIKE  MESSAGE_STRUCT
    *"                             STRUCTURE  MESSAGE_STRUCT
    Laxman

  • Change Confirmed Qty in Sales Order User exit/ATP User exit

    HI
    We have a requirement to change the ATP Qty for certain meterials & Order Types  duing sales Order User exit(FORM USEREXIT_MOVE_FIELD_TO_VBEP.? ) or ATP User exit.( ATP...OUT?).
    Is this ok to update the XVBEP in FORM USEREXIT_MOVE_FIELD_TO_VBEP of MV45AFZZ ?
    Our requirement will be like this, for one order type ZSAL( and for certain Materials)  we need to reserve 4 qty, if any order comes with 10 qty and the confimed qty is only 6( total available stock at present) , then we should only confirm  2 qty for the other order type( For Non ZSAL Order Type), and reserve the 4 QTY for ZSAL Order Type.
    If there are multiple schedule lines for an Item, we need to reduce the qty equally( as possible) from all schdule lines.
    i.e. date1 qty 4
         date2 qty 6,
    in  this case we should confirm  Date1 QTY 2, date2 qty 4, so that the remaining 4 will be reserved for ZSAL Order type.
    Whats the Best way to achieve this ?
    Edited by: agrud agrud on Sep 8, 2011 4:01 AM

    Hi Agrud,
    Did you check the possibilities with configuration.If it is not possible with configuration then you can use that exit.Before i used this but only to display not to change any thing.
    Regards,
    Madhu.

  • Capacity planning and schedulng production order based on availabe capacity

    Hi Gurus,
    I am trying to use capacity planning, when the production order is created it takes the order start date as the requirement date. Then when i do he capaity check it says capaity not available. After finite scheduling again it proposes to shift operations by certain days.
    I need the capity to be check in MRP and the palled orders to have start dates based on aviable capity, currenty all the palled orders are starting on the requirement date irresptive of avaiabe capaity. I tried using finite scheduling option in MD02 still it does not take in to account exsting production orders for giving dates of the planned orders.
    Regards
    Abhi

    Dear Abhishek,
    1) This is Std SAP of MRP, only material Av check will be carried out in MRP & create procurement
    Proposals
    2) Capacities will not Checked  ( consider ) in MRP in Std R/3
    3) Your Need can be only met through APO
    Regards
    Madhu

  • PO Creation from Sales Order User Exit

    Hi,
    I have a business requirement where I need to  create a Stock Transport Order (STO) for a particular kind of sales order. I outlined different options for achieving this functionality.
    1. Trigger a workflow for creating STO.
    2. Configure it an EDI output for sales orders. Using the EDI document, create STO in the same system.
    3. Create STO using BAPI from the sales order exit 'USEREXIT_SAVE_DOCUMENT'.
    I am trying to understand the issues if I go with option of creating STO from sales order user-exit. I tested it and it is working fine. But what concerns is me transaction integrity. In other words I am trying to  execute another transaction within a transaction. Both Transactions (VA01 and ME21N/BAPI) may be trying to access same tables. Anyways I havent see any potential overlap.
    I would like to know anybody implemented such a solution?
    What could be the potential issues? Does it really affect transaction integrity?
    Thanks A Lot
    Anil

    I would also be concerned with the possibility of the order failing to update AFTER you call the BAPI.  You could create a custom output type that processes on order create for that order type.  You could add your BAPI call to the processing routine of the output type.

  • Deriving Planning Folder Technical Name From User-Exit

    Dear Colleagues,
    For those of you who know ABAP, do you know if it is possible to determine the technical name of a planning folder from within a user-exit (i.e. planning function that has been executed from within a planning folder)?
    Customer states: They would like to use a Planning Folder, and invoke a planning function of type user-exit (i.e. via button in folder), which will execute an ABAP that has a case statement for conditional execution of steps, based upon the technical name of the planning folder that invoked the call.
    Thank you in advance for any guidance or feedback you may be able to offer.
    -M

    Hi Michael,
    Write this code in the exit function
    FIELD-SYMBOLS: <fsl_class> TYPE REF TO cl_upb_pm_applc.
      DATA:          name(50),
                     plan_folder TYPE upb_y_ps_name.
      name = '(SAPLUPB_PM)gr_applc'.
      ASSIGN (name) TO <fsl_class>.
      IF sy-subrc = 0.
        CALL METHOD <fsl_class>->get_active_pm
          RECEIVING
            r_pm = plan_folder.
      ENDIF.
    Glad I could be of help to the mastero.
    Let me know if it worked.
    thanks

  • Planned order user exit

    Does anyone know of a user exit to update planned order component quantity after super BOM is exploded?

    Hi Julius,
    I used an implicit enhancement in include LCOSDF36 under the form TRANSFER_DATA_PLANNED_ORDER. The enhancement builder allows you to change standard SAP code without creating a project via CMOD.
    If you are on ECC versions of SAP you could use it. Go to include LCOSDF36 and switch 'on' the builder via the menu path.
    If you are on older versions of SAP, you will have to locate a user-exit for PP. There are several of them available. You could also search right here on SDN.
    Let me know if you have any other questions.
    Kindly,
    Salil

  • Name of the structure needed for sales order user exit

    Hi,
    I am planning to write a user exit which will insert the data into my ztable the moment the new sales order is created and is saved.
    I have identified FORM USEREXIT_SAVE_DOCUMENT as the necessary user exit. But the problem is that while inserting the data into the ztable I cannot insert the data from vbak as the data will be inserted into this table after the SO is saved.
    Thus I need to identify a structure which is used to populate the vbak table so that it simultaneously inserts the data in the ztable as well. Can anyone help me with the name of the structure so that these fields i.e. vbeln, vkorg, vtweg, spart are inserted into my ztable?
    Also need to know how to convert the net value i.e. vbak-netwr in Indian Rupees as it gets stored as Dollars ....
    Thanks,
    Vinod.

    Hi,
    One of the structure being used is RV45A, there are several other str's being used as well for various calculations,
    check out program SAPMV45A for the same.
    & in order to convert vbak-netwr to rupees use the below statemetnt,
    WRITE vbak-netwr TO zvbak-netwr CURRENCY INR.
    Regards,
    Raghavendra
    Message was edited by:
            raghavendra ay

  • Sales Order - user exit at item level

    I am new in writing user-exits. Pls do share your exp !
    When creating a sales order I encounter error, system says "Enter batch number".
    We basically create batch when doing GoodsReceive for Production Orders. At this time the Material Revision is copied as Batch into MCHB table.
    For example:
    Material ABC has the below,
    Rev    Batch
    A        A
    B        B
    C        blank
    If I create a SO for part ABC for Rev C, it does not allow me becos batch does not exists. But my SO should be allowed to be copy C into the batch field in VBAP.
    Pls let me know if we must create custom user-exit rather than modifying std.SAP user-exit for Sales Order processing (MV45AFZZ).
    Is there any contraints using the batch field in SO? As I came to know that the problem is when creating a Purchase Order  it allows to enter free text in batch field but SO doesn’t allow. Is't?
    Is there any standard way to config the system such that SO will bypass the existence checking of the batch
    Pls share !
    Pri

    Hi, but inplace of Batch we only enter the Revision of the material. Becos rev-batch relationship is 1-1, meaning is rev is A, the batch will be A too.
    We just use the batch field to represent the revision
    Rev    Batch
    A        A
    B        B
    C        blank
    I  can enter A in SO item batch field because system check that batch A exists
    I can enter B in SO item batch field because system check that batch B exists
    But I can’t enter C in SO item batch field because system check that batch C doesn’t exist
    Wondering how the system might know the batch is actually my revision. Not sure if I use User  EXIT to move “C” into VBAP-CHARG, will it give me error message because it will find out that there is no C batch
    Your views !

  • Change planning plant in production order

    Hi Gurus,
    my business scenario is the following:
    I have 2 plants that are assigned to 2 different company codes. Plant A (ordering plant) and Plant B (supplying plant).
    The users place a sales order on plant A and through MRP with special procurement key 80 the planned order is turned into a production order in plant B.
    But in the order confirmation the system tries to post the GR in plant A. Is there a way to change the planning plant of the production order at any time i.e in order creation or order confirmation? Because I need the GR against the production order to be done in plant B. Since the subsequent posting according to the business scenario would be after production, the goods should be sold from Plant A to Plant B via a sales order.
    Your help would be greatly appreciated.
    Panos

    Hi Panos,
    SPK 80 doesn't suit your requirement, since by design it is doing GR in the ordering plant.
    Alternatively you need to work with a SPK like 40, that is stock transfer from B to A. Just set up the intercompany process for this stock transfer.
    This way, when MRP in A detects a need for replenishment, a stock transfer requisition from B to A is created. Then MRP in B will create a planned order for production (that you will convert into a production order later). GR is in B. The stock transfer requisition is converted into a stock transfer order, and the actual transfer takes place.
    Check also this for more details:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/f4/7d2d4d44af11d182b40000e829fbfe/content.htm
    Regards,
    Mario

  • Regarding Purchase order User-exit

    Hello friends,
    Here is the situation.
    when we create purchase order ... I need to modify the planned delivery field value under delivery tab at item level.
    For this I found user exit. 'EXIT_SAPMM06E_016' and I have written the logic in the include program.
    when I tested in debbugmode... the cursor is not at all comming to that point. It was failing always at the function module 'MODX_FUNCTION_ACTIVE_CHECK'.
    I don't know alwys active field showing blank. I think we need to activate the user exit some where. how to do and where to do?
    plese help me ..
    extract the code --from include program MM06EF0C_CUSTSCR1_ITEM_SET_D03
    User-Exit für Positionsfelder versorgen (PBO)
    FORM custscr1_item_set_data_pbo USING im_no_screen LIKE fc_call.
      DATA: l_enj_call TYPE c.
      STATICS: first_call(1) TYPE c VALUE 'X',
               active        LIKE sy-calld.
      IF NOT first_call IS INITIAL.
        CLEAR first_call.
        CALL FUNCTION 'MODX_FUNCTION_ACTIVE_CHECK'
          EXPORTING
            cprogname  = 'SAPMM06E'
            funcnumber = '016'
          IMPORTING
            active     = active
          EXCEPTIONS
            not_found  = 1
            OTHERS     = 2.
        IF NOT sy-subrc IS INITIAL.
          CLEAR active.
        ENDIF.
      ENDIF.
      CHECK NOT active IS INITIAL.         ==========================> always active sowing blank
      IF fc_vorga EQ cva_en.
        l_enj_call = 'X'.
      ELSE.
        l_enj_call = space.
      ENDIF.
    *-Define Fields:
      DATA: l_ci_ekpo LIKE ekpo_ci,
            lt_usr_tekpo LIKE bekpo OCCURS 0,
            lt_usr_teket LIKE beket OCCURS 0,
            lt_usr_tekkn LIKE ekknu OCCURS 0,
            lt_usr_tkomv LIKE tkomv OCCURS 0.
    *-Copy Tables:
      MOVE-CORRESPONDING ekpo TO l_ci_ekpo.
      lt_usr_tekpo[] = pot[].
      lt_usr_teket[] = ett[].
      lt_usr_tekkn[] = knt[].
      lt_usr_tkomv[] = tkomv[].
    *-User Exit
      CALL FUNCTION 'EXIT_SAPMM06E_016'
        EXPORTING
          i_ekpo      = ekpo
    ===============
    thanks in advance
    Regards
    Raghu

    Hi Raghunath
    I hope you have included your enhancement in a project and activated the project.
    1-Needed help
    2-SMOD and CMOD
    Hope it is helpful.
    Regards
    Neha

  • Production Order User Status

    Dear Experts,
    I have created User Status with T-Code BS02 and assigned to the production Order. With the User Status I am blocking the GR, if confirmation is not carried out.
    Everything is working fine along the process. System is blocking the GR if confirmations are not done. Upon confirming the user status is changing in Prd Ord and then allowing the Goods Movement.
    But now if I cancel the confirmation, the user status is not rolling back (Block GR Condition). After cancelling the confirmation even I am able to do the GR, which should be blocked. How to do this?
    Also, in confirmation parameters, I have given "Error if sequence is not adhered to". This is blocking the confirmation of operation if previous opn is not confirmed, But here I can delete the previous confirmation (CO13), after confirmaing the later operation. The deletion of previous confirmation should not be allowed if later operation is confirmed. How to achieve this?
    Kindly advice me what are the settings required for this.
    Regards,
    Rohit.

    Rohit,
    After cancelling the confirmation does the order get back the user status as defined by in BS02?
    Please check out this.
    Regarding your query about CO13, although you have made necessary setings in OPK4, it will be effective only for process of confirmation & not for cancellation.
    But you can certainly achieve the control of cancellation of confrimation as per your requirement by using userexits available in CO13. Those are listed below.
    CONFPP01
    CONFPP02
    CONFPP03
    CONFPP04
    CONFPP05
    CONFPP06
    Kindly take help of you ABAP guy.
    Hope this helps you.
    SmanS

  • Sales Orders User Exits

    Dear colleagues,
    Are there any user exits that I can invoke at the time of deleting a line item from a sales order?
    Ideally, I would like the user exit to check the status of production order and prompt the user if the associated production order can be deleted.  If the user chooses to retain the production, system should retain the production order although the associated sales order / lineitem is deleted.
    Regards,
    Pavan

    I could Figure it out.
    Thanks,
    Kannan

  • Order user exit..

    I have to set an user status directly when creating an order(production order). Cannot use IWO10009 since while creating the order has got no instance in database tables. I need any function module to update the status internally or any exit that is invoked when we open the order for viewing(Since it cannot be set during creation, it can be set on opening and the user would have the same feel!!). Please Help.
    Thanks in advance for your responses.

    Thank you for the reply.
    But the orders don't have a same status number as different orders lie in different status profiles.( A configuration used here). SO with the temporary object number i cant hit databse tables for the status profiles.
    The status number is the input for the function module you stated.
    Is there any method by which I can update the user status internally while remaining in that exit?
    Waiting for responses.
    Thanks in advance.

Maybe you are looking for

  • Homesite Future - What would you want changed?

    There have been threads debating whether HomeSite was orphaned or whether it would be upgraded or not. Since none of us know, those are mainly ways we've all been expressing our frustration. Someone pointed out to me recently how useful HomeSite is e

  • Calling Java from Matlab

    I create a java class: class MyClass int myField; public MyClass(int value) myField = value+1; and in Matlab I use a = MyClass(3); to call the class. I should get 4, but in stead, the result I get back is MyClass@1743ff4 where did I do wrong? please

  • Itunes store not open

    I can open Itunes on my windows laptop but when trying to import CDs itunes will not look up the CDs information. Itunes says my internet is not hooked up but my internet is working fine

  • OCR Solution: wrokflow on MIRO ( Park and Post Invoices)

    Hello one and All, We are planning to introduce a OCR solution which will scan and read the incoming paper invoices and it will then do the 3 way match on a daily basis and park the correct invoices.These invoices that are parked by the system should

  • Handling Events in Train Bean to perform validation

    Hi All, I have requirement of adding validation logic on clicking 'Next' button in train bean. on Next button clicks validation logic works fine as expected but on Back button is causing the below exception. Not sure where is the issue? code used ins