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

Similar Messages

  • 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

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

  • Country of origin for material

    Hi Experts,
                       In which table-field I can find the country of origin for material?
    Thanks and rgds
    Abhishek

    Hi
    See in MARC table I hope HERKL field
    Regards
    Anji

  • Goods Issue error - batches not defined for delivery item

    Hi,
    We are getting a Goods Issue error  u201CThe batches are not defined for delivery item 000010u201D.   We are only getting this error for a material that is being shipped against a particular third party sales scheduling agreement.  We went live in 2007 and we had no issues, but when we had to create a new Sched Agreement this year, for third party sales, we started to get this error.  However, if we re-activate the old scheduling agreement we do not get the error.  We have a batch job that executes the following steps:
    1.     VL06IG (collective goods receipt)
    2.     VL10 (collective delivery)
    3.     VL06O (collective GI)
    We have compared the 2 scheduling agreements and see no difference.  We are assuming it has something to do with how the scheduling agreement was setup, but are not sure.  Any suggestions on how to correct this problem would be much appreciated.
    Thanks in advance,
    Helen

    Dear Murali,
    The material has not changed at all.  I'm not sure what you mean by maintaining batches while receipt of the material.
    If I re-open the old scheduling agreement, we do not get the error message.  However, as soon as we use the new SD scheduling agreement, we get the error.  We are using the same material master on both scheduling agreements.
    Thanks,
    Helen

  • Inspecyion lot for delivery item

    Hi Experts,
    Please help.
    I have created sales order. Then created Production order with reference to that sales order. Processed poduction order. Stock posted to QM stock. Done Result recording & UD. Stock posted to Unres.use stock. Now I want to quality inspect for delivery item of same sales order.and want to create quality certificate. What are setting require.
    Please tell step by step.

    Dear Raja,
    Adding to Shyamal answer for Inspection for delivery you may have to do these steps also
    1) SPRO > QM> Quality Inspection > Inspection lot creation > inspection at shipping > Assign inspection type to delivery type> assign inspection type 10 to the delivery type you need the inspection
    2) Maintain customer info Record. QV51 which is a customer ,material combination. You can specify whether or not an inspection lot is created before or after the goods are shipped, or whether the quality inspection will be carried out by the customer.Also you can maintain default customer specifications for a customer or customer information records for customer/material combinations
    3) Maintain 10 inspection type in MM02.
    4) Create the inspection plan using the relevant Usage
    Hope this helps
    Regards
    gajesh

  • Query to get the User who updated BP Catalog No. for an Item.

    Hi experts,
    I am trying to get the user id who updated BP Catalog No. for an Item. BPCatalog Number details are available in OSCN table. There is no BPCatalog No. field available in ItemMaster OITM, or in ItemHistory AITM. Also, I searched for history table of OSCN. I could not find it.
    Any help is appreciated.
    Thanks in advance,
    Parvatha Solai.N

    Hi,
    Thanks for your quick response and reply.
    Regards,
    Parvatha Solai

  • Valuation type is not defined for delivery item 000010 (help me)

    hi
        when i  post goods issue in delivery it is  giving error "Valuation type is not defined for delivery item 000010"
    even i have assigned material to valuation class and valuation category , but till it is giving error . plz helm  out

    Hi,
    you need to assign proper G/L accounts in OBYC for your plant/gen modification key/valuation class
    Go to your material master..check the accounting view.See whats the valuation class.
    Now go to OBYC - GBB
    here for the combination of your plant & modification key VAX, VAY & VKA & your valuation class give the resepective G/L accounts.
    this should solve your problem.
    thanks

  • 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

  • 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

  • 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

  • BAPI Error: No schedule lines due for delivery up to the selected date

    Hi,
    I have created a program to create delivery orders with reference to sales orders using BAPI - BAPI_OUTB_DELIVERY_CREATE_SLS.
    After execution I get the error: No schedule lines due for delivery up to the selected date
    Please help.
    Thanks in advance!!!
    Regards,
    Sriram

    hi,
    this is to inform you that,
    please check the schedule line date in the sales order because the date is not matching here for the BAPI to upload.
    here,  for example the schedule line is 4 days after and you are running BAPI today. that will mismatch no.
    the same thing is happening in uploading case also.
    so please check the date.
    because in teh sales order if teh schedule line date is today it will accept the uploading with out throwing any errors.
    regards,
    balajia

  • FM/BAPI to update the rate category for the device/installation

    Hi,
    I need to update a new rate category for a device.
    Please let me know if there is BAPI/FM which will update the rate category for a device.
    Regards
    Shiva

    Hi Shiva,
    First of all, can you clarify if you want to update the rate category - Is it at the Installation Level or at the Device Level.
    For updating the rate category at the installation level, go to Business object INSTLN,and then make the necessary changes in Change Installation without dioalog.Pass the input parameters as required for the Method.
    If you find this answer helpful, please reward points.
    Amitav

  • New country of origin for European country" CE"  Urgent

    Hi,
    I have to add country of origin code "CE" (Communauté Européenne) for the European community. From beginning of July it is no longer allowed to use "EG" (Europäische Gemeinschaft)
    or "EC"(European Community) as short terms for foreign trade export. These both ISO-Alpha Codes belongs to EG = Egypt and EC = Ecuador.
    For materials which are produced in Europe but the country is not defined, we have to use "CE" in the future. The printed text must be:
    - In German: Europäische Gemeinschaft
    - In English: European Community
    - Swedish: Europeiska gemenskapen
    - Finnish: ???
    In material master in foreign trade export view in country of origin I have to add CE as the European community, but I am not able to understand how can I have a European community code CE for all the european countries as CE is not representing a single country.
    Please provide some useful input
    Regards,
    Yatendra

    Hi,
    This is really urgent
    Regards,
    Yatendra

Maybe you are looking for

  • Error while posting parked docs

    Hi, When we post parked  (FBV0) doc. At the time of postingsystem prompt me particular message on the screen. Field BSEG-SKFBT. does not exist in the screen SAPMF05A 0301. Message no. 00349 Diagnosis The specified field does not exist on the screen.

  • Users lose connection to Exchange.

    Hi I have a Exchange 2007 on Windows 2003 environment with  about 9,000 users. Lately I have been struggling with an issue and I need some help. Some users lose their connectivity of Outlook to Exchange (outlook appears Offline), even though they hav

  • Delete Change Request

    i have a change request that I do not wish to transport. I released it since I cannot unlock this request. Even after I released it, I cannot delete either the task or request. How can I remove this request on my con system. Also, this request was cr

  • Record time on WBS on Holiday

    Hello friends, User has a query : Business rule or system limitation doesnot permit to record WBS time alongside an 8hr holiday observed. Here, user has a query that if he enters vacation for 8 hrs, then he is not able to enter working time for the s

  • Netconfig Ad Hoc and System Tasks Missing

    I recently upgraded to LMS 3.2 with RME 4.3.1. I don't have the option to create ad hoc jobs and I don't see any system tasks available. The tasks folder expands to reveal nothing. Any ideas?