Update Country of Origin in Inbound Delivery(SHipping Notification)

Hi All:
I am using GN_DELIVERY_CREATE function module to create inbound shipping notification, in that i am updated the coo in SPE_HERKL field of the internal table XKOMDLGN for each item. This CoO is update in each item of the inbound shipping notification foreigh trade data of the Coury of origin.
But, the CoO is not update from the internal table XKOMDLGN field SPE_HERKL to CoO in foreign trade data of each item in Inbound shipping notification.
Please throw some light on it.
Thanks,
Venkat

Hi Lakshmipathi,
So far we are encountering 2 incorrect deliveries in production. This does not involve Sales order but Purchase Order. I tried to check the country of the Supplying Plant and the country is not the country reflected in the delivery. It is expected that the country of the supplying plant must reflect in the delivery. Checking the PO, it is not also getting the correct country but it is getting the country of the receiving plant. We got confused why it is getting the country of the receiving plant.
Thanks,
Rish

Similar Messages

  • DELVRY03, Idoc is not updating country of origin field

    Hi,
    I am using DELVRY03 IDOC type for my inbound IDOC, I need to update Country of origin field in delivery ata item level. Using message type SHPCON , there is a segment to hold this value
    E1EDL35-HERKL, but it is not updating this value in the delivery.
    Anyone have any idea, please reply me
    Regards
    Vijay

    Hi,
       Try with FM
    CALL FUNCTION 'DB_COMMIT'.
    CALL FUNCTION 'DEQUEUE_ALL'.
    Thanks,
    Asit Purbey.

  • Inbound Delivery Shipping Unit and Outbound Delivery Shipping Unit Mismatch

    Hi All,
    At the time of creating the outbound delivery, I am getting the error"Inbound Delivery Shipping Unit and Outbound Delivery Shipping Unit Mismatch".
    Please help me to resolve the above error.
    Please let me know the cause for the above error.
    Regards,

    Hai Shafi,
    PLease check these threads,
    http://help.sap.com/saphelp_40b/helpdata/pt/a4/613275e24bd111950d0060b03c6b76/content.htm
    http://help.sap.com/saphelp_46b/helpdata/en/ac/f6fe78931a11d184d10000e81ddea0/content.htm
    http://education.feedfury.com/content/18638791-processing-shipping-units-in-sap-sd.html
    And hope you are using the same material received in inbound for outbound also.
    If material is different please check UNIT in Material master for both materials.
    Regards,
    Mani

  • BAPI to Update Country of Origin for Delivery Item

    Hello All,
    I have a requirement as follows.
    For an Outbound delivery item (VL02N), I need to update the 'Country of Origin' (EIPO-HERKL). This will come in 'Origin/Destination/Business' tab under 'Foreign Trade /Customs' tab for the delivery item. Could anyone please tell me if there is
    a BAPI to do the same.
    I think this country of origin is not the country of origin for the material, because even if the material is having a value for country of origin in material master, the same is not reflecting in the delivery.
    Thanks and Regards
    Indrajit

    Hi,
    Try using the FM ''EXPIMP_POSTING".
    Refer to the sample code.
    PARAMETERS p_deliv TYPE vbeln.
    DATA: lt_xeikp TYPE STANDARD TABLE OF eikpvb,
          lt_xeipo TYPE STANDARD TABLE OF eipovb,
          lx_xeikp TYPE eikpvb,
          lx_xeipo TYPE eipovb,
          lv_exnum TYPE exnum.
    SELECT SINGLE exnum
           FROM likp
           INTO lv_exnum
           WHERE vbeln = p_deliv.
    lx_xeikp-exnum = lv_exnum.
    APPEND lx_xeikp TO lt_xeikp.
    lx_xeipo-exnum = lv_exnum.
    lx_xeipo-expos = '000010'.
    lx_xeipo-herkl = 'US'.
    lx_xeipo-updkz = 'U'.
    APPEND lx_xeipo TO lt_xeipo.
    CALL FUNCTION 'EXPIMP_POSTING' IN UPDATE TASK
      TABLES
        fxeikp = lt_xeikp
        fxeipo = lt_xeipo.
    COMMIT WORK.
    Thanks,
    Indrajit

  • Update Country of Origin for Delivery Line Item

    Hello,
       We are creating a delivery using the function module 'GN_DELIVERY_CREATE'. The data for the creation of th delivery comes from a text file. The delivery is being created properly using the above function module, but we are not able to pass the country of origin (EIPO-HERKL) with this function module. Is there any other function module with which we could create delivery function along with passing the country of origin field or is there any function module which can be used to update the coutnry of origin in the delivery after it has been created. Waiting for your answers.
    Thanks & Regards,
    Nivin Joseph

    Hi,
    In the given function module GN_DELIVERY_CREATE by you, check the table parameter "XKOMDLGN" in tables, and check the filed SPE_HERKL (Country of origin of the material) in the structure" KOMDLGN". You can pass the value in xkomdlgn-spe_herkl for Country of origin of the material.
    Thanks,

  • Updating the field in the Inbound Delivery

    Hi Experts,
    For the created inbound delivery, I need to update the 'Country of Origin' field in Foriegn trade/Custom tab at the item level. Is theer any function module I can use to update the above field in the delivery?
    Please help.
    Thanks in advance
    Rohit

    Hi,
    You just try this Funtion Module
    BORES_IDOC_INPUT_DESADV1
    hope it will helps you.
    Regards,
    Anki Reddy.

  • User exit for copying Inbound delivery data to Batch

    Hi, my client wanted copy the field 'country of origin' of Inbound delivery to batch when we create a new batch in inbound delivery.
    Can anyone tell me which User Exit I can use? Thanks.

    Removed, for new thread
    Edited by: Carol D'Sa on Dec 7, 2009 12:56 PM

  • Goods receipt through Inbound delivery for Sub-Contracting Purchase order

    Hi
    I am trying to do goods receipt for the inbound delivery /shipping notification created for a sub -contracting Purchase order. The Finished product and the component part are batch managed, When I try to perform PGR in VL32N , I am getting a blank screen as error message and Goods receipt is not getting triggered . I checked for OSS note and found 645119 close to my issue but not an exact match . We are in ECC 6.0 with EHP 4. Can some one clarify whether it is possible to post GR through inbound delivery for a Subcon Purchase order .
    Thanks in advance for your immediate response.
    with regards,
    Joseph Anand B

    Hi, The issue may be due to this - the component is batch managed but the batch data is blank in the component list of the Purchase Order Item. Or a batch is maintained in the PO item component list but the stock for the same batch is not available with Vendor, i.e. stock with some other batch may be available.
    In a receipt for Sub-cont PO, 101 happens for FG and 543 happens for component. But there is no option to provide the component details in a delivery. So in standard system, when 101 happens via a delivery, 543 will be posted in the background. So any error in posting 543 will result in a blank screen without any error message.
    You can fix this by maintaining correct batch in the PO component list.
    But there is another issue - you cannot do 'cancel posting' and 'return delivery' for this receipt. Only you can reverse the inbound delivery and you should know that the  recevied stock shouldn't have been processed to do reversal of inbound delivery.

  • Multiple Shipping notifications (Inb.Dlv) created via message type DESADV

    Hello All,
    I'm working on implementing the below SAP Standard process for my client. Version is SAP 4.7. The below process has to be implemented for different legal entities working on Same SAP environment.
    PO -> SO (Created via IDoc) -> Outbound Delivery -> Inbound Delivery (Shipping Notification) -> Invoice -> Invoice reciept.
    Most of the process are working, but facing few challenges while creating a shipping notification via message type DESADV and Basic type DESADV01 genereated out of Output type LAVA from Outbound delivery.
    I'm using 2 IDoc types to create Shipping notification via Outbound delivery and defined as below
    Outbound Process: Message type DESADV and Basic type DESADV01 with Process code SD05 for Customer (KU)
    Inbound Process: Message type DESADV and Process code DESA for Logical system (LS)
    I'm facing the following issues with respect to above process
    01) We need to update Batch Details like batch number, Date of Production, SLED/BBD in Shipping notification (Inb. Dlv) as Batches Instead of vendor batch
    02) When Outbound delivery has multiple line items, it is creating Multiple Shipping notifications (Shipping notifications for each line item). PO has
    As per the the threads posted here, I understand that for 01) We need to modify the Outbound IDoc FM "IDOC_OUTPUT_DESADV01" & Inbound IDoc FM "IDOC_INPUT_DESADV". But any idea, which Enhancements i have to use to fill the data?
    Also on point 02) i think, it should be a SAP standard to create a single Shipping notifications for all line items in the outbound delivery instead of each for line item. But in case if it is not a standard process, can any one tell me which user exits / enhancements to use to achieve the desired functionality.
    Appreicate your early response
    Thanks in advance
    Regards,
    Pradeep

    Hi,
    Why have you pasted Deepak Kumar's program into this forum?
    Regards,
    Nick

  • How to Update the Country Of Origin In delivery Item

    Hi All,
    Business Requirement at Present: in the idoc we are not passing the country of origin for updating the Delivery Item data .But Business requirement is now in such a way that the country of origin has to update the delivery item from the idoc.  when i look into the Process code function module i found this function Module Z_IDOC_INPUT_DESADV2. the i found one more function Module which will update the PICK/Packing WS_DELIVERY_UPDATE which is inside that. i am unnable to update the country of origin with this FM. so please send me the best soultion.
    way to see the country Of Origin :
    go to Delivery > Double click on the Delivery Item  > chose the Tab "Foreign Trade/Customs" > with in this Tab chose sub tab "Origin / Destination / Business">>  Ctry of origin , Dispatch ctry,Region of Origin                                                 
    with Regards
    Ram

    Country of Origin for a Delivery item is passed during the packing of the delivery before shipping .
    This is a mandatory field keeping the priority high.
    Actually this has to be done from one of your pack programs (A Z pack program i dont know the scenario of ur project )lets say .
    So u can see this Country of origin in the material views ..
    Goto MM03 and in this give the material item and check this.
    Check Sales: general/plant data and the strip as Origin.
    The field will be Marc-Herkl.
    Now u if want this to be populated then u need to write a query or logic to resemble the same in the delivery item.
    Now to get to your query now ..
    So if ur idoc will not be passing the country of origin .. then how was it doing earlier ?
    //But Business requirement is now in such a way that the country of origin has to update the delivery item <b>from the idoc</b>
    In order to do this we need to enhance the idoc with one more feature by picking thcountry of origin field say from MARC-HERKL and then updating the line item into the code of ur Z_idoc_input... or an user exit which can do the same ..
    Just check in ur idoc what are all the fields u r picking ..
    and what is the standard inound idoc you are referring to so that u can find the appropriate Customer exit which will be there to do the same ..
    The logic has to be written in one of the customer function .
    regards,
    VIjay

  • GR in MIGO not updated in Inbound Delivery

    Experts,
    I did as below.
    Create a PO-> Create IBD (VL31N)->MIGO (GR against IBD)--> TR and TO Auto Created> TO Confirmed---> Putaway completed in WM.
    So far so good:)
    My problem is, nothing is updated in Inbound Delivery(also in doc flow).  I can still create a TO and PGR for IBD.
    Am I missing some thing in config?  I welcome your any inputs on this.
    Regards,
    Shetty

    Hi Shetty,
    Please check the purchase order, whether purchase order history tab is generated in item detail. Also check the confirmation control Tab If inbound delivery shipping notofication has been updated with inbound delivery.
    It  above criteria like PO history tab and confirmation control is not updated then It seems to be program error  of update
    Br,
    Tushar

  • Capturing Country of Origin in delivery

    Hi All
    I have a requirement where I need to capture the country of Origin in the delivery. We have a standard Interface that does the pick and pack in SAP via an IDOC. We would like to capture the country of origin in te delivery while the pick and pack is carried out.
    How can we achieve this
    Please let me know your thoughts
    Regards

    Hi,
    You don't state what iDoc type you are using, use tranaction WE60 for documentation, or where the COO data is coming from.
    If you are using Delvry03  try updating the field E1EDL35-HERKL.
    Thanks James

  • Need help in updating Inco terms 1 and 2 in the Inbound delivery creation

    Hi Group,
    I have created an output type that will be triggered before an Inbound Delivery is created from the Outbound Delivery ( this scenario is in STO orders - Inter company stock transfer process ).
    I have copied a standard processing routine and customized it but, I am not able to update the 2 fileds (INCO1 and INCO2) in the item delivery of the Inbound Delivery. I was using the FM 'WS_DELIVERY_UPDATE' to update these 2 fields( by passsing the values fetched from the Outbound Delivery into the structure 'vbkok_wa' and the Inbound delivery created into the field 'delivery' of the FM ).
    When I run the the FM this is giving me errors and thus no Inbound Delivery is getting created.
    Please suggest me with some other way of updating these fields in the Inbound Delivery.
    and one more thing is that, I was selecting the Inco terms from the table LIKP directly, but this should not be the proper way to read the Incoterms, so please suggest me a way to read these 2 fields from the Outbound Delivery.
    to summarize, I need an FM to get the Incoterms from Outbound Delivery initially, and then, require another FM to update these Incoterms in the Inbound Delivery( this is a typical scenario in an STO - Stock Transport Order ).
    Please let me know your input on these 2 cases.
    Thanks for the help in advance.
    Regards
    Vishnu.

    Hi Group,
    By implementing the BADI 'LE_SHP_DELIVERY_PROC' this particular requirement can be fulfilled.
    Regards
    Vishnu.

  • Update VendorBatch in Inbound Delivery

    Hi,
           I am using <b>BAPI_INB_DELIVERY_CHANGE</b> to update the details
            into a Inbound Delivery.
           I am not getting a field in this BAPI to pass <b>VendorBatch No</b>.
           Please tell me a procedure to do this

    hi,
    see code of FM: IDOC_INPUT_DELVRY, maybe qal = 'GWT' from E1EDL18
    will be better?

  • Country of Origin based on Storage Location

    Hi all,
    i would like to understand if the country of origin in the delivery document at the line item level (EIPO_HERKL) to default based on the storage location. even if the COO is available in the material master.
    we had tried using user exits but were not successful in updating the same for a domestic delivery.
    Regards
    ilango

    it is the storage location used by a plant at India belongs to
        a different country which is closer to india.
    Sorry for misunderstanding but still the case is even worse.  You should be aware storage location is always assigned to a  delivering plant and you have to take the help of ABAPer by implementing a suitable exit to achieve this peculiar requirement.
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • Xp drive does not mount

    help! i cannot mount my windows xp drive. the drive is greyed out in disk utility. it's also missing on the sidebar of finder. mounting it does nothing but in the log it says mount of disk succeeded. but i can still boot from xp. any suggestions and

  • Optimizing work flow in FCP on new iMac? (dropped frames)

    Hello- I've recently purchased a new iMac, first in about 6 years. I'm looking for some advice about optimizing my work flow in FCP. I am largely self-taught, using FCP for hobbyist/amateur video. Until this new computer, I have been using FCP on oth

  • Mail Directory to Contact Directory

    I have a setup where I automatically route incoming messages to a particular folder based on Subject. It's my intention to eventually (actually fairly soon), send an email to all with the info they've requested (same info for all). Since I can't see

  • Using FileReader/Writer with Asian Characters - can you spot my problem?

    Hi, I can read in and write out one byte at a time with Asian characters, but if I try to do it one line at a time the Asian output is garbage. I will list both little programs here, and hopefully someone can educate me on my problem. +++1st, *this {

  • COMPLICATED FORM -VS- MANY FORMS

    Dear Friends, in big projects, which strategy we should use. wether we should make single form and do multiple task in it which may cause the form to be more complicated. Or we should make multiple forms with single task which will make the forms sim