FM to get ship-to country from  sales doc

Hi,
Is there any Function module or a BAPI which can give
ship to country based on the sales document ...
Regards,
Amit

Try
<b>XSI_GET_SHIPPER_ACCOUNT
XSI_GET_SHIPPER_ACCOUNT_DEF</b>
Hope this’ll give you idea!!
<b>P.S award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise"

Similar Messages

  • Copying Exchange rate from sales Doc to billing doc

    Hello,
    I have an issue with the update of the exchange rate in the billing document.
    In fact when i create a sales order then the delivery associated. then i change the exchange rate in the sales order.
    When i go to create the billing doc, the exchange rate is not updated in the billing document.
    I guess because it is not defined in the copy rule requirement from Sales doc to delivery, and from delivery to billing doc? can you please confirm if it is the case?
    Thanks
    Regards

    Hi
    First of all check weather exchange rate has been maintained between the currencies from which you are changing (Ex : INR to EUR). If the currency conversion has been maintained then check in VTFL copy control weather PricingExchange rate type field has been maintained or not. If not maintained then maintain the PricingExchange rate type feild as per your requirement and then do the complete cycle again.
    Regards
    Srinath

  • Copy "Ship to party" from sales order to "Delivery addreess" in PO

    Hi All,
    when i create a Purchase Order in ref to the Purchase Requistion of the Sales Order, I want the Ship to Party address from line item of the Sales Order needs to get copied to the Purchase Order line item in "Delivery address" tab of the PO.
    Please tell me the required configuration settings to achieve this.
    Awaiting your responses.
    Thanks in advance.
    Rgds.
    Anil.

    Hi All,
    This is a third party scenario. And in third party scenarios I guess the ship to party address from sales order will be automatically copied into the delivery address of the PO (Standard Functionality of SAP). But some how this is not happening and use to happen till the sixth week. Do I still need to check the enhancements given by the experts above? or we can achieve this with some configuration settings from schedule lines etc?
    Rgds,
    Anil.

  • Deactivate country from sales/purchase tax determination

    Hello,
    We are facing a typical problem in tax, We have a requiement to deactivate tax for some countries and these countries are not relevant for any sale/purchase tax. For that, we removed the country from define tax determination rules in sales & distribution->basic functions. However when we exectute the intercompany delivery, system showing the various error messages as attached in detail.
    The reason we removed the countries since tax classfication view not needed in customer/material master view if the countries are not relevant for tax.
    Kindly suggest.
    Best Regards,
    Goutham

    Even if any customer or country is exempted from tax, dont hide from the respective masters.
    What I would recommend is that you have a separate tax (as like exports) and assign to a combination of destination country and origin country as tax exempt, in VK11.
    thanks
    G. Lakshmipathi

  • Getting the Net Price from sales order into PO

    Hi All,
    I want to get the netprice from sales order to PO just before creating the PO.
    Is there any user exit for that.
    Thanks,
    Praveen

    where u are creating PO ? How u are passing Sales Order Number to PO ?
    regards
    Peram

  • Delete a line item from Sales Doc type RE

    Unable to delete a line item from a sales order linked to document type RE.  Get a long runtime - no specific error message.  Use the 'Stop Transaction' option to end the transaction.
    Have done thorough testing and can delete line items linked to all other sales document types in our system.
    Researched SPRO to see if there was a line item deletion option that was not created for sales doc type RE - but can find nothing.
    On a critical time line here - this was discovered during Hotpak installation testing which is scheduled to move to PRD June 22.  Question as to why we have not run across this issue before now??  - I don't think we have had an occasion to delete a returns line item before - but I want to have the option if available.
    Any help to resolve this issue would be appreciated.
    Regards
    Patsy

    Thanks for your response.
    After creating document type RE, execute VA02 transaction, select line item, select delete line item icon.  The system goes into runtime and just stays there.  No error message, no abap dump.  To escape the transaction, I have to select 'stop transaction'.
    I have tested all other document types we use in our system,  (including our customized transactions) SO, CR, DR, etc., and the system allows line item deletion.

  • Record Management: get logical document object from physical doc. object

    Hello,
    I'd like to get logical document from physical document (sdok object - stricture containing class and objid).
    There is BAPI for "opposite direction": SDOK_LOIO_PHYSICAL_OBJECT_GET. By this FM I can get physical document's sdok object from logical document's sdok object.
    Can anybody tell me BAPI's name for it?
    I tried SDOK_PHIO_LOGICAL_OBJECT_GET, but this BAPI doesn't exist.
    Best regards,
    Josef Motl

    Josef,
    There are I don't believe there are any bapi's for this. You probably have to do this via ABAP OO. Create an object of the type CL_SRM_DOCUMENT. This is your logical (LOIO) object of your document. You have to enter the documentclass and the objectid of the document. This class has a method get_variant. This variant is your fysical (PHIO) object of the document. Use version and variant 0 so you will get the latest version object of your document.
    If this isn't the answer, can you please explain where do you get the fysical object from if you haven't got the logical first?
    Regards,
    Tjalling-Jan

  • Get the Ship-to-Party from Sales Order and Line item

    Hi all,
    I am developing one report in which I want to get the Ship-to-Party for a particular Sales Order and Sales Order Line item number.
    I can see table VBPA from I can get value of KUNNAR and so on. But my concern is that can the Ship-to-Party differ for different line items for sales Order, if yes how to get that one, any table or any function module?
    In my scenario i found out that ship-to-party only depend upon sales order and partner function not line item.
    please help me..
    regards,
    vikas.

    Hi,
    First step: Customer Creation (T. Code: XD01)
    i) Create Sold to Party (Ordering Party) with Account Group: Sold-to-Party
    ii) Create as many Ship-to-Party and Bill-to Party, if reqd, with Account appropriate Account Groups.
    iii) Match all the Ship-to-party/ Bill-to-Party/ Payer for the respective Sold-to-Party under Tab: Sales Area data, Sub-tab: Partners.
    Second Step: Sales Order Creation (T.Code: VA01)
    i) Enter Sold-to-Party at Header Level.
    ii) Enter Materials (at Line-item level).
    iii) Now, System will pop-up all the Ship-to-Party/ Bill-to Party/ Payer, Matched for the particular Sold-to-Party. Click on appropriate selection.
    OR
    Now, (if option doesn't pops-up) select the line and Double Click on to the same line. it will lead to the next page. Here, Click Tab: Partners
    Now, in Column: Partner Function, search for appropriate Partner: Ship-to-Party or Bill-to-Party or Payer.
    Remember: Sold-to-Party will be non-editable as entered at Header level.
    Repeat the same for Each Line-item.
    Regs,
    Amit K. Yadav

  • Getting purchase order number from sales order number

    Hi Experts,
    My requirement is to fetch the following values from a sales-order number:
    Purchase Order Number,
    Delivery Date
    Order Type(Source of Order EDI/EFAX/..)
    Ship To,
    Sold To.
    We are trying to fetch this data from the ECC system in our CRM system.We are exploring the possibilty of RFC calls to get the data from ECC system.
    Is there any standard FM present in ECC which gives the above information from the sales order number?
    Thanks in advance
    Regards
    Shilpi

    Hi,
    Check the FM BAPISDORDER_GETDETAILEDLIST
    It provides the whole data for a particular Sales order which you need to provide Sales order number in the table 'SALES_DOCUMENTS' in tables parameter.
    You have to provide the view what you need and in the import parameter 'I_BAPI_VIEW' like all the views that are in the tables parameter...
    HEADER, ITEM etc...
    The fields
    PO_METHOD
    PURCH_NO
    REQ_DATE_H
    SOLD_TO " will provide you the details you need in the table 'ORDER_HEADERS_OUT'
    SHIP_POINT in ORDER_ITEMS_OUT table provides the ship to
    Regards
    Sarves

  • Getting valid idoc number from the sales document

    hi,
    Iam sending the code for getting the idoc number from sales document.
    but iam not getting the result.
    please see the code and correct the code so that i will get the idoc number from the sales document.
    tables edid4.
    data l_docnum like edid4-docnum.
    parameters:p_vbeln like vbak-vbeln.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
      exporting
        input         = p_vbeln
    IMPORTING
       OUTPUT        = p_vbeln
    select single docnum from edid4 into l_docnum where sdata like '&p_vbeln&'.
    if sy-subrc = 0.
    write edid4-docnum.
    else.
    write ' the record is not found'.
    endif.
    it is very urgent..............
    thanks in advance......

    See the below code :
    report zxyz.
    tables edid4.
    data l_docnum like edid4-docnum.
    parameters:p_vbeln like vbak-vbeln.
    <b>data sdata like edid4-sdata.</b>
    start-of-selection.
    call function 'CONVERSION_EXIT_ALPHA_INPUT'
    exporting
    input = p_vbeln
    IMPORTING
    OUTPUT = p_vbeln
    <b>concatenate '%' p_vbeln '%' into sdata.</b>
    select single docnum from edid4 into l_docnum
                  where sdata like <b>sdata.</b>
    if sy-subrc = 0.
    write edid4-docnum.
    else.
    write ' the record is not found'.
    endif.
    Thanks
    Seshu

  • Get plant from sales org and distribution channel

    Hi expert,
    how to get default delivery plant from sales organization and distribution
    channel.
    thanks,
    neo

    thanks for your quick reply,
    i saw table tvkov which has field vkorg,vtweg
    but in tvko i found vkorg only .
    i don't get vtweg in tvko table,
    can u tell me which two condition i need to use ofr join,
    one is vkorg and the other one (?) i don't get it.
    thanks,
    neo

  • Invoice Doc Display for Ship to country

    Hi,
    I am trying to Display Invoice Doc's based on Ship-to-country.
    I am Displaying Invoice amount, Payment amnt and With holding tax amnt.
    I am getting Payment Doc's(cleared) and Invoice Doc's from BSAD.
    Here the problem is I am able to get Ship-to-country for only Invoice Doc's.I am not getting for Payment Doc's.
    For Ex:If there are multiple Invoices for 1 Payment Doc and the Invoices are for Different Ship-to, Only specified Ship-to Invoices will be captured.
    Here the criteria is Total Invoice amnt should be equal to Sum of the Payment amnt and Withhold amnt.
    Same situation will arise when multiple payment document's for multiple Invoices.
    They way I am taking Ship-to-country is From Invoice doc>Sales doc>Ship-to.
    Please help me if any thing I missed in the flow to get the correct result.
    Thanks in Advance for your reply.

    hi,
    invoce number and invoice document number are same. you just give the same invoice document number here.
    otherwith check with XBLNR ( reference document number )
    cheers,
    sasi

  • Unable to copy line item from Sales Order [ZPLV] to new Sales Order [ZPCV]

    I have here a requirement to create a new Sales Order[ZPCV] with reference to the previously created SO[ZPLV].
    I looked in transaction code VTAA, and the configuration for the aboves condition is:
    target sales doc type - ZCPV   from sales doc type - ZPLV
    dataT: 302, 907 and 001 respectively
    copying requirement: 001
    copy item number is checked
    complete reference is checked
    is there something wrong with the configuration?
    please advice!
    thanks,

    Hi
    For those line items you can assign a REASON FOR REJECTION. Automatically the status of those line items will be closed.
    Thanks,
    Ravi
    PS : sorry....please ignore my post.
    Edited by: sankar ravi on May 20, 2008 3:45 PM

  • Taxing incorrectly on sales doc

    Our sales docs should charge city tax based on the plant from which the product is purchased.  If that plant is outside the city limits and does not get charged city tax the sales doc then applies tax based on the customer address. This is incorrect...they should only be taxed based on the plant address.  Can anyone give me some ideas as to where this is configured and can be changed?

    Your statement is a bit confusing.  Standard tax determination takes into account the following values:
    Tax Departure Country -- From the plant (standard sales) or sales organization (I/C sales)
    Destination Country -- From the ship-to
    Customer Tax Classification -- Using the country and tax category of the plant
    Material Tax Classification -- Using the country and tax category of the plant
    Can you explain a bit further, please?
    Thanks,
    Ben

  • How to use FM CRM_ORDER_READ using only object_id(sales doc)

    Hello Experts,
    I need to get the details for a given sales document in
    CRM(crmd_orderadm_h-object_id). I want to use FM CRM_ORDER_READ
    to get the details of a sales doc but my problem is where to put the object_id
    value. ANy simple example would be highly appreciated.
    Thanks a lot guys and take care!

    DATA:BEGIN OF i_order_h OCCURS 0.
            INCLUDE STRUCTURE crmd_orderadm_h.
    DATA:END OF i_order_h.
    SELECT *
        INTO CORRESPONDING FIELDS OF TABLE i_order_h
        FROM crmd_orderadm_h
       WHERE object_id    IN s_obj_id.
      DATA: i_header_guid   TYPE crmt_object_guid_tab ,
            i_et_partner    TYPE crmt_partner_external_wrkt,
            i_et_orderadm_i TYPE crmt_orderadm_i_wrkt,
            i_et_product_i  TYPE crmt_product_i_wrkt,
            i_et_pricing_i  TYPE crmt_pricing_i_wrkt,
            i_et_schedlin   TYPE crmt_schedlin_wrkt,
            i_et_sales      TYPE crmt_sales_wrkt.
    LOOP AT i_order_h.
    CLEAR i_header_guid.
        REFRESH  i_header_guid.
        APPEND i_order_h-guid TO i_header_guid.
        CLEAR: i_et_partner,
               i_et_orderadm_i,
               i_et_product_i,
               i_et_pricing_i,
               i_et_sales,
               i_et_schedlin.
        REFRESH: i_et_partner,
               i_et_orderadm_i,
               i_et_product_i,
               i_et_pricing_i,
               i_et_sales,
               i_et_schedlin.
        CALL FUNCTION 'CRM_ORDER_READ'
          EXPORTING
            it_header_guid = i_header_guid
          IMPORTING
            et_partner     = i_et_partner
            et_orderadm_i  = i_et_orderadm_i
            et_product_i   = i_et_product_i
            et_pricing_i   = i_et_pricing_i
            et_sales       = i_et_sales
            et_schedlin    = i_et_schedlin.
        IF sy-subrc = 0.
        ENDIF.
    ENDLOOP.
    Message was edited by:
            EastViking

Maybe you are looking for

  • Why are Symbian 'smartphones' not as smart as thei...

    I used to have a Nokia 6230i, which I was really pleased with – the operating system (S40) was pretty much a perfected evolution from what I used to have on my 5140, and before that, the 5210. Recently I was offered an 'upgrade' to the 6120 classic,

  • Compressor outputs pixelated H.264 video when using a virtual cluster

    Hey all, So for some reason, when I use compressor to convert my HDV .mov file to H.264, if I am using a virtual cluster (8 core Mac Pro5,1)the end product comes out pixelated. However, I just tried again without the virtual cluster, and it came out

  • Rows into colums

    Hi to all, pls help me how to convert rows into columns I hav table like this PRODUCT_NAME     RM_RATE     MATERIAL_NAME aaaaaaaaaaa     51.52     PSPARLEG aaaaaaaaaaa     559.39     PBPARLE aaaaaaaaaaa     30.38     BOPP TAPE aaaaaaaaaaa     204.81

  • How do i make a array of user defined structure and creat a pointer for the same

    Function The prototype of the dll function is unsigned long PassThruIoctl(unsigned long A, unsigned long B, void *pvar1, void *pvar2); "void *pvar1" and "void *pvar2" are pointers to different Structures. The value of  "unsigned long B" will determin

  • What the H.....?

    Suddenly my itunes quit working. I went into control panel and uninstalled it. In my attempt to uninstall quicktime I was unable to do so. Got a "Fatal Error" during installation message. I downloaded a new version of itunes and that wouldn't install