QUERY FOR STATUS OF SALES ORDER

Hi Experts,
Here my Client required one query for status of the Sales Order line item wise and by when material will be  ready after giving clients PO no. sales order NO. Clients name etc.
Please give me guide to write this query.
Regards
Madhu

Hi,
Try this link,
http://help.sap.com/erp2005_ehp_04/helpdata/EN/d2/cb4759455611d189710000e8322d00/frameset.htm
Cheers,
Shailabh

Similar Messages

  • 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

  • Query for details of  Sale order , Invoice and COGS

    I Need the report cointing following based on month & Business partner
    Sale order, Sale Amount, Due date, Invoice Amount, Last Invoice date, COGS amount

    Hi Anantha,
    Please check below link and modify according to your requirement.
    Sales Order Query for  in SAP B1
    Query - Sales Orders linked to Deliveries
    My Top SQL Queries for SAP Business One
    Hope this helps
    Regards::::
    Atul Chakraborty

  • Query for all open sales order with a date range

    Hi Experts!
    I wrote this query that will look up all open sales order of a particular customer and how much was served:
    SELECT T0.[DocNum] 'OS #', T0.[DocDate] 'Posting Date', T0.[CardName] 'Customer',  T1.[Dscription] 'Item Description',T4.[SalUnitMsr] 'Sales UOM', T4.[InvntryUom] 'Invty UOM', T1.[UseBaseUn] 'Use of Invty UOM' , T1.[Quantity], T1.[Quantity]-T1.[OpenQty] 'Served Qty', T1.[OpenQty] 'Unserved Qty' FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OCTG T2 ON T0.GroupNum = T2.GroupNum INNER JOIN OSLP T3 ON T0.SlpCode = T3.SlpCode INNER JOIN OITM T4 ON T1.ItemCode = T4.ItemCode WHERE T0.[DocStatus] = 'O' and T0.[CardName] =[%0]
    However, I don't know how to input a parameter for the date range in a query.  Can anyone help with this issue?
    Your input will be highly appreciated.
    Warm regards,
    Jen

    Hiiiiiii
             Try This.....
    SELECT T0.DocNum 'OS #', T0.DocDate 'Posting Date', T0.CardName 'Customer', T1.Dscription 'Item Description',T4.SalUnitMsr 'Sales UOM', T4.InvntryUom 'Invty UOM', T1.UseBaseUn 'Use of Invty UOM' , T1.Quantity, T1.Quantity, T1.OpenQty 'Served Qty', T1.OpenQty 'Unserved Qty' FROM ORDR T0 INNER JOIN RDR1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OCTG T2 ON T0.GroupNum = T2.GroupNum INNER JOIN OSLP T3 ON T0.SlpCode = T3.SlpCode INNER JOIN OITM T4 ON T1.ItemCode = T4.ItemCode WHERE T0.DocStatus = 'O' and T0.CardName ='[%0]' and (T0.DocDate>='[%1]' and T0.DocDate<='[%2]')
    Regards,

  • Extractor for statuses of sales order items

    Hi Experts,
    If I want to report on different statuses of an sales order item which extractor you will use.
    Regards
    nagini

    hi,
    Use the following:
    2LIS_11_VASTH for header status and 2LIS_11_VASTI for item status.
    Cheers..

  • Status of Sales Order Open Even after assigning Reason for Rejection.

    Hi All,
    I am facing with a basic problem wherein even after assigning a reason for rejection status for a sales order, the sales order numbere is appearing in  the list of Open Sales Order(VA05).
    Also another case is i created a sales order with one line item, invoiced the same. Now i cancel the invoice and further wanted to close the sales order as i cannot delete the same. In this case also i see that even after assigning the reason for rejection, the sales order number along with its details appear in the list of open orders.
    Can somebody please tell me whatt configurations have i missed?.
    Regards
    Bhushan
    Edited by: NAGABHUSHAN THIPPANNA on Nov 30, 2009 9:14 AM

    Hi Vivek,
    Thanks for the reply... My issue got solved partially. Now if i assign a "Reason for rejection" to the sales order then that sales order is not reflecting in the VA05 (open orders list).
    But given a scenario wherein i create  a sales order and whose quantities & values  gets updated in the standard infostructures and i will be able to see the same by executing MCTE (incoming orders & Qty). After assigning the reason for rejection for the same sales order i view the output of MCTE then the report still displays the old ordered quantity and value. Is there any wayout to control this wherein the moment we assign a reason for rejection for a line item in a sales order and the values get reversed in the standard infostructures.
    Thanks and Regards
    Bhushan

  • 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.

  • Open status of Sales Order in 3-trd party proces

    Hello
    In finished process of third party processing, and I have still status of Sales Order as open.
    There is no delivery in the process, but "delivery status" is 'not delivered.' There is only copy control between Sales Order --> Invoice. Item category is not relevant for delivery. What can I check more?
    I know that normally on Item Category I have to change the completion rule on B or C.
    Normally You have to also change copy control, for the relevant Item category, Update document flow field has the X value, but there is no copy control for sales order, only for invoice.
    Edited by: Malgorzata Paraficz on Feb 9, 2011 11:04 AM
    Edited by: Malgorzata Paraficz on Feb 9, 2011 11:05 AM

    There waa already created Invoice! 'Invoice quantities' field change (in copy control), also didn't help.
    But I have noticed that Sales Order for 3-rd party have assigned scheduling line which is relevant for delivery. Is it correctly?
    It must be something with 'delivery' because, the status is 'not delivered'. But in this process shouldn't be any delivery!
    Edited by: Malgorzata Paraficz on Feb 15, 2011 11:59 AM
    Edited by: Malgorzata Paraficz on Feb 15, 2011 12:01 PM

  • 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

  • Status of sales order and delivery notes

    Hello,
    what is the status of sales orders that permit to create delivery notes for this sales orders.
    And what is the status that block us to create delivery Notes.
    Regards.
    Zied.

    Hi..
    1. The over all status of the sales order in header shuld be Being processed...Rejection status shud be  nothing rejected..Delivery status shuld be Not delivered....Credit status shuld be Approved/released
    2. Status will be Blocked if any block is assing to the sales order or else it wud be Not blocked
    Reg,
    JJ
    Edited by: Jagsap on Nov 25, 2009 11:03 AM

  • Order and item status in sales order

    We had multiple items in the sales order
    for one of the item, the quantity was 5, but user cretaed a delivery of 8. but she only post goods issue for 5.
    the delivery and order was open
    at this stage the archival of delivery took place.
    we changed the status in tables vbuk and vbup to complete.
    but in the display of status in sales order, it still shows being processed.
    What can we do now to set the order status and item status to COMPLETE.
    Thank you for your reply

    Hi,
    This order status will not be complete unless the delivered quantity is equal to the order quantity. You have 2 options. 1. Change the order quantity to 8 and delliver the rest 3 and the order status will be set to COMPLETE. 2. Otherwise, reverse the PGI in VL09n and delete the delivery and create the delivery again for 5 qty. This will set the order status as COMPLETE.
    Regards,
    Raghav

  • Issues in Web service created for updating the Sales Order

    Hi All,
    We created a Web service using the Web service tool in CRM 7.0 ( Using the Component WS_DESIGN_TOOLS )
    Web service was created for three modes such as READ, CREATE and CHANGE Modes.
    READ Web Service we tested and its working fine as we were able to see the data for an existing Sales Order in the Web Service.
    We expect that the Change Web Service will update the data of an existing Sales Order.
    Through our Web service we are passing the Order GUID ,Order ID and some Header Fields as well as Item Fields but  the in the Web Service we are getting a message that Web service executed successfully but the CRMD_ORDERADM_H Table isnot getting updated.
    What could be problem.
    Any suugestions will be highly appreciated.
    Regards,
    Sijo

    Hi Gourav,
    I checked in SICF for the Webservice name created.
    this is the service path
    /default_host/sap/bc/srt/rfc/sap/ for the corresponding Web Service created in DEV 200 Client.
    I checked in SOAMANAGER and saw  that the  endpoitnts were zero.
    the Search Operation for Webservice have got three query fields mainly
    Object Id, Posting Date,Procees Type
    If we give Process Type
    sign - blank
    option - blank
    low - YPO ( Custom )
    High - blank we are getting 126 entries.
    and if we check for the Process Type YPO (Custom ) in CRMD_ORDERADM_H Tbale also we are getting the same no of entries.
    but only for option BT , for Posting Date issue is thr..
    Any inputs to move forward will be highly appreciated.
    Regards,
    Sijo.
    Edited by: sijokjohn85 on Mar 5, 2010 10:52 PM

  • Prerequisites for archiving the sales order

    Hi ,
    What are the prerequisites for archiving a sales order? What is the last business transaction from which the archiving process is triggered? Is it necessary to set status CLSD on the sales order for archiving ? what are the other system statuses that should be set for archiving a sales order?
    Thanks & Regards
    San

    Hi Santosh,
    Sales Order is linked to other subsequent documents in the Order Processing cycle like Delivery, Invoice , Shipments, etc. So, we've to make sure that all the dependencies are removed before we can start to archive an SO.
    You can see the dependencies in SARA Transaction (Goto->Network Graphic).
    The SO archiving program checks if the status of the subsequent documents are Completed or not. (status in VBUK table is "C") .
    There are other options like Residence Time, Existence of PO , Existing of Accouting Doc.
    You can select the options, based on your company's decision regarding the extent of SO archiving they wanted to achieve.
    The program will throw the messages appropriately, based on the checks it performed and appropriate actions can be taken from the document side .
    This is a link , which explains the checks the program does before archiving.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/a9/55c7d490a111d1a5510000e82deaaa/content.htm
    Regards,
    Shail.

  • Status in sales order item level

    Hello gurus
    I am in need to assign the status profile for item in sales order where by
    when the item is entered in sales order and save the status should automatically set as created
    and when the line item delivery created the status should say Created
    when PGI is done status should say goods issued
    and when billing is created status should say biling created
    and when accounting document is created it should say released to accoutning
    all these the status should change automatically with out any user change
    How to do that
    Thanks in advance
    Rajesh

    Hi,
    This cant be achieved through standard SAP system. But ask ABAPer, I think this could be possible with ABAP by doing some coding.
    regards,
    Sagar

  • How to find for a specific sales order trip is created or not?

    Hi,
    I need to find out that a trip is created or not for a specific sales order. Its urgent. Please let me know.
    If you can provide join for the query.
    Thanks

    Hi Suhani,
    Header level click on Action->Additional Information Select Deliveries Tab drag to last you can see Current Trip Details over there.
    Line level is possible to check --Action->Additional Information   Select Deliveries Tab, drag to last, you can see Current Trip Details over there.
    Thanks
    Edited by: 21221 on Feb 26, 2013 5:27 PM

