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.

Similar Messages

  • Country of origin not valid; country of origin is not allowed or does not exist

    Dear Expert,
    I am using SAP 9.0 PL 09 , its upgraded from 8.82. Now my problem is while updating the Sales quotation and sales order only particular series name it getting the following error with effect from  2009 to till date sales quotations and sales order. I have multiple series name.
    "Country of origin not valid; country of origin is not allowed or does not exist"
    i  have  some addon but if i stop and proceed also the same problem comming. Can any one help me it will be good.
    Thanks in advance.
    Thanks and regards,
    Shamugam V.

    Symptom
    It is not possible to add or update marketing documents if an item has a value in the Country of Origin field. The application displays the following error message: "Country of origin not valid; country of origin is not allowed or does not exist".
    Reproducing the issue
    Prerequisites:
    Your company database is not in the Russia localization or you have not enabled the Intrastat feature that is relevant to EU countries only.
    Scenario:
    1. Create or update an item using the DI API. Specify a value for in the Country of Origin field. (Note that this field is not visible in the application).
    2. Try to create a marketing document (that is, an invoice using this item).
    Actual behavior:
    The document cannot be added and the application displays the following error message "Country of origin not valid; country of origin is not allowed or does not exist".
    Expected behavior:
    The document can be added.
    Cause
    Application error
    Solution
    WORKAROUND:
    Update the affected items using the DI API as follows:
    1.  Run the following query to identify the affected items:
    select CountryOrg, * from oitm where CountryOrg is not null
    2.  In the Country of Origin field, set a blank value.
    SAP intends to provide a patch or patches in order to solve the problem described. The section Reference to Related Notes below will list the specific patches once they become available.
    The corresponding Info file of the patches in SAP Service Marketplace will also show the SAP Note number. Be aware that these references can only be set at patch release date.
    SAP will deliver patches only for selected releases at its own discretion, based on the business impact and the complexity of the implementation.
    Other terms
    country of origin, DI API, marketing documents

  • Country of origin - field in MCHA-HERKL is updated

    Hi Gurus,
    Pl let me know, how country of origin field MCHA-HERKL is updated. Is this related to classification / Batch management.
    Is there any user exits to update this field.
    Where this field is used in Business scenario?
    Best Regards

    Hello, Prakash
    The Country of origin field is updated with table MCHA. 
    (i.e, Country of origin of the material, it is a key of the country in which the material has been produced. You are legally required to specify the country of origin both for export and import) And
    It is related to Batch Management.
    And
    This information (i.e, country of origin) is used for foreign trade processing in different areas, such as in Foreign trade law and Customs law
    And you can observe this field in Material master (in two different views:  Sales: General /Plant Data (below Foreign trade: Export) & Purchasing data (in Foreign trade: Import) view 
    (the field is very much useful, in the case of Export sales)
    Export: You prove the origin of a material by presenting the certificate of origin. This is issued and controlled by the relevant authority of the issuing country. This authority confirms the origin of a material and the required information with the certificate of origin.                                                                               
    (the field very much useful, in the case of Import procurement)
    Import: The relevant authority of the importing country - usually the Ministry of Economic Affairs - stipulates which regulations regarding customs and foreign trade law have to be observed for the certificates of origin accompanying goods.
    Note: Purpose
    The above filed that is MCHA-HERKL is assigned to Field Groups and that tends to assignment of this field for the batch master data to a field group and thereby influence how the screen is set up.
    -> In the batch master data, every field is assigned to a field group.
    -> Field groups group together fields that have the same technical procedures. If you show or hide a field group using the field selection control, all fields belonging to this group are dealt with in the same way.
    Note: The above filed that is MCHA-HERKL is assigned to Field Groups and that tends to assignment of this field for the batch master data to a field group and thereby influence how the screen is set up.
    -> In the batch master data, every field is assigned to a field group.
    -> Field groups group together fields that have the same technical procedures. If you show or hide a field group using the field selection control, all fields belonging to this group are dealt with in the same way.
                                                                                    Hope this will clarifies you,
    Reward, if helps,
    Regards,
    Srin.K
    Edited by: sapsrin on Feb 11, 2008 7:06 AM

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

  • Country of origin field?

    Dear Gurus,
    can we make only 'country of origin' field manadatory in me11 and me12?
    if yes, how?
    If No, why?
    pls help........

    Dear
    Field Ctry Of Origin gets copied from Vendor Master - In Address LFA1-LAND1. Further it is independent of the Partner Function. Even u assign any different Goods Supplier/ Ordering Address in partner determination, it will not not pick-up from its country.
    Hopes this help you.
    Cheers
    Sunil

  • 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

  • INBOUND IDOC not updating the basic data field which is created newly

    Hi,
    i am creating an inbound IDOC for material master creation in that in basic data1 i have created 2 custom field in general data 1 is updating and another  is not updating with the value in iDOC.
    User exits codes are fine. but data is not updating.
    can some one help hw to resolve this..
    regards,
    thanigai

    Hi,
    Are you Debug the function module in  Process code of IDOC and use COMMIT WORK in that Function module.

  • How is the Country of Origin field populated in the OITM?

    Dear All,
    I can see this column in the table but not in User interface. We are in CA and US localization. Thanks a lot.
    Regards,
    Yuka

    Hi,
    The country of origin does not appear on the interface but is available on the backhand ie. tables.
    If the field is a requirement you can check the following workaround in the test enviorment :
    - create udt for the countries
    - create udf on item masterdata -> set udt as linked table
    - create udf on Marketing Documents Row-level -> set udt as linked
                                                    table as well!
    - save following query and attach as formatted search to udf
    - on Marketing Documents Row-level:
    - SELECT udf FROM OITM WHERE ItemCode= $[$38.1.0] FOR BROWSE
    - set to autorefresh on "when existing altered column", Item No.
      in documenttemplate choose as Datafield
      File:  UDT
      Field: Name
      tick "Display Description"
    Check if the above helps.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Data not Updated in Custom Screen fields-Vendor Master

    Hello,
    I have created a custom screen in vendor master transaction and also implemented the two BADI's below.
    Business Add-In: Processing Master Data Enhancements
    (CUSTOMER_ADD_DATA/VENDOR_ADD_DATA)
    Passed the Custom Program and Screen No in the method GET_TAXI_SCREEN
    Business Add-In: Customer Subscreens
    (CUSTOMER_ADD_DATA_CS/VENDOR_ADD_DATA_CS)
    activate it with the BADI Processing Master Data Enhancements with method CHECK_ADD_ON_ACTIVE.
    I also created a new screen and used few fields from LFA1 (Append structure fields) such that the fields on the screen are : LFA1-ZZFIELD1 etc...
    Now the issue is the screen is displayed, but the data entered on the screen is not updated on the table LFA1 or data from the table is not displayed on the custom screen.
    Am i missing something?
    Regards,
    Shiva

    Solved this problem.
    I built the query against InfoCube and not the characteristic itself. That's why I can't see the update.
    Thanks.

  • Context not updated from adobe from fields to ABAP web dynpro every time

    Hi,
    I work through a turtorial for interactive adobe form in web dynpro. The turtorial link is as following:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/c766e918-0b01-0010-99b1-c2b78cd059b3?prtmode=navigate
    I use Active X adobe form display type and submit button. Basically, it works.
    My problem is the 1st time I change the out_amount in adobe form and click 'Submit'. Everything OK. The corresponding context field in Web Dynpro is updated and showed in my own web dynpro field.
    Then, I change the out_amount again in Adobe form and click 'Submit' again. The context is not updated.
    The interesting thing is when I click 'Submit' the 3rd time, it works again. Same situation happens for 4 and 5 times click 'Submit' and so on.
    It seems I need to click 'Submit' two times and the web dynpro context is then  updated.
    Is there anyone have any clue about my problem?
    Thank you in advance!
    Trey

    Please provide the solution.......

  • Do not updated quantity in transit field in DELINS JIT

    Hi,
    I have EDI defect in hand which states that Quantity field in transit for DELINS JIT has to be not updated. What exactly this means?
    Can any one let me know what needs to be done?
    Raghuram.

    Dear Raghu
    I am not very clear about your problem.  However, DELINS is nothing but  Message Type system shows which is an enhanced EDI Interface.
    If I am correct, while you are trying to create outbound delivery, the said error shows.  Am I right??
    If so, enter the quantity you want to delivery and save.
    Thanks
    G. Lakshmipathi

  • BAPI_GOODSMVT_CREATE not updating VBUK table and field WBSTA

    Hi all,
    We post good receipt for the inbound delivery using BAPI_GOODSMVT_CREATE. Upon the successful completion of GR, however, field WBSTK & GBSTK in VBUK table and field WBSTA & GBSTA in VBUP table are not getting updated from A to C for the inbound delivery.
    Wondering anybody here has experienced the similar issue before? And so, how to get it fixed without having to switch to a BDC program?
    Thanks,
    Franc

    It seems this BAPI dose not update the VBUK  fields.
    Edited by: Franc on Aug 11, 2008 3:12 PM

  • BAPI_ALM_ORDER_MAINTAIN not Updating Special stock indicator field

    Hi Experts
                  I am using BAPI_ALM_ORDER_MAINTAIN to create and  then update a Customer Service Order. When am trying to update the Special stock indicator field in the Components Tab(of IW32) through BAPI, its not doing so, and no error is thrown as well.
    The required qty and the batch field in the components tab get updated which ensures that the logic am using is the correct one.
    Please let me know if anyone has faced such a situation before. Any workaround(some other FM) to update this field is also welcome.
    Points guaranteed.
    Thanks
    Kulpreet Singh.

    Hi!
    BAPI_ALM_ORDER_MAINTAIN is only updating a field, when you set the update flag also in CHANGE method.
    So if you are maintainig the IT_COMPONENT table, you have to put an 'X' into the same field in the IT_COMPONENT_UP table also.
    And of course don't forget to commit the modification.
    Regards
    Tamá

  • Oim reconciliation not update after adding custom fields

    In Oracle Identity Manager 11.1.2 with connector
    Connector for Oracle Internet Directory Release 11.1.1
    I reconciliated users LDAP to oim, and after I add custom fields for target reconciliation, and I try to update these users with the new custom fields resend reconciliation event, this new custom fields displays in the event reconciliation page and do not in the user form for LDAP.
    I already create the new form with the news custom fields associated with the application Instance.

    Solution:
    FVC (Form Version Control Utility) comes with OIM which updates the form which are associated with existing users.
    Using the Form Version Control Utility - 11g Release 2 (11.1.2)
    OR
    Update PROCESS_FORM_TABLE set PROCESS_FORM_TABLE_VERSION =(Select SDK_ACTIVE_VERSION from SDK where SDK_NAME='PROCESS_FORM_TABLE');COMMIT;NOTE:Replace PROCESS_FORM_TABLE with actual process form i.e. "UD_XXX"

Maybe you are looking for