Country of Origin in a Sales Order

I am trying to figure out how to view the Country of Origin in the Sales Order screen.  In the Query Generator for the table (RDR1), there is a field for the Country of Origin and it can be used in the query, but I can't seem to find the field in the actual sales order.  I have gone through the form settings for the row details.  Am I missing something?  Can this not be viewed in the sales order?
Any help is appreciated.
Thank you,
Amanda

Hello Amanda
Country of Origin is a field which should be defined in the item master data first,
then passed to the market document.However,it is not accessble in the
standard form right now.
As a workaround,you can try the below procedure should you want to use this field:
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"
Regards,
Syn Qin
SAP Business One Forums Team

Similar Messages

  • Finding the original quanitity on sales order : Select Query on CDPOS ?

    Hello ABAPers,
      I have created a sales order and I changed the order quantity over many times using Va02. If i want to programatically determine the orginal quantity, on the sales order when it was created , how would i determine ?
    I thought, I would do a select query on CDPOS table and find out. But i found from se16 that for the Object ID - VERKBELEG and Object id = 00000XXXXX ( where XXXXX is sales order number), the VBEP and VBAP entries for Update mode shows no Old_vales and New_values.
    But if i click on environment>Changes> in Va02 for that particular Sales order, I see the old and new values list.
    Why is this not listed in CDPOS ? How do I progrmatically determine the original quanitity on Sales order ?
    Thanks
    SHK

    Hi Ferry,
      That FM did the trick. I ended up creating a FM myself to find the original qty and original unit. Somehow select qry on CDHDR and CDPOS, returned empty field for Old_value and new_value. Here is my FM below
    FUNCTION z_sw_originalqty_on_so.
    *"*"Local interface:
    *"  IMPORTING
    *"     VALUE(I_VBELN) TYPE  VBELN OPTIONAL
    *"     VALUE(I_POSNR) TYPE  POSNR OPTIONAL
    *"  EXPORTING
    *"     VALUE(I_ORIGINAL_QTY) TYPE  KWMENG
    *"     VALUE(I_ORIGINAL_UNIT) TYPE  VRKME
      DATA : i_editpos TYPE TABLE OF cdred INITIAL SIZE 1  .
      DATA : wa_editpos LIKE LINE OF i_editpos.
      DATA : wa_editpos1 LIKE LINE OF i_editpos.
      DATA : i_cdhdr   TYPE TABLE OF cdhdr INITIAL SIZE 1.
      DATA : i_cdpos   TYPE TABLE OF cdpos INITIAL SIZE 1.
      DATA : wa_cdhdr  LIKE LINE OF i_cdhdr.
      DATA : wa_cdpos  LIKE LINE OF i_cdpos.
      DATA : i_objid TYPE  cdhdr-objectid.
      DATA : delimiter(1) VALUE ' '.
      DATA : lv_org_qty(127)      TYPE c,
             lv_org_unit(127)      TYPE c.
      DATA : l_tabkey TYPE cdpos-tabkey.
      DATA : i_flag.
      CLEAR i_flag.
      CONCATENATE sy-mandt i_vbeln i_posnr '0001'  INTO l_tabkey.
      i_objid = i_vbeln .
      CALL FUNCTION 'CHANGEDOCUMENT_READ'
           EXPORTING
                objectclass                = 'VERKBELEG'
                objectid                   = i_objid
                tablekey                   = l_tabkey
                tablename                  = 'VBEP'
           TABLES
                editpos                    = i_editpos
           EXCEPTIONS
                no_position_found          = 1
                wrong_access_to_archive    = 2
                time_zone_conversion_error = 3
                OTHERS                     = 4.
      IF sy-subrc <> 0.
        SELECT SINGLE bmeng  INTO i_original_qty FROM vbep
                       WHERE vbeln = i_vbeln  AND
                             posnr = i_posnr.
        SELECT SINGLE vrkme INTO i_original_unit FROM vbep
                       WHERE vbeln = i_vbeln  AND
                             posnr = i_posnr.
      ENDIF.
      SORT i_editpos  BY udate utime tabname fname .
      LOOP AT i_editpos INTO wa_editpos.
        READ TABLE i_editpos INTO wa_editpos1
                 WITH KEY tabname = 'VBEP'
                          fname   = 'WMENG'
                          CHNGIND = 'U'.
        CLEAR : i_original_qty,i_original_unit.
        IF sy-subrc EQ 0.
          SHIFT wa_editpos1-f_old  LEFT DELETING LEADING space.
          SPLIT wa_editpos1-f_old AT delimiter INTO lv_org_qty lv_org_unit .
          i_original_qty  = lv_org_qty.
          i_original_unit = lv_org_unit.
          i_flag = 'X'.
          EXIT .
        ENDIF.
      ENDLOOP.
      sy-subrc = 4.
      IF sy-subrc <> 0 AND i_flag NE 'X'.
        SELECT SINGLE bmeng  INTO i_original_qty FROM vbep
                       WHERE vbeln = i_vbeln  AND
                             posnr = i_posnr.
        SELECT SINGLE vrkme INTO i_original_unit FROM vbep
                       WHERE vbeln = i_vbeln  AND
                             posnr = i_posnr.
      ENDIF.

  • Different departure country per item in a sales order

    Hi all,
    I have a tricky issue.
    We need to set a different departure country on each item of a sales order.
    Departure country is one of the key elements used by SAP to find the right tax condition record. Usually you have either to type a country in header tab (in field "tax departure country") or specify a plant set in the departure country at item level.
    We use non-stocked materials to represent "services": they are in a plant, but we can't build a plant for each country involved.
    The solution we are considering : using a user-exit to specifiy the departure country (stemming for example from the country of the shipping partner) on each item of the order (not forgetting the customer tax classification). We can thus have several departure country on a single order.
    What do you think (better ideas ?) ? Which user-exit would be best ? We are thinking of subroutine USEREXIT_PRICING_PREPARE_TKOMK, but we are not sure this is the best.
    Any solution or alternative to all this is welcome.
    Thanks a lot in advance !
    Nicolas JOSEPH-CHARLES
    On behalf of Jean-Charles CHAGUE

    Go ahead and do it in there.
    I added the codes in there too.

  • Departure country determination for 3rd party sales order

    Hello,
    We are creating a 3rd party sales order and using dummy plants and dummy shillping point. we do not have plants abroad activated.
    While creating the intercompany billing doc the departure country is not picked up correctly since we have dummy plant and shipping point.
    We want the departure country to be same as suppliers country. and we do not know the supplier details at the point of sales order creation.
    what can we do to get the correct departure country during intercompany billing?
    Regards,
    Shilpa

    You can go through OSS  Note 308989 - Consulting note for cross-company transactions, which provides details on cross-company with 3rd party sales process. Make sure that the delivery plant added in the sales order is assigned to the cross company code.
    Regards,

  • Country of Delv.Plant in Sale order

    Dear all,
             Could anybody tell me that where to specify country of delivering plant in the sale order. Since i have created a condition table that has fields as country of delv.plant and region of delv.plant.
              During creation of sales order, in conditions (item level), when i choose analysis option, for that cond.record, there is no value in country of delv.plant, but it takes region from the order.
    Could anybody help me ?
    S Sridhar

    Hi Sridhar,
    First Check whether you maintained Condition records in VK11-->for Combination (country of delv.plant and region of delv.plant)
    For your information the  plant is copied in to sales Order .
    The value proposed in the item is either
    from the customer master record of the goods recipient(Shipping Tab), or
    from the material master record.
    Regards,
    Seegal
    Edited by: Raga on Apr 1, 2010 1:04 AM

  • Sales Order - Original Document

    Dear Experts,
    Background:
    We have adopted Make-to-Order (20) planning strategy in our organisation.
    Our transaction flow is
    S.Inquiry ->
    S.Quotation ->
    S.Order ->
    MPS on S.Order/Item by MD50 ->
    MRP on FERT by MD41 ->
    Conversion of Planned Order to Process Order ->
    Packing Process
    we have set pre-requisite of Sales Order, that is Sales Inqiry & Sales quotation.
    Now Query is Stock is built against Sales Inquiry.
    I want it against Sales Order.
    How to configure Original document as Sales Order document?
    Or any alternate of it?
    What are other implications by changing original document reference?
    Chintan Patel, Ahmedabad

    *Settings for general SD functions*
    You must configure a number of general SD functions for item categories.
    *Availability check and transfer of requirements
    Depending on the item category and MRP type of the material, the system determines the requirements type or the requirements class which primarily controls the execution of the availability check and the transfer of requirements (fine tuning is carried out at schedule line level).

  • Middleware: Change sales order status

    Hi,
    I am trying to change the status of a sales order within the middleware.
    For manupulation of the data I use a custom implementation
    of 'CRM_DATAEXCHG_BADI' and there the interface 'CRM_DATAEXCH_R3D_MBDOC_FILL'.
    Is interface is called after the MBDOC is filled.
    So now I like to change the status of the sales order in that BDOC. I use the table 'STATUS' within the structure ct_bus_trans_msg. This is working fine as long as there is just one action on side of R3, e.g. created delivery for order.
    However, when I create a delivery and PGI in R3, I am not able to set the status for my sales order. Worst I do not even see where the status is set by the R3.
    Thanks for any help on this topic,
    Tim

    Tim, I am wondering what is the origin of the sales order? I assume the order was created in CRM and PGI'd in ECC. If so which version of CRM are you running since tthere can be an issue with the changebility of the order in a different system. Tiest.

  • Creation of sale order using bapi in webdynpro using table control

    only first row is getting updated when checked in va03, the line items are not getting replaced, only first row is committed..
    Here is the code for table control i used...
    http://www.scribd.com/doc/51879492/creation-of-sale-order-using-bapi-in-webdynpro-using-table-control
    pls help me out with this..

    Duplicate Posting.  Original is here: Sales order creation with bapi in webdynpro using table control

  • Change order quantity in sales order

    Hi,
    I have a sales order created. Now i want to change the Order qty depending on certain conditions through  an ABAP Program. Can any one tell me how to change it? I tried bapi SD_SALESDOCUMENT_CHANGE ..but couldn't succeed. I tried passing field to  req_qty in table ITEMS_EX and update flag in table ITEM_INX along with item number.please correct me where i went wrong?
    Thanks,
    Bhaskar.

    i stand in awe ... is such a thing legal in your country? you create a sales-order, probably sent a confirmation document (including quantities, prices and so on) to the customer and then you change the quantity according to some constructed logic?
    would you care to describe what the business-process exactly demands at this stage?

  • Sales Order Replication / Mirrir Project

    Hi Gurus,
    <b>I need a expert advice.</b>
    Here is what is hapenning in our organization project.
    We are converting the reorganizing the Company code, wbs element etc in brief consolidation of COMPANY CODE.
    <b>how are we doing ?</b>
    we have taken a mirror copy of the prd.
    and going to run all the core conversions program in mirror.it takes 4 days to do all the consolidation.
    <b>Delta Issue FOR SALES ORDER</b>
    so while mirroring we are missing the delta which is happening on the original prd FOR SALES ORDER.
    WE WANT TO HAVE A REPLICATION STRATEGY TO REPLICATE SO in the mirror for the delta period.so that after 4 days we are in synch.

    What I am trying to point out is that your .NET program (as I read it here) will ONLY pick up sales order changes.  Are you using other modules of R/3 - MM/PP/FI/etc?  If so, this change is huge.
    We went thru a few years ago.  We used the assistance of SAP themselves.  And we actually coordinated the change with the entire company.  We had all of the Dist Ctrs stage all of their weekend shipments early that week, etc.  Then on Friday night we locked down the R/3 system... and converted THAT system.  That was our preference... and SAP's recommendation - at that time.
    SAP provided some shortcuts, etc.  The entire process took most of that weekend.  The business needed to "buy into" the project... but it worked out.
    Your current approach sounds riddled with many post=conversion problems.
    Have you contacted your SAP Acct Mgr with this project?

  • Need a user exit for Export Control check in Sales Order fro VA01/VA02

    Hi ,
         I need a user exit for Export Legal Control process in Sales Order.since Ship-to country in the Sales Order is not always the ‘ultimate destination country’ User Exit needs to be built in with following logic
    1.     Check to see if ‘ultimate destination country’ field is maintained in Sales Order
    2.     If a value is maintained then for the Export control checks use ‘ultimate destination country’ instead of the Ship-To country (step 1)
    3.     If no value is maintained then use Ship-To country as default
    The user exit is called when the user creates or changes a Sales Order.
    Can anybody help ?
    Thanks

    Hi,
    Exit Name Description
    SDTRM001 Reschedule schedule lines without a new ATP check
    V45A0001 Determine alternative materials for product selection
    V45A0002 Predefine sold-to party in sales document
    V45A0003 Collector for customer function modulpool MV45A
    V45A0004 Copy packing proposal
    V45E0001 Update the purchase order from the sales order
    V45E0002 Data transfer in procurement elements (PRreq., assembly)
    V45L0001 SD component supplier processing (customer enhancements)
    V45P0001 SD customer function for cross-company code sales
    V45S0001 Update sales document from configuration
    V45S0003 MRP-relevance for incomplete configuration
    V45S0004 Effectivity type in sales order
    V45W0001 SD Service Management: Forward Contract Data to Item
    V46H0001 SD Customer functions for resource-related billing
    V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
    SDAPO001 Activating Sourcing Subitem Quantity Propagation
    <b>Reward points</b>
    Regarsd

  • Sales Return Quantity to be adjusted in original sale order

    Dear All,
    We have a scenario, where Customer provides fixed quantity PO and we have to supply the items as per the schedule until the PO qty is completed and we have to supply additional quantity in case if there is any Sales return.
    Say the customer rejects 10 nos, we inward the item through sales return process. But we require these 10 nos to be reduced in the original sale order schedules, else we do not have track about the customer rejections and have to manually keep track to send the additional sales return quantity.
    Please guide how to accomodate the Sales Return Quantity in original sale order.
    Regards,
    Vinoth.

    Dear Vinoth,
    You can always create a return delivery without referencing a Sales Order.
    Goto the delivery type LR is the standard return delivery type.
    You could copy this delivery type and create your own delivery type.
    After copying then select the newly created delivery type and click on Details.
    Under the order reference , select No preceding documents required  for the order required field.
    Click on save.
    Now you can use this Delivery type to create return deliveries by using transaction VL01NO.
    Note :- The above solution is provided for your question but is not recommended as Best Practices.
    Thanks
    Murtuza

  • Sales Order Original Order Quantity for Specific Item

    Hi there
    Where/How can I find the Original Order Quantity for Specific Sales Order?
    SELECT * FROM ont.oe_order_lines_history where version_number=0 ( I have multiple version for that specific Order)
    Do I have to use version number 0 to get the Original Order Quantity?
    Thanks
    ASIM

    Hi there
    I wrote the following query to get the first version of the Sales order Line which shows the original Order Quantity , this query is very slow, it complete in 1 minute and 20 seconds for one Item.
    SELECT hist.header_id,
         hist.line_id,
         hist.promise_date,
         hist.ordered_item
    FROM ont.oe_order_lines_history hist
    WHERE LTRIM (hist.ordered_item, '0') = '37879'
    AND hist.version_number =
    (SELECT MIN (hist2.version_number)
    FROM ont.oe_order_lines_history hist2
    WHERE hist.header_id = hist2.header_id
    AND hist.line_id = hist2.line_id)
    Is it the right method to get the Original Quantity?
    Thanks
    ASIM

  • Sales order item level deliveryblock based on the material's destin country

    Hi Experts
    I have a requirement to set delivery block to an order at the item level based on of country of destination and material.
    -Requirement is to block automatically order line when a material is not authorized (Regulatory affair) to be shipped to the country.
    -We need to allow only authorized person to have ability to remove the block-How can this be set up?
    - Delivery block like these are usually set up for sales org & material (and not country level), the issue here is different countries in same sales org.
    Awaiting for earliest comments
    Thanks
    Banu

    Hi,
    In standard SAP you can not have delivery block at the item level based on the country of destination. Because contry of destination comes from Ship to party master data and material master is not based on the country.
    You need to have development or Exit and Z table. You need to maintain the list of materials allowed to various countries in the Ztable. Exit/development needs to check the table at the time of saving the sales order, 'If there is no table entry, delevery block needs to be maintained on the particular item shipping tab.
    Further you can discuss with your technical consultant about the logic and the possibilities.
    Regards,
    Ravi Duggirala

  • Change Condit.origin field value from C to A in sales order

    Hi,
    We have to maintain Condit.origin field in Item-Conditions-Details in Sales Order.
    Path -
    Open a sales order, now db click on one line item and select conditions tab. Now db click on JMOD condition. After that you will see the Item-Conditions-Details. Now please see the Condit.origin under Control data heading.
    In my system, it is automatically selecting C - Manually entered and it is non-changeable. How can i change it to A - Automatic pricing.
    Plz guide..

    We are creating Condition record in VK11 with below shown inputs:
    Condition Type - JMOD
    enter
    Select Sales organization radio button and enter
    now we are creating a new Excise condition entry.
    Sales Organisation.........Proc. Stat.......Amount........Unit.......Valid From.........Valid to......Tax Code..
    1000...............................01..................10000...........INR........01.03.2010.......31.03.2010........A0
    and save.
    when we are creating new sales order...we don't see any changes in item condition's...C is still there...
    plz guide...