Maybe you are looking for

  • Calling a report from function module

    Hi Friends, I have requirement for Function Module i.e. we will add the button to the standard T-code and ( Function added in config ) then Function to be called from Customizing Program A called from customizing function CalculationPDFFunction  is c

  • Function module of smart form delivered an error

    Hi All, I am getting an error like this "Function module /1BCDWB/SF00000007 of smart form delivered an error" FUNCTION /1BCDWB/SF00000007. ""Global interface: *"       IMPORTING *"             VALUE(ARCHIVE_INDEX) TYPE  TOA_DARA OPTIONAL *"          

  • When I try to type a letter, multiple letters go flying across the page

    I noticed that my iMac seemed a little slow yesterday, then all of a sudden, letters started typing where I had not typed them.   I turned the computer off, not really thinking about it,  and the next morning, I can't access my computer bc multiple l

  • Print preview in ME21N/ME22N/ME23N

    Hi! In transactions ME21N/ME22N/ME23N we can see PO print preview after we click Print preview button. Is it possible to deactivate upper toolbar in this preview?? Or deactivate:  Go to -> 'View list'   in this toolbar?

  • Time pair on Planned working hours 0

    I want to generate time pair for days where planned working hours is 0.  how can i do that do i have to write a rule to generate time pairs on day with hours 8 (fixed if it is a off day) because if anybody takes PL on off day and CL on off day then i