Sales Rep. Modelling for Query.

As you might know, in SD one can have 4 Sales Rep for the same document (i.e. Sales Order). All of them goes to different fields in the extractors and from there, up to the DSO/Cubes.
How can I model them if I have to write a query of Sales by Sales Rep.
- Is there a kind of "Meta Sales Rep" to mean everyone of them?
- Should I take the four of them?
- How can have a report like this:
Sales Rep - Sales Net Value, - Qty,....etc.
Anyone have reported Sales Rep on SD who can bring some light?
Regards,

Hi,
You have Sales Order No,Sales Rep , Sales Net Value, and  Qty,....etc.
Then in first column display Sales Order no, then under that it will display all Sales Rep , Sales Net Value, and  Qty,....etc.
I think Sales Rep is attribute of Sales Order.So it will store all teh values.
Thanks
Reddy

Similar Messages

  • 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

  • API for updating Sales REP

    Hi
    I need to update sales rep ID for Credit Transaction Lines.
    Please can you let me know which API to use.
    Thanks and regards
    VJ

    Use process order api to update the sales rep.

  • Sales Reps for sales orders

    Where can I find the sales rep entered for a sales order?

    You got to maintain partner determination procedure for customer master in IMG-SD-BASIC FUNCTIONS-
    there if you include the partners you want in partner determination procedure.
    you will get the partners automatically in customer master and in sales document.
    thank you
    with regards
    chaitanya

  • New FiOS Internet Customer Lied to By Sales Rep - EXTREMELY UNHAPPY

    I had FIOS Internet installed in my new apt about a month ago. Before moving, I conducted my due diligence among the providers in my area. In order to sell me on the product, I had a couple chats with Sales Reps, which was documented on some type of call log. Anyways - on the last call I had, the Sales Rep convinced me to order FIOS Internet over the phone. She assured me that she would be able to match the price as reflected and promoted online. I wanted the 25/25 Internet service which was 49.99 for the first 12 months, and 69.99 for following 12 months. The Sales Rep then sent me the confirmation e-mail displaying the price. I immedaitely notified the Sales Rep that the discount offer was not reflected, but she assured me that it would show up on my bill. She even went so far as to get a manager on the line to confirm that. The reason the Sales Rep said it wasnt reflected was due to a glitch/outage they were experiencing. Allegedly - the outage would not allow the proper discounts and credits to appear on their screen, but again she assure me that this would not be the case when I received my bill. On that condition (receiving a proper bill with the appropriate quoted price) I approved of the deal.
    A month later, I received a bill THAT DID NOT REFLECT WHAT WAS PROMISED. After waiting for Verizon to amend the bill, to no avail, I decided to call Customer Service. That was an absolute waste of my time - an hour and change to hear the same story (not to mention the first Customer Service Rep deliberately hanging up on me after about 30 min). That what the Sales Rep said was not true - Sales Rep's cant match the online prices. [As an aside - why on Earth can't Sales Rep's for Verizon match the price that Verizon offers? That is very weird to me. You all work for the same company.].
    Why cant Verizon match what was offered/promoted - and what is currently being promoted at the moment on the web?
    To support my claim with facts - why would I agree to a $74.99+ price quote (that of 'no annual contract') for a 24 mo contract - when the 24 mo. contract obviously has a discounted price. Furthermore, in my due diligence and research, why would I agree to take a higher price when the quote online for the same service is far lower? All this implies is that in fact the Sales Rep did assure me that she could "match" the price promoted - there is no logical reason for me to accept anything else. 
    I need this to be resolved or I will soon cancel this service and move over to TWC. What this really amounts to is misrepresentation by the Sales Rep, and an unreliable Customer Service. 

    Hi mesalaza,
    Your issue has been escalated to a Verizon agent. Before the agent can begin assisting you, they will need to collect further information from you. Please go to your profile page for the forum and look at the top of the middle column where you will find an area titled "My Support Cases". You can reach your profile page by clicking on your name beside your post, or at the top left of this page underneath the title of the board.
    Under "My Support Cases" you will find a link to the private board where you and the agent may exchange information. This should be checked on a frequent basis, as the agent may be waiting for information from you before they can proceed with any actions. To ensure you know when they have responded to you, at the top of your support case there is a drop down menu for support case options. Open that and choose "subscribe". Please keep all correspondence regarding your issue in the private support portal.

  • Sales rep with customer

    Hi
    where can i get sales rep information for customer, any table to get

    Hello,
    There is no standard salesman data maintaince provided by SAP.
    You need to determine partner function and then establish the link at header or item based to the characteristics of the products.
    Hope this link may be useful for your purpose (past forum posts).
    [where is salesman data is maintained?;
    [Commission for salesman;
    Regards,

  • Writing IIF Statements for Sales Reps Goals

    I have a query that takes all of the Sales Reps Goals and divides them into daily goals based on Potential sales days. This works perfectly when a rep starts before the beginning of the year. The issue I have is when a rep starts mid-year. If a rep starts
    in June the goal should be divided by the remaining sales days left in the year and not the full year. I want to write an IIF statement that says if the rep's hire date is greater than 1/1/2015 then calculate based on remaining sales days. The query that works
    for old reps is below:
    SELECT uSERS.lifeguard_id
    , GOALS.ProductID
    , GOALS.GoalAmount / (SELECT SUM(WC.[Total Potential Sales Days (excluding Sat)]) 
    FROM MISC.WorkingCalendar WC 
    WHERE WC.Year = YEAR(GETDATE())
    GROUP BY [YEAR]
    ) * WC.[Total Potential Sales Days (excluding Sat)] AS GOALS
    , WC.Month
    , WC.Year
    , DATEADD(DD,-1, DATEADD(MM,1,cast( (cast(WC.Month as varchar) + ' 1 , ' + cast(WC.Year as varchar)) as date))) AS GoalDatea
    ,CASE WHEN WC.Month= 'Jan' THEN '201501'
         WHEN WC.Month = 'Feb' THEN '201502'
    WHEN WC.Month = 'Mar' THEN '201503'
    WHEN WC.Month = 'Apr' THEN '201504'
    WHEN WC.Month = 'May' THEN '201505'
    WHEN WC.Month = 'Jun' THEN '201506'
    WHEN WC.Month = 'Jul' THEN '201507'
    WHEN WC.Month = 'Aug' THEN '201508'
    WHEN WC.Month = 'Sep' THEN '201509'
    WHEN WC.Month = 'Oct' THEN '201510'
    WHEN WC.Month = 'Nov' THEN '201511'
    WHEN WC.Month = 'Dec' THEN '201512'
    END AS YearMonth
    FROM (
    SELECT [CRM Rep Name] as CRMREPNAME
    , CASE GoalAmount.GoalType
    WHEN 'Yearly Life' Then 'L'
    WHEN 'Yearly DI' then 'DI'
    WHEN 'Yearly CI' then 'CI'
    WHEN 'Yearly AI' then 'AC'
    end as ProductID
    , GoalAmount.GoalAmount
    , YEAR(GETDATE()) AS GoalYear
    FROM BAMaster.SalesRep SalesRep
    unpivot (
    GoalAmount FOR GoalType in([Yearly Life],[Yearly DI], [Yearly CI], [Yearly AI])) AS GoalAmount
    ) GOALS
    JOIN VISION.Users Users
    ON GOALS.CRMREPNAME = Users.user_code
    JOIN MISC.WorkingCalendar WC
    ON WC.Year = goals.GoalYear
    where lifeguard_id is not null
    order by lifeguard_id

    Sales Days
    Year
    Month
    Weekdays
    Saturdays
    Holidays
    Total Potential Sales Days (including Sat)
    Total Potential Sales Days (excluding Sat)
    2014 Running Total
    2015
    Jan
    20
    5
    2
    25
    20
    20
    2015
    Feb
    19
    4
    1
    23
    19
    39
    2015
    Mar
    22
    4
    0
    26
    22
    61
    2015
    Apr
    22
    4
    0
    26
    22
    83
    2015
    May
    20
    5
    1
    25
    20
    103
    2015
    Jun
    22
    4
    0
    26
    22
    125
    2015
    Jul
    22
    3
    1
    25
    22
    147
    2015
    Aug
    21
    5
    0
    26
    21
    168
    2015
    Sep
    21
    4
    1
    25
    21
    189
    2015
    Oct
    21
    5
    1
    26
    21
    210
    2015
    Nov
    18
    4
    3
    22
    18
    228
    2015
    Dec
    20
    3
    3
    23
    20
    248
    Grand Total
    248
    50
    13
    298
    248
    These are the sales days. A rep's hire date could be any date in 2015.

  • How to retrieve Sales rep name tagged to AR Invoice in a query.

    Hi,
    We need to display the sales person name which is tagged to the AR Invoice for our internal sales commission tracking.
    The problem here is if we use OSLP table to get this information the data retrived is the Sales rep name as seen in the BP data.
    In our scenario, even though a slaes rep is linked to a particular customer, sales person are given incentives based on the Products sold hence for certain brand the sales employee for that Invoice is allowed to change.
    When we create a query to list invoices and payments against the invoice we are not able to display the sales rep name that is tagged to the Invoice.
    Is there a way to display the sale persons name in a query using 'CASE' statement?
    or is there wany other way out.
    Please advise.
    Regards

    Hi Gordon,
    Thanks for your reply!
    The query is as: (Query for displaying the invoice and the payment received by cheque against the invoices )
    SELECT T1.CardCode, T1.CardName, T0.DocDate as 'Posting Date', T0.DocNum as 'AR Invoice Number',T0.DocTotal as 'AR Invoice
    Total', T0.DocTotalFC as 'AR Invoice Total FC', T1.DocDate as 'Payment Date', T2.DocNum as 'Incoming Payment Number ',
    T2.DueDate as 'Check Due Date' , T2.CheckNum as 'Check Number', T2.CheckSum as 'Amount, (select SlpCode, 'Sales Rep Name'=
    CASE
    when
    SlpCode = '8'THEN 'Amir Mehmood'
    SlpCode = '7'THEN 'Anwarul Chowdhary'
    SlpCode = '2'THEN 'Calvin Ching'
    SlpCode = '5'THEN 'Calvin Ong'
    SlpCode = '4'THEN 'Darren Ting'
    SlpCode = '6'THEN 'Dev Puri'
    SlpCode = '12'THEN 'Edison'
    SlpCode = '3'THEN 'Janet Teo'
    SlpCode = '13'THEN 'Kah Leong'
    SlpCode = '-1'THEN 'No Sales Employee'
    end)
    FROM OINV T0 INNER JOIN ORCT T1 ON T0.ReceiptNum = T1.DocEntry INNER JOIN RCT1 T2 ON T1.DocNum = T2.DocNum where T0.DocDate
    >=[%0] and T0.DocDate <=[%1]
    PS: the CASE statement above needs correction.
    Regards,

  • HT5527 Why is it that when I bought my first generation iPad in October of 2010 the Apple sales rep at the Orange County California store suggested that I pay $99 for Mobile Me "coverage" and told me it was a "one time charge".

    Why is it when I bought my first generation iPad in October 2010 the sales rep at the Orange County California South Coast Plaza store suggested that I buy Mobile Me service for $99 which he assured me was a one time charge and now, of course, Mobile Me has been discontinued and I've been "forced" to move to the Cloud and I'm being provided with another year of what Apple calls complimentary service with the clear indication that in a year I'm going to be asked to pay again for something I paid a one time charge for two years ago?

    Mobile Me was the successor to .Mac (dot mac) which was "free" to all users but for a limited time. It included a free email address @mac.com and an amount of what we would now call "cloud" storage that went by the name of iDisk. iDisk worked great but with only dialup service for me it was barely useful.
    So I didn't think much of dot-mac but lots of people thought it was worth paying for, so they did. Apple wanted to make it even more useful and integrate it with their portable devices which we all know as iPads and iPhones, and assembled a team to make it all work. This was to be called Mobile Me.
    They failed miserably. Lots of people including me looked at the final product and said "huh?" Unfortunately for the Mobile Me engineers, one of those people was Steve Jobs. He first humiliated them quite publicly, then disbanded the team, including firing at least one senior manager who shall remain nameless.
    This was the rocky beginning of what is now called iCloud, which is the "free" service I should have explained. iCloud includes an email address @me.com, and the 5 GB of "storage" which aggregates things like iWork documents, your email, calendars, Photostream, and iPhone backups.
    You can buy more storage if you need more than 5 GB, but if you have more than that it's still free through September 2013.
    What happens if you have more than 5 GB stored on iCloud and on September 2013 you don't pay? I'm not sure, but you have a year to think about it.

  • XL Reporter- Report by Sales Rep show the same sales rep for all customers.

    Hi,
    When creating a report using XL reporter, Sales report by Item detail for all customers with selection by Sale rep ( expression) parameter, the report shows the name of the first selected sales rep name all through the report.
    Please comment if there is any way to avoid this error.
    Regards.

    Thanks for the reply!
    No, Since this is a sales by item detail report, we have already grouped it by Brand....
    We do not want the report to be seen grouped by Sales rep, as that would group all transactions under different brands under one group.....
    Regards

  • Integration model for sales orders failing repeatedly

    Integration model for Sales Orders to APO is failing and in the CIF the error says "Customer requirement G BR 0082372353 900010 0000: liveCache problem, retu".
    This error appears everytime you we run the integration model and it says in the Job log; ABAP/4 Processor: SYSTEM_CANCELED.
    Note that this is "not" manually stopped but it still gives this error.

    Hi Kailash,
    Run /SAPAPO/SDRQCR21 in apo for the part contained in your delivery document, which is failing. While running the report, check the radiobutton, Build the requirements from Doc.Flow table. This will remove the inconsistencies remaining in the requirement table on R/3 side.
    Try this and let us know, if you could succeed.
    Regards
    Sanjeev

  • Oracle API for sale rep update

    Hi ,
    I want to update sales rep information by using the API -HZ_CUST_ACCOUNT_SITE_V2PUb.update_cust_site_use.
    I have four fields which i want to update through the form..please help me in writing the syntax to achieve this.I want to write this syntax in when -pressed-button trigger.
    Thanks
    .

    Please check the document "Oracle CRM Application Foundation API Reference Guide" on this link
    http://download.oracle.com/docs/cd/A97501_01/html/crmdoc.html
    The Oracle CRM Application Foundation 'API Reference Guide' Part No. A90092-03. Page 3-24. Package JTF_RS_SALESREPS_PUB
    contains the following procedures:
    - Create SalesRep
    - Update SalesRep
    If you find my (or anyone else's ) reply helpful or correct, please mark it so.+
    Thanks
    Naveed

  • Tailoring Report Data Per Sales Rep

    Hi,
    We have a database that holds information on quotes and sales.
    I wish to create a report that will alert sales reps when their quotes are due to expire. So far I have done the following query:
    SELECT a.QUOTATIONID AS [Quotation ID],
    a.QUOTATIONNAME AS [Reference],
    a.CREATEDDATE AS [Quotation Date],
    a.QUOTATIONEXPIRYDATE AS [Valid Until],
    a.SALESGROUP AS [Sales Manager],
    b.EMPLID AS [Sales Rep Employee ID],
    b.NAME AS [Sales Rep],
    b.EMAIL AS [Email]
    FROM SALESQUOTATIONTABLE a
    INNER JOIN EMPLTABLE b ON a.SALESTAKER = b.EMPLID
    WHERE a.QUOTATIONEXPIRYDATE BETWEEN DATEADD(DAY, 6, GETDATE()) AND DATEADD(DAY, 14, GETDATE())
    This brings back all the data I need. I could now put it into a SSRS report which will run each Monday morning and email oout to all sales reps in XLS format. Id like to make it a little cleverer though. What I want to do is to run the report each Monday
    morning, group the data by sales rep and email it out in XLS format to only the relevant sales reps and have it only contain data for that particular rep. Is this possible? If so how do I do this?
    Cheers
    Paul

    Follow steps as below
    1. use the above query to build a dataset
    2. Use dataset within your SSRS report
    3. Add a grouping and filter on sales rep  in your report
    4. set up a data driven subscription as explained here to render report automatically each Monday. Pass list of sales reps to report parameter through a dataset
    http://beyondrelational.com/modules/2/blogs/101/posts/13460/ssrs-60-steps-to-implement-a-data-driven-subscription.aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Manager - Sales-rep drill down report

    [code]
    SELECT 
    FSU.parentsystemuseridname AS Manager
    , FSU.fullname AS 'Sales Rep'
    , FSU3.fullname AS 'Level 3'
    FROM FilteredSystemUser AS FSU
    LEFT JOIN FilteredSystemUser AS FSU3
    ON FSU.fullname = FSU3.parentsystemuseridname
    [\/code]
    There are multiple levels in the hierarchy but i am showing 3 levels only in the sample query above. I am trying to create a drill down SSRS report which shows the hierarchy. It works fine with a small problem.
    Problem:
    1.) Manager is a sales rep himself so in the "sales rep " column manager should be shown along with his associates with a null value for the "Level 3 " column.
    2.) In the same way Sales rep should also be present along with his associates in "Level 3 " column.
    Please help me with your ideas for the query. Thanks in advance.
    Oracle 11g database.

    Hi,
    If you can show what you need to do using commonly available tables, such as those in the scott schema, then you don't need to post any sample data; just the results you want from the given data, and an explanation of how you get those results from that data.
    For example, using the scott.emp table (where the relevant raw data, which you can get from this query:
    SELECT    empno, ename, mgr
    FROM   scott.emp
    ORDER BY  empno;
    is
         EMPNO ENAME             MGR
          7369 SMITH            7902
          7499 ALLEN            7698
          7521 WARD             7698
          7566 JONES            7839
          7654 MARTIN           7698
          7698 BLAKE            7839
          7782 CLARK            7839
          7788 SCOTT            7566
          7839 KING
          7844 TURNER           7698
          7876 ADAMS            7788
          7900 JAMES            7698
          7902 FORD             7566
          7934 MILLER           7782
    that is:
    KING is the parent of JONES, BLAKE and CLARK,
    JONES is the parent of SCOTT and FORD, and
    SCOTT is the parent of ADAMS, and
    you can get output like this:
    CHAIN_O_COMMAND
    KING
    KING      JONES
    KING      JONES     SCOTT
    KING      JONES     SCOTT     ADAMS
    KING      JONES     FORD
    KING      JONES     FORD      SMITH
    KING      BLAKE
    KING      BLAKE     ALLEN
    KING      BLAKE     WARD
    KING      BLAKE     MARTIN
    KING      BLAKE     TURNER
    KING      BLAKE     JAMES
    KING      CLARK
    KING      CLARK     MILLER
    using a query like this:
    SELECT  REPLACE ( SYS_CONNECT_BY_PATH ( RPAD (ename, 10)
                    )         AS chain_o_command
    FROM    scott.emp
    START WITH  mgr  IS NULL
    CONNECT BY  mgr  = PRIOR empno
    Notice that the result set only has 1 long column, but it's formatted to look like multiple short columns.  That's because the number of columns in the result set must be hard-coded in the query.  If you don't know how many columns you'll need (because you don't know how many levels will be in the tree) this is one way to avoid dynamic SQL.

  • HRorganization model and sale organization model

    Hi,
    1. My customers are assigned to sales office/group in their MD. I wish to assign them sales rep.
    Should I do it via function or via HR org model&sales organization ?
    2. How do I assign sales representative employee (from HR)  to sales organization?
    Thanks
    Rachelk

    hi Vijay,
    Open the Business partner in Role Employee (Tx. - BP).
    Goto the Identification tab.
    Specify a Username for the user.
    Thanks,
    Ashish

Maybe you are looking for