Transfer of under delivery/overdelivery tolerance from sales order to prord

Hi,
My client works on SAP+MES environment. Here when a SO is created for a FERT material, the PO is generated automatically. A program is run to transfer this produciton order to their MES system. During this process, the initial values for underdelivery/overdelivery tolerance are picked up from the material master work scheduling view. But due to some reason, if the SO is changed, the underdelivery/overdelivery tolerance gets updated in the production order with the values that are in the SO.
In the meantime, due to the initial transfer of material master data value, their PPC department plans the material based on the same. Subsequently, due to automatic updation of the values from the SO, there is a problem of excess/lower production happening on the shop floor.
I want to know how to find out the user exit that is transfering the data from the SO to PO and the logic written for the same. Request you to help me find out the same.
Regards,
Sridharan M

Sridharan,
I am a bit puzzled what you mean by 'working parallely".  Just about any ABAPer with whom I have worked would have answered these  questions, had I asked them.
Functional userexits are found in Programs, and Programs may (or may not be) executed by a user.  Executable programs may or may not be accessed via transactions.
So, let us assume you have discovered a userexit that your company has implemented, using Mangalraj's expert instructions.
CMOD enter the project. Select components; Select Display.
I will assume that it is a function exit.  Select the component that contains the implemented modification.  Select Display.
Place your cursor on the FM name. Select the 'Where Used' icon.  Select programs, OK.
All programs that use that FM will be displayed.  Select one of the programs, select display.
Continue this process iteratively (many times there are 'includes' within 'includes'.)  Eventually the 'where used' selection criteria will probably (but not always) have a checkbox that allows you to search for Transactions.  Select this and execute.  This will indicate transactions that call the userexit.
From the above, you can deduce the following:
An implemented userexit may be used in one or many programs/includes.
The userexit may be used in zero or one or many transactions.
Again, I recommend that you consult with your ABAPer.  He should quickly be able to answer your questions.  The search becomes very simple if your company has documents that describe your installed userexits in a library.  If such a library exists, your ABAPer should know about it.  Otherwise, he will have to do a bit of digging.
There is a nice WIKI here about userexits
http://wiki.sdn.sap.com/wiki/display/ABAP/Waystofindauserexit
If this info is inadequate for your needs, you could consider posting such questions on one of the ABAP forums.
Best Regards,
DB49

Similar Messages

  • Create Outbound delivery with QCI from Sale order

    Dear experts!
    Now, I'm getting some issues about searching function to create outbound delivery with QCI from Sale order.
    Note: My sale order have two item (10, 20) and when i create outbound delivery I also want to create QCI for them.
    Help me, Please
    Best regards, Huy.

    What is QCI?

  • Discount % from Sales Order to Delivery/ AR Inv

    Hi,
    At times when Delivery is created from Sales order the discount % is not reflected and the field is blank. This is happening with random BP. The user ID has 100% discount authorization.
    Any idea for the reason.
    Thanks,

    Dear
    Please check Inventory >Price List >Special Price List
    Here you check any discount allocate to you BP or not.
    This may be a reason.
    Regards
    MANGESH PAGDHARE.

  • Dynamic data flow from sales order to delivery and vice-versa

    Hi Experts,
    One of our teams working for a client (transportation industry) on ECC 6.0 is facing an issue in relation to copying of partner data. (Ship-to-party address field changes to be precise)
    Currently, whenever the partner address data changed in a Sale order, though delivery is already created prior to this change, the change done is dynamically getting reflected in delivery too. Further, if the partner data in the delivery is changed, this also is getting updated on the preceding document i.e. sales order.
    We have checked the copy controls under VTLA and didn’t find any specific modifications made in this regard. Our question is:
    Is there any configuration available in standard SAP through which the data updates (like header data viz. partner field data etc.) get dynamically updated forward and backwards in a sales flow(i.e. from sales order to delivery and vice-versa)
    Your help on this will be highly appreciated.
    Regards,
    Jagan

    if the partner data in the delivery is changed, this also is getting updated on the preceding document i.e. sales order.
    The standard functionality is if you change the address of a partner function, the same will get reflected in an existing sale order.  This being the case, can you reconfirm your statement that in delivery, if you change the partner function, the same will get updated in sale order also?
    G. Lakshmipathi

  • Subcontracting PO from Sales order = Delivery address tab = customer

    Hi,
    We have a Sales order which saves a PR.
    If I transfer the PR to the subcontracting PO.
    The delivery address is equal to my company.
    But I want to send the goods directly to the end customer.
    I will post a dummy receipt. I need a customer field in the
    tab delivery address (same as with third party).
    How can I solve this problem?
    Thank you,
    Eric van Zundert

    this is possible however you have to some configuration.
    1.you have to maintain combination item category -L and acct assignment category - 1
        spro-->mm->purchasing--->Account assignment here you have to maintain
    2.you have to allow to create PO with item category 'L'  when PR item category is 'S' .
        spro->mm->Purchasing->PO->document types
        for std order NB you have to maintain above combination
    3. now if PR is converted into PO ,the system automatically  take item category --S
        acct assignment category--1 from Sales order.In PO you have manuallly change the item category from 'S' to 'L'.
       now the delivery address will not be changed from customer address.
       this will solve you problem
      reward if useful

  • Address not copied from Sales order/Delivery to Shipment Document

    Hello Experts,
    I need your help on Addrss of ship to in shipment document.
    Sales Order[VA01] >> Delivery [Vl01N]>> Shipment [VT01N].
    User changed the Address of ship to party (Header level) in Sales Order and It reflected to delivery as well and I believe It should also update the address in Shipment document.
    But when I checked the Address of the Customer/Unloading point in Shipment Document [VT03N] (as below) I found It was not updated It was same as Customer Master Record and I believe It directly copied from Customer Master Record.
    BUT While creating the Shipment system is copying the data from Customer master Record not from Sales Order /Delivery. Logically system should copy the updated address from Order/Delivery BUT It is directly copying from Customer Master i don't know where is the setting of this ??
    Can anybody help me on this ? How system takes the customer (ship to party) address in shipment ? Where are the setting of these.
    What I need to do so system take the updated address from Sales Order/Delivery not from Customer Master Record (Ship to party).
    Can I change the address of customer in shipment document ??
    Awaiting your precious reply.
    Thanks,

    Hello Samir,
    Thanks for your response.
    I think you get my question in wrong way.
    I am sayingCustomer master data was not changed.
    User just changed the Address in Order (Order > Header >> Partner tab >> Change ship to address/overwrite ship to address).
    Overwritten Address / Updated address are copying in Delivery BUT not in Shipment document.
    What I need to do?  system should copy the updated address from Sales Order/Delivery BUT it is copying from Ship to party.
    I hope this time i am clear to explain my issue.
    Thanks,

  • Delivery from Sale Order for Inquiry stock

    Dear All,
    We have unique requirement from client mentioned below, any help would be greatly appreciated.
    This is a trading sale which is initiated from inquiry.
    1. Inquiry is created in SD, which in turn triggers Purchase Requisition.
    2. PR is converted to RFQ.
    3. Based on RFQ prices are negotiated with vendors, then Quotation is sent to Customer from VA21 which is created against inquiry.
    4. Now when the PO is created w.r.t RFQ, then GR is done , Stock will be lying against inquiry.
    5. But i want to do delivery from sales order for stock lying against inquiry.
    we are looking for a workaround solution.
    Note:
    1. Client has disagreed with Stock Movement from Inquiry to quotation using MB1B, as it becomes manual transaction.
    2. PR triggering has to be @ Inquiry, as sale order will not be created until quotation is approved.
    Looking forward for valuable inputs.
    Thanks in advance
    Best Regards,
    Chaithru

    Tien,
    Approval will not work when you have mutiple rows of data.  You would have to work with SP Transaction Notification
    There has been threads before on the forum on the same topics.
    Block the Quantity in Sales Delivery
    Approval Procedure for chaning quantity in Delivery Document
    Suda

  • Can't change quantity when copy from Sale order for Delivery

    Hi all!
    Can i use authorization for can't change quantity when copy from Sale order for Delivery.

    Tien,
    Approval will not work when you have mutiple rows of data.  You would have to work with SP Transaction Notification
    There has been threads before on the forum on the same topics.
    Block the Quantity in Sales Delivery
    Approval Procedure for chaning quantity in Delivery Document
    Suda

  • Quantity is different from sale order and delivery

    Hi,
    Gurus,
    Quantity is different from sale order and delivery.
    I identified the Material in the sales order, the item category for this material as BOM.
    I have also checked the bill of material display header overview. The Base Quantity maintained as 1000 EA3. The SUBITEM maintained in G in the unit field in bill of material display.
    Accordingly i have checked the same for material master's additionl data in Units of Measure tab, it is mentioned the basic unit as 1000 EA3 and alternative unit as 600 G.
    My client processed the order for 100 QTY. The QTY for the two sub item is 99.601 each in the sale order.
    My client Question is why in delivery the Material Qty is coming as 99.730 and the SUB ITEM is coming as 99.330 EACH.
    Note:- The material X is maintained in EA3 in Bill of material header overview. I do no how the sale unit came as G for the Material in sale order.
    The other two sub item is perfectly coming as G. Because it is maintained in G in the Bill of Material Display.
    Guide me GURUS.
    Thanks and Regards,
    ANAND

    Hello Rumar
    I guess you entered the text manually in the sales order. The Ship-to may not be having any text, but the Sold-to may be and it may be coming from sold to.
    In transaction VOTXN, check the access sequence for the text type id and see which one takes precedence - one from customer master or from the order by checking the order of accesses.

  • Budget error while creating delivery from sales order

    hi Gurus,
    System is throwing error PB603 "Item 004 WBS element ABC-XXX budget exceeded" while creating delivery from sales order.
    I am picking material from unrestricted plant stock (not in project stock).
    I am also confused as sales order has 3 line items & error shows Item 004 !

    Hi Kuldeep,
    Check this note,
    Note 159387 - Message BP603: incorrect line item is displayed
    Its valid only till 4.6. Might give you some idea but.
    Regards,
    Gokul

  • BAPI or FM to create outbound delivery from Sales order

    Hello All,
    My requirement is to create a outbound delivery from sales order. Also i need the batch number and texts to be updated in the delivery.
    For this i need a single FM. The catch is that we don't have the batch number and texts in the sales order. That i have to take from some other delivery. I can get all the information .
    The problem is that i can not find a FM through which i can create the delivery from the order and update the same.
    I should not use two FM.
    Could you please tell me some FM which does both in one go?
    Thanks and Regards,
    Rahul Sinha

    Hi
    Hi,
    You can use the BAPI BAPI_DELIVERYPROCESSING_EXEC.
    Check this sample code..
    PARAMETERS: p_vbeln LIKE vbak-vbeln.
    DATA: BEGIN OF t_vbap OCCURS 0,
    vbeln LIKE vbap-vbeln,
    posnr LIKE vbap-posnr,
    kwmeng LIKE vbap-kwmeng,
    matnr LIKE vbap-matnr,
    werks LIKE vbap-werks,
    END OF t_vbap.
    DATA: t_request TYPE STANDARD TABLE OF bapideliciousrequest
    WITH HEADER LINE.
    DATA: t_created TYPE STANDARD TABLE OF bapideliciouscreateditems
    WITH HEADER LINE.
    DATA: t_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
    SELECT vbeln posnr kwmeng matnr werks
    INTO TABLE t_vbap
    FROM vbap
    WHERE vbeln = p_vbeln.
    LOOP AT t_vbap.
    t_request-document_numb = t_vbap-vbeln.
    t_request-document_item = t_vbap-posnr.
    t_request-quantity_sales_uom = t_vbap-kwmeng.
    t_request-id = 1.
    t_request-document_type = 'A'.
    t_request-delivery_date = sy-datum.
    t_request-material = t_vbap-matnr.
    t_request-plant = t_vbap-werks.
    t_request-date = sy-datum.
    t_request-goods_issue_date = sy-datum.
    t_request-goods_issue_time = sy-uzeit.
    APPEND t_request.
    ENDLOOP.
    CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
    TABLES
    request = t_request
    createditems = t_created
    return = t_return
    READ TABLE t_return WITH KEY type = 'E'.
    IF sy-subrc = 0.
    MESSAGE e208(00) WITH 'Delivery creation error'.
    ENDIF.
    COMMIT WORK.
    READ TABLE t_created INDEX 1.
    Write: / 'Delivery ', t_created-document_numb.
    Regards,
    Sreeram

  • Create Delivery from Sales Order Document

    Hello all,
    I have a business requirement to create deliveries from sales orders in the most effcient way possible.  Our current program uses BDC and calls transaction VL01N, however this has been found to dramatically increase the run-time of this program.  I have been searching for a BAPI to essentially do the same thing. 
      I came across one BAPI, BAPI_DELIVERYPROCESSING_EXEC, but have been getting inconsistent results.  It will create deliveries for some line items and not others with little rhyme or reason.  The return table is not being populated unless it is a high level error, such as the quantity passed being 0.
    To the BAPI, I am passing: Sales Doc Number, Line Item, Quantity, and Document Category.  This is done through an internal table.  I also pass internal tables to receive the return messages and the created documents. 
    Has anyone seen the same thing with this BAPI? Is there a better BAPI to use for such a purpose?
    many thanks for any help,
    brian

    Hi!
    For delivery creation you can use FM SHP_VL10_DELIVERY_CREATE:
        DATA:
          if_ledat TYPE lfdat_a,
          if_nur_vorgabe_pos TYPE xfeld,
          it_key_to_enque_t TYPE shp_vl10_package_t,
          it_key_to_enque LIKE LINE OF it_key_to_enque_t,
          it_komdlgn_t TYPE shp_komdlgn_t,
          cx_sd_order TYPE shp_vl10_sd_order,
          ct_vbsk_all_t TYPE shp_vbsk_t,
          ct_vbls_t TYPE shp_vbls_t,
          ct_key_late TYPE shp_vl10_package_t,
          ct_vorgabe_daten_t TYPE shp_vorgabe_daten_t,
          ct_vorgabe_daten LIKE LINE OF ct_vorgabe_daten_t,
          wa_dlvsrc LIKE LINE OF m_it_dlvsrc,
          msg TYPE string.
        LOOP AT m_it_dlvsrc
          INTO wa_dlvsrc.
          CLEAR it_key_to_enque.
          it_key_to_enque-panum = '1'.
          it_key_to_enque-vbobj = 'A'.
          it_key_to_enque-vbtyp = 'C'.
          it_key_to_enque-vbeln = wa_dlvsrc-vbeln.
          it_key_to_enque-posnr = wa_dlvsrc-posnr.
          it_key_to_enque-id = '1'.
          it_key_to_enque-tabix = '1'.
          it_key_to_enque-vstel = wa_dlvsrc-vstel.
          APPEND it_key_to_enque TO it_key_to_enque_t.
          CLEAR ct_vorgabe_daten.
          ct_vorgabe_daten-vgbel = it_key_to_enque-vbeln.
          ct_vorgabe_daten-vgpos = it_key_to_enque-posnr.
          ct_vorgabe_daten-lfimg = wa_dlvsrc-lfimg.
          ct_vorgabe_daten-akmng = 'B'.
          ct_vorgabe_daten-postab_tabix = it_key_to_enque-tabix.
          ct_vorgabe_daten-panum = it_key_to_enque-panum.
          ct_vorgabe_daten-id = it_key_to_enque-id.
          APPEND ct_vorgabe_daten TO ct_vorgabe_daten_t.
        ENDLOOP.
        if_ledat = sy-datum.
        if_nur_vorgabe_pos = 'X'.
        CALL FUNCTION 'SHP_VL10_DELIVERY_CREATE'
             EXPORTING
                  if_ledat           = if_ledat
                  if_nur_vorgabe_pos = if_nur_vorgabe_pos
                  it_key_to_enque    = it_key_to_enque_t
                  it_komdlgn         = it_komdlgn_t
             CHANGING
                  cx_sd_order        = cx_sd_order
                  ct_vbsk_all        = ct_vbsk_all_t
                  ct_vbls            = ct_vbls_t
                  ct_key_late        = ct_key_late
                  ct_vorgabe_daten   = ct_vorgabe_daten_t.
        COMMIT WORK AND WAIT.
    All created deliveries numbers:
    SELECT vbeln
          INTO TABLE m_it_vbeln
          FROM vbss
          FOR ALL ENTRIES IN ct_vbsk_all_t
          WHERE sammg = ct_vbsk_all_t-sammg.
    All errors during processing:
          SELECT msgid msgno msgv1 msgv2 msgv3 msgv4
            INTO TABLE it_msg
            FROM vbfs
          FOR ALL ENTRIES IN ct_vbsk_all_t
          WHERE sammg = ct_vbsk_all_t-sammg.
    Regards,
    Maxim.

  • Copy "Ship to party" from sales order to "Delivery addreess" in PO

    Hi All,
    when i create a Purchase Order in ref to the Purchase Requistion of the Sales Order, I want the Ship to Party address from line item of the Sales Order needs to get copied to the Purchase Order line item in "Delivery address" tab of the PO.
    Please tell me the required configuration settings to achieve this.
    Awaiting your responses.
    Thanks in advance.
    Rgds.
    Anil.

    Hi All,
    This is a third party scenario. And in third party scenarios I guess the ship to party address from sales order will be automatically copied into the delivery address of the PO (Standard Functionality of SAP). But some how this is not happening and use to happen till the sixth week. Do I still need to check the enhancements given by the experts above? or we can achieve this with some configuration settings from schedule lines etc?
    Rgds,
    Anil.

  • Transfer posting of goods from sales order to sales order

    Hi Sap experts
    Can anyone please tell me what is the movement type for trasfering goods from one sales order to another sales order and tell me what r the steps i should follow for this .

    Hi,
    What do you mean by transfer posting from sales order to sales order? The movement type will come into picture when a material document is involved that means goods are issued/received.
    Elaborate more on your query.
    Hrishi

  • Restrict transfer of requirments from Sales Order to MRP.

    Hi Friends,
    I have a requirement where in I have to stop/restrict transfer of requirements from Sales order line item to MRP.
    Generally, If the material in Sales order is for Internal production then the Planned order it triggered in MRP and If the material is Externally Procured then a Purchase Req is triggered in MRP. The MRP run is carried out using Transaction code - MD03
    Is there any technical enhancement where I can restrict the transfer of requirements to MRP from Sales order.
    I know I can control it functionally by changing the schedule line category, But We need a technical development to do this as the user would not every time go to Sales order change and then change the schedule line Category.
    Please Advise.
    Thanks & Regards
    Nayan Shah

    Hi Nayan,
    Please try user exits EXIT_SAPLMDR2_001/2/3 if it helps.
    Regards,
    Gaurav

Maybe you are looking for