Sales employee wise report

Hi,
I need a report to see total sales by sales employee wise. We are using HR module and I am able to select sales employee in my sales order from the HR master. However when I run the report MCTI, I am not able to select the sales employee (no drop down available). I guess the issue is with sales employee data from sales order not getting updated in LIS. Can any one tell me the settings to update sales employee data in LIS.
Girish

Hi Girish,
If you run MCTI without sales employee selection (use just sales org, distr. channel or whatever), what's the result? Do you see a bunch of zeros 00000000 under the sales employee column?
In VPE3, are you able to find the sales ppl list under Personnel no. (with restriction to the relevant sales area)?
Thanks for your feedback
BR,
Zuzana

Similar Messages

  • Sales employee wise sales report

    Hi,
    Can anyone explain me,how to write functional specifications to obtain sales employee wise sales report?
    Thanks in advance..
    Regards..
    Yogi...

    Hi
    This is the standard T Code for sales employee-MCTI
    But as per your requirement we hv to create.
    Examplemy past implimantation..we hv captured sales employee as partner function.sales employee1& 2  with peoper  partner determination proceture.then we hv captured at Billing document Header Partner function.
    This Sales employee name has to captured through HR Master data.According U hv to say only the business process and from where data has to captured to ABAPER.
    I think it ll help
    Regards
    JAGA

  • Sales Employee wise comission report

    Hi all
    please guide me how to get the report of sales employee commission
    after setting nth initial setting related to Commission group & comission
    how i can view the report
    samir

    Samir,
    If you go to Query manager..Under System Reports you can see it
    SP Commission by Invoices in Posting Date Cross-Section
    Suda

  • Sales order wise report

    HI friends
    I am generating a report according to sales order wise stock .
    I need a help in these
    kdauf             kdpos      shkzg        menge          
    0000001663     000010     S           10
    0000001663     000010     S           20
    0000001663  000010      S           30
    0000001663  0000020    s            10
    0000001663  00000020  s            10
    0000001663 00000020    s           10
    0000001665     000010     S           10
    Now the requirement was for everysalesorder and with respect to line item  quantity should be added
    00000001663        10          60
    00000001663        20         30
    00000001665        10         10
    the ouput should be displayed like these.

    Hi
    thanks for the reply
    0000001663     000010     S 10
    0000001663     000010     S 20
    0000001663 000010 S 30
    0000001663 0000020 s 10
    0000001663 00000020 s 10
    0000001663 00000020 s 30
    0000001663 00000020 h 20
    0000001663 00000020 h 20
    0000001665     000010     S 10
    here the requirement sales order and line item debits and credits should be added and should as like thse
    00000001663  10  60qty
    00000001663  20  10                  (s = 50 h = 40 ) s-h = 10.
    00000001665 10  10
    the report should display like these
    thanks

  • Sales region wise report

    my customer is asking for a report sales region wise.
    i have taken as org units like sales office for all their sales offices and sales group for their sales persons,
    now how can i configure sales region ie., north ease west south, to take a standard report
    pl give your inputs
    thanks

    If you want to take out the report sales office wise u can u se standard SAP t code : MCTG
    In the standarad view u cannot see the sales district in the same report...so u can copy the same program and add ur logic so that u can get ur dsired output.
    To create sales region, u can use sales distict field in custmer master field. define in config and maintain it cutomer master. u can use mass or XD99  transaction to update this field in all the customer master record.
    below is the menu path to define sales distirict:
    IMG>>SD masterdata>>Business partners>>Cusotmers>>>sales>>>define sales districts.
    Thanks,
    Shaik

  • Sales Employee wise Profitability in COPA

    Experts,
    Below mentioned are COPA characteristics in current structure. Mentioned in RED are characteristics based on Derivation Logic.
    Company Code
    Plant
    Sales Org.
    Distr. Channel
    Division
    Customer
    Product
    Sales employee
    Supervisor
    Manager
    Segment
    I am able to run COPA Assessment cycle for all other segmental level characteristics maintained in KEQ3, But for Sales Employee my logic failed i Have searched for some SAP notes in which SAP mentioned that Sales employee as a receiver characteristic  we can not run assessment cycle.
    SAP Note : 74399
    But in this case my derivation logic is failed as
    Supervisor
    Manager
    Segment
    Are based on Sales Employee based derivation logic.
    In this case how to run KEU5 with Sales employee as a receiver characteristic or else any work around is available for the same.
    Thanks
    Sagar C'kar

    Sir,
    Near to Resolve....
    Need your Approval & expert comments... :-)
    I have maintained 4 Custom Characteristic
    WW010 Sales employee
    WW011 Supervisor
    WW012 Manager
    WW013 Segment
    KEDR with Move Concept from(Std characteristic) KMVTNR to WW010 (Custom Characteristic)
    KEDR Maintained for Supervisor and manager based on Sales Employee (WW010) to flow Revenue & Cogs
    similarly KEDR maintained for Segment on different combination like customer grouping
    Now system has revenue posted with 
    WW011 Supervisor
    WW012 Manager
    WW013 Segment
    and the same can be used in Assessment cycle for OH allocation.
    But if i keep (Std characteristic) KMVTNR for assessment i am unable to allocate OH to this due to system constraints.
    So i am having WW010 (Custom Characteristic) with flow Revenue & Cogs and i am planning to allocate OH to this through COPA Assessment cycle..... And display only this characteristic in the COPA reports.
    Is it fine.... May i proceed with this which will resolve my issue for Sales Employee based profitability...
    Thanks
    Sagar C'kar

  • Sale order wise Report

    Hi firends i need to develop a report according salesorder and line item stock report.
    kdauf            kdpos       shkzg
    0000001663     000010     S    10
    0000001663     000010     S    20
    0000001663 000010          S   30
    0000001663 0000020        S  10
    0000001663 00000020      S  10
    0000001663 00000020      S  30
    0000001663 00000020       S  20
    0000001663 00000020       H 2 0
    0000001665     000010     S 10
    here the requirement sales order and line item debits and credits should be added and should as like thse
    00000001663 10 60qty
    00000001663 20 10 (s = 50 h = 40 ) s-h = 10.
    00000001665 10 10
    the report should display like these
    thanks

    Hi Pramod ,
    You can use collect to add the Debit and credit and then use loop  all  the S read table H do
    s-h and append it to It_final you get  data as u want .
    Try It
    regards
    Nilesh

  • Sales office wise Report

    Hi,
    I want my report according to sales office. means one sales office must not see another sales office records.
    But mu code is not doing the same..
    please check my code...
    DATA: BEGIN OF itab OCCURS 0,
    vbeln LIKE vbrk-vbeln,
    matnr LIKE vbrp-matnr,
    fkimg TYPE i,
    netwr1 LIKE vbrp-netwr,
    mwsbp1 LIKE vbrp-mwsbp,
    netwr2 LIKE vbrp-netwr,
    mwsbp2 LIKE vbrp-mwsbp,
    diff1 LIKE vbrp-netwr,
    diff2 LIKE vbrp-netwr,
    total LIKE vbrp-netwr,
    vkbur LIKE vbrp-vkbur,
    END OF itab.
    DATA: line1(116),line2(116),line3(116),line10(116), line11(116),
    add1 LIKE kna1-name1,
    add2 LIKE add1,
    add3 LIKE add1,
    add4 LIKE add1,
    add5 LIKE add1,
    amount LIKE bseg-wrbtr,
    inwords LIKE spell-word.
    DATA: total_records TYPE i,
    half_total_records TYPE i,
    debit_line_no TYPE i,
    invdt LIKE sy-datum.
    DATA: vbrptab TYPE vbrp OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: vbeln FOR vbrk-vbeln.
    SELECT-OPTIONS: vkbur FOR vbrp-vkbur.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECT * FROM vbrk WHERE vbeln IN vbeln AND ( fkart = 'ZG1' OR fkart = 'ZG2' OR fkart = 'RE' OR fkart = 'ZWCN' OR fkart = 'G2' ) AND rfbsk EQ 'C'.
    IF vbrk-fkart = 'ZG1'.
    line10 = 'YOUR ACCOUNT WITH US HAS BEEN CREDITED WITH THE AMOUNT AS MENTIONED BELOW FOR PRICE DIFFERENCE AGAINST,'.
    ELSEIF vbrk-fkart = 'ZG2'.
    line10 = 'YOUR ACCOUNT WITH US HAS BEEN CREDITED WITH THE AMOUNT AS MENTIONED BELOW FOR INCENTIVE AGAINST,'.
    ENDIF.
    PERFORM write_address.
    PERFORM write_body.
    PERFORM write_line_items.
    ENDSELECT.
    IF sy-subrc <> 0.
    MESSAGE e004.
    ENDIF.
    *&      Form  WRITE_ADDRESS
          text
    FORM write_address.
    WRITE /50 line1.
    WRITE /36 line2.
    WRITE /38 line3.
    SKIP 5.
    WRITE:/ 'CUST NO :',vbrk-kunrg.
    CALL FUNCTION 'ZAK_CUSTOMER_ADDRESS'
    EXPORTING
    kunnr = vbrk-kunrg
    IMPORTING
    add1  = add1
    add2  = add2
    add3  = add3
    add4  = add4
    add5  = add5.
    SELECT SINGLE * FROM bseg WHERE vbeln = vbrk-vbeln.
    IF sy-subrc <> 0.
    MESSAGE i021.
    EXIT.
    ENDIF.
    ENDFORM.                    "WRITE_ADDRESS
    *&      Form  WRITE_BODY
          text
    FORM write_body.
    SKIP 3.
    SELECT SINGLE * FROM vbfa WHERE vbeln = vbrk-vbeln AND vbtyp_n IN ('P','O') AND vbtyp_v = 'M'.
    IF sy-subrc = 0.
    SELECT SINGLE fkdat INTO invdt FROM vbrk WHERE vbeln = vbfa-vbelv.
    ENDIF.
    WRITE line10.
    WRITE:/'INVOICE NO :', vbfa-vbelv, 'DATED :', invdt,'.'.
    ULINE /1(116).
    WRITE:/ 'S.NO', 10 'CATALOG CODE',36 'QTY', 47 'VALUE', 56 'VALUE SHOULD', 81 'DIFF IN', 98 'CST', 112 'TOTAL'.
    WRITE:/45 'CHARGED', 56 'HAVE CHARGED', 81 'VALUES', 108 'C/N VALUE'.
    ULINE /1(116).
    ENDFORM.
    *&      Form  WRITE_LINE_ITEMS
          text
    FORM write_line_items.
    SELECT * INTO CORRESPONDING FIELDS OF TABLE vbrptab FROM vbrp WHERE vbeln = vbrk-vbeln ."and vkbur = vbrp-vkbur.
    DESCRIBE TABLE vbrptab LINES total_records.
    half_total_records = total_records / 2.
    DO half_total_records TIMES.
    READ TABLE vbrptab INDEX sy-index.
    MOVE vbrptab-vbeln TO itab-vbeln.
    MOVE vbrptab-matnr TO itab-matnr.
    MOVE vbrptab-fkimg TO itab-fkimg.
    MOVE vbrptab-netwr TO itab-netwr1.
    MOVE vbrptab-mwsbp TO itab-mwsbp1.
    MOVE vbrptab-vkbur TO itab-vkbur.
    debit_line_no = sy-index + half_total_records.
    READ TABLE vbrptab INDEX debit_line_no.
    MOVE vbrptab-netwr TO itab-netwr2.
    MOVE vbrptab-mwsbp TO itab-mwsbp2.
    itab-netwr2 = itab-netwr2 * ( -1 ).
    itab-mwsbp2 = itab-mwsbp2 * ( -1 ).
    itab-diff1 = itab-netwr1 - itab-netwr2.
    itab-diff2 = itab-mwsbp1 - itab-mwsbp2.
    itab-total = itab-diff1 + itab-diff2.
    IF itab-total NE 0.
    APPEND itab.
    ENDIF.
    CLEAR itab.
    ENDDO.
    LOOP AT itab.
    WRITE:/1(5) sy-tabix, 10 itab-matnr, 30(9) itab-fkimg, 40(12) itab-netwr1, 56(12) itab-netwr2, 76(12) itab-diff1, 90(12) itab-diff2, 105(12) itab-total.
    AT LAST.
    SUM.
    ULINE /1(116).
    WRITE:/10 'TOTAL VALUE',40(12) itab-netwr1, 56(12) itab-netwr2, 76(12) itab-diff1, 90(12) itab-diff2, 105(12) itab-total.
    ULINE /1(116).
    amount = itab-total.
    CALL FUNCTION 'Z_SPELL_WORD'
    EXPORTING
    amount   = amount
    IMPORTING
    in_words = inwords.
    CONCATENATE 'Amount in Words : Rupees' inwords 'Only' INTO inwords SEPARATED BY space.
    WRITE:/ inwords.
    SKIP 6.
    WRITE:/'BCH Electric Limited'.
    SKIP 4.
    WRITE:/'AUTHORISED SIGNATORY'.
    NEW-PAGE.
    ENDAT.
    ENDLOOP.
    REFRESH itab.
    ENDFORM.
    Regards

    Please check this code..
    DATA: BEGIN OF itab OCCURS 0,
    vbeln LIKE vbrk-vbeln,
    matnr LIKE vbrp-matnr,
    fkimg TYPE i,
    netwr1 LIKE vbrp-netwr,
    mwsbp1 LIKE vbrp-mwsbp,
    netwr2 LIKE vbrp-netwr,
    mwsbp2 LIKE vbrp-mwsbp,
    diff1 LIKE vbrp-netwr,
    diff2 LIKE vbrp-netwr,
    total LIKE vbrp-netwr,
    vkbur LIKE vbrp-vkbur,
    END OF itab.
    DATA: line1(116),line2(116),line3(116),line10(116), line11(116),
    add1 LIKE kna1-name1,
    add2 LIKE add1,
    add3 LIKE add1,
    add4 LIKE add1,
    add5 LIKE add1,
    amount LIKE bseg-wrbtr,
    inwords LIKE spell-word.
    DATA: total_records TYPE i,
    half_total_records TYPE i,
    debit_line_no TYPE i,
    invdt LIKE sy-datum.
    DATA: vbrptab TYPE vbrp OCCURS 0 WITH HEADER LINE.
    SELECT-OPTIONS: vbeln FOR vbrk-vbeln.
    SELECT-OPTIONS: vkbur FOR vbrp-vkbur.
    SELECT * FROM vbrk WHERE vbeln IN vbeln AND ( fkart = 'ZG1' OR fkart = 'ZG2' OR fkart = 'RE' OR fkart = 'ZWCN' OR fkart = 'G2' ) AND rfbsk EQ 'C'.
    IF vbrk-fkart = 'ZG1'.
    line10 = 'YOUR ACCOUNT WITH US HAS BEEN CREDITED WITH THE AMOUNT AS MENTIONED BELOW FOR PRICE DIFFERENCE AGAINST,'.
    ENDIF.
    PERFORM write_address.
    PERFORM write_body.
    PERFORM write_line_items.
    ENDSELECT.
    IF sy-subrc <> 0.
    MESSAGE e004.
    ENDIF.
    FORM write_line_items.
    SELECT * INTO CORRESPONDING FIELDS OF TABLE vbrptab FROM vbrp WHERE vbeln = vbrk-vbeln ."and vkbur = vbrp-vkbur.
    DESCRIBE TABLE vbrptab LINES total_records.
    half_total_records = total_records / 2.
    DO half_total_records TIMES.
    READ TABLE vbrptab INDEX sy-index.
    MOVE vbrptab-vbeln TO itab-vbeln.
    MOVE vbrptab-matnr TO itab-matnr.
    MOVE vbrptab-fkimg TO itab-fkimg.
    MOVE vbrptab-netwr TO itab-netwr1.
    MOVE vbrptab-mwsbp TO itab-mwsbp1.
    MOVE vbrptab-vkbur TO itab-vkbur.
    debit_line_no = sy-index + half_total_records.
    READ TABLE vbrptab INDEX debit_line_no.
    MOVE vbrptab-netwr TO itab-netwr2.
    MOVE vbrptab-mwsbp TO itab-mwsbp2.
    itab-netwr2 = itab-netwr2 * ( -1 ).
    itab-mwsbp2 = itab-mwsbp2 * ( -1 ).
    itab-diff1 = itab-netwr1 - itab-netwr2.
    itab-diff2 = itab-mwsbp1 - itab-mwsbp2.
    itab-total = itab-diff1 + itab-diff2.
    IF itab-total NE 0.
    APPEND itab.
    ENDIF.
    CLEAR itab.
    ENDDO.

  • SAP Standard "Sales Employee" Report

    Dear Gurus,
    All my standard reports are ok, but when I am running the sales employee report, it maintain in the order and the invoice. System cant show the result against specific sales employee.
    Although if I run the same report with out assign the sale employee on the selection screen it through the data, and still in the drill down cant shows the sales employee wise breakup. MC-Q is the tcode.
    Looking forward for the gurus response.
    Regards,

    Hi,
    If you want to view sales employe analysis then first you check how values should updated in LIS for sales employee.
    Go to OMO1 double click on info-structure S006 - Sales employee
    Then click on day and synchronous updating-1 so values will update daily and you can able to view it immediately
    OR
    Alternatively you can view report on basis of sales employee through some around the work
    VA05for sales order and VF05 for Invoice where under partner function maintain your Sales employe partn. function and execute.
    Where as in VA05N enter Partner Functions Responsible and Personnel Number Responsible and execute report.
    kapil

  • Sales employee base table

    Dear experts,
    I want to create sales employee wise billing report . I dont know what is the base table for sales employee and how to link the sales employee field with vbrk or vbrp table. Please help me.

    Hi,
    You can acheive this by configuration as well,
    Assign sales employee in customer master or in your sales order so that it is copied to billing as well,
    now go to the following path IMG>Sales and Distribution>Sales Support>Lists>Set updating of Partner Index
    Trans.group---- Function -Name
    7(billing)----SE--
    Sales employee
    Now Goto T.code VF05 Press Partner function button
    Choose SE (Sales Employee) from F4 help
    now give your Sales Employee number and execute
    you will get the list of your sales employee
    Regards
    Senya

  • Sales employee field in VA01 blocked & which fields are must to see in COPA

    Hi,
    I am able to see all the transactions from SD  and FI direct postings coming into COPA.
    But the  management wants to see the profitability in Sales employee level also.
    I am able to give the sales employee wise details in FI but in SD vao1 while I create a sales order the sales employee field in account assignments is blocked.
    I gave the same information in the other tab Partner function, but still I am not able to see the transaction in COPA  at sales employee level.
    Also please let me know if I have make all the characteristics I am seeing in COPA S mandatory like(WBS element, sales order, sales employee, ) mandatory or is it sufficient that I keep only profit center as a mandatory field.
    I feel profit center should be kept as mandatory field in SD and FI posting while remaining are all optional.
    Please explin me how I should unblock the sales employee in Va01 and also let me know the logic why we have to keep the fields optional or mandatory.
    Please assist me.
    Thanks,
    Shilpa.

    Hi Shilpa
    Leave the fields as they are.. NO need to make any thing as optional or mandatory
    Include the sales employee as partner fucntion in your sales order... You also need to write derivation rules in KEDR for the same
    You will need to write 2 derivation rules for each partner function
    1. In one Der Rule, make the sale order item KDPOS as constant value 0000
    2. In the other one, dont make it a constant....Leave it as it is
    DERIVATION RULE 1
    SOURCE FIELDS
    VBPA-VBELN = COPA-KAUFN
    VBPA-POSNR = COPA-KDPOS
    VBPA-PARVW = GLOBAL-USERTEMP1 (Click on Magnifying lens.. Specify Constant = Your SD Part Function)
    TARGET FIELDS
    VBPA-KUNNR/PERNR = COPA-WW100 / KMVTNR
    DERIVATION RULE 2
    SOURCE FIELDS
    VBPA-VBELN = COPA-KAUFN
    VBPA-POSNR = COPA-KDPOS (Click on Magnifying lens.. Specify Constant = 0000)
    VBPA-PARVW = GLOBAL-USERTEMP1 (Click on Magnifying lens.. Specify Constant = Your SD Part Function)
    TARGET FIELDS
    VBPA-KUNNR/PERNR = COPA-WW100 / KMVTNR
    Regards
    Ajay M

  • COMMISSION TO SALES EMPLOYEE WITH OUT HR MODULE

    Dear all,
    I have senario where i wanted to give a commission to each sales employee. Also i dosenot want to create Sales Employee?bcoz HR module is not implemented?
    Is it possible to give commission to sales employee?
    Plz send what are the customization for the same?

    Sales commissions can be configured frm SD if they are simple in nature. This is done through rebates. If the commission and management is complex in nature then it can be done through ICM ( Incentives and Commissions Management )
    The following procedure details the configuration of the Sales commission for Employee. The problems could e at any one of the following steps.
    You need to create a partner function for sales employee, a copy of the standard partner function available in SAP. Then do the appropriate partner determination, that is assignment to the sales document and item partner determination procedure. Next step is to create master data for all your sales employees as Vendors, assign these masters you created to the sales order at item level.
    We can see the orders sales employee wise in VA05 provided we add the sales employee partner function in the index list under sales and distribution, sales, lists, set updating of partner index.
    In the  pricing procedure, we need to maintain a condition for sales employee commissions and choose whether you want to enter the commissions percentage manually or prefer automatic determination. Here we need to get an input from the client as to whether they have fixed or variable commission percentages.
    Create an accrual account key for this and assign it to the condition type in the pricing procedure and remember that the condition type in the procedure should be statistical and not relevant for printing.
    Next step is to make the settlements after the Invoices have been posted and the relevant commissions accrued to a G/L Account.
    Now settlements could be manual as well as automatic. If you choose to make automatic settlements, there needs to be a ZREPORT which makes a vendor payment posting or if the settlement is manual, you need to might be run a BDC periodically to post the invoices for the so called Vendors (Sales Employee)
    regds
    Jude

  • How Can we see Employee wise sales records

    Dear all,
    Following to our business process, an employee is responsible for a group of customers.
    Our client want to see employee wise quotations, relevant sales order, sales order value and Invoices in one report.
    is there any standard report in SAP to suffice their requirement.
    If not can we develop a query. if so, from which table we need to pick the data.
    Please help me to resolve the issue, your suggestions will be highly appreciated.
    thank you
    Raghu Ram

    In the header details of quotations, sales orders and invoices, there is an input field where you can give the name of the person who has created the same.
    In your case, if you have maintained the above said field for all the documents, then there is a method to view all the sales orders, quotations etc related to one particular employee. Following method shows how you can see the list of all sales orders created by an employee:
    T.Code: va05 (for seeing a list of sales orders)
    In the new screen that appears, give all the input data. After this, click on the tab: "Further Selection Criteria". Check the option "Created by", and give the name/id of the employee. Click enter and the data will get saved. Now click enter on the main page in order to get the list of sales orders pertaining to that employee.
    Similarly, you can get a list of invoices, quotations etc.
    Hope this proves useful.
    Please reward points if it helps.
    Regards,
    Swapna

  • Sales Man wise Sales Report.

    Dear All,
    I need to develop the Report SalesMan Wise in the below format.
    *_SL No/Sales Man/Customer/Customer Name/Target of Current Year (Previous Year Sales1.35)/Jan Sales/Feb Sales./Mar Sales/Apr Sales/ till Aug Sales (2011 Year) i.e Last 7 Months + Current Month.   Average of Last 7 months/   Sales of Previous Year/ % Achievement of Target/.I need the Link of Tables and the Logic to be given in this Report. Is this report Feasible.
    *Sales Man I can get from VBPA Table but that is only Fetching me Sales Order Number.
    *I am not getting the Link between Partner Function VE (Sales Employee) and Invoice Table VBRK.
    Can you please provide me the valuable Inputs how to go about this Report so that I can prepare detial FS of this.
    Regards,
    Parag S.

    Yes. Your ABAPer can copy a SAP Standard Report & modify it to suit your requirement.
    But ideally you should go for new report creation. You can get Sales Employee Number in Sales Order & from Document Flow Table get the Invoice Number.
    Only issue in your case is Sales Man-wise Target figures. You will have to create a Z table & store the Sales Man Code & Year-wise targets in these Table which later be fetched in your program.
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • Sales Report query by Sales Employee

    Hi All
    I need your help I have a problem with a custom report I created based on a query.
    Here is the query.
    SELECT T4.[SlpName], T3.[ItmsGrpNam], sum(T0.[LineTotal]) AS 'Line Total' FROM [dbo].[INV1]  T0 INNER JOIN [dbo].[OINV]  T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T0.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod INNER JOIN OSLP T4 ON T0.SlpCode = T4.SlpCode WHERE T1.[DocDate] >=[%0] AND  T1.[DocDate] <=[%1] GROUP BY T4.[SlpName], T3.[ItmsGrpNam] ORDER BY T4.[SlpName], T3.[ItmsGrpNam]
    This report is must show the same info. as the sales analysis report based on sales employee and gropued by item group.
    Hope this is clear thanks
    Bongani

    create crystal report using query
    SELECT  T1.DocDate, T4.SlpName, T3.ItmsGrpNam, sum(T0.LineTotal) AS 'Line Total' FROM dbo.INV1 T0 INNER JOIN dbo.OINV T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T0.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod INNER JOIN OSLP T4 ON T0.SlpCode = T4.SlpCode  GROUP BY T4.SlpName, T3.ItmsGrpNam ORDER BY T4.SlpName, T3.ItmsGrpNam
    and pass doc date as parameter in crystal report.
    you cant pass parameters directly in query to use in crystal report.
    you you want to pass parameter s in query create the stored procedue in sql.
    other wise pass the parameters in crystal report.
    hope this will help you
    regards,
    neetu

Maybe you are looking for

  • Running out of memory after latest update

    First of all: Why doesn't anybody answer my questions from Dez. 26th?? They are not that hard, I believe... After I installed the update No. 5, my system runs out of memory after a certain time. I'm working an an 1,7Centrino with 1GB memory.... Is it

  • Need help with OS10.8

    I just "successfully " installed Mountain Lion on my 13" MacBook late 2009. At least I thought it was successfully installed.  But now, every few seconds the screen "brightens" and then it restarts. I can not open anything on my computer.  Has anyone

  • Update Statistics of CRM Production system is terminated with errors

    Dear All, Update Statistics of CRM Production System is failing ie terminated with errors. Kindly help. Following  are the logs: BR0973W Database operation alert - level: WARNING, operation: cegnnbuz.chk, time: 2011-08-12 09.32.37, condition: Last su

  • Creating two vlan in AP 1131

    I need to create two vlan data and voice, with SSID, when I create two vlan with 31 for data 103 for voice with two different SSID, what ever vlan I created first is get broadcast, second one is not get broadcast, please let me know what I am missing

  • EIGRP on VPN

    I have set up VPN between a hub and two spokes. The tunnels are up and I can ping the public interface and tunnel interface from the hub to the spokes. EIGRP is working internal to each spoke and the hub. However, I can't get EIGRP to cross the VPN.