Query on sales document

Is completed Sales document same as sales document after billing ?

Dear Colleagues,
Thanks for the answers.
Your answers gave me an idea about the flow but i am still unclear about how to reach my requirement. My requirement is to list all the sales orders within a rebate agreement after billing. To be able to code this, i need some transactions/reports which lead to a step from which i get get to the end result(my requirement). After analysing the steps, i can make out if there are any function modules to use or the set of tables that i need to access if i have to write from scratch.
Based on your answers here are my conclusions:
1. Sales docs go to billing and from there they are posted to FI.
2. rebate agreements come before the process of billing.
I ran VF05 and saw that some of the documents are "Posted IN FI". Now i have the below questions:
1) Can i consider that "Posted in FI" means "sales documents after billing" ? If no, then how to do that ?
2) Is there any transaction which lists all the sales order under "rebate agreement" ?
Thanks a lot in advance.
Regards,
JVR

Similar Messages

  • Query on Sales Document Condition (2LIS_11_VAKON)

    Hello Gurus,
    I want to report on sales order conditions. Hence I have used 2LIS_11_VAKON. But I m unable to find
    KNUMV(Number of the document condition) and
    KPOSN(Condition item number) in the datasource. Because of this my records "transfered" and "added" do not match. that is obvious since in the key fields, i cannot add the above mentioned fields.
    I am on version 3.1 and 3.2 add on
    In R3 my PI_BASIS
    PI_BASIS;2005_1_620;0003;SAPKIPYJ53;PI_BASIS 2005_1_620
    and in BW
    PI_BASIS;2005_1_620;0003;SAPKIPYJ53;PI_BASIS 2005_1_620
    BI_CONT     310;0015;SAPKIBIAQ5;Business Intelligence Content
    Pls Guide.thanks in advance.

    Hi BW,
    Did u maintain extract structure? if you check in the right panel of the extract struct you will find it just transfer that to the left panel and confirm your entries. If you dont find it in the right panel it must be available in the  left already.
    After confirming do the setup table.
    Hope this helps
    Regards
    Ananth

  • Query for Sales Order Analysis

    Dear Experts
    I have written a Query for Sales Order Analysis and would like to have help on this.
    The query is used for generating daily report for Sales Order on number of documents (Sales Order), total amount of sales orders and total GP of Sales Order. The query is written as below:
    SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
    FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum] ORDER BY T0.[DocNum]
    where U_Total_GP is a UDF for storing the GP of each order.
    After executing the query, a selection criteria of date appears and after a date is selected, the report shown information required. However, the query does not calculate column total for total amount and total GP. Although I know the total for each column can be displayed by pressing "Ctrl" + Click on the column title, it would have to be done from time to time.
    Therefore, I would like to modify my query in order to calculate the column totals when executed. Are there any suggestions for this?
    Thank you
    Regards
    Elton

    Hi Elton,
    Try this:
    SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
    FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum]
    Union ALL
    SELECT '', SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
    FROM ORDR T0 WHERE T0.[DocDate] =[%0]
    ORDER BY T0.[DocNum]
    Thanks,
    Gordon

  • Query on Sales Order Analysis

    Dear Experts
    I have written a Query for Sales Order Analysis and would like to have help on this.
    The query is used for generating daily report for Sales Order on number of documents (Sales Order), total amount of sales orders and total GP of Sales Order. The query is written as below:
    SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
    FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum]
    Union ALL
    SELECT '', SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
    FROM ORDR T0 WHERE T0.[DocDate] =[%0]
    After executing the query, a selection criteria of date appears and after a date is selected, the report shown information required. Everything is fine with this query except I would also like to incdude the total number of Sales Order (per day) right below the column "DocNum".
    Is it possible to achieve this?
    Thank You
    Regards
    Elton

    Try this:
    SELECT T0.[DocNum], SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
    FROM ORDR T0 WHERE T0.[DocDate] =[%0] GROUP BY T0.[DocNum]
    Union ALL
    SELECT count(DocDate), SUM(T0.DocTotal) AS 'Total', SUM(T0.U_Total_GP) AS 'Total GP'
    FROM ORDR T0 WHERE T0.[DocDate] =[%0]

  • Problem in creating a sales document

    Hi,,
    I am creating a sales document programatically by the FM BAPI_SALESDOCU_CREATEFROMDATA1 for tht i have desigend ny selection screen in tht my requirement is i will not give item category for tht i have to quiery for given material and for given plant i have to fetch itcat plz help me in writing this quiery
    vbap table is not coreect as it will store data after complettion of sales document
    but here i want quiery to create a sales document it self
    i have seen in transaction VA01 ity is getting data from t184 for itcat plz help me in writing this quiery
    for good answer i will reward points

    You can use the t.code SHD0, choose your transaction variant here, further choose your screen variant.
    Next select your screen variant and in the Menu bar select Variant> change with processing>Make repairs in foreign namespaces only if they are urgent> Continue(Enter)>again 'enter'>Object can only be created in SAP package>continue(enter)> Exit and save >This variant contains other screens, adopt these as well?>enter>enter> scroll down to the entry make the necessary changes and save.
    The system will prompt to assign a package and request enter the necessary values.
    Your issue is sorted!!
    And further to your query for minimum price PMIN refer to my answer, you will not have to maintain any condition record or the price entered here does not reflect in any other document.
    Regards,
    PATHIK

  • How can I detect the posting of a sales document?

    Hi all,
    I have written an ABAP program which creates automatically a number of sales documents following the sequence: sales order, delivery, goods issue, billing, sales order, delivery, goods issue, billing, ... and so on.
    My problem is that although I get the number of the created sales document when my program proceeds to create the next document in the sequence sometimes this is not possible because the previous document has not been actually posted yet.
    For the creation of the documents I use either recorded transactions or BAPIs and COMMIT WORK AND WAIT.
    At the moment I query the relevant SAP tables in a loop to find out whether a document has been posted.
    Is there any other way to find out when a document gets actually posted?
    Regards,
    GB

    Hi!
    sales order - VBAK
    delivery    - LIKP
    goods issue - MKPF
    billing     - VBRK
    What is infinitely? In really bad situations I have already seen 20 minutes and more (stress test or general update problems (table overflow with subsequent stop of update tasks)).
    Also selecting entries of update tables (e.g. VBHDR / see above) is as good - it's not a big difference if you go for this or the document table. I prefer the document tables: then case the update task is gone, but hasn't finished correct I can only discover with document table checks.
    Regards,
    Christian

  • Query of Default Documents/Reports

    Dear All,
             I want to get the Query of Default Documents/Reports , like Purchase Analysis (Purchasing Reports), Open Item List (Sales Reports) etc.
    Thanks,
    Ghazanfar Ahmed

    Hai!
    To view System Report Queries (Purcahse Analysis,TB ..)
    You can able to see this through SQL Trace.
    Open SQL Management Studio.
    Open Tools>Sql Server Profiler.
    Open File>New Trace.
    This will continously trace the changes done in SQL.
    Open the Purcahse analysis report now in SAP B1. U will get the query from Trace Window
    Regards,
    Thanga Raj.K

  • Field "OutputType" when assigns sales document header to output procedure

    Hi Experts,
    When allocates the Output Determination Procedure to Sales doc header (IMG->SD->Basic Functions ->Output Control->Output Determination Using the Condition Technique->Maintain Output Determination for Sales Documents->Assign Output Determination Procedures)
    There is a field called "Output type(with all the output type defined)" and i wonder the utility of this field here during assignement of a Output Determination Procedure to Sales document header.
    Someone could tell me the use of this field here?
    Thank you,
    Best regards,
    Louis.

    Hi,
    i m just giving u clue...i think that will answer ur query..
    have u created Pricing procedure determination
    sales areaDuPPCuPPPricing determination Pricing type
    Now can u tell me what is significance of pricing type?
    if u know then u answered ur thread query..
    correct me if went wrong
    tnanks
    mk

  • Tables containing item status procedure used in sales documents

    Hello experts,
    I need make a query in order to know the status procedure used into items of sales documents.
    Example: In some items of sales orders I have status procedure CRMORD_I and in some items I have Z_ORDR_I. I need make a query in order to clarify it.
    What table contains the item status procedure linked to each item into sales documents ?
    Regards
    Juan

    If you want to know the status profile(CRMPRD_I or Z_ORDR_I) attached to a particular line item, you can obtain it from knowing the item category type(ex TAN). The satus profiel are attached to the item category type. The item category value is available in the field ITM_TYPE of the item structure (ET_ORDERADM_I).
    once you know the item category type you can obtain the obtain the status profile from calling the FM CRM_ORDER_ITEM_TYPE_SELECT_CB, the ES_ITEM_TYPE-USER_STAT_PROC will have the status profile value.
    Regards,
    Kiran

  • How to Create Sold-to-party i.e. default in sales documents ?

    Hi Experts,
    I have studied a lot of threds about default sold-to-party.
    But still I have a query, suppose I create any customer and using enhancement I use that customer as default in sales document, but suppose I dont know about the sales area of my actual customer and if the sales area of my actual customer and default customer are different then how the sales document will allow us to enter the another customer whose sales area is different.
    Now what I want to know:
    1. How to create a customer so that I can use that as a default in sales document and that customer should be compatible with other sales area.
    2. Is it possible to include a customer, whose sales view has not been created, in our sales document.
    Thanks in advance.
    Regards,
    Vishal Singh

    Hi,
        To create a default customer which can be attached to any sales document can be done through common distribution channel and common division. A customer created in common DC and Division can be attached to sales document in any sales area.
    If a customer is not extented to sales view, it cant be attached to any sales document.
    Regards,
    Deepak

  • Mandatory field in sales document

    Hello experts,
    I'm working with CRM 4.0 SP08
    How can I make mandatory some fields into CRM sales document ?
    1 - Requested delivery date at header level.
    2 - Reference date at header level.
    How could I fill up theses fields automatically by default ?
    Regards
    Juan

    Hi Juan,
    If u want to make some fields mandatory in Sales doc, then u can use Incompleteness Check, follow below path:
    SPRO->SAP Implementation Guide->Customer Relationship Management->Basic Functions->Incompleteness->Define Incompleteness Procedures
    1) Create Incompleteness Group for Trasaction
    2) Assign ur TransactionType to Incompleteness Group
    3) Create Incompleteness Procedure and define fields which u want to make manadatory.
    4) Determination of Incompleteness Procedure.
    As Siddharth explained above used date rules in profile for u r date realted query.
    Regards,
    Dipesh.

  • How to identify Sales Document cancelled in ECC (in Table VBAP)

    Hi,
    I want to identify Sales Document cancelled in ECC to make a comparaison with BI7: someboby can tell me corresponding field in VBAP?
    Thanks!

    Check this field VBAP - ABGRU (Reason for rejection - press F4 to know the reason why it's rejected) also see the field /BEV1/SRFUND -  Analysis/Reason for Rejection.
    PS. Avoid posting twice for the same query
    Edited by: Srinivas on Jul 21, 2010 11:10 AM

  • Number range for sales document type

    Hi,
    I am having 1 client under that 5 company codes, ade according to that 5 plants & 5 sales organization.
    so for one comapany code including all there are 15 sales document types same for other also
    my question is
    How can I assign number range for all that?
    If i am going to maintain seperate document type it goes to 75
    which userexit will help me out for this?
    without userexit what is the otherway?
    regards,
    Rahul

    Not only at order level, you will have to use exits at delivery and billing document level also.
    For sales documents:
    Exit USEREXIT_NUMBER_RANGE in MV45AFZZ
    For delivery documents:
    Exit USEREXIT_NUMBER_RANGE in MV50AFZ1
    For billing documents:
    Exit USEREXIT_NUMBER_RANGE in RV60AFZZ
    You need to give tables for maintaining numbers for sales, delivery and billing documents. In the exit a select query can be written to fetch the data based on the parameters like sale orgainzation, company code etc.
    Regards,
    GSL.

  • Assigning sales document to the sale area.

    before assigning sales document to the sale area, why do I need to combine sales organization, distribution channel and division and assign the same sales org, dc and division.

    Welcome to the forum.  As a new member, I would like to inform you that there are certain rules and regulations applicable to this forum which you can find to your right screen where it has also been indicated that posting basic / repeated query is not allowed. Please search in this forum or Google it with the same text, so that you will find many threads discussed on the same topic.  Take the inputs from there and update still if you are not able to resolve.  Meanwhile, this thread would be locked.
    G. Lakshmipathi

  • Authorization for My Own Sales Document

    Hi Gurus,
    we intend to restrict reporting so that it is limited to my own sales document.
    business wise, we need this functionality to keep whole organization pipeline info confidential to the sales staff as it's related to account management.
    whenever a sales document has a partner function person responsible maintained with my employee number, i will be authorized to generate the BIW report. on the other hand, if the person responsible in the sales document is other sales person, i will not be authorized to generate the report.
    is there any authorization object to control this kind of restriction?
    as we have lots of sales staff, we also avoid creating one job role for each sales staff.
    any lead is really appreciated.
    Regards,
    JD

    Hi JD,
    Yes you need to create and authorization object in RSSM and select for which all the info providers you want to use the Auth obj.
    Ex: i want to restrict my reporting users to the sales doc, and comp code.
    1.Check the auth relevent for these info objects in Bex tab
    2.Create auth objects for sales doc and comp code
    3. check the info providers you want to restrict.
    4. Create a role for Sales doc, in the change profile select the value for sales doc which i want to restrict to the user. ex :1001
    5 Create a role for comp code,in the change profile select the value for comp code which i want to restrict to the user. ex :ABC.
    6. Generate the auth object.
    7. Check in RSSM for auth obj, for a given user.
    8. check the values according to the roles assigned by you.
    9.Generate the Auth obj.
    10.go to rssmq -- > give the user -> select the query & run-> check for the desired results --  > come back F3 ---> check the log for the Auth objects hitting.
    Cheer's
    HVR.

Maybe you are looking for

  • Sales Order Eroor Message

    Hi friends, Here my client requirement is needed a error message while creating sales order with reference to expired quotation, but sap standard only giving warning message, but needed hard stop, pls find me a way to get error message , Thanks. Nina

  • Text message with a group in Iphone 4s

    I use Windows 7 Contact to create a group. However, when i txt the group, i have to select one by one (painful).  Is there a way that i can only need to select the group to send txt out without having to selece every single one in the group? Blackber

  • Vertical-align problem in css?

    Hi everyone This is my id selector code within the css file of my air app which i'm using in a div:     border-color:black;     border-style:solid;     border-width:1px;     height:100%;     width:15%;     float:left;     vertical-align:baseline; I h

  • CS2 created loader, need to update to CS5

    Hello I'm just learning about loaders and i have a loader created in CS2 and im using it in CS5 it seems to work correctly but has a few compiler errors. I tried to clean it up but only made it worse, anybody want to take a shot at it: var my_loader:

  • Clarification regarding PFAC

    Dear Friends ,                         I have created pfac role  and assigned the responsibilities. Is it possible to maintain the responsbilities directly in quality system without transport request....... regards, vijay