Maybe you are looking for

  • Error while registering RMI Server

    Hi I have a system connected to bradband with a static ip. I am planning to use this as the RMI server and any system connected to the internet as the client. Is this possible....? I tried to bind the name to the registry and I get the following erro

  • Microsoft Clip Gallery quit unexpectedly

    I know this seems like more of a Microsoft problem than a Mac problem, but no one on the Microsoft for Mac forums seems to have a clue. So I thought I'd check here. I have a 15" MacBook Pro (Intel) running OS 10.5.6. I have had Office 2008 installed

  • JTextPane with hyperlinks

    Hi, I?m building a little IRC client. I?m using a swing JtextPane but my problem is that I can?t insert hyperlinks into it. The JtextPane is based on a DefaultStyledDocument, I have created a Style called Hyperlink. Style style4 = myStylePane.addStyl

  • XI R2 report with dynamic connection

    I am looking for a simple sample *.aspx application (.NET 2.0 prefered) that will take a report name and connection name (as in the repository) and run the report for the current user (All my users are in the AD and single sign on works) There is so

  • Installing actions

    I was installing PTM actions in my photoshop elements 10. In their tutorial they say to place them in the Photo effects folder, and then to go into the Locale folder, and n_us to re-name the mediadata folder. After I did this, my photoshop quit worki