Assign delivery to shipment

I need to assign the delivery to shipment for transaction VT02N. I'm using the  function module "SD_DELIVERY_ASSIGN_TO_SHIPMENT" but it is not updating the data.
I have read the functional module documentation and tried it in the same manner.
Any one who has already tried it can help me by providing the code or data to be passed in the function module.
Please suggest me, if there are any other function module or BAPI that can be used for assigning delivery to the shipment.
Thanks in advance

Hi Robin,
hope this thread will help u Re: Shipment Creation - BAPI
Cheers,
Pravin s

Similar Messages

  • Automatically  assign delivery while creating shipment in VT01n

    Hi All,
    When i go to VT01N and create shipment . There i can add and assign delivery by pressing "+Delivery" button .
    Now my requirement is that as soon as I press this button then Delivery should get assigned automatically so that i do not have to assign it manually later.
    Do i need to do some configuration in SPRO for achieving the same.
    Thanks,
    Abhishek

    In my case for particular "Shipment type" delivery is
        getting assigned automatically in VT01N
    Interesting !!!!   As already stated, to my knowledge, through standard, it is not possible but however, please update here as to how it is getting updated automatically after checking in debug mode.
    G. Lakshmipathi

  • How to create a new Handling unit assigned to a Shipment?

    Hi,
    has anyone an experience how to create a new HU and assign it to a shipment (object type VEKP-VPOBJ = '04')?
    I need to create it via SAPConsole transaction. Originally I intended to use LM19 to create an unassigned HU and to assign it further on via some BAPI. But I could not find any suitable BAPI for the assignment. Standard transaction LM24, allows only to create a HU with an assignement to a delivery (outbound/inbound).
    Thank you
    Martin

    If you want to use function modules to accomplish this, here is 1 way.
    BAPI_HU_CREATE
    BAPI_TRANSACTION_COMMIT
    BAPI_HU_CHANGE_HEADER
    HU_POST
       lw_hproposal-hu_exid         = i_exidv.  "Ext HU# Optional
       lw_hproposal-hu_status_init = 'A'.          "Planned. -
       lw_hproposal-pack_mat   = i_pack_mat.       "Packaging Material
    *  This will create an UNASSIGNED HU object type 12.
       CALL FUNCTION 'BAPI_HU_CREATE'
         EXPORTING
           headerproposal = lw_hproposal
         IMPORTING
           huheader       = lw_huheader
           hukey          = lv_hukey
         TABLES
           itemsproposal  = li_iproposal
           return         = li_return.
    *  I could not assign to a shipment unless the commit was done.
    IF lv_hukey IS NOT INITIAL.
         CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' 
           EXPORTING
             wait   = 'X'
           IMPORTING
             return = lw_return.
         IF sy-subrc NE 0.
           APPEND lw_return TO et_return.
         ENDIF.
    *    Assign to a Shipment
         lw_huheader-pack_mat_object  = i_object.               "04-HU Type for Shipment
         lw_huheader-pack_mat_obj_key = i_obj_key.           "Shipment #   
         lw_huheader-dc_custom_mat    = i_dc_custom_mat."Sets the Dist Channel
         CALL FUNCTION 'BAPI_HU_CHANGE_HEADER'
           EXPORTING
             hukey     = lv_hukey
             huchanged = lw_huheader
           IMPORTING
             huheader  = e_huheader
           TABLES
             return    = li_return.
         e_hukey       = lv_hukey.
    *It is still not attached to the shipment until HU_POST is done.
      LS_OBJECT-OBJECT = P_OBJTYP.    "04
       LS_OBJECT-OBJKEY = P_OBJKEY.   "Shipment Number.
    CALL FUNCTION 'HU_POST'
      EXPORTING
        IF_SYNCHRON          = ' '
        IF_COMMIT            = 'X'
        IS_OBJECT            = LS_OBJECT
      IMPORTING
        ET_MESSAGES          = LT_MESSAGES

  • Subcontract process PO via delivery via shipment

    Hi,
    Can anyone let me know; issue the material to Subcontract Vendor PO through delivery via shipment?
    Present Scenario is,
    Create the subcontracting PO (PO with Item Category L)
    Issue the material with reference PO through MB1B transport positing using Mov.type 541.
    Goods receipt with reference PO by subcontractor MIGO-Good Receipt and using Mov.type-101
    MIRO to account for vendor's invoice for payment
    Create New separate PO for Transportation of difference Vendor
    Do the service entry through ML81N
    MIRO to account for Transporter vendor's invoice for payment
    Is it possible to Sub contract PO through issue the material via Delivery via shipment?
    Please advice.
    Regards,
    Devendra

    It is possible to provide the component to the vendor for existing purchase order through a delivery and shipment.
    See below SAP documentation: http://help.sap.com/erp2005_ehp_07/helpdata/en/4d/2b906243ad11d189410000e829fbbd/content.htm
    From the SC Stock Monitoring for Vendor list, you can also create a delivery via Shipping. The advantage of this procedure is that you have shipping documents and delivery notes for the shipment of the materials to be provided to the subcontractor
    To create a delivery, the following data has to be maintained in the system:
    the plant must be assigned a sales organization, a distribution channel, and a division. You can define this in Customizing for Purchasing, in the step Set Up Stock Transport Order.
    A delivery type has to be defined for the plant from which the items are to be delivered. You can define this in Customizing for Purchasing, in the step Set Up Subcontract Order.
    If you want to reference a reservation when you create a delivery, you also have to set the Predecessor necessary indicator to L (Provision to subcontractor necessary) when defining the delivery type. This means that the requirements generated by the reservations can be correctly offset against the deliveries created. You can define this in Customizing for Shipping, in the step Define Delivery Types.
    The vendor for the stock with subcontractor must be entered as the customer in the organizational units in the delivering plant, such as sales organization, distribution channel, and division.
    The material to be provided has to be entered for the organizational units in the delivering plant, such as sales organization, distribution channel, and division.
    The combination of shipping condition (from the subcontractor’s customer master record), loading group (from the material master record for the components to be provided), and the plant have to be assigned to a shipping point. You can define this in Customizing for Shipping, in the step Assign Shipping Points.
    To create a delivery, choose Edit → Create delivery. A dialog box appears, in which you can enter the data required to post the delivery. The system posts the delivery in the background and, after posting, it informs you in a dialog box how many items were posted.

  • How to copy Partners from Delivery to Shipment?

    Hi,
    I know that a Shipment is used usually to group multiple deliveries.
    If I have the same partners, in the delivery that I want to group, is there a way to configure copy control from Delivery to Shipment?
    Tula Gentil

    Hi Tula,
    There is currently no provision in the standard coding to
    copy partners from the delivery into the shipment header.
    The only exception to this is the Partner :'Forwarding Agent', that can be copied from the Delivery into the Shipment.
    For this to be done, you should set up suitable copy routines in the customizing for the shipment type. Also the Forwarding agent should be unique in this case.
    You can assign your own partner functions , provided that they are set up correctly in transaction VOPA.
    The Partner functions for the Shipment stages have to be maintained
    separately in a Partner determination procedure specific to Shipment
    stages.
    The standard partner determination procedure for Shipment stages is
    'TRS1':Shipment Leg. You can find this in the customizing transaction VOPA for the Object Transport.
    You can add the required partner functions in the partner procedure TRS1, so that they are available for the shipment stages.
    I hope this information is useful to you!
    Regards
    David Merino

  • Delivery and shipment text.

    Hi Friends,
    It might be simple question, however I want to know how delivery & shipment text can be maintained.
    I mean we are interested to give delivery as well as shipping instructions and that should be populated in delivery and shipment document
    What configuration setting requires for above and where one need to maintain this information so that system would collect data whenever required.
    Thanks
    Shiv

    Hi Shiv,
    You can do this but in order to do this you need to do the customising in text control
    Go to IMG
    LE>Shipping>Basic shipping functions>Text control>Define text type
    You will find different options in there, So choose the text type for delivery document and define text type and then define text determination procedure and then assign the procedure to the delivery document type you wish.
    reward points if helpful answer
    thanks
    regards
    ravi

  • Cannot assign deilivery to Shipment

    Dear all,
    In VT01N, i can't assign deilivery to shipment.
    It just shows message:
    Number of deliveries found:                    0
    Message no. VW852
    I've checked Maintain transportation relevance for delivery types and Maintain transportation relevance for delivery item types.
    So, what's problem?
    Thanks& Best Regards,
    Quanglv

    Hi le,
    Please check whether tou have made the route relevant for transportation.
    Please check if the route is determined in the delivery.
    The trans planning status in the Delivery doc trans Tab should be A or B then only the delivery will appear while creating shipment.
    Regards
    Mayank

  • 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,

  • Problem while changing data for STO Assign Delivery type and checking rule

    Hi All,
    In Set up STO..... executing Assign delivery type and checking rule.
    I am trying to add values to Rule for Adoption of ATP Results in Purchasing(REVFE),Delivery Type for Stock Transfers Within a Company Code(LFART1) and another two more fields..After entering the data When i clik Save button... it shows "Data was Saved".But its not showing when i went back and come
    I have checked in debugg mode and table T161V table ..waht ever i entered its not saved in Database table.
    We have checked in another system its working fine..
    Can anyone please help me  on this?

    Solved by posting in OSS.
    The below include has to be uncommented.
    While doing upgrade this include  L0ME6F00 has commented INCLUDE L0ME6F99 has uncommented
         view related include-files   (never change, please)        *
    *{   REPLACE        CB2K900006                                        2
      INCLUDE L0ME6F00.      " subprograms

  • Return Delivery and shipment for third party PO

    Hello Gurus,
    There is a NB type PO. But we want to return it back to the supplier. How can I do this. Do I need to create a return delivery and shipment against this PO? Please give me the steps I need to follow.
    Regards,
    Balu

    PGI was done before shipment.

  • Destination and departure country for 'Delivery in shipment'

    Hi,
    I have a reporting that requires field from this structure VTRLP (Delivery in Shipment: item)
    Therefore, I need to know the source of that this structure is getting from.
    Below are the fields that I need:
    1) LAND1 - destination country
    2) ORT01 - destination city
    3) ALAND - departure country
    4) VSTEL - shipping point
    5) VGBEL - reference order number
    6) BRGEW - gross weight
    I found that LIPS table contains has VBGEL and BRGEW fields, LIKP has VSTEL. I m not so sure whether I can used it or not.
    I have no idea where are the sources for these 3 fields:
    1) LAND1 - destination country
    2) ORT01 - destination city
    3) ALAND - departure country
    Appreciate some advice. Thanks.

    Hi Ravi,
    I found this table VTTS contains most the data that I need but it only has shipping number.
    I need for each delivery in the shipment, display shipping point, destination country, destination city, order number, etc.
    here is the sample report layout:
    Shipment no. 1     Delivery shipping pont 1/ destination 1     order no. 1
                       Delivery shipping pont 2/ destination 2     order no. 2
    Shipment no. 2     Delivery shipping pont 3/ destination 3     order no. 3
                       Delivery shipping pont 4/ destination 4     order no. 4
    Thanks.

  • VA02 - transfer packing propsal from order to delivery and shipment

    hey ,
    how can i transfer the packing propsal in VA02 to delivery and shipment ?
    is there any copy control for this ?
    Regards
    ASA

    Hi Asa,
    You have to use some ABAP code (copy routine) to achieve this...
    SAP online help:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/65/79f328a70111d2b44e006094b9b9dd/frameset.htm
    Packing proposals in sales orders and scheduling agreements
    It is possible to enter packing proposals in sales orders and scheduling agreements. These specifications automatically lead to a packing proposal in the delivery if a special data transfer routine is maintained in Customizing for copying control between the sales documents and the delivery. The packing proposal can be changed in the delivery. It is also possible to pack the delivery according to the packing proposal in the preceding document by using the Use proposal function in delivery processing.
    Define the data transfer routine:
    SPRO > LE > Shipping > Copy Control > Define FORM Routines for Data Transfers (menu > Data Transfer > Handling Units)
    Set the routine in copy control
    SPRO > LE > Shipping > Copy Control > Specify Copy Control For Deliveries (see field: V_TVCPLAK-GRUVS)
    Reagrds,
    Csaba

  • Deleting the vehicle assignment from the shipment

    hi,
    please send me the procedure for deleting the vehicle assignment from the shipment.
    it is very urgent............
    thanks in advance...........

    are you doing the vehicle assignment number manually. then you can very well change the number isnt it ?
    May be if you have some other idea please elaborate
    Thanks
    venugopal

  • Copy header text of Delivery to Shipment

    Hi All,
    Please let me know the user/customer exit to copy the header text of delivery to shipment while creation(VT01N) or deletion(VT02N) of shipment for deliveries.
    Please provide the code samples or procedure, if you have any.
    Thanks in advance and points will be rewarded
    -Venkat

    Hi
    Use these User exit and write the code for the same in one perform of its include this is having the delivery details and capture the same into your shipping
    EXIT_SAPLV56F_010
    regards
    Shiva

  • How to disable output for Delivery and shipment

    Hi experts
    I would like to disable the output for the delivery and shipment. Please let me know any code logic or function module for this.
    Thanks and regards,
    Jayakumar Mani.

    Hi,
    Use the requirement routine in transaction code NACE -> Procedures.
    Regards
    Vinod

