How to get Sales rep information for each customer

Hi
For each record in ra_customers, I want to find associated Sales rep for each customer.
Can some one please tell me what table stores this information?
Thanks
Aali

Try
SELECT rc.customer_name, rc.customer_number, jrs.NAME
  FROM jtf_rs_salesreps jrs, ra_customers rc
WHERE rc.primary_salesrep_id = jrs.salesrep_idHope this helps,
Sandeep Gandhi

Similar Messages

  • How to get top 10 records for each option in table prompt?

    Hi,
    I have created one report in which my requirement is to get top 10 highest salaries for each departments. I have created one table prompt which contains the names of all departments. On the salary column I have applied one filter i.e. TOP 10. Currently I am having 3 departments. I want to show the top 10 salaries for each department, but I am getting top 3 from first, 4 from second and 3 from third.They are calculating top 10 salaries based on all departments, not on individual department. How can I get top 10 salaries for each department?

    Hi,
    Use TopN function in your column formula.
    Ex: TOPN("Sales ,5 BY department)
    Thanks,
    Satya

  • How to get Privacy Policy value for each userprofile in sharepoint 2010?

    In userprofile application, we have defined Privacy Policy of mobilephone feild as optional, so every user has option to choose visibility scope of this property to "Everyone/My Manager/my colegues/Only Me" .
    Now I am trying to get mobilephone value and their selected visibility option for each user.
    I am able to get mobilephone value but I could not get "what each user has chosen as their visibility scope"?

    Hi,
    According to your post, my understanding is that you want to get Privacy Policy value for each userprofile in sharepoint 2010.
    You need to use RunWithElevatedPrivileges method to impersonate user.
    To get the get mobilephone policy, you can use user["CellPhone "].Privacy.
    For more information, you can refer to:
    c# - Getting property privacy with Sharepoint 2010
    How to Programmatically Impersonate Users in SharePoint
    Managing Sharepoint 2010 Profiles Programmatically
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • How to get sales order information in COPA datasource

    Hi All,
    I wish to get sales order information like Customer, Sales office, Sales group etc in COPA datasource. Presently all this information is not available and the fields display blank value. Can you please guide me through the steps to achieve this.
    Thanks in advance,
    Sananda

    Hi
    They actually create Generic extraction for COPA modules..especially all finance modules. Hope you are aware of  it and do you know the steps for COPA?
    Any check all the below links as well lot many threads for COPA available. pls chek that as well
    http://sap.seo-gym.com/copa.pdf
    http://searchsap.techtarget.com/answer/Steps-for-a-generic-extraction-of-FI-CO-COPA-and-LO-in-SAP-BW
    Problem with COPA extractor 1_CO_PA<...>
    Delta Mechanism : COPA extractor
    steps for FI-SL and CO-PA Extraction
    COPA extraction steps for BI 7.0
    This link would be help ful:
    http://www.sap-img.com/business/copa-extraction-steps.htm

  • How to get the time interveral for each status of worklow (wating,Inprocess

    Hi Friends,
    I have requreiemnt to get the time interval for each status of workflow.
    ex.
                                                                     status
    workflow id  | startd date | enddate       | waiting | Inprocessing|Error|......
    1026            10.10.2008  25.10.2008        1hr      1hr 30 min    2 hr
    Please do give me idea how to get the time stam of each status of workflow.
    Thanks,
    D.prabhu

    Hi,
    I think the following tables would be helpful to you:-
    SWW_CONT     Container Contents for Work Item Data Container
    SWW_CONTOB     "Container Cont. for Work Item Data Container (Only Objects)"     
    SWWLOGHIST     History of a work item     
    SWWORGTASK     Assignment of WIs to Org.Units and Tasks     
    SWWUSERWI      Current Work Items Assigned to a User     
    SWWWIHEAD     Header Table for all Work Item Types
    Hope it Helps!
    Regards,
    Kanika

  • How to get all GL accounts for each account in a given bank...

    Hello Experts,
    Is there a way to get all GL accounts for each account in a given house bank?
    IN our company, there are 5 GL accounts for each bank so 1 GL for 1 account. they are for recon, payables,
    receivables, etc. I checked table T012K but it only shows the main GL account. Hope you
    can help me guys. Thank you and take care!

    Try this.. it is based on company code
    here it_cocodes is an internal table containing company codes
      DATA: BEGIN OF it_glaccount OCCURS 0,
        bukrs TYPE bukrs,
        saknr TYPE saknr,
        txt50 TYPE txt50_skat,
       END OF it_glaccount.
      DATA it_glaccount_wa LIKE it_glaccount.
    LOOP AT it_cocodes INTO it_cocodes_wa WHERE ktopl <> ''.
        SELECT bukrs saknr FROM skb1
          INTO CORRESPONDING FIELDS OF it_glaccount_wa
          WHERE bukrs = it_cocodes_wa-bukrs.
          IF sy-subrc = 0.
            SELECT SINGLE txt50 FROM skat INTO it_glaccount_wa-txt50
              WHERE spras = 'E' AND ktopl = it_cocodes_wa-ktopl
              AND saknr = it_glaccount_wa-saknr.
            APPEND it_glaccount_wa TO it_glaccount.
            CLEAR it_glaccount_wa-txt50.
          ENDIF.
        ENDSELECT.
    loop at it_glaccount into it_glaccount_wa.
    write:/....
    endloop.
    refresh...
    clear...
    endloop.

  • How to get multiple output formats for each execution of the report?

    Hi,
    Is it possible to get multiple output formats for each execution of the report? If so can you provide some details?
    Thanks

    In Reports 6i, Reports Distribution was introduced. This allows you to run the report once and output to a number of destinations with a different format. It also allows you to distribute individual sections within a report to different destinations in different formats.
    The Destinations for a Report to distribute to are defined either in a distribution file and passed on the command line or inside of the report definition.
    To add a destination to the the report definition, bring up the property palette against the report object and then select the "Distribution" property under the "Report" node. This will bring up a dialog that allows you to create a distribution list. You can then test this list by selecting "file->distribute" from the menu.
    To run a report that is to be distributed through rwrun60, you need to add "distribute=yes" to the command line. It will pick up the destinations from the report definition. If you add "destination=<filename>" then it will pick up the destinations from the specified "<filename>" and ignore the destinations in the report definition.
    Note: if "distribute=yes" is specified on the command line then the destype/desname/desformat parameters will be used to format the report (ie: which printer/display to use during formatting for sizing objects) but will be ignored when the report is sent to the destinations.

  • How to print the out put for each customer in table

    Dear SDN Team Members!
    I've created a report and the output is displayed on the smartform for the same.
    In this report, I've selected a list of  customers and the report has to print the list of transactions being made by each customer in Smartform. 
    These details must be printed seperately for each customer. 
    I'm thinking of control statement AT NEW & AT END.  But i don't know how to use them exactly so that the output is displayed seperately for each customer in the Smartform.
    Please provide syntax and points will be awarded for.
    Best Regards!

    Hi Krsihna,
      Its simple.
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting formname = '<form name>'
    importing FM_NAME = lv_func_name.
    loop at itab.
    at new customer.  "customer must be the fisrt field in the itab and itab mus be sorted by customer.
    call function lv_func_name
    endat.
    endloop.
    Regards,
    Ravi

  • How to get the copyright information for an image?

    How would I get the copyright data from an image in the DAM?

    Assuming you are using image component[1] on a page and copyright is a string.    As a sample you could use [2] to get the copyright information.  I am not well versed with the API as there might be an better option to implement. But this just gives you an idea for the information you were looking for.
    [1] /libs/foundation/components/image/image.jsp
    [2]
    Node refNode = resource.getResourceResolver().getResource(ResourceUtil.getValueMap(resource).get("fileRe ference","")).adaptTo(Node.class);
    String copyRight = refNode.getNode("jcr:content/metadata").getProperty("dc:rights").getString() ;

  • How to get the spool information for a job

    Hi,
    After a job is run, how to get the spool inforamtion. which API can be used.?
    Thanks in advance.
    Johnney.

    Hi,
    thanks for your reply.
    My requirement is as followings.
    1. Report Z_REPORT_TEST
    EXPORT RUNUUID = '****************' TO MEMORY ID sy-repid.
    2. In Funciton Module Z_FM_test
                create a job(Z_JOB_TEST) to run report 'Z_REPORT_TEST'.
                after the job is run successfully.
                question is
                how to get the RUNUUID exported from the report ????
    Thanks & Best Regards,
    Johnney.

  • 3rd party integration: How to get XML Schema (.xsd) for a custom entity, to use with a mapper

    Is there an easy way to get the xml schema/DTD for a custom entity, specifically an .XSD file for that entity (which will then be used to create a map to be able to transform the fields of the entity to a 3rd-party message format)?
    So have a custom entity with lots and lots of fields. Each of the fields will map to a differently named field to match the schema of the 3rd party entity. A very common situation. Looking to use a tool like the Biztalk mapper or Altova's MapForce to generate
    an .xslt file to transform the downloaded entity (service.Retrieve with all columns) to the new format. (Will implement a typical VETR pattern.)
    Apparently with CRM 4 there was a call that provided this, but from 2011 has not been available. Working with a crm 2015 system.

    That will give a descriptor of the table and allow creation of an .XSD file, but it's really complex in terms of types, and the there's type conversion. It might be an easy way to get a schema, with the downside being it's hard to use that schema. 
    It seems easier to do a fetch of the record with all fields filled in using service.Retrieve, and then converting this to xml, using Microsoft's guidance leads to using https://msdn.microsoft.com/en-us/library/hh675409.aspx which will serialize the entity
    into XML with all the fields converted to type string, and with complex fields likewise converted to strings with additional information about the type. 
    Using this it's possible using an number of tools to create an easier to use .XSD file.
    However, it would seem most integrations of this type are using 3rd party CRM connectors. Perhaps this is why Microsoft hasn't provided anything direct (and took away what they did have in crm4.0 due to it generating a hard to use .XSD or due to letting
    their partners continue income streams from selling connectors").
    But without using 3rd party connectors, or following the still tedious method of generating .XSD (a useable .xsd), have not yet come up with an easy, automatic way to get an .XSD or to easily integrate with 3rd party message format.

  • How to get On Account Balance for a Customer in Accounts Receivables(AR)

    Hi,
    Pls let me know how i can get the On Account Balance and Customer Balance for a particular customer in AR.
    Pls let me if there is any SQL query or function availabe to get On Account Balance in AR.
    Is On Account Balance and Customer balance is same in AR.
    Pls let me know how i can get both the values.
    regards
    Udit

    try to join your query from these tables:
    1.Customer - RA_CUSTOMERS_ALL
    2.Customer Name - RA_CUSTOMERS_ALL
    3. Ship to /Bill to & Location - HZ_CUST_ACCT_SITES_ALL and RA_TERRITORIES
    4.Account Balance - AR_PAYMENT_SCHEDULES_ALL
    5.Current Balance - AR_PAYMENT_SCHEDULES_ALL
    if you additionally need aging try to set from here
    a)1-30 Past - AR_PAYMENT_SCHEDULES_ALL
    b)31-60 Past - AR_PAYMENT_SCHEDULES_ALL
    c)Over 90 Past - AR_PAYMENT_SCHEDULES_ALL
    This way you can achieve the outcome

  • How to get count of records for each type from internal table

    Hi Guys,
    I want to implement a logic to find out the count of records in a internal table.
    Assume my internal table have one field having the entries as shown below.
    Internal table Entries
    10
    10
    10
    11
    11
    12
    12
    12
    12
    13
    14
    14
    15
    15
    15
    15
    15
    16
    16
    17
    18
    19
    20
    20
    20
    ....... etc....
    I should get an output as below
    10's - 3
    11's -2 ,
    12's - 4.... etc..
    Could any one help me how to do this.
    Thanx,
    Kumar

    REPORT  zzz.
    DATA: i(100),
          t(100),
          j TYPE n.
    TYPES: BEGIN OF gt_int_type,
            linex(100) TYPE c,
           END OF gt_int_type.
    DATA: gt_int TYPE STANDARD TABLE OF gt_int_type,
          wa_int LIKE LINE OF gt_int.
    START-OF-SELECTION.
      wa_int-linex = '10'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '10'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '10'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '11'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '11'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '12'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '12'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '12'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '12'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '13'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '14'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '14'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '15'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '15'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '15'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '15'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '15'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '16'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '16'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '17'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '18'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '19'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '20'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '20'.
      APPEND wa_int TO gt_int.
      wa_int-linex = '20'.
      APPEND wa_int TO gt_int.
      LOOP AT gt_int INTO wa_int.
        WRITE:/ wa_int-linex.
      ENDLOOP.
      ULINE.
      SKIP 3.
      SORT gt_int BY linex.
      READ TABLE gt_int INDEX 1 INTO i.
      j = 0.
      LOOP AT gt_int INTO wa_int.
        IF wa_int-linex EQ i.
          j = j + 1.
        ELSE.
          WRITE:/ i,'''s = ', j.
          j = 1.
          i = wa_int-linex.
        ENDIF.
      ENDLOOP.
      WRITE:/ i,'''s = ', j.
    consider clearing leading/trainling spaces...

  • Finding 5 most recent records for each customer with abnormal order amounts

    The database consists of the following tables:
    create table dbo.customer (
    customer_id int identity primary key clustered,
    customer_name nvarchar(256) not null
    create table dbo.purchase_order (
    purchase_order_id int identity primary key clustered
    customer_id int not null,
    amount money not null,
    order_date date not null
    Implement a query for the report that will provide the following information: for each customer output at most 5 different dates which contain
    abnormally high or low amounts (bigger or less than 3 times SDTDEV from AVG), for each of these dates output minimum and maximum amounts as well.
    Possible result: http://triontp.pop3.ru/333.gif

    amount Not Between stdev_amt - 3 * avg_amt And stdev_amt + 3 * avg_amt
    vice versa. 
     amount Not Between avg_amt - 3 * stdev_amt And avg_amt + 3 * stdev_amt)

  • How do I get separate iCloud accounts for each family members device and still share iTunes?

    how do I get separate iCloud's for each family members iPhone, iPod and iPad and still share iTunes?

    Have everyone share the same iTunes store ID, but use separate IDs for iCloud.  The ID you use for iCloud does not have to be the same as the ID you use for the iTunes & App store.

Maybe you are looking for