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

Similar Messages

  • How to track the Country of origin using the tcode 'MIGO_GR'

    Hi Group,
    I was trying to run  the tcode 'MIGO_GR' and want to see the field value Country of Origin(HERKR) in the display batch tcode 'MSC3N', but I am not able to see this value.
    the thing is that, the data comes as Idoc with the batch number, and in this batch there was no info about the country of origin (HERKR) and hence when I check in MSC3N, I could not see the value for Country of origin.
    Could you please let me know the enhancement to be used to populate this value(HERKR) into the Batch that gets created (thru tcode 'MIGO_GR')? and also please let me know the table that gets updated?
    thanks for your help in advance.
    Regards,
    Vishnu.

    Hi Group,
    I resolved the issue myself and the solution is as under:
    When we run the transaction 'MIGO" or "MIGO_GR", internally the system generates a Batch, which can be changed by the User at his interest to any number he likes.
    And when this Batch gets created, we can have a Userexit (EXIT_SAPMM07M_003) called to update the Country of Origin (HERKL) as under:
    if XXXX - Condtion here....
       Populate the field HERKL in the structure BATCH_MASTER_DATA with the desired value
    endif.
    This will resolve the issue and we can view this Country of Origin in the transaction MSC3N.
    Regards,
    Vishnu.

  • 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

  • How to update storage location & batch split on delivery items?

    Any idea how to perform the following using a BAPI or function call with regards to updating a Delivery (VL02/VL02N)?
    1) Enter or update a storage location on a delivery item?
    2) Batch split a delivery item to give multiple batch    numbers. For example if delivery item is '101' then    after batch split additional delivery items with batch number assigned will appear as '900001', '900002', '900003', etc Entering a single batch number is straight forward and can be done using WS_DELIVERY_UPDATE/_2
    Do not wish to use BDC or call transaction. Any help appreciated.

    hi sailatha..
    im doing BDC for VL01N transaction.. how can i pass multiple storage locations for picking quantity..  my requirement is  if the material is not there in the specified storage location it should search in the other storage locations for delivery.
    how can i solve this issue bcoz in the VL01N screen i can pass only one storage location.
    this is urgent requirement..
    kindly revert me back if u can help.
    thankx
    helpful answer will be rewarded.

  • How to update the Customer field value of PO Item under the Delivery Address Tab?

    Hi Friends,
         i tried to update the Customer field Using Bapi_PO_change.I passed the PO Order no,POADDRDELIVERY data with Item no,Adrees no,Customer no.But i am getting no data changed message from return table.I attached the screen shots.So please suggest me the helpful information for resoving this issue.
    Thanks,
    Dinesh

    Thank you friends,
                My Problem was resolved.In my case i have passed the customer value in BAPI_PO_CHANGE POITEM Table with updated customer value.
    Thanks,
    Dinesh

  • How to mainatin different country of origin and grade for article.

    Hi All,
    I have a requirement that in SAP i should have one article for e.g Apple ( i am procuring this article from different country and i have got different grade for the article) ,but at the same time i should be able to differentiate it through country of origin along with grade and size.
    I can maintain different EANS for size but how to go about country of origin and grade.
    Note: I cant have different article code for the same product.
    Need ur help and valuable inputs
    Regards,
    AM

    Hi Group,
    I resolved the issue myself and the solution is as under:
    When we run the transaction 'MIGO" or "MIGO_GR", internally the system generates a Batch, which can be changed by the User at his interest to any number he likes.
    And when this Batch gets created, we can have a Userexit (EXIT_SAPMM07M_003) called to update the Country of Origin (HERKL) as under:
    if XXXX - Condtion here....
       Populate the field HERKL in the structure BATCH_MASTER_DATA with the desired value
    endif.
    This will resolve the issue and we can view this Country of Origin in the transaction MSC3N.
    Regards,
    Vishnu.

  • Update field "Country of origin" in Product Master in SAP EWM system.

    Hi Team
    I have a requirement like as follows:
    I need to update the country of origin (HERKL) field into the product master transaction /SAPAPO/MAT1 ( Tab: Properties Field name Ctry of Origin) through BAPI. So i want to know what is the BAPI Name to update the Product master.
    Any prerequisites for this Please help me.
    Thanks in Advance.
    Abhishek.

    Hi,
    The function module BAPI_PRDSRVAPS_SAVEMULTI2  (Create or Change Products) can be called in the z pogram like any other function module call in a z program.  After the data definations, tables "product_head" and "product_head_X" need to be passed the values, along with other import values like Logical system , business system group etc.
    Your technical consultant should be able to work out smoothly.
    Hope this helps.
    Regards
    Datta

  • HT1918 How do you change the country or origin in the iTunes store and zero out the remaining balance?

    As above.... how do you change the country of origin in the iTunes store when you already have a balance in another country, in my case the balance is $0.03. At the moment I can't change the country because of this balance and have attempted to zero it out, but no luck yet. Any suggestions?

    Contact iTS to have them cashout your account, and aid in changing the nationality.
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • 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

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

  • GR/IR accounts based on the country of origin

    Dear All,
    My client business requirement is like below:
    when we are posting goods receipt GR/IR account has to be posted based on the country of origin of the materials. we have one chart of accounts, we don't have any business areas. we have defined 14 GR/IR accounts for this purpose.
    Please any one can suggest me the solution in SAP, how we can do? even customized one also?
    thanks & regards,
    Ramesh B

    uu

  • How to remove the IT policy from my Torch 9800, or how to reset the device to original setting

    I have a Torch 9800 formerly- used for business emails. According to our company policy there was an IT policy installed to the device hence would force the user to set password protecting the device.
    Now this device has been retired and I like to use it only for regular phone calls thus do not like to have a password protection. My question is:
    How to remove the IT policy from the device?
    or
    How to reset the device to original setting?
    I have been trying to swipe and scrub the device several times but that IT policy still exist. Need help......
    Solved!
    Go to Solution.

    See the RIM Knowledge Base article here for information on how to remove an IT Policy. See the Method Three in the link:
    KB14202 How to remove an IT policy from a BlackBerry smartphone
    Read this RIM Knowledge Base article to reset your device to the factory settings.
    KB18998 How to reset a BlackBerry smartphone to factory defaults
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to update the table value in the valuechange event?

    I have an input field in the datatable with the valueChangeListener
    <rich:dataTable id="cart" value="#{cart.cartList}" var="item">
    <h:inputText value="#{item.cost}" id="qty" valueChangeListener="#{items.updateCost}" onchange="submit()">
    <h:outputText value="#{item.errorMsg}"> </h:outputText>
    in the backing bean
         Item item = (Item) model.getRowData();
    // do some update, if the cost too larger, change to max_cost
         item.setCost(max_cost);
         item.setErrorMsg("Error Msg");
    After calling the valuechange method, the screen output doesn't update the cost.
    How to update the table value in the valuechange event?

    As you're misusing the valueChangeListener to set another input field, you need to skip the update model values phase. Otherwise the value set in the valueChangeListener will be overridden by the submitted value. You can do this by calling the FacesContext#renderResponse() inside the valueChangeListener method. This will shift the current phase immediately to the render response phase, hereby skipping the update model values and invoke application phases.

  • How to update the condition price in the sales order for all the items

    Hi,
    How to update the condition price for all the itmes in the sales order to carry out the new price automatically through a stand alone program, for all the orders in the billing due list table?
    Thanks,
    Balaram

    Hi,
    There is a change in the requirement.
    Scenario:
    I have created a sales order with some 4 condition types, in that 2 condition types are of class A & B and the other two is of class C. Here I need to update the condition price of class A & B only and the remaining condition types should not get update even though there is an updated price is available.
    For the above scenario, I need to write a standalone program. Do we have any function modules to update the price of the single condition in the sales order? Please tell me how we can update the sales order at item condition level.
    Thanks.
    Balaram

  • How to update the condition price in sales order while creating the invoice

    Hi,
    How to update the condition price in the sales order to carry out the new price while creating the invoice?
    While creating the invoice it should update the condition price in sales order.
    Thanks,
    Balaram

    No, pricing is not there in delivery.
    I found an exit for VF01transaction where we can update the price in order.
    Can you please tell me how to update the price if I have the order, material numbers and conditions number?
    Thanks,
    Balaram

Maybe you are looking for