Maybe you are looking for

  • Network slowdowns when migrates to NX1k - TAC aren't finding the problem.

    Hi, I have an opened TAC Service Request (Case), and we aren't finding the problem. Any help, tip, will be helpfull. Thanks. I attached pdf with all information about the topology, tests, environment... Problem information The network slowdowns start

  • User exit for Price Conditions in VA02 (update,insert or delete conditions)

    Hi folks. I would like to know if anyone of you has already worked with transaction VA02...I need a user exit, which could be capable to: Erase, Update and Insert new Price Conditions. Scenario: The user will not enter into the Price Conditions Tab.

  • Manual Changes in Provider.XML

    Hi Experts,   Mine is a File to XI to JDBC[SQL SERVER]  scenerio. Certain JAR files were missing in the JDBC application, so I had to follow the PDF file: How To Installand Configure ExternalDrivers for the JDBC & JMS Adapters  which instructed me to

  • Can't enable the ethernet socket on my Airport Express; Help!!

    Am I correct in assuming that I can plug a non-wireless enabled laptop into my Airport Express Ethernet port and access my home wi-fi network? I have a new(ish) Airport Extreme which is plugged into my Siemens Gigaet SE587 router. At the moment I use

  • CF 4.5 and MS SQL 2005

    Any quick and easy points or guidance to getting these two to play together? We are in the unenviable position of having to get some maintenance, enhancement code installed on the venerable 4.5 ColdFusion server that will interact with the new MS SQL