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

Similar Messages

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

  • 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

  • Where to capture country of origin for imports

    What is the best practice for capturing COO for purchases?  Sometimes the COO is not known when creating PO, or is different than the PO. GTS can override, and report correct COO to customs, but what about ECC?  If ECC is not updated, there will be a discrepency between ECC and GTS, and ECC is the "system of record".  Is best approach to update PO when correct COO is known?
    Thanks for your help!

    Best practice is to record the CofO in the Import data of each Goods Receipt item.  If, for one Material, it never or rarely changes from one receipt to the next, then it will also be worth recording the CofO as master data.  This can be in the Material Master record, or better in the Purchase Information Record, or better still in the Batch Master record (if the Material is batch-managed).
    If the CofO is held in master data, then it will be proposed in the GR, and only a simple check is then usually necessary before posting.

  • Outbound delivery Foreign Trade data Missing Country of origin of Material

    Hello,
    I am creating an outbound delivery but I need to make the Country of origin field automatically filled in the Foreign trade tab of the item level.
    There is already an entry of country of origin in MM03 material master in the foreign trade export tab.
    Does anyone knows how to make the Country of origin field automatically filled in the Foreign trade tab everytime I create an outbound delivery?
    Thanks for you help.

    Hi,
       I have maintained in said customization node & its working fine for us. Please check the SHip to party & Shipping point country,
    both should not be same.
    Fore more info, find the below Wiki article.
    [http://wiki.sdn.sap.com/wiki/display/ERPLO/CustomizingForeignTradeMasterData]
    Regards,
    Reazuddin MD

  • Multiple Country of Origin for single outbound delivery line item

    We are attempting to find an a solution to record multiple countries of origin for a single SAP delivery line.
    It seems standard SAP delivery only contains the ability to store a single "HERKL" value linked to the delivery line. (It creates a customs master in EIPO and links this to the delivery header)
    We need a solution to be able to record multiple of these values without the use of Batch Management.
    The example below demonstrates our requirement:
    Scenario: Delivery 1001
    - 1 line consisting of 5 eaches of a single part
    - When picking we find:
    - 3 eaches which where from Belgium
    -2 eaches from Germany
    without splitting the line somehow we are not able to add mutliple values
    Note: We are integrating with an external WMS system and interfacing in these documents using IDOC processing and therefore it would be very beneficial if someone could provide both functional steps (application side) and technical steps (function modules, classes, etc) which can be used
    Thank you for your help in advance

    Hi,
    Yes, it will work if items are lot controlled.
    (you can use the same logic if the item serial controlled as well...using Serial Number DFF)
    However, if the item is a plain item, there is no direct way of storing and retrieving the attributes ...such as country of origin, supplier name, etc ...
    Thanks,
    Hrishi

  • 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

  • Customs Duties based on Country of Origin in the PO

    Hello,
    I would like to seek your help on pricing conditions in the PO.
    We have created an access sequence for customs duty condition type ZOB1, and we used the key combination delivering country, commodity code, and the country of origin. We cannot maintain the country of origin in the material master because it is only known upon PO creation. The condition type ZOB1 is supposed to read the country of origin in the PO. Instead, the country of origin in the material master is what's being populated in KOMP-HERKL, which is the field catalog we used as part of the access sequence/condition table.
    We would like the system to get the customs duties based on the country of origin entered in the PO and not the one in the material master.
    Is this possible? Has any of you tried to modify the values in the structure KOMP before PO prices are determined by the system based on the access sequence?
    Any inputs will be greatly appreciated.
    Thanks!

    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

  • 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

  • VL02N - Country of Origin Updation

    Hi,
    I have a requirement to default Country of Origin field in VL02N Transaction for each line item under Foreign Trade/Customs Tab -> Origin / Destination / Business Tab.
    For this to be happen, I have used a function module EXPIMP_POSTING in the user exit Z_MV50AFZ1_6, which will update the country of origin field perfectly. 
    The problem occurs here -> The function module requires an input EXNUM (Number of foreign trade data in MM and SD documents) which is obtained from LIKP table. This Number will get generated only when the Delivery has some foreign trade data.
    Is there any other way to update this Country of origin field without passing EXNUM field to this function module or do we have any other function module or exit for such requirement?
    Thanks,
    Dhanalakshmi M S

    Hi
    In my case it is Foreign trade .so when goods are exported the foreign trade data will gets populated in the billing document at item level.
    By maintaining country of origin in material master data u2013foreign trade u2026it will flows to delivery/Billing document
    We found the cause of our issue is .not exports it is ..Domestic sales .so for domestic sales the data will not flowu2026u2026this we can identify by checking the Tab u2013 EXPORT in Billing document u2013 Header data u2013 Header
    The field will be populated with value Z or Y by the system .if it populates then it is export sales if not domestic sales
    Regards
    Sujan

  • Country of Origin in GTS

    Hi,
    Where do we maintain the Country and Region of Origin in GTS?
    In ECC, in Material master, in tab of "Foreign trade - Export", there is the option of maintaining the country of origin and region of origin.
    Regards,
    Pradeep

    Thanks for the Reply
    However i have one question. When we use GTS, we deactivate the Foreign Trade functionality in SAP ECC system (Feeder System). Then How the system determines the Country of Origin and also i don't think the Foreign Trade Tab will appear in the Feeder system documents when we deactivate the Foreign trade.
    For my Client, there is a requirement that, whenever the Country of Origin or Commodity code is missing in Product, then that document should block. I don't know how to achieve this. Since Country of Origin and Commodity code used in SAP Customs Management and Sales order or Delivery will not have any communication with this Customs Service, how do i block these documents when those fields are missing. Are there any BADIs or USEREXITs available to do this? Please share your thoughts on Scenario.
    Thanks in advance
    Pradeep Maddi

  • Intrastat - country of origin unknown

    Hello,
    in Czech republic is possible to present Country of origin unknown in certain cases in Intrastat reports, where the vendor is not able to provide the information about the real country of origin of material.
    For such cases I have customized the new Country of origin called "QU - origin unknown" in Country global parameters (OY01) as well as in foreign trade data for MM (VI78).
    But when I ran the periodic declaration for import in ENPA, the items of documents with COO QU still fall down into Incompletion log, because of non existing Country of origin QU. But in fact the Country of origin QU is assigned correctly in purchase order document.
    Can somebody help?
    Thanks
    Zdenek

    Hi
    In my case it is Foreign trade .so when goods are exported the foreign trade data will gets populated in the billing document at item level.
    By maintaining country of origin in material master data u2013foreign trade u2026it will flows to delivery/Billing document
    We found the cause of our issue is .not exports it is ..Domestic sales .so for domestic sales the data will not flowu2026u2026this we can identify by checking the Tab u2013 EXPORT in Billing document u2013 Header data u2013 Header
    The field will be populated with value Z or Y by the system .if it populates then it is export sales if not domestic sales
    Regards
    Sujan

  • What is Country of origin in Material Master?

    What is Country of origin in Material Master?
    what is its change impact to the business and business processes?

    Country of Origin is used to represent the original country of production/manufacturing. This is used in Exports/Imports for generating legal documents for Customs.
    This will be captured at the time of PGR or defaulted from Material Master to inventory. This field get reffered in Global Trade too.

  • Change the value of Country of Origin in Invoice document

    Hi All,
    The Country of Origin in billing document is copied from batch, now there is a requirement to change the COO in the invoice document. Can anyone please guide me how to update the Country of Origin in Billing document(Foreign Trade Data).
    I can update before it is released to accounting, but after released to accounting the field is grayed out.(EIPO-HERKL)
    Please sugget.
    Regards,
    Jagadish

    Hi,
    The country of origin field is transferred to the delivery header and from there to billing header. This field is available in the material master foreign trade tab and not from the batch master for the material batch.
    You can change this country of origin in the material master data
    Thanks,
    DB

Maybe you are looking for

  • RAM upgrade on Satellite L30 (PSL33L)

    I want to upgrade the RAM of this laptop, but went exceed 2gb which are 1gb+1gb of 667mHz the computer will booting normally and work like usuall but after that the computer turn blue screen and restart. Currently using XP Pro SP3 with the latest bio

  • External hard drive won't leave

    So here's the deal, my external hard drive refuses to eject. I keep getting this message that says the hard drive is being used by a program but that is impossible because I restarted the computer and have no program running except finder and dashboa

  • How to remove a newline character from a column

    hi all... i have a column in a table in which some of the datas contain a newline character at their last. i need to remove those newline characters. for example.... a data is 'abcd (notice the end of the quotation).....i need to get the data as...'a

  • Internationalization support for File Names

    I want to know does it make sense to provide multilingual support for File Names. Say, I have a file called PurchaseOrder.pdf and it will be sent to users as an email attachment. We can localize the file name(for example, in Chinese: 订单.pdf). But I w

  • Asssociating new Network to a ProjectDefinition

    Hi, I am creating a new Network using 'BAPI_NETWORK_MAINTAIN' by using SE37 transaction. I am passing 'CREATE' and then 'SAVE' as Method parameter value in I_METHOD_PROJECT structure. I want to associate this network with some existing ProjectDefinit