HOW TO GET A SALES COMMISSION (CASH BASIS) REPORT

Hello Folks!
How can I get a report of COMMISSION (CASH BASIS) using SAP B1?
Thanks

Gordon's query will work almost along with some enhancement for your requirement as follows. You may think around the invoice amount (tax included or not) to calculating the commission after this. And add the where clause with it.
SELECT     dbo.ORCT.CardCode AS 'Customer/Vendor Code', dbo.ORCT.CardName AS 'Customer/Vendor Name', dbo.ORCT.DocNum AS PmtNo,
                      dbo.RCT2.SumApplied AS 'Paid to Invoice', dbo.ORCT.DocDate AS 'Posting Date', dbo.OINV.DocNum AS InvNo, dbo.OINV.DocDate, dbo.OINV.SlpCode,
                      dbo.OSLP.SlpName, dbo.OSLP.Commission, dbo.RCT2.SumApplied * dbo.OSLP.Commission / 100 AS CommAmt
FROM         dbo.OINV INNER JOIN
                      dbo.RCT2 ON dbo.RCT2.DocEntry = dbo.OINV.DocEntry INNER JOIN
                      dbo.ORCT ON dbo.ORCT.DocNum = dbo.RCT2.DocNum INNER JOIN
                      dbo.OSLP ON dbo.OINV.SlpCode = dbo.OSLP.SlpCode

Similar Messages

  • How to get file name on the base of extension

    hi
    reply me
    how to get the filename on the base of extension from the
    current directory......
    for example
    i create file with the "igg" extension and save in the folder
    where the exe file of director save....
    i want when exe run then exe file read filename of the
    define( "igg" ) extension with out path just name of the file with
    igg extension
    tel me how
    regards
    farhana khan

    Here's a solution that requires no xtras:
    on GetFilesWithExtension(aFolderPath, aExtension)
    -- INPUT: <aFolderPath> should be a valid string
    folder path
    -- <aExtension> may be a string file extension,
    without the
    -- dot. For example: "txt" or "igg"
    -- OUTPUT: Returns an error symbol or a linear list of file
    names
    -- in the given folder. If an extension is given, only
    -- files with the given extension will be listed. If not,
    -- all files and folders will be listed.
    vFileList = []
    if not stringP(aFolderPath) then
    return #stringPathExpected
    end if
    vIgnoreExtension = not stringP(aExtension)
    vDelimiter = the itemDelimiter
    the itemDelimiter = "."
    n = 0
    repeat while TRUE
    n = n + 1
    vFileName = getNthFileNameInFolder(aFolderPath, n)
    if vFileName = "" then
    exit repeat
    end if
    if vIgnoreExtension then
    vFileList.append(vFileName)
    else if the last item of vFileName = aExtension then
    vFileList.append(vFileName)
    end if
    end repeat
    the itemDelimiter = vDelimiter
    return vFileList
    end GetFilesWithExtension
    You can also use
    Buddy API's baFileList,
    which allows you to do wildcard searching.

  • How to get a Job as SAP BASIS Fresher

    Hello Master's,
          I'm Raju Maddu and I'm from Vizag (Visakhapatnam). I have completed my B.Tech in Computer Science and Engineering at 2012. Once I've completed B.Tech, I started my career in the Education industry as System Administrator along with CCNA training at NIIT. And I have 2 years experience in that field.
    I did a lot of research and I found that I have a good career ahead of me in the SAP BASIS domain. I joined a institute and I did the BASIS course. They have provided real time training with the SAP BASIS tools and t-codes & Security. And I have real time experience in SAP BASIS.
    However, I don't have the SAP certification. I'm trying to get in to the SAP basis field. I also don't know how to reach a right contact for getting a job as a fresher in SAP BASIS.
    Please let me know how to get a job as a BASIS fresher. Any help will be very much appreciated.
    Regards.
    Raju Maddu,
    <<removed by moderator>>
    Message was edited by: kishan P

    Hi Raju,
    its somewhat too tough to get a job in SAP as a fresher, but it doesn't mean that it is impossible.
    I will only sujjest you to upload your resume at all leading job-portals, but please search any small
    scale industry, where sap has been implemented, and talk to them (i know its not easy, but never
    loose your hope anyways).
    You have told that, the training institute has provided you real time exposure, but for your kind information, these things are not calculated as a real time exposure in any companies,
    if you work in any organization, then only it will be counted.
    So, search, search and search, untill you get a job, even in starting if salary will be low, just
    catch it, once you will get right exposure, it becomes fruitful for you.

  • How to get  the actual data in ALV report

    I am doing some upgradation work   in that i am using Submit  & And return and  also i am using some function modules like LIST FROM MEMORY , LIST TO TXT wnd WRITE LIST , it gives output in normal list format , But i need to print in ALV report .
    With the use of set table for 1st display i got the  ALV report   but not with actual data, (some junk value is showing) , So can any 1 suggest me how to get  the  actual data in ALV report, With the use of  Any Function Module or with Coding,
    with regards,

    Hi Saravana
    I am sure you must be getting the values in tables of table parameters from every FM.
    consolidate the values from tables of all FMs in one table and built ALV for that table only.
    I hope this way you can show the actual data in ALV.
    thanks
    Lalit

  • How to Get Navigational attributes of dso in Report ...

    Hi i have a dso with many fields ,
    In the report i need to get some navgational attributes which are in dso..
    How to Get Navigational attributes of dso in Report ..??
    Thanks All..

    hai naiduz,
    in the dso u find folder with navigational attributes, there select the Navigation check box the fields which u need in the report.
    and further if ur dso through multiprovider and also identify them at multi provider level.
    then u will be able to see the fields at query designer level, then u can use the nav. fields u need in the report.
    regards,
    Vj

  • How to get the original version of Web report in BW ?

    Hello Friends ,
    I have transported one Web report from BW development to BW Production System.
    But unfortunately , the desired result not me met .
    So I have been asked to keep the original version of the Web report.
    As the new version of Web report has replaced the previous one ,
    So could anybody tell me how to get the original version of Web report in BW ?
    Many thanks in advance !!!!!!!!

    Hi,
    You can use the Transaction STMS choose the option "Import Overview" . In the GOTO tab select "History" and choose "Import History".
    Here you can find the history of requests imported to the prod system.
    Regards,
    K.Manikandan.

  • How to get the total pages in ALV report?

    Hi guys,
    Since I used page breaks can somebody please help me on how to get the total pages in ALV report?sincerely please...thanks guys.

    automatic display total page.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    r

  • How to get the Sales Text?

    Hi,
    I need a Function which will help me to read the Sales Text found in the MM03. I am using the following function but it seems I am not getting the NAME right. In the table STXL when I checked the NAME contains the MATERIAL(X7000114BLCK), SALES Org(1000) and Distribution Channel(20) like this "X7000114BLCK      100020". How could I make up this? or is there another easy Function where I could give the Sales Order No, Material or Line Item to get the Sales Text which comes in MM03.
    The Funtion that I used;
    call function 'READ_TEXT_INLINE'
             exporting
                  id              = '0001'
                  inline_count    = 1
                  language        = 'E'
                  NAME            = PO_OBJ
                  object          = 'MVKE'
             tables
                  inlines         = inlines
                  lines           = lines
             exceptions
                  id              = 1
                  language        = 2
                  name            = 3
                  not_found       = 4
                  object          = 5
                  reference_check = 6
                  others          = 7.
    Thanks,
    Kishan

    Hi Hymavathi,
    I did like this;
    DATA v_tmp(18) TYPE c.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
         EXPORTING
             input  = wa_sales-matnr
         IMPORTING
             output = v_tmp.
    CONCATENATE v_tmp 'XXX' INTO PO_OBJ.
    The answer that I get is this - "X7000114BLCKXXX" the spaces beteeen the MATNR and XXX is not there. How could I get this?
    Thanks,
    Kishan

  • How to get display sale order in MB51

    Hi,
    How we can get display sale order in mb51 , at present only sale order with special stock "E" is been display .
    Thanks..

    HI,
    if you just want last / latest SALES ORDER for material then check table VBAP
    if last billing document then check table VBRP
    check MCBE
    Prese F6
    there you can select the columns
    Last consumptn.
    Last gds issue
    Last gds mvmt.
    Last Receipt
    VA05- Report for the sale with Material Vs Customer. or
    You can easily get that in VBAP by putting the material number for MATNR
    for more clarity please refer the below link...
    How to findout last sale transction date of perticular material
    Regards,
    Udaya.

  • How to get the sales price of sales SET

    Hi,
    I want to get the sales price of a sales set, is ther any fm bapi our class to doe that?
    thanzs in advanced to all
    Jaime

    Problem Solved

  • How to get master sales order number from delivery number

    Hi All,
    I need logic for getting master sales order number from available Delivery number.
    Note: There can be many SO's in diffrent levels.
    Finally i need to pick up master sales order no.
    Thanks in advance.
    Thanks,
    Deep.

    Hi,
    I have a outbound delivery[VL03N] 'X' in my system .
    Then for getting sales order no i am writing below code:
      SELECT single vbelv vbeln
             from vbfa
             INTO (vbelv, vbeln)
             where vbeln   EQ p_vbeln AND
                   vbtyp_n EQ 'J'.
    Then vbelv i need to pick up master sales order no.
        SELECT vbelv vbeln
               from vbfa
               INTO TABLE i_so
               where vbeln   EQ l_vbelv AND
                     vbtyp_n EQ 'C'.
    If i write code as above it is giving four sales orders which one of them is master sales order no!
    Thanks,
    Deep.

  • How to get the sales value of the last month in the quarter

    Hi,
    We have a requirement to get the "Sales" value against a quarter. We have 2 tables "Time" and "Sales". We want to display the Sales value against each quarter.
    But this should happen as follows.
    Consider quarter Q1 it should display the value of 3rd month, Q2 should display value for 6th month and so on..
    If in any particular Quarter we dont have a value for last month then it should display the value for 2nd month, if 2nd month value is also not present then it should display 1st month sales value.
    We are using excel as the database.
    Please let us know if anybody has a resolution to this.
    Regards,
    Apoorv Chitre

    hi,make an other column which will be the flag for the last months you want to be displayed...
    so ,in reports,you pass it as hidden column(by filter only the ones which have the appropriate flag),and then voila...
    i hope i helped
    http://greekoraclebi.blogspot.com/
    ///////////////////////////////////////

  • How to get YTD sale for Last year In OBIEE 11g

    Hi All,
    I have a fact table for Sale_Amt with doc_date wise details. It is connected to Simple time_dimension table based on Date_ID(Number) field. The time_DIm Hierarchy is set on Year, Quarter, Month fields of the time_dimension table.
    One of my reporting requirement is to show show YTD sales and Last Years YTD sales.
    e.g, If user select 23 Jul 2013 as the date parameter, I need to show 1-Apr-2013 till 23 Jul 2013 Sales in YTD column and 1-Apr-2012 till 23 Jul 2012 Sales in Year_Ago_YTD column. I am able to get YTD sales but unable to derive at Year_Ago_YTD sales figures.
    Finacial Year Start from 1st April till 31 March.
    Any Help on this will be appriciated.
    Thanks.
    Narendra Shetty.

    Narendra,
        You can make use of the below two functions to get the year ago dates. You can replace current_date with a presentation variable that stores the date parameter that user selected.
    TimestampAdd(SQL_TSI_YEAR,-1,TIMESTAMPADD(SQL_TSI_MONTH, 3,TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1, CURRENT_DATE))) - It will display previous year's first day of fiscal year (since I passed current_date, it gives you 1st april 2012)
    and
    TimestampAdd(SQL_TSI_YEAR,-1,current_date) - Same Day Last year
    Pls mark correct/helpful.

  • Calling VA01 from Report,how to get the Sales Order  No when Back.

    Hi all,
    I have a requirement of calling va01 from the report and have done that using
    did recording ...&
    call transaction va01 using bdcdata.
    but my problem is when back from that trasaction i have to get the sales order that is created . Is it possible to retrieve that value from va01 .i am unable to get . anyone pls share

    Use the addition MESSAGES INTO itab with call transaction va01 using bdcdata.
    Effect of MESSAGES INTO itab:
    Using this addition, all the messages sent during batch input processing are stored in an internal table itab of the type BDCMSGCOLL from the ABAP Dictionary.
    If the call transaction is successful then retrieve the last message from itab and then in any field among MSGV1,MSGV2,MSGV3,MSGV4 of itab u will get the document no.
    And when doing the call transaction pl. choose update mode as 'S' or 'L'.
    Regards,
    Joy.

  • How to get the SR NO in a report

    Hi all,
    I am new to report and was wondering how I get the
    SrNO in a report like below example.
    SrNO Name Dept
    1 ABC Sales
    2 xyz Admin
    Should i use CF or CP etc ???
    Regards
    Sunny

    If it is a tabular report, then use rownum in your
    query and display it in the report
    e.g.
    SELECT ROWNUM, EMP.EMPNO, EMP.DEPTNO
    FROM EMP
    If group report, then use a summary column (count) in
    the detail group and reset on master group.
    Hope this helps.Thanks a Million.!!!
    Sunny

Maybe you are looking for

  • Firefox crashes 3 seconds after I open it. What to do?

    I have this problem for a few days, mozilla keeps crashing (even if going in safe mode) and i don't know why, or what to do. I just open it, it loads foar a few seconds and then crashes and asks me to send the report. I need help cause I got a few ta

  • ODS Issue

    Hi, I have one load issue today.while activating the ODS Object Iam getting the error like Characteristic values are not allowed if they only consist of the      character "# " or begin with "!". If the characteristic is compounded, this also applies

  • How do I get my music of my ipod on to a new computer if the original computer is dead

    My Itunes account with all my music from cd's was on a computer that died. How do I get my new computer to import all the songs and be the primary computer? I deauthorized all, but everytime I connect one of my ipods or ipads it tells me its synced t

  • Just want to say thanks for the help....

    i am recovering from cervical spine surgery and being board my wife told me to find something to do so i got this r61 from my neice(for free)it's in mint condition looks like she never used it,(she didn,t have a finger touch board and didn't like it)

  • Pages wish list

    After spending time with Pages I have found somethings I feel are lacking and hope are included in future upgrades. Here are my short list of things I hope are in the next upgrade. Page Layout Feature: Have the ability to import multiple documents in