How to find the sales organization for the customer (VKORG)

Hi all,
       I have the customer number(KUNNR) and company code(BUKRS),
       Now i want the sales organization for that customer(VKORG).
       Please give me logic to find the sales org for that customer.
Thanks,
Ravi

REPORT ZTEST3.
parameters:
p_kunnr like knb1-kunnr,
p_bukrs like knb1-bukrs.
data:
w_kunnr like knb1-kunnr,
w_vkorg like knvv-vkorg.
select kunnr from knb1
into w_kunnr
where
kunnr eq p_kunnr and
bukrs eq p_bukrs.
select vkorg into w_vkorg
from knvv
where kunnr eq w_kunnr.
write:/ w_kunnr,p_bukrs,w_vkorg.
endselect.
endselect.

Similar Messages

  • How to find out Sales organization of a sold to party from tables

    Hi all experts, I have the following questions:
    1. How to find out Sales organization of a sold to party using tables?
    2. Also please tell any function module which gives relationship between sold-to-party and sales organization to which it belongs.

    Hi,
    Check table CRMM_BUT_LNK0141 to obtain the sales area of a BP (by BP Guid).
    If you need the sales office and sales group, read GuidSet of that table and check table CRMM_BUT_SET0140 to list the sales office and sales group by that Guid set.
    There are some function modules too:
    CMS_BUPA_ORGDATA_GET_BL among others.
    Regards,
    Susana Messias

  • I have a new Samsung phone and I live in CT. Last month they charged me $38 on my bill for the sales tax for the new phone which was $600. I'm paying for the phone itself over 20 installments of $30 each.  Now again I'm getting that same $38 charge. I can

    I have a new Samsung phone and I live in CT. Last month they charged me $38 on my bill for the sales tax for the new phone which was $600. I'm paying for the phone itself over 20 installments of $30 each.  Now again I'm getting that same $38 charge. I can't  believe that the monthly CT tax is higher than the payment for the phone itself. Does this make sense. Last time I spoke with them on the phone it was for 1 1/4 hours for something simple. I don't want to call unless I need to. The salesman told me nothing about any of this. Thank you for any help you can offer.

    The bill from last month states:
    CT state sales tax**     $38.10
    ** In some states sales tax or surcharges are calculated on the full cost of the full retail price or VZW cost of the device you purchased and not on the discounted price you pay. The sales tax or surcharges charged on your device was based on $599.99 and appears on this first bill.
    The current bill says the same.
    Actually, now I'm realizing that last month's bill stated I was making the first payment toward the phone. Now this month also says it's the first payment toward the phone when it's really the second.

  • How to disable the sales organization for journals in an activity?

    Hello,
    I had some products created direcly in mySAP CRM (not downloaded from R/3) that don't need - and don't have - sales organization information (They don't even have the "SD" view on them, and represent product families, that are common to many companies, or even services, valid for all sales organizations in the company). Then, althought I created a journal saying that it was not dependent on a sales organization, when I insert this product on the journal, the error message no. CRM_PRODUCT_I419  appers "Product X in sales organization Y.,distribution channel Z not  scheduled ".
    Is there any way I can disable this check of the activity on a journal's product, or something that could prevent this error from happening (apart form inserting the sales organization information on the product?
    The version I use is 4.0
    Thanks in advance!
    With my best regards
    Simone
    Edited by: Simone Pereira on Apr 16, 2008 10:03 PM

    hi
    m sorry i cant send you any screenshots as such  as i m not having SAP on my system.
    but you can go inside the SPRO and there in CRM-->Master Data> Product-----> Product catalog
    inside the catalog you must be having some product specific attributes there.
    just deactivate them if you do not want to use them
    also inside the org model again check whether the journal is org independent or not
    guess it will help
    best regards
    ashish

  • How to find conversion exit MATN1 for the field MATNR

    Hi Friends !
    I want to run the infopackage with selection on material. But when put some value in the infopackage selection screen, it says "cannot find conversion exit MATN1 for the field MATNR".
    Ques is how to find where this conversion exit is written? Will it be written in ECC side or BI side?
    Source System Datasource : 0MAT_SALES_ATTR
    InfoObject in BI : 0MAT_SALES
    With Regards
    Rekha

    HI ,
    It will be available in the BI system itself as FM , you can find them in TCODE : SE37 --> provide the converstion exit name
    with star on both sides like MATN1 and press F4 key , every convertion exit will have two FM s , one for INPUT and
    one for OUT put , you can try the Test Run ofFM to check how it works
    For MATN1
    CONVERSION_EXIT_MATN1_INPUT
    CONVERSION_EXIT_MATN1_OUTPUT
    Regards,
    Sathya

  • How to find a/c group for a customer

    hi evdrybody,
    how to find a/c group of a customer in va02
    i tried in extras a/c group ifo but there i am getting all a/c group data. but i need only a a/c group which created with this customer
    thanks
    kranthi

    Dear Kranthi
    Go to XD03, give the customer code and enter.  Now select "Extras - Administrative Data".
    Thanks
    G. Lakshmipathi

  • How to find my security answers for the security  questions?

    how to find mysecurity  answers for tha security  questions?

    Click here and search the article for '2 out of 3' without the quotes; in the case of forgotten answers, this generally involves either a message being sent to your rescue email address or contacting the iTunes Store staff directly.
    (74907)

  • How to find out table name for the field in the webUI

    Hi.
    I am in CRM2007.
    So i go to the transaction code    BSP_WD_CMPWB
    In that i provide the component name as CRM_UI_FRAME.
    I press the Test button.
    So, it opend the WebUI.
    I want how to find out table of the particular input field?
    I mean from which table the data is retrived how to find out?
    When i enter some thing in the input field how to find out in which table that data is stored?
    By pressing F2 on the input field it opend View and Component Name.
    I want find out table of that particular field. How to find it?
    If anybody know about this explain it with Screen shorts if possible.
    Thank You.
    Krishna. B.

    hi
    goto tx genil_model_browser. Suppose you want to find fields reated to your order header eg sold to name. In component set write all and press F8. Then goto access object and in access object click on node BTAdminH. Click on attribute structure. Here you will find structure and attributes. If you click relationship then you will see all the relationship wrt btadminh. open any r/s that you require. and click on other object and attribute. You will get to know the structure.
    Best regards
    Pankaj kumar

  • How to find out Query Statistics for the initial selections

    Hi,
    Is there a way to find out the statistics for the initial query execution(without any navigations)
    /Santosh

    Hi,
      For knowing the statistics of the Query (Responce performence). U can find out with T-Code  RSDDSTAT. The base rule is U have to execute the Query atleast once. If you the aggrigates are there at DATA TARGET level u can get a details view with TCode  RSDDV.
    Best Regards

  • How SBO handles a Sale Price for a customer?

    Hi,
    I know that SBO has list prices, special prices per customer, volume discount prices, season temporary discounts, etc. How these are handled?, I know that first SBO looks for a item special price for the customer,  but after that is not clear to me what SBO does, Does SBO Looks for a volume discount or a Item Group Discount?, What are the priorities?
    Does anyone knows where I can find a work flow diagram or a step by step guide that shows the way the sale prices are handled in SBO?
    Thanks

    This is from the Help in SBO, hope this explains.
    Automatic Price Calculation
    When you enter a business transaction, such as an outgoing invoice or a purchase order, the system calculates the price for an item automatically. The system proceeds as follows here:
    The system first checks whether a special price has been defined for the item for this particular business partner. This special price could also be based on a particular date or quantity.
    If no special price has been defined, the system checks whether a discount group has been defined for the business partner that can be applied to the item.
    If no special price has been defined, the system checks whether a special price has been defined for the item (for the price list entered in the master record of the business partner), which once again can be based on a particular date or quantity.
    If no special price has been defined, the system copies the price for the item from the price list entered in the master record of the business partner.
    If a discount has been granted because of a special price, the discount is indicated in the detailed information of a line in the purchasing or sales document in the Discount % field.

  • How to create a sales order for Onetime customer with Tax code?

    Hi everyone,
    Can I use sd_salesdocument_create for a one-time customer? From the standard bapi, which field can I use for the Tax Code ?
    pOints will be given.

    I have the same problem... should I use a different function module on this? if yes, what is it?
    I need to create a sales order for one onetime customer with tax code... help me pls....

  • How to find the Unit Price of an Item in the sales order for a customer.

    Hi All,
    I need to know a function module or table or any way by which I can find out the price of an item.ie unit price.
    Thanks,
    Ashish.

    Hi
    See table MBEW. The value or price is in terms of UoM that you have in MARA-MEINS (base unit measure). You have 2 diff. prices: variable and standard in function of type (field VPRSV).
    Regards
    Eduardo
    Edited by: E_Hinojosa on Aug 12, 2011 10:49 AM

  • Searching for Sales Order for the given Customer PO Number Pattern in BAPI

    Hi,
         I have developed a BAPI which retrieves all the Sales Orders for a given Customer (Sold-To). The Following are the Input Parameters given in the Function Module (RFC).
    Customer Number (Mandatory)
    From Date (Optional)
    To Date (Optional)
    Sales Order Number(Optional)
    Customer PO Number(Optional)
    Now, when the Customer PO Number is populated, it will come as a Pattern, say 9ab* and I need to retrieve all the Sales Orders with PO Number starting with 9ab.
    When I am trying to retrieve, it is giving different set of output based on the Case specified in the Customer PO Number Pattern. Lets say, if I give 9ab, I get 200 Records but if I give 9AB, I get only 5 to 6 Records.
    As I have understood from the Standard Transaction VA03, it has a Search Help VMVAA which retrieves all the Sales Orders for the given PO Number pattern irrespective of the Case, that is Lower Case, Upper Case or Mix of Upper and Lower Case.
    I can see the Code in the Search Help Exit but couldn't find useful piece of code which I can implement in my BAPI to simulate the same.
    Can somebody help me on this?
    Thanks,
    Venkat.

    Hi Sudhir,
             I think you did not understand what my problem is. What I mean to say is, for Customer X, the PO Number could be 9abc and for Customer Y, the PO Number Could be 9ABC.
           So, according to your logic, if I translate it to Upper Case, it will give the Sales Order details of Customer Y to Customer X.
          And more over, SAP stores the PO Number as it is entered in the Sales Order Screen (VA01).
        What if the Customer PO Number for Customer X is 9aBcDeFgH? and the PO Number for Customer Y is 9AbCdEf?
       Hope you've understood my question.
    Thanks,
    Venkat.

  • Maintain Sales area for a customer...if this is through VOR1 & VOR2..HOW?

    Hi All,
    i forgot to add the sales area for a customer. now how can i maintain the sales area .  sales org,, dist. channel., and division.
    if you suggest to check thjrough VOR1 and VOR2. please let me know how to proceed through this. what are the parametres i choose.
    i go through the other forms on this subject, let me know more.
    Thanks in advance.
    sachin.s

    Dear, Sachin
    Your question is not directly clear but let me answer your question from 2 angles.
    If you mean to say that your customer does not have the needed sales area then please enter the sales area when you do XD01 and enter the customer number this will extend him.
    If you mean to say that the Sales Area is not in configuration period then please go to SPRO, Enterprise Structure Sales n Distribution Define all the needed Sales Organization, distribution channel, and division. Then assign your Divisions to your distribution channels, and do all relevant needed assignments. Then make sure your sales order document is allowed to do business on that particular Sales Area.
    good luck

  • How to find the text id for the text in the sales order

    Hi all,
    How to find the text id for the item-text in the sales order?
    There are different Text available in  the sales order under item like Warehouse instruction, CSR instruction...
    I want to know the corresponding Text id for the text ELECTRONIC ORDER COMMENT.
    Table TTXID contains the validation of the Text id.
    Please help me in knowing the way to identify the text-id from the text list..
    Thanks foryour help
    Suresh Kumar

    U can fetch the texts for the items using
    Read_text.
    Example:
        g_f_tdname = xvttp-vbeln.
        g_f_obj = p_obj.
        g_f_langu = 'DE'.
        REFRESH g_t_lines.
        CLEAR g_t_lines.
        CALL FUNCTION 'READ_TEXT'
             EXPORTING
                  id                      = p_var
                  language                = g_f_langu
                  name                    = g_f_tdname
                  object                  = g_f_obj
             TABLES
                  lines                   = g_t_lines
             EXCEPTIONS
                  id                      = 1
                  language                = 2
                  name                    = 3
                  not_found               = 4
                  object                  = 5
                  reference_check         = 6
                  wrong_access_to_archive = 7
                  OTHERS                  = 8.
        IF sy-subrc <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    The Required fields are,
    Text-id ,language,name,object.
    Let me know if you further require help.
    Regards

Maybe you are looking for

  • How to track the changes at report level

    Dear Team , Could you please help on below scenario. 1.Is there any way to track the changes for each report wise ? Does it possible using the audit database? 2. how to get list for report names by each folder wise( public folders) ? Thanks & Regards

  • Sales orders locked

    Hi to all, I am facing an strange issue as we use Scenario-A for sales order creation which are created in CRM then replicated to ECC for subsequent processing & now we get some strange issue of sales orders not able to open in ECC as we get the erro

  • What are the defects of the new ipad?

    What Are the defects of the new ipad 3?

  • How to focus a cell on ALV grid display

    hi, I need to set the focus to the first cell on the first row in the ALV grid.I am using object oriented ALV grid control.Can anyone help me out in this regard. Regards, Anil.

  • Unhandled exception in crw32.exe when dragging field onto report

    I support a Crystal Reports Designer XI user who is receiving an error: Unhandled exception at 0x00891ff3 in crw32.exe: 0xC0000005: Access violation reading location 0x00000020. So far, this only appears to happen when she drags a field from Field Ex