Timestamp on approved sales order

Hello all,
We want to track when the sales orders are approved. Is there a query that can give me the time that it was approved/confirmed?

Hi Jennifer,
Just so that you're aware, that'll only actually work if other amendments aren't carried out on the sales order.
The fields you're using are updated regardless of the change made to the order, therefore if the order is approved on the Monday, but another field (say DelDate) is updated on the Thursday, when your query is run on the Friday, it'll suggest that the order was updated on Thursday.
You could build in the below query (maybe as a sub-query) to enable you to establish the date at which the confirmed flag was set to "Y" which may be a little more robust......
SELECT TOP 1 T0.UpdateDate FROM ADOC T0
WHERE T0.ObjType = '17' AND T0.Confirmed = 'Y'
Hopefully this won't impact you given the business process you have in place, but thought it best to highlight.
Cheers,
Julian

Similar Messages

  • Negative stock in approved Sales order.

    Hi,
    We have a problem in Approved Sales order where an item is invoiced even thought the Available qty in ware house is in negative.
    Please let us if you have any comments.
    Regards,
    Vinod

    Hi
    What I understand is that you are invoicing things and they are going into negative.
    Go to administration->System Initilisation->Document Settings. Make sure that "response to release stock below minimum" is correct.
    Hope this helps

  • Urgent- Can we change the data in an Approved sales order

    Hi Experts,
    Can we change the data once the Sales Order is Approved. If not Is there a solution to be done through SDK or B1 itself. Any help will be greatly apprieciated.
    Thanks
    John

    Hi John,
    Unfortunately it cannot be done. Because if you are not able do it manually or by User Interface then it will not be possible by SDK or any other approach,as far as I Know.
    Meanwhile you can create a duplicate of the approved document. Make changes to that. And Close or Cancel the approved one.
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • RA to be calculated only for Approved Sales Orders

    Hi,
    We have a requirement of RA being calculated on Sales orders only of the Status of the Order is Approved.
    Please suggest, if any particular BADI / Exit can be used for the purpose.

    Dear Swapvick,
    Thank you for using the SDN Forums/
    Please refer to the following note in relation to how Results Analysis interacts with Status'
    Note: 539947     Status in the results analysis and WIP calculation
    Note: 406918     Special cases during results analysis for sales orders
    Note: 181060     Daily results analysis for sales orders/documents
    Note: 83562       Performance in results analysis of sales orders
    I hope the information provided in the notes helps to clarify the issue. If not please specify the issue a little more clearly with the following type information:
    1. What you are trying to do
    2. What the system is actually doing
    3. What you expect the system to do?
    Kind Regards,
    Brendan

  • How to delete a sales order which has already approved

    Hi,
    Could anyone please tell me how can we delete an already approved Sales order if no delivery doc is created and billing document has already been cancelled.
    When i try to delete the order it is not allowing to delete the sales order.
    It allows to put the reason for rejection in the sales order.
    It does not allow me to put the reason for rejection in the sales quotation.
    Please help and guide me.
    Thanks and Regards

    Hi,
    My query is regarding if the delivery is not there and the sales order is already approved and if the billing docu has been cancelled then why can not we delete the sales order?
    After that i need to put the reason for rejection in the sales quotation.
    So please guide me.
    Thanks and Regards
    Edited by: MPVash Vash on Jul 22, 2008 7:29 AM
    Edited by: MPVash Vash on Jul 22, 2008 7:29 AM

  • Need Sales Order Approval Workflow upto two level

    Hi All,
       I am new user of sdn and also in workflow.I want to create a workflow to approve a sales order upto two level of approval.
    Is there any standard workflow available for this?or any standard task to approve sales order.Please help.

    Hi Abhijit,
       Thanks for your assistance.
    Actually what I need is to build a workflow which will be triggered whenever a Sales Order is created by some user.First the workflow will check if the sales order value is greater than Rs.10,000 or not.If yes it will go for the first level of approval to authority1 if not it simply complete the workflow.If authority1 approve the workflow it will go to authority2 for second level of approval.If authority1 reject that it will go back to the sales order creater to change it or he simply complete the workflow.If he choose change then it will again go for the first level of approval to authority1.If authority1 approve the sales order then it will go to the authority2 for second level of approval.If authority 2 approves it the sales order will be finally approved else it will return back to the creater to change or withdraw.
    I think you have understood what I want.Waiting for your reply.

  • Workflow for Delivery from Sales Order Creation

    Hi All,
    I am new to SAP workflow.  There is a requirement to create a delivery through VL04 (in background) based on the Shipping Point of the approved Sales Order.  How can this be done?  I am assuming that I should be using BUS2032 for the Sales Order and BUS2015 for the Delivery. 
    The first step should be to send an email that gives the user two options (Approve and Reject) once a Sales Order is saved.  However, I am unsure of how to pass parameters to VL04 and submit the program.
    For example, if the order is approved the Shipping Point will be passed to VL04 and run in background to create the delivery.  How can you determine the Shipping Point from BUS2032?  I did not see any attribute for this within the BOR.  Also, how do you create the step to submit that Shipping Point to transaction VL04 in background? 
    Any help you can give would be greatly appreciated.  Thanks.
    John

    Hello,
    You could try using a BDC with VL04 but first preference would be to see if there are any BAPI functions (search for BAPI) that can do this.
    If BUS2032 doesn't have an attribute that you want (eg shipping point) then sub-delegate to ZBUS2032 and add the attribute, it's straightforward. You just have to know how to determine the value programmatically.
    regards
    Rick Bakker
    hanabi technology

  • Removing of Delivery block in Sales Order using Authorization

    Hello,
    I have a urgent requirement on removing a Delivery block using authorization.
    The object V_VBAK_AAT is assigned to me and the ACTVT : 43 is permitted so I can release the block.
    As this was  not working I have created my own object with values ACTVT as 01, 02 , 43 and LIFSK : 1-10,11,12-99 .
    I am trying to remove the block from VA14L from VA14L I select my order with respect to delivery block and it navigates to VA02.
    From VA02 I am trying to remove the block.
    As this requirement may be simple but it is blocking my development.
    Thanks.

    Please correct whether I understood your issue correctly or not.
    You have developed the program only to put delivery block to Sales Order. This block should be approved by Authorized people for allowing the users to create delivery else Sales order delivery should not be possible. Is that program has any other additional functionality other than setting Delivery block??
    To keep delivery impossible till the Authorized person approves Sales order, you have the option of User Status. Process for creation of User Status for your requirement
    Create User Status Profile in OIBS
    Keep BLCK (Blocked for Delivery) & APPR (Approved for Delivery) as 2 statuses (No. of status can be as per your requirement. Here, simply I have 2 statuses)
    Assign Object types as "Sales Order Header" (if you want the Authorized people to approve at header level) or "Sales Order Item" (if you want the Authorized people to approve at Item level, may be for partial delivery)
    Keep BLCK as Initial status & Double click on BLCK status & click New entries on "Business transactions"
    There are many Business transactions such as "Create Delivery" / "Create Goods Issue for delivery". As per your requirement, select Forbidden option in one of the above mentioned business transaction
    Create Authorization Key in BS52 for Authorized People, say, as MNGR (Manager)
    Assign that Authorization Key to APPR user status in User status profile
    Using PFCG, you can create separate role by assigning this Authorization key
    This can be different kind of solution from your way. For reference, you can refer below document. Document content points some other space & transaction. But you can relate to above steps mentioned.
    User Status in SAP

  • Approval Authorization for Sales Order

    Dear Experts,
    Can anybody help me by providing a user query for Approval templete for the following condition.
    The system should prevent the sales order & Delivery when the customer is having one oustanding invoice above 90 days and the balance due for that invoice is less than Rs. 100
    Regards,
    Srinivas

    Hi Gordon,
    Thanks for your effort. I am getting the approval window after the sales order . ie at delivary it is asking me for approval and also for every delivary it is asking even the customer doesn't have any outstanding. if the approval process activates during SO genaration time ..then this will be helpful.
    If any previous invoice having outstanding balance >100 and if it exceeds 90 days then it should ask for approval. But the system should not check the Customer account balance.
    Regards
    Srinivas

  • Approval for Sales Order

    Hi All,
            Is it possible for me to set an approval procedure on sales order in case the user forgets to fill in the remarks column??? please help with the query.
    Thanks in advance,
    Joseph

    Hai!
    If, your requirement is block users to add SO without remarks, then u do with Strored Procedure.
    if @transaction_type = 'A' and @object_type = '17'
    begin
    if exists(select T.docentry from ORDR T where T.docentry = @list_of_cols_val_tab_del and
    (T.comments is null or T.Comments=''))
    begin
    SET @error = 17
    SET @error_message = N'Enter the Remarks'
    end
    end
    Add this code in SP_TransNotification of your company DB.
    Please test it in a test system and put in Live
    Regards,
    Thanga Raj.K

  • How to activate Approval in Sales Order for the UDF with condition

    Dear Expert,
                       I have created the UDF field Rebate(type amount) in Sales Order.I want to activate the approval procedure for this UDF with condition where Rebate is greater then Zero.I had applied the query and Activate it in approval procedure.--
    SELECT (Case When IsNull(count(T0.[DocEntry]),0) <>0 Then 'True' Else 'False' End) AS TF            
    FROM Ordr T0   where DocType='I' AND t0.U_rebate >0 and convert(Varchar(20),T0.[CreateDate],103) =(select convert(Varchar(20),Getdate(),103))
    But I found that the approval procedure activate every time inspite the Rebate field is Zero.
    Plaese suggest some soloution for it.
    regards,
    PankajK

    Hi Pankaj......
    Try this.......
    Select Distinct 'True' From ORDR T0 Where T0.U_Rebate>0 and T0.DocType='I' And T0.DocNum=$[ORDR.DocNum.0]
    Hope this will help you.......
    Regards,
    Rahul

  • How to implement Approval hierarchy for Sales Order in Order Management.

    Hi,
    We need approval process for sale orders in Order Management module. Currently we are using credit HOLD option for orders at shipping level. The issue we are facing now is we can not cancel those orders who contains Service Line item in it while on HOLD. The restriction raised at the time of cancelling the order that the Line Item is "fulfilled". Service line item's get fulfilled.
    Is that any other possibility to have Approval hierarchy for Sales Orders in Order Management Module? If it is possible can anybody share the related document or implementation guide?
    Thanks with anticipation in advance.
    Many Regards
    Kaleem Bhatti

    I copied the standard order header workflow and the "Book Order, Manual" workflow to custom workflows.  I then modified the "Book Order, Manual" workflow to put another completely custom workflow (call this "Approvals") in between the "Book Eligible" and "Book" steps.
    The "Approvals" step assessed the sales order, changed the order header to the pending approval flow_status_code, and sent out the appropriate notifications.  The "Approvals" step returned a Complete/Incomplete where complete would proceed to "Book" and incomplete would go back to "Book Eligible."  The new workflow was then assigned to the order type needed.  I don't still have access to that environment (job change) or I would give more definite instructions.

  • Sales Order (Returns)  for Approval / Reject

    Hi,
    I have a Sales Order of Credit Only Order type.
    Existing Custom Workflow
    When the Customer Service creates Sales Order of Order Type Credit Only, it will got to AR dept for Approval/Reject.
    If the AR dept rejects, then a Notification will flow to Customer Service with Rejection comments.
    Required Logic
    Once Customer Updates and saves Sales Order, Customer Service should have an option to send SO back to Approval to AR dept.
    Could any one give me the logic.
    Thanks

    Thanks for your quick response Ajay.
    I am aware that I can move it to unrestricted stock but I would lose my link to the RMA sales order. Correct?
    We currently are not using split valuation.
    Any other suggestions?

  • Sales Order/ Purchase Order Approved option

    Dear Friends,
    In System Init-> Document Settings-> Per document tab page-> sales order and purchase order documents have PO Approved/ SO Approved options. When we keep these options unchecked then any SO or PO even if saved cannot be copied to delivery/grpo unless we select the same checkbox in SO/PO logistics tab.
    My question is if I keep the options unchecked in document settings and then any SO/PO is created it will be unapproved. Please let me know if during authorization i can disable this option for the user and enable the option for the manager i.e the checkbox at logistics is disabled for the user and enabled for the approving manager. If yes please give me exact path in authorization window.
    Edited by: Philip Eller on May 13, 2008 9:05 AM

    Hi,
    If you want to control the user from creating PO/ SO, then you can create Approval procedures to them. You can create Approval procedures giving any conditions.
    As per my understanding, for your case, you need to control each and every document (ie., PO / SO documents creation). For that you can set Approval for these documents whenever they create.
    For that Administration --> ApprovalProcedures --> Approval Templates
    1. Enter the Approval Procedure Name and its Description.
    2. Originator Tab : In this choose the user's name from which  these documents will be created.
    3. Documents tab: In this select the Document type to which you are setting the Approval procedure (ie., PO or SO)
    4. Stages tab : Select the Approver name (Senior user name who approves the Document)
    5. Terms Tab : If you want to set approval for every document then select "Always" option. If you generated query to set approve then select "When following Applies" option and link the query you have generated.
    Now your Approval procedure will be set.
    Raja.S

  • Approval for Sale Order

    Dear OM Gurus,
    How to setup approval for a sale order?. I believe that the standard functionality is only for negotiation flow and return....
    Thanks & Regards
    Merlin Rajesh

    Note:363517.1
    Regards
    Prashant Pathak

Maybe you are looking for

  • Lexical References in oracle.apps.fnd.flex.kff.select

    Hi, I have one XML report and I am trying to Implement the Lexical References in Select. The bellow Code I wrote under <Lexical> tag <lexical type="oracle.apps.fnd.flex.kff.select" name="C_dest_locator_value" application_short_name="INV" id_flex_code

  • Scrolling Text Box question

    I'm changing a site for a friend. She wants to add a scrolling text box with a bio of herself on the grid we're already using on her page. The problems I'm having are it's difficult to resize the box once on the grid (you can't) and I keep missing an

  • Lumia 620 Photos with Flash Washed Out?

    May I find out if this is normal or there might be a fault with my phone? I'm running the Amber update on Lumia 620 The photo on the left has flash turned on and it is noisy and off color. Using flash appears to give the photo a washed out / instragr

  • Passport is 100 more expensive in canada than US

    that is the way: =============================== BlackBerry CEO John Chen says he will try to leverage the 'emotional' attachment of Canadians to the company to lure back customers. BlackBerry launched its new Passport device Wednesday.

  • Deleting Duplicate Records -EIM  Import Account & Contact

    Hi, Can anyone give me the query to delete duplicate records both from legacy as well as from the tables imported.