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.

Similar Messages

  • Error while doing PGI for Outbound delivery using BAPI BAPI_GOODSMVT_CREATE

    Hi All,
    I am getting an below error while doing PGI for outbound delivery using the BAPI BAPI BAPI_GOODSMVT_CREATE:
    Goods movement not possible with mvmt type 601
    Can anyone suggest me what will be the solution for it?
    Regards,
    Raghuraman.k

    I tried with the above BAPI but it is not working.
    In my case a delivery has one line item with batch split and other line item without batch split.
    Below is my code :
    DATA : gwa_header_data TYPE bapiobdlvhdrcon,
           gwa_header_ctrl TYPE bapiobdlvhdrctrlcon,
           lv_delivery     TYPE bapiobdlvhdrcon-deliv_numb,
           git_item_data TYPE STANDARD TABLE OF bapiobdlvitemcon,
           gwa_item_data TYPE bapiobdlvitemcon,
           git_item_ctrl TYPE STANDARD TABLE OF bapiobdlvitemctrlcon,
           gwa_item_ctrl TYPE bapiobdlvitemctrlcon,
           git_return    TYPE STANDARD TABLE OF bapiret2,
           gwa_return    TYPE bapiret2.
    *Header data
    gwa_header_data-deliv_numb = '0808000002'.
    *Header Control data
    gwa_header_ctrl-deliv_numb = '0808000002'.
    gwa_header_ctrl-post_gi_flg = 'X'.
    *Delivery Number
    lv_delivery = '0808000002'.
    *Item data and its corresponding control data
    gwa_item_data-deliv_numb      = '0808000002'.
    gwa_item_data-deliv_item      = '900002'.
    gwa_item_data-dlv_qty         = 4.
    gwa_item_data-dlv_qty_imunit  = 4.
    gwa_item_data-fact_unit_nom   = 1.
    gwa_item_data-fact_unit_denom = 1.
    APPEND gwa_item_data TO git_item_data.
    gwa_item_ctrl-deliv_numb      = '0808000002'.
    gwa_item_ctrl-deliv_item      = '900002'.
    gwa_item_ctrl-chg_delqty      = 'X'.
    APPEND gwa_item_ctrl TO git_item_ctrl.
    gwa_item_data-deliv_numb      = '0808000002'.
    gwa_item_data-deliv_item      = '900003'.
    gwa_item_data-dlv_qty         = 6.
    gwa_item_data-dlv_qty_imunit  = 6.
    gwa_item_data-fact_unit_nom   = 1.
    gwa_item_data-fact_unit_denom = 1.
    APPEND gwa_item_data TO git_item_data.
    gwa_item_ctrl-deliv_numb      = '0808000002'.
    gwa_item_ctrl-deliv_item      = '900003'.
    gwa_item_ctrl-chg_delqty      = 'X'.
    APPEND gwa_item_ctrl TO git_item_ctrl.
    gwa_item_data-deliv_numb      = '0808000002'.
    gwa_item_data-deliv_item      = '000020'.
    gwa_item_data-dlv_qty         = 10.
    gwa_item_data-dlv_qty_imunit  = 10.
    gwa_item_data-fact_unit_nom   = 1.
    gwa_item_data-fact_unit_denom = 1.
    APPEND gwa_item_data TO git_item_data.
    gwa_item_ctrl-deliv_numb      = '0808000002'.
    gwa_item_ctrl-deliv_item      = '000020'.
    gwa_item_ctrl-chg_delqty      = 'X'.
    APPEND gwa_item_ctrl TO git_item_ctrl.
    BREAK-POINT.
    CALL FUNCTION 'BAPI_OUTB_DELIVERY_CONFIRM_DEC'
      EXPORTING
        header_data    = gwa_header_data
        header_control = gwa_header_ctrl
        delivery       = lv_delivery
      TABLES
        item_data      = git_item_data
        item_control   = git_item_ctrl
        return         = git_return.
    BREAK-POINT.
    IF git_return IS INITIAL.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    ENDIF.

  • Creating Outbound Delivery using BAPI

    Hi All,
    Can anyone advice is there any way to create Oubound Delivery using BAPI.
    If you have come accross with such developments or idea, can you please share your idea?.
    Thanks,
    Muruganand.K

    Hi,
    Use BAPI_DELIVERYPROCESSING_EXEC - Create Delivery from Delivery Due List
    BAPI_OUTB_DELIVERY_CONFIRM_DEC  BAPI for Outbound Delivery Confirmation from a Decentralized System
    BAPI_OUTB_DELIVERY_SPLIT_DEC   BAPI for Subsequent Outbound-Delivery Split from a Decentralized System
    BAPI_OUTB_DELIVERY_CHANGE
    BAPI_OUTB_DELIVERY_CREATENOREF
    BAPI_OUTB_DELIVERY_CREATE_SLS
    BAPI_OUTB_DELIVERY_CREATE_STO
    BAPI_OUTB_DELIVERY_SAVEREPLICA
    Also check
    BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N
    BAPI / FM for Create Outbound Delivery for PO
    Outbound  Delivery User Exits
    EXIT_SAPLV50I_003              User Exit BAPI Outbound Delivery Replication
    EXIT_SAPLV50I_004              User Exit BAPI Outbound Delivery Confirmation
    EXIT_SAPLV50K_007              User Exit BAPI Outbound Delivery Replication (Outbound from Sender System)
    Function module: OIJ_EL_DOCG_CREATE_DELIVERY - Create outbound delivery

  • How to change the pick quantity in outbound delivery using bapi

    Hi,
    I am using BAPI_OUTB_DELIVERY_CHANGE for changing the outbound delivery picking quantity but there is no field to change the pick quantity.
    plas advice any BAPI to change pick quantity
    Regards,
    Krishna

    Krishna....have a look in the below threads where there was a similar requirement..
    error while using BAPI_OUTB_DELIVERY_CHANGE
    change outbound delivery

  • Is "Bill Of Lading" is for Shipment or Delivery ?

    Can any one tell me
    Is "Bill Of Lading" is for Shipment or Delivery ?

    u have a field called bolnr in likp ...
    the concept is a bill of lading is a number/description
    under which a delivery can be shipped
    say there are 10 deliveries with bill of lading AXWE12345
    now under this bill of lading number (AXWE12345 ) we can assign the all the 10 deliveries to be shipped ..
    generally a Bill of lading is maintained for reference and it is used in the ship label ..
    each ship label contains bill of lading number with the customer po reference number ship to party , box id number ,, dest code etc ,,
    now in our example we have taken 10 deliveries under a single bill of lading so now all the ship labels will carry the same bill of lading number ,,
    this stuff is actually done before the PGI.
    hope this helps ,
    Regards,
    Vijay.

  • Issue while creating Outbound Delivery using Standard BAPI

    Hi all,
    I am trying to create an outbound delivery for a Sales order using the Standard BAPI - BAPI_OUTB_DELIVERY_CREATE_SLS.
    After giving the valid inputs for Sales order no and doc no, am getting an error as "No instance of object type OutboundDelivery has been created. External reference:" But when trying to create manually there is no problem. Please suggest what may be the issue and how to correct it?
    Regards,
    Vimala P

    Hi Vimala,
    I am trying to create outbound delivery using BAPI_OUTB_DELIVERY_CREATE_SLS & BAPI_DELIVERYPROCESSING_EXEC. But no success. Getting "No instance of object type outbound delivery has been created" in return.
    1) Delivery Type
    2) Delivery selection date
    Needs to be passed in import parameters.
    Could you please tell me what are all the parameters to be passed under tables tab in RV_DELIVERY_CREATE?
    Thanks in Advance..
    Regards,
    Rajasekar .M

  • Create outbound delivery using VL10B for Stock Tranfer order

    Hi ALL gurus,
    I had created STO stock transfer order (UB order type ) and release the STO using ME21N and ME29N
    When try create a outbound delivery using VL10B, the STO not show, i remove all check and blank in all seclection. The STO still not show.
    Anyone can help ?? where going wrong ???
    Rejoice

    Hi
    There are two processes for STO , that is with shipping & without shipping.
    For Without Shipping there is no config required.
    For STO with shipping You need to configure in
    SPRO-> IMG-> Materials Management-> Purchasing-> Purchase Order-> Set up Stock Transport Order
    Please go through the link on all types fo STO's
    http://help.sap.com/saphelp_erp2004/helpdata/EN/4d/2b90dc43ad11d189410000e829fbbd/content.htm
    Thanks & Regards
    Kishore
    Edited by: Kishore Kumar Chiluka on Jul 2, 2008 8:25 AM

  • Adding new lines on outbound delivery using decentral warehouse

    Hi
    I have a decentralized warehouse that reports back to SAP for our outbound deliveries.
    When the systems responds it can add an extra line, if a item can not be delivered.  but it is possible to add an similar item, but with a different item number.
    Can I add new line items to a delivery using SHP_OBDLV_CHANGE or any other idoc, or do I need to use a RFC/BAPI.
    Regards
    Daniel

    FM or BAPI to add line item to SD Delivery

  • Creation of outbound idoc using BAPI

    Hi,
    How can I create outbound IDOC using BAPI. If I go to BD64 and add the message type PREQCR,it gives the message that 'add this message type using BAPI'.I have added with the option ADD BABI.After that I dont know how to trigger?.Please give me the procedure how can i create outbound idoc using BAPI.
    Thanks,
    Ravi

    You will have to do the MESSAGE OUTPUT DETERMINATION to trigger the IDOC. Once you have done the config, internally it uses the method that you have configured.
    Look at NACE transaction to do the config, for message output determination of a purchase order.
    You can even do it in the config --
    Go to SPRO transaction. SAP Customizing Implementation Guide --> Materials Management --> Purchasing --> Messages -->
    regards,
    Ravi
    Message was edited by: Ravikumar Allampallam

  • Updating bill of lading on outbound delivery using IDoc/BAPI?

    Hi,
    We're looking to update our existing outbound deliveries with an entry in the bill of lading field. This is the only piece of data that needs changing in the delivery.
    It seems that using IDocs message types like SHPCON/DESADV you cannot just update some header level fields. The BAPI_OUTB_DELIVERY_CHANGE unfortunately does not include bill of lading as one its changeable header fields.
    Can anyone recommend a way how to still achieve this?
    Thanks a lot,
    Ronald

    Hm, it looks like that segment should've worked...
    WHEN 'E1EDT13'.
    S_DT13 = IDOC_DATA-SDATA.
    CASE S_DT13-QUALF.
    WHEN '006'.
    <...>
    MV S_DT13-ISDD S_KOKO-WADAT_IST.
    Did you put the date in the right field (ISDD) and did you try debugging this?

  • BAPI for billing doc. creation with ref to outbound delivery

    Hi,
    I'm looking for BAPI to create pro forma invoice billing doc with red. to outbound delivery.
    I have tried using BAPI_BILLINGDOC_CREATEMULTIPLE entering the outbound delivery as ref. document and all other required data. Pro forma is create but pricing is not copied since the bapi considers the delivery number as external doc.
    It seems that BAPI_BILLINGDOC_CREATEMULTIPLE is designated to billing doc. with ref to sales orders
    Would appreciate any suggestions,
    Assaf

    Hi,
    In Function Module initial screen, there is no input parameter. Directly choose execute.
    system will give the create billing document screen enter delivery document number and execute.
    Why are using BAPI  to create billing document with reference to delivery document.
    you can create background job for billing through VF06.
    Regards,
    Chandrasekhar.S

  • HU change on delivery using BAPI

    Hi,
    I am trying to change Outbound Delivery with the packing details by providing HU details(external number assignement).
    BAPI "BAPI_OUT_DELIVERY_CHANGE" could not do the change for the HUs. BAPI "BAPI_OUTB_DELIVERY_CONFIRM_DEC" is not right, as it delete and recreate HUs. We do not want that HUs are deleted!
    Is there any BAPI to do changes on Outbound delivery (also HUs) - changes of item quantity, HUs quantity, delete HUs from delivery or add HUs to delivery?
    Could you provide some help in this regard.
    Thanks Matjaz

    Hi Anand,
    In the BAPI 'BAPI_OUTB_DELIVERY_CHANGE', import parameter HEADER_DATA ( Associated type is BAPIOBDLVHDRCHG ), there is a field called DLV_BLOCK.
    You can get the possible values for this field in table 'TVLS'.
    Please find the example possible values.
    01     Credit limit
    02     Political reasons
    03     Bottleneck material
    04     Export papers missng
    05     Check free of ch.dlv
    06     No printing
    07     Change in quantity
    08     Kanban Delivery
    09     JIT delivery (PDS)
    Regards,
    Vijay

  • Unable to create outbound delivery using transaction VL10B

    Hello,
    When I am trying to create an outbound delivery from refrencing a Purchase Order using transaction VL10B,
    the item is not getting selected (In the VL10B , I entered the PO number and executed but in the next screen no items are displayed ).
    Please let me know the reasons for this.
    Please Note : I tried to change the PO delivery date ,but still the above problem persist.
    Thanks & Regards,
    Sumanta Deb

    Hello Sumanta
    Please check at item level in PO under 'delivery schedule' tab, what is the material staging date. If this date is in the future, VL10B will not show any line item in due list. VL10B will only show due list from today and backdated deliveries.
    Let me know if u have any more issue related to this
    Amol

  • Print HU label from Outbound delivery using output determination

    Hi,
      We have a business requirement to print HU labels from outbound delivery. The steps followed are
    1) User executes VL02N
    2) User clicks on packing
    3) Material is entered to pack. HU is automatically generated.
    4) After saving the delivery, output message is triggered.
    Output determination is as follows
    1) An Z output type is created.
    2) Form entry and smartform name is assigned to this output type
    Issue:
    The issue is when the output message is triggered and the code in the form entry is executed, the handling unit (from nast) is not yet committed in the database. Since it is not updated in the database table, we cannot get any handling unit data to be printed.
    Any inputs on how to print HU labels using output determination from outbound delivery is appreciated.
    Thanks,
    Sandeep

    Hi Surya,
         Thanks for the reply. But, my question was how to print labels from VL02N when i pack a material on this delivery.
    Regards,
    Sandeep

  • Is there a way to change shipment block reason on delivery using BAPI ?

    Hi Experts,
    Is there a way to change the shipment block reason for a delivery using any BAPI or a function module ?
    In VL02N, the shipment block reason is present in Header--> Shipment tab under Shipment frame.
    I tried using BAPI_OUTB_DELIVERY_CHANGE but did not find any relevant parameter.
    Please suggest..
    Thanks,
    Anand

    Hi Anand,
    In the BAPI 'BAPI_OUTB_DELIVERY_CHANGE', import parameter HEADER_DATA ( Associated type is BAPIOBDLVHDRCHG ), there is a field called DLV_BLOCK.
    You can get the possible values for this field in table 'TVLS'.
    Please find the example possible values.
    01     Credit limit
    02     Political reasons
    03     Bottleneck material
    04     Export papers missng
    05     Check free of ch.dlv
    06     No printing
    07     Change in quantity
    08     Kanban Delivery
    09     JIT delivery (PDS)
    Regards,
    Vijay

Maybe you are looking for

  • Can not change or delete Calendar Entries in Wiki

    Hi all - thx for listening :-) Situation: Server OS X 10.6.8 Group Wiki with Calendar running All users belong to the same group All users can log in via Safari or Firefox Wiki calendar running, worked fine over a long period Several "calendars" (I t

  • Insert Or Update Task Using Web Service

    I am facing difficulty in insertion of task against Account object using Oracle web service. Whenever I tried to insert new record in List of Task field of Account and update Account, I get the exception "No user key can be used for the Integration C

  • Can I scan to PDF using Adobe Reader X?

    I want Reader to manage my scans.  Can I scan to PDF using Reader X, or is that only a feature in Acrobat.  If so, how can I use it as the default manager for my scanner.  I am using a Fujitsu FI-6140. 

  • Are there any free safe anti-virus downloads

    are there any free safe anti-virus downloads compatible w/windows 2000

  • Purpose of DataRelation

    I don't understand about the purpose of DataRelation object in ADO.NET. For example, if "customer" table and "order" table of the database has a relationship by primary key and foreign key already, why the DataRelation is needed again? Can anybody ex