Get Billing Status of Sales Order

Is there any FM that will return the Billing status for a Sales Order directly without having to go through the Delivery or document flow? I just want to know if the sales order has been completely invoiced.
VBUK has the Billing status info only for the Delivery.
Any help is greatly appreciated.
Thanks.

Hi Pallavi,
You can select from database view WB2_V_VBRK_VBRP2 (join on VBRK and VBRP), and mention the selection criteria as: sales order number equals AUBEL_I and sales order items equal AUPOS_I, FKSTO equals space (this indicates the billling document hasn't been cancelled) and SFAKN equals space (this indicates the billing document is not a cancellation of another invoice).
If in the result of above select query has billing doc items corresponding to every sales order item, this means every sales order item has been billed, hence the sales order has been billed completely.
Regards,
Birendra

Similar Messages

  • From which table can we get the status of sales order

    hi
    from which table can we get the status of sales order

    Hi
    Check the Table <b>VBUK for HEADER level status</b> of Sales order
    and <b>VBUP for Item level statuses</b>
    enter VBELN  = Sales order and VBTYP = C for sales orders
    as VBUK and VBUP stores all Sales documents like deliveries, Invoices, quotations, contracts etc
    <b>Reward points for useful Answers</b>
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • Billing status at sales order level

    Hi Friends,
    I have  100 sales order  and for this sales order i have check weather  all sales orders have been billed  or not.How can i find.
    Is there any table to see.
    Thanks &  Regards
    AMM

    Hi Amm,
    Go to SE16 --> Table VBFA --> Give your sales order in the preceeding document field
    In the field "Subs.doc.categ." --> Fill up "M     Invoice"
    It will show you all the orders for which billing documents have been created.
    Or
    Use table VBUK --> Give your sales document number and check the field Billing status
    Hope it helps.
    Regards,
    MT

  • Can the project status be influenced by billing plan in sales order?

    I am facing the following problem: 
    I linked the WBS Element to a sales order billing plan (in header: account assignment).
    Now, is there a possibility to prevent changing the status of the project to “close technically”, while there are still some invoices of the billing in the sales order not billed?
    I want to make sure that a project can only be closed once all the invoices related to the project were billed.
    Thanks in advance
    Maike

    Hello Maike,
    I have different view here:
    System status is set to FNBL automatically when all the items in the sales orders are billed. So user does not really need to set it.
    TECO is a status which should follow FNBL generally speaking. And it has to be put manually.
    Now, if the requirement is to throw an error when FNBL or TECO is put manually if not all the sales orders items are billed- it can be done by using validation.
    A validation can be activated which will check for any open billing item for that WBS when status is set to TECO. If there is any, it will throw an error while saving WBS with TECO.So it will not allow to set TECO. T code for validation is OPSI.
    Thanks,
    Sourabh

  • The status of sales order is being in processed

    Dear All,
    The delivery quantity is fully delivered and it is order related billing, this is a Sales Bom, the header is delivered and the line items are billed, the status of sales order is being in processed after the completion of the subsequent documents,
    In the document flow the system is showing that the order is being processed, we have checked the copy control and the relevant assignments. As we are facing the problem while creating sales order system giving an error message that there are open items for the customer. Please tell me if there is any customization is there or is there any other way to achieve.
    The other requirement is, if the customer credit limit get exceeds then the system should not save the sales order, if the credit lies within the limit and if the stock is not available in that particular plant, it is a dynamic credit limit.
    Thanking you in advance for your valuable time and efforts,
    Thanks & Regards,
    Mani

    HI ,
    1. For your first issue u201Cstatus of sales order is being in processedu201D
    Please check the below settings:
    Copy control From Sales order (OR) to Delivery (LF) u2013 T.code: VTLA.
    In Item level (TAN)  whether u201CUpdate document flowu201D is activated or not.
    You should also check in the Item category (VOV7):
    Completion Rule: Which one did you maintain?
    2. Error message: Open items:
    This is related with Credit management. Check whether you maintain any open item days or percentage, please check in OVA8. If you maintain you should get the payment from your customer . This is related with FI ( T.code : F-28 )
    Dynamic credit check :
    The setting is available in OVA8. Choose your credit control area, Risk category and Credit groups ( Should be Sales order group ). Then select the indicator u201C Dynamic u201C In Reaction you should give B ( Error ). Then the system will not allow to save the sales order if credit limit is exceeded .
    3. If the stock is not available in that particular plant, it is a dynamic credit limit.
    I think it is not possible . You may use the User exit in OVA8.
    Hope this can help you .
    Regards
    M. Lakshmi Narasimhan

  • Removing of billing block in Sale Order through workflow

    Hi all,
    I want to remove  the billing block in sale order when the person approves suing user decision step  in workflow .
    ANy idea would be great ...
    Regards,
    Venki

    Hi Surjith,
    task is not for the billing process ....
    and here my big problem is that i was unable to call the custom method in worklofw ....
    So attachment is not working in workflow only it works while testing if i pas the key value .
    Here my requirment is to remove  the billing block if the person approve in decision step ...
    Deepa,
    Can u tell me how to call a custom method here i am using standard BUS2032 in my task.
    already i  have BO with custom method but i dont know how to call it when the transaction get executed ....
    Thank u for ur reples...
    Regards,
    venki

  • Remove the user status in Sales order

    how to remove the user status in sales order header? could you give the function module or BAPI to get this?

    Hi,
    You Can try this-
    BAPI_SALESORDER_CHANGE,
    FM 'I_CHANGE_STATUS'
    Regards,
    Sujit

  • Status of Sales Order

    Hi all,
    How to know the status is closed for a sales order, Delivery and Invoice document. I am getting the Contract as Open when i checked its status, but for remaining flow where can i get their individual status.
    Regards,
    Suresh.

    In order to check status of sales order header and its items u can query and find out the details from VBUK and VBUP.
    Please reward points if u think this is of any help.
    Sharath.

  • After giving billing block in sales order still able to bill the document.

    Hi gurus,
    I created one milestone billing and assigned to item category and sales document type.
    in billing plan i had given billing block and also 2 proposed dates.
    now when i am creating sales document system is coping all the information from billing plan.
    it has billing block also
    but when i am creating billing document with referance to sales order its not blocking.
    in copy control i made the same setting as we had in credit memo request to credit memo.
    on credit memo request it is working properly but in my order its not working
    so can any body will help where i was getting wrong.
    regards
    Raj.

    Hi,
    I think system will not allow you to do billing.
    Can you check billing block field in sales order Header / Item. Billing plan tab for your billing dates.
    If billing block is there to billing dates, then you can't do billing.
    Otherwise, do not  maintain default billing dates in billing plan type OVBM. Try to maintain billing dates in sales order manually.
    In sales order creation, go to billing plan tab enter billing date and %, system automatically defaults the billing block and billing type and billing amounts.
    I hope you are using milestone billing percentage base.
    Regards,
    Chandra

  • Confirmation status in Sales order header

    Hi,
    I have processed one sales order until billing. The processing status in Sales order is as below.
    Overall Status: Completed
    Confirmation Status: Not yet confirmed
    Delivery Status: Fully delivered
    I want to know why the Confirmation status is shown as "Not yet confirmed" when the Overall status is 'Completed'.
    Please provide your inputs.
    Rgds,
    Amit

    Dear,
           I think after accounting of billing it will show the completed.
          VA01-> VL01N (PGI)> Billing---> Accounting.
    Regards,
    Sandip

  • What is the BAPI name to get the details of sales order

    hi
    what is the BAPI name to get the details of sales order

    hI
    BAPISDORDER_GETDETAILEDLIST Sales Order: List of All Order Data
    BAPI_ORDER_CHANGE_STATUS_GET Change status for order
    BAPI_SALESDOCU_CREATEFROMDATA Creating a Sales Document
    BAPI_SALESORDER_CHANGE Sales Order: Change Sales Order
    BAPI_SALESORDER_CREATEFROMDAT1 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDAT2 Sales Order: Create Sales Order
    BAPI_SALESORDER_CREATEFROMDATA Create sales order, no more maintenance
    BAPI_SALESORDER_GETLIST Sales order: List of all orders for customer
    BAPI_SALESORDER_GETSTATUS Sales order: Display status
    BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order
    reward points to all helpful answers
    kiran.M

  • How to Set User Status of Sales Order at item level.

    How to Set User Status of Sales Order at item level by default to 'Purchase Req Not Created' (example)while creating order. Please tell EXIT Name to be triggered & Internal table to be populated.
    Thanx,
    Srini
    Moderator message: please do your own research before asking.
    Edited by: Thomas Zloch on Feb 21, 2011 11:19 AM

    Mathew,
    Here is a document that should help you get started on enhancing 2LIS_11*
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c09d5356-d8c4-2d10-8b84-d24723fc1f0a?QuickLink=index&overridelayout=true
    Good luck!

  • Function module for status of sales order

    My reuirement is as follows,
    "Using the Objnr field(vbak), read the status of the sales order using the Function Module."
    So,please send me any existing Function module name to get status of sales order using Objnr field in vbak.
    Its so urgent!
    Thanks & Regards,
    Santu.

    Hi
    Check the given requirementcorrectly once again
    Because for sales order we don't use the field OBJNR (object no) to find the ststau
    Generally we use this field OBJNR for finding the Status of the PP,PM related Orders.We will take the OBJNR from AUFK table and Pass it to the JEST table
    and will read the STATUS of the Order
    So for sales order we don't have that field OBJNR
    if needed use the BAPI BAPI_SALESORDER_GETSTATUS to find the sales Order status
    Or use the table VBUK to find the Sales order status.
    Hope you understood the concept.
    Reward points if useful
    Regards
    Anji

  • BAPI to get delivery number and Sales order

    Dear all,
    Is there a standard BAPI that would help me get the delivery number and sales order number when Shipment number is given as an input?
    Regards,
    Neha.

    BAPI_SALESDOCU_CREATEFROMDATA  Creating a Sales and Distribution Document
    BAPI_SALESORDER_GETSTATUS      Sales Order: Display Status  
    BAPI_SALESORDER_SIMULATE       Sales Order: Simulate Sales Order
    Reward Points if useful.

  • How to get Changed fields in Sales order to create a report

    Dear Gurus,
    How to get the log from sales order for the change of particular field.
    In my scenario, If an user remove the delivery block from sales order I want to capture the date on which this delivery block
    is removed and by whom (User)?
    I know that I can get the log of change but can I get in the form of field updates because further I want to use that date and user name to create a report.
    I hope u got my query. Please reply soon that I can create a report.
    Thanks in advance.
    regards,
    Sanjay

    Hi
    You can use the table CDPOS for tracking the changes at the Table level with the Sales order number
    or Else you can also use AUT10 transaction to track the logs/chanages with START DATE, END DATE and the Transaction code in your case it is VA02
    Please check and revert back
    regards,
    santosh

Maybe you are looking for