Updating Outbound Delivery Bill-to Using SD_PARTNER_UPDATE

Hi everyone,
I have a requirement to update the outbound delivery partners, specifically Bill-to and Payer.
The customer system version is 4.6c, so the BAPI to update the delivery found in 4.7 onwards is out of the question for now.
I found a function module SD_PARTNER_UPDATE, however I am having difficulty in making it work, even with the COMMIT statement.
Does anyone have any experience in using the function module, and can you provide at least an idea on how to populate and properly use it?
Thanks in advance.

A better option would be to use a break point on this FM while creating a sales order. That way you will know how standard uses this FM.
Thanks,
Vikram.M

Similar Messages

  • Update Outbound Delivery in EDI Process - Urgent

    Hello experts,
    I have to update outbound delivery for picking & PGI in EDI.
    I recognized the standard BAPI - BAPI_OUTB_DELIVERY_CONFIRM_DEC for this process, but it doesn't confirm picking.
    I also recognized the IDOC - IDOC_INPUT_DELVRYwhich doesn't create partner function.
    So now I need to choose any one & enhance with the help of User exit. I found a user exit in IDOC for creating partner function but there is no user exit in BAPI for picking confirmation.
    Please suggest me which is the best to use an IDoc or create a custom BAPI for this scenario with pros & cons.
    Thanks in advance,
    Sangeetha K
    null

    Hi gurus,
    Please help me with the issue.
    Points rewarded........
    Sangeetha

  • Goods Receive for Outbound Delivery Without Reference using MIGO

    Dear Colleague ...
    We might need your insight on the case below related to Goods Receive of Outbound Delivery without Reference using MIGO:
    (1) In the current SAP Enjoy screen of MIGO, we are allowed to select the reference document (e.g. = PO, Material Document, Inbound Document, Outbound Document, etc.)
    (2) We did 3 (three) kind of test set: GR for Inbound Delivery, GR for Outbound Delivery with STO and GR for Outbound Delivery without reference.
    (3) The first 2 (two) cases work just find with MIGO.  We believe it is because the receiving plant is pretty much determined in the reference document, which is PO (case 1) or STO (case 3)
    (4) However, the last case came up with the error message "Goods receipt not possible for delivery 8000610236: error code 5".  We believe that this is the standard design of SAP, that the receiving plant is required and it is not defined explicitly in the delivery document.
    (5) Moreover, we also believe that that's the reason why SAP (via the Logistic Execution module) provide the Handling Unit and Shipment, which can be used to perform such receive function, which will imply the MM posting (goods issue and goods receive) IF there is stock transfer involved.
    Appreciate for any thoughts or input on the above.  Many thanks,
    Alvon Sibarani

    use transaction mb0a it will work for the scenario.

  • Updating Outbound Delivery with picking and delivery quantity.

    Hi,
    I have a scenario where in an idoc will come from external system(DELVRY05) and based on the data in the idoc I have to update the picking and delivery quantity for the outbound delivery created in SAP.The idoc has the outbound delivery number and the quantity which is sent from the legacy system.
    I do not want to do googs issue,just updatation.
    How can I update the outbound delivery?
    Please help me.Its needed urgently.
    Thanks,
    Sandeep.

    YOu can make use of the FM:
    WS_DELIVERY_UPDATE_2.
    see the sample code:
    Assume that it_500o has the Delivery Header details and it_5010 has item details
      LOOP AT it_5000.
        CLEAR lx_vbkok.
        CLEAR lv_vbeln.
        REFRESH lt_vbpok.
        REFRESH lt_prott.
        lx_vbkok-vbeln_vl = it_5000-order_number.
        lx_vbkok-vbtyp_vl = 'J'.
        lv_vbeln = it_5000-order_number+0(10).
        LOOP AT it_5010 WHERE order_number = it_5000-order_number.
          lt_vbpok-vbeln_vl = it_5010-order_number.
          lt_vbpok-posnr_vl = it_5010-order_line.
          READ TABLE lt_vbfa WITH KEY vbeln = lt_vbpok-vbeln_vl
                                      posnn = lt_vbpok-posnr_vl.
          IF sy-subrc = 0.
            lt_vbpok-vbeln = lt_vbfa-vbelv.
            lt_vbpok-posnn = lt_vbfa-posnv.
           lt_vbpok-vbtyp_n = 'J'.
          ENDIF.
          lt_vbpok-pikmg = it_5010-quantity. "Picking quantity
          APPEND lt_vbpok.
          CLEAR lt_vbpok.
        ENDLOOP.
    Update the Delivery
        CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
          EXPORTING
            vbkok_wa                           = lx_vbkok
      SYNCHRON                           = ' '
      NO_MESSAGES_UPDATE_1               = ' '
           commit                             = 'X'
            delivery                           = lv_vbeln
           update_picking                     = 'X'
      NICHT_SPERREN_1                    = ' '
      IF_CONFIRM_CENTRAL                 = ' '
      IF_WMPP                            = ' '
      IF_GET_DELIVERY_BUFFERED           = ' '
      IF_NO_GENERIC_SYSTEM_SERVICE       = ' '
           if_database_update_1               = '1'
      IF_NO_INIT_1                       = ' '
      IF_NO_READ_1                       = ' '
           if_error_messages_send             = 'X'
      IF_NO_BUFFER_REFRESH               = ' '
      IF_NO_MES_UPD_PACK                 = ' '
    IMPORTING
      EF_ERROR_ANY                       =
      EF_ERROR_IN_ITEM_DELETION          =
      EF_ERROR_IN_POD_UPDATE             =
      EF_ERROR_IN_INTERFACE              =
      EF_ERROR_IN_GOODS_ISSUE            =
      EF_ERROR_IN_FINAL_CHECK            =
         TABLES
           vbpok_tab                          = lt_vbpok
           prot                               = lt_prott
      VERKO_TAB                          =
      VERPO_TAB                          =
      VBSUPCON_TAB_1                     =
      IT_VERPO_SERNR                     =
      IT_PACKING                         =
      IT_PACKING_SERNR                   =
      IT_REPACK                          =
      IT_HANDLING_UNITS_1                =
      ET_CREATED_HUS                     =
      TVPOD_TAB                          =
    endloop.

  • Subcontracting flow: outbound delivery & billing status

    Hello,
    I have the following subcontracting flow:
    1) Create subcontracting purchase order
    2) Create outbound delivery
    3) Create and confirm transport order
    3) Goods receipt of subcontracting components from subcontractor (101)
    3) Register invoice document for subcontracting provider
    However I have the following problems:
    - The status of the inbound delivery remains "ongoing"
    - In VF04 (billing due list) the system considers that the "client" (subcontracting provider) has not been invoiced. The billing type is F2 and it is not possible to invoice the delivery type NB (which seems correct).
    Can anyone advise me about these issues (I'm not sure if they are related).
    Thank you very much,
    Annabelle R.

    The problem was that in the customizing the item category was relevant for billing, although in the subcontracting flow the subcontractor should not be invoiced.
    So I updated SPRO: Sales and Distribution > Sales > Sales documents > Sales document item > Define Item Categories
    with Delivery relevance: "None" instead of "A" (Delivery-related item document)
    Now the subcontracting delivery does not appear in VF04 any more.

  • Update Outbound Delivery

    Hi,
      Which BAPI/FM can update the outbound delivery??
    Regards,
    Kit

    Hi Kit..
    I think WS_DELIVERY_UPDATE is available in your system ..just try this
    The Documentation for this FM is(This is the Translation for German documentation )
    Changes of supplies With this functional module supply data can be changed. The component can accomplish updates from the commissioning over Kommissionierbelegfluesse (quantities & weights), if the parameter sits UPDATE_PICKING and quantities, weight and volume updates without Kommissionierfluesse, if UPDATE_PICKING on SPACE sits. In this case there is only one a mark feedback to each position. In VBPOK and VBKOK there is control parameter for this, which changes are accomplished. Kommimengenaenderungen are always accomplished in basis quantity unit, changes of delivery volume always in sales unit of the supply position. If not over Kommissionierrueckmeldung one works, all information must be given to a supply position with the call, subsets and weight feedbacks are not possible. In the case of loads several sentences with different loads can be acknowledged to a VBPOK POSNR_VL. The fields in the Include VBPOKKOMMI within the structure VBPOK are relevant only for the case of the Kommissionierrueckmeldung with use of Kommissionierbelegfluessen (e.g. WM Transportauftragsrueckmeldung). The Aufrufer must evaluate both the minutes table PROT and intercept the EXCEPTIONS ERROR_MESSAHE and OTHERS.
    And If you still want to know how to use this FM ,,Click where used list for this FM and see how it is being used ,and try to do the same as per your requirement
    Regards
    Rk
    Edited by: Rk Pasupuleti on Feb 13, 2008 8:45 AM

  • Updating of delivery dates failed using BAPI_SALESORDER_CREATEFROMDAT2

    Hi,
    I am trying to create a new sales order using <i>BAPI_SALESORDER_CREATEFROMDAT2</i>.
    However, when i enter the following fields (<i>GI_DATE, LOAD_DATE, MS_DATE, TP_DATE</i>) into table structure <i>ORDER_SCHEDULES_IN</i>, the input values are not reflected in the new sales order instead all values are defaulted to the <i>REQ_DATE (first date)</i> field value.
    Does anyone has similar problem? Would appreciate some advise. Thanks.

    Hi Maggie,
    I don't know much about BAPIs myself but I cmae across the following that you may or may not be aware of:
    <b>"Method:
    SalesOrder.CreateFromDat2
    Sales order: Create Sales Order
    Functionality
    You can use this method to create sales orders.
    You must enter at least sales order header data (via ORDER_HEADER_IN structure) and partner data (via the ORDER_PARTNERS table) as input parameters.
    Enter the item data via the ORDER_ITEMS_IN table. You can allocate item numbers manually, by filling in the relevant fields, or the system does it, according to the settings for Customizing, by leaving the relevant fields blank.
    If you have configurable items, you must enter the configuration data in the ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF and ORDER_CFGS_VALUE tables.
    Credit cards can be transferred via the BAPICCARD structure, on the one hand, data for card identification, on the other, data for a transaction which has taken place in an external system.
    Once you have created the sales order successfully, you will receive the document number (SALESDOCUMENT field). Any errors that may occur will be announced via the RETURN parameter.
    If no sales area has been created in the sales order header, then the system creates the sales area from the sold-to party or ship-to party, who has been entered in the partner table. If a clear sales area cannot be created, you will receive a system message, and the sales order will not be created.
    Notes
    Mandatory entries:
    ORDER_HEADER_IN : DOC_TYPE Sales document type
    SALES_ORG Sales organization
    DISTR_CHAN Distribution channel
    DIVISION Division
    ORDER_PARTNERS..: PARTN_ROLE Partner role, SP sold-to party
    PARTN_NUMB Customer number
    ORDER_ITEMS_IN..: MATERIAL Material number
    Ship-to party:
    If no ship-to party is entered, use the following: Ship-to party =
    sold-to party.
    Commit control:
    The BAPI does not have a database commit. This means that the relevant application must leave the commit, in order that can be carried out on on the database. The BAPI BAPI_TRANSACTION_COMMIT is available for this.
    German key words:
    The following key words must be entered in German, independantly of
    the logon language:
    DOC_TYPE Sales document type, for example: TA for standard order
    PARTN_ROLE Partner role, for example: WE for ship-to party
    Further Information
    You can find further information in the OSS. The note 93091 contains general information on the BAPIs in SD."</b>
    By reading that all I can suggest, in additon to what Robert has suggested is that perhaps you need to use BAPI..COMMIT? Like I said I'm not really an expert on this but I hope I've helped.
    Hafeez

  • Locked outbound delivery

    hello
    i am using transaction vl09 in order to delete an outbound delivery.
    i am using userexit MV50AFZ1 in the save form i am trying to do a batch input which update a field in transaction vl02n.
    i cant do it because the delivery is locked.
    is there any way to do this?

    If you're working on 4.7 you might try
    BAPI BAPI_OUTB_DELIVERY_CHANGE in place of BDC.
    Otherwise try FM WS_DELIVERY_UPDATE.
    BDC will not allow you to change it if there is a lock and BAPI does work sometime ( If it does not require an exclusive lock ).
    I am telling you this from my experience so it is worth trying for.
    Thanks,
    Ram

  • BAPI or FM for VL10F (outbound delivery)

    Hai All,
    Can Anyone say how to create outbound delivery (VL10F) By  Using FM or BAPI.
    Explain With Example.
    Pls Most Urgent.
    Regards,
    Ekadevi.S

    Hi,
       These are the existing BAPI's for Outbound Deliveries.
    BAPI_OUTB_DELIVERY_CHANGE                                                                           
    BAPI_OUTB_DELIVERY_CONFIRM_DEC BAPI for Outbound Delivery Confirmation from a Decentralized System  
    BAPI_OUTB_DELIVERY_CREATENOREF Generates Delivery Without Reference                                 
    BAPI_OUTB_DELIVERY_CREATE_SLS  Generates Delivery for Customer Order                                
    BAPI_OUTB_DELIVERY_CREATE_STO  Generates Delivery for Stock Transport Order                         
    BAPI_OUTB_DELIVERY_SAVEREPLICA BAPI Function Module for Replication of Outbound Deliveries          
    BAPI_OUTB_DELIVERY_SPLIT_DEC   BAPI for Subsequent Outbound-Delivery Split from a Decentralized Syste
    Regards,
    Sandeep

  • Outbound Delivery Porblem

    Hello Experts,
    I have created outbound delivery in ERP using transaction vl01no.
    I am not able to get that outbound delivery in corresponding EWM system.
    Please let me know whether it is configaration problem or integration problem.
    Thanks in advance.
    Best Regards,
    zubera

    Check whether Transportation Zone is maintained for that customer or not.
    Check Loading point has been entered or not in Delivery document.
    Best regards
    Raghu Ram

  • Create T.O using outbound delivery. Need to update the storage type.

    Hi All,
    I am using L_TO_CREATE_DN to create a T.O using an outbound delivery. It creates the T.O. But I need to decide at the time of creating the T.O the storage type to be used.
    I tried using the F.M L_TO_CREATE_MULTIPLE but that does not update the Delivery flow.
    I have already gone over the discussions on forums for L_TO_CREATE_DN but none seem to answer the question of updating the line items of the transfer order yet.
    I was hoping someone could help me out with this.
    Thanks,
    Arup

    Hey,
    Well I do not need to be worried about the storage bins as that is a selection based on a FIFO strategy. It is returned by the system.
    I need to worry about the storage type.
    So here is the complete requirement.
    I have to create TO's for LM05 and LM45. The LM45 To's have to be associate with storage units and this association occurs only if I choose VWT as the storage type..
    When I choose VWO as the storage type then the items are not associated with a Source Storage Unit.  This is because the storage type VWO does not have SU management active whereas VWT has SU management active.
    So, what I am primarily concerned about is the way I could enter the storage type information dynamically.
    Arup

  • Change Bill-of-lading&package no in Outbound Delivery using BAPI or any FM

    Dear ABAP Gurus,
    How to change Bill of Lading(BOLNR) and Number of Packages(ANZPK) in Outbound Delivery using BAPI or some other Function MOdule.( BDC is not required for this).
    Regards,
    Rajesh

    MOVE 'BAPE_VBAP' TO lwa_extension-structure.
          lwa_bape_vbap-vbeln = lwa_final-vbeln.
          lwa_bape_vbap-posnr = lv_posnr.
          MOVE lwa_final-yyslotid TO  lwa_bape_vbap-yy_slotid.
          MOVE lwa_bape_vbap TO lwa_extension-valuepart1.
          APPEND  lwa_extension TO  lt_extension.
          CLEAR  lwa_extension.

  • Unable to update Qty for outbound Delivery using BAPI_OUTB_DELIVERY_CHANGE

    Hi Experts,
    I am unable to update the Outbound Delivery quantity using FM BAPI_OUTB_DELIVERY_CHANGE. I am getting error in BAPI Return "Error in document &1 item &2 (quantity consistency check)".
    Here is my sample program to update Quantity
    *& Report  ZTEST_BAPI                                                  *
    REPORT  ZTEST_BAPI                              .
    tables : lips.
    parameters : v_vbeln like likp-vbeln,
                 v_posnr like lips-posnr.
    data : it_item type BAPIOBDLVITEMCHG occurs 0,
           wa_item type BAPIOBDLVITEMCHG,
           it_return type BAPIRET2 occurs 0,
           i_head type BAPIOBDLVHDRCTRLCHG,
           i_hdata type BAPIOBDLVHDRCHG,
           wa_conf type BAPIOBDLVITEMCTRLCHG,
           it_conf type BAPIOBDLVITEMCTRLCHG occurs 0.
    start-of-selection.
    select single * from lips into lips where
                      vbeln = v_vbeln
                      and posnr = v_posnr.
    if sy-subrc eq 0.
    move lips-vbeln to I_hdata-DELIV_NUMB.
    *append wa_hdata to i_hdata.
    move lips-vbeln to wa_item-DELIV_NUMB.
    move lips-posnr to wa_item-DELIV_ITEM.
    move lips-matnr to wa_item-MATERIAL.
    move lips-charg to wa_item-BATCH.
    lips-LFIMG = lips-LFIMG + 20.
    move  lips-LFIMG to wa_item-DLV_QTY.
    move  lips-LGMNG to wa_item-DLV_QTY_IMUNIT.
    move  lips-VRKME TO wa_item-SALES_UNIT.
    MOVE  'KGM'      TO WA_ITEM-SALES_UNIT_ISO.
    MOVE LIPS-MEINS  TO WA_ITEM-BASE_UOM.
    MOVE 'KGM'  TO WA_ITEM-BASE_UOM_ISO.
    append wa_item to it_item.
    move lips-vbeln to wa_conf-DELIV_NUMB.
    move lips-posnr to wa_conf-DELIV_ITEM.
    move 'X' to wa_conf-CHG_DELQTY.
    append wa_conf to it_conf.
    endif.
    CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
      EXPORTING
        HEADER_DATA               = i_hdata
        HEADER_CONTROL            = i_head
        DELIVERY                  = v_vbeln
      TECHN_CONTROL             =
      TABLES
      HEADER_PARTNER            =
      HEADER_PARTNER_ADDR       =
      HEADER_DEADLINES          =
       ITEM_DATA                 = it_item
       ITEM_CONTROL              = it_conf
      ITEM_SERIAL_NO            =
      SUPPLIER_CONS_DATA        =
      EXTENSION1                =
      EXTENSION2                =
        RETURN                    = it_return
      TOKENREFERENCE            =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    I need to update Qty to the outbound delivery for an given item.
    Thanks for your quick response.
    With Regards,
    Bala Sankar
    9900433488

    Hi Bala,
    make sure you are setting...
    itemdata-dlv_qty
    itemdata-dlv_qty_imunit
    itemdata-fact_unit_nom     e.g = 1.
    itemdata-fact_unit_denom  e.g = 1.
    Rgds
    Glenn

  • Delivery/billing update special ledger

    I crate a sales order, in outbound delivery, the accounting document and special ledger document is generated, but distribution chanel in the special ledger document is empty( can view from GD13), activity is RMWL
    but in billing phase, the accounting document, PA document, special ledger document is generated. and the distribution channel is
    listed in the special ledger document, I think it is from sales order,
    in GCF2, the sender is ACHID, field is VTWEG, our receiver field is RZZVTWEG.
    but ACHID is structure, I can't see the details. so why distribution channel is not updated in the special ledger document during delivery phase? thanks

    Hi,
    Unfortunately, a delivery document has mainly shippment information and not sales info. During post delivery, account interface from SD(LE) -> AC can not have the information of sales document.
    But many of customer want sales characteristics, such as distribution channel, sales org etc,  in COGS within special ledger,. Then, I always use customer exit (field movement exit) to read sales order through delivery document and substitute VTWEG with a value from sales order header (VBAK) or sales order items (VBAP).
    - In structure ACCIT_GLX, you can use VBEL2 / POSN2 as sales order number/items.
    You can set up field movement exit with the following steps.
    1. T_cd:SE38
    Create field movement exit report program: ZGIVSxxx copied from standard prog. RGIVS000.
    And you edit "FORM e01_mvc" for field: RZZVTWEG. You may need ABAPPER's help for this.
    2. T_cd: GCX2
    You set user exit program: ZGIVSxxx within application area GIMV, which you create in 1.
    3. T_cd: GCF2
       Put user exit number (like U01) within field RZZVTWEG.
    Hope this will help
    best regards, Takashi

  • Automatic update of HU data in Outbound delivery

    Hello all,
    I would like to create an ABAP program to automatically update the HU data in an outbound delivery. The purpose is to have an excel spreadsheet with the HUs per delivery and download them into the outbound delivery without the need to use manual actions.
    Does anybody know of a FUNCTION, BAPI, IDOC or anything else that may assist me in this task ?
    Thanks,
    Isaac

    Go To transaction BAPI, look at Logistics General -> Handling Unit Management -> Handling Unit
    If you want to create a delivery and know the materials and HUs just populate the delivery IDoc and process it.
    If you want to pack material by uploading this spreadsheet then look at LM* transactions as that is quickest way to find what you want.
    Mike

Maybe you are looking for

  • Vendor invoice Management (VIM)

    I am trying to learn VIM, can someone please explain briefly what is Vendor invoice managment (VIM) what are the Tcodes and the process flow. Thanks in advance.

  • Complex types arrays in webservices using custom codec

    In WLS8.1, I use the arrays serializing classes generated by the "servicegen" task, for the arrays of a complex type, and I register to the TypeMapping registry the complex type specifying as serializer/deserializer the custom codec that I developed.

  • Why IE5 could not find applet class but Netscape can ?

    Hi, I have an applet which is running fine on Netscripts6, But not on IE5. <APPLET codebase="http://10.1.1.1/demo/" code="ClientApplet.class" HEIGHT=300 WIDTH=300> <PARAM NAME="relay" VALUE="1"> I have all class files under demo directory(the same di

  • A definitive answer for Creative live with no Planned Driv

    It?s all what we want to have an answer... Because no planned drivers sounds like we will never have our sb cards working in vista. We believed that creative was the number ... i recomended all their products to my friends.... and now you forced all

  • Lack of performance using portal30.wwctx_api.get_user to limitrecords in portlets

    Hi, I have a portal page using 5 reports as portlets each of them use "where personid = portal30.wwctx_api.get_user" to limit the amout of data retrieve for each user. I have 250 users registred in login server whose can use this page. The 5 portlets