Can you update Approval Status in Sales order using DI API using SDK

Hi experts,
Can we actually update the Approval Status(WddStatus) in Sales order From approved to pending using DI API.
Thanks,
John

Hi John,
When the sales order is originally created, and at that point pending approval, it is stored as a draft. Once approved, a sales order is created based on the draft.
In other words, the pending document and the approved document are two entirely separate objects in the database (they use different tables), and in the SDK.
That means that you can certainly realize your requirement, but you will have to look at it from another perspective. In quasi code:
Intercept the update event
Check if any changes were made that warrant another approval round
If so, duplicate the (adjusted) order, and submit the new order to trigger the new approval round.
Close or cancel the original order.
Admittedly this seems a bit silly, but unfortunately the approval process in B1 is still not perfect. As such I recommend that you (also) log on to the SAP Business One Idea Place, (it is free, like the SCN) and vote for any ideas that pertain to your requirement, and/or create an idea of your own.
Another approach all together could be to instruct users not to make changes to orders, and to use the stored procedure to prevent updates. And allowing users to only submit a new order altogether (they can use the duplicate functionality).
Regards,
Johan

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

  • Status is not updated from delivery to sales order item.

    Dear Folks,
    One user created sales order with 10 line items and he created delivery and later he deleted line item 30 in that delivery document and with remaining 9 line item he done the PGI & Billing.Here what is the problem is the deleted line item in sales order status showing as completed and delivered quatity showing as 10.Status is not updated from delivery to sales order item.Please let me know how to resolve this?
    Thanks & Regards,
    murali.

    Dear Murali,
    Please go to VTLA transaction then select your delivery and order types after that go in to the details of the item level settings here you check field called Update document flow under Control data tab.
    I hope it will help you,
    Regards,
    Murali.

  • 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

  • Delivery Block status in Sales order

    Hi Friends,
    I have a requirement of creating a User Exit for  updating the delivery block status in Sales order creation,can you explain me what is meant by delivery block status in Sales order creation?
    Regards,
    Dinesh

    Hi Dinesh,
      Delivery block is used when you do not want to create a delivery for any particular reason.
    Th reason may be that the credit limmit for customer has exceeded and you don't want to create any further delivery for that.This block can be created in the overview screen of sales order.
      The important thing is that you can put only those delivery blocks which have been assigned to your delivery types.The path is spro--logistics execution--shipping -delivery-define block reasons for shipping.
    Reward points if it helps.
    Regards
    Karan

  • Credit exposure updating even when the sales order is blocked

    Hi,
    We are using FSCM credit management. We observed that the credit exposure is updated even when the sales order is blocked. When we investigated it is found out that SD has removed the requirement 101 in the subsequent functions. The reason is they want the confirmed quantity to be updated even though the order is blocked. This will allow the Material Planning to go ahead and purchase the goods. Is there a way around it where we can have MM see the confirmed quantity in the order and it will not updated the credit exposure?
    Thanks and Regards
    Madhu Vutukuri

    Hi Sravan,
    Please let us know, whether the document is really getting reflected in the blocked documents list for a particular kind of block and you are releasing that particular block in the specified area as we have different areas for releasing blocks. Chances are that in the mean time, the concerned block might have been removed in the system and not updated as it might have been. It will be of great help, if you can provide us with the screenshots of the process followed.
    Regards,
    Aman

  • 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

  • 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

  • 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

  • Update Purchase Requisition from Sales Order

    Hi,
    My requirement is to Update Purchase Requisition from Sales Order based on the Vendor number in
    Purchase Requisition .
    I have used Userexit         :- MV45AFZB
                     Customerexit :- EXIT_SAPFV45E_002
                     BADI             :- ME_REQ_OI_EXT, ME_REQ_POSTED
    for my requirement, but in vain.
    Of these Userexit  MV45AFZB, Customerexit EXIT_SAPFV45E_002, BADI ME_REQ_OI_EXT are getting triggered in Sales order creation but, Purchase requisition is not yet triggered and we dont have the VENDOR value with which i need to do perform some checks and update the Purchase requisition.
    After I SAVE sales order, BADI ME_REQ_POSTED is getting triggered.Here, the purchase requisition is created ( not yet inserted into the database ) .I also have required VENDOR value, but in the given
    BADI ME_REQ_POSTED I can make checks according to my requirement but not able to update the new values into purchase requisition.
    Literally speaking, Iam struck up..Dont know what to do.....
    Please let me know any Userexit/BADI/BTE where I can  Update Purchase Requisition from Sales Order based on the Vendor number in
    Purchase Requisition .
    Thanks,
    Shivaa..

    Hi Max,
    It just struck to me...
    As suggested by you, I thought of calling BAPI BAPI_REQUISITION_CHANGE  from user exit USEREXIT_SAVE_DOCUMENT in MV45AFZZ .
    I f I give PReq no. , BAPI BAPI_REQUISITION_CHANGE  will take the particular PReq no., from database and then change it according to our requirements...
    But, in our scenario I am calling the BAPI BAPI_REQUISITION_CHANGE  and passing a PReq no..which doesnt exist in the d/b itself.....
    Anyways, let me try......
    Meanwhile ,please suggest any other options for resolving the issue in question......

  • Update Approval Status of parent Folder based on approval status of folder items

    Hi,
    I have a SharePoint list which contains folders. Each folder contains one or more items. I wish to update the folder approval status to "Approved" when all the items inside the folder are approved.
    The workflow should trigger whenever the approval status of one or more items inside the folder is changed and is expected to check the approval status of all other items inside the folder. If all the items are approved the folder's approval status should
    be set to "approved".
    I am designing the workflow via SharePoint Designer 2013 and using SharePoint Online 2013 .
    Thanks a lot in advance.

    Hi,
    According to your post, my understanding is that you wanted to update Approval Status of parent Folder based on approval status of folder items.
    Per my knowledge,
    there is no out of the box way to accomplish this with SharePoint.
    Though we can loop the
    folder items to set the content approval status, we can not get the parent folder and then set the content approval status.
    As a workaround, I recoemend to create event reciever to get set the content approval status of the folder items.
    For more information, you can refer to:
    How to: Create a remote event receiver
    How to create a simple Remote Event Receiver for a Custom List in Office 365 SharePoint 2013 site
    Regarding SharePoint Online, for quick and accurate answers to your questions, it is recommended that you initial a new thread in Office 365 forum.
    Office 365 forum
    http://community.office365.com/en-us/forums/default.aspx
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Update Pricing elements for sales order item

    Hello All,
    I want to add few manual pricing elements to a sales order item through code (the pricing elements to be added will be determined dynamically). Is there any BAPI  or user exit to update the same?
    Regards,

    Hi
    You can use the BAPI_SALESORDER_CREATEFROMDAT2 for creating  the sales order.Using this you can populate the pricing conditions for sales order. To pass the Pricing conditions use the str ORDER_CONDITIONS_IN & ORDER_CONDITIONS_INX in BAPI.
    Regards,
    Raghu.

  • Update pricing procedure in sales order

    hi gurus!
    in sales order item, the tax condition type MWST is determined as 17% by the indicator 1 in both customer and material master data. but after i change the material master data to 2, which should lead to 13% in MWST, i update the pricing in sales order item, no matter what options i choose, the 17% won't change!
    can i ask that why this is not changing?
    how the system control it?
    and what for?
    thank you so much guys!
    BR,

    Dear Michael,
    While Updating your Line-Item in Sales Order, What Pricing Type you are selecting?
    Is it Pricing Type: G - Copy pricing elements unchanged and redetermine taxes
    Alternatively, You may check with:
    Select your Line-Item in Sales Order and Double-Click.
    Go to, Tab: Conditions; and Click Tab: Analysis (at bottom of the screen).
    Now, on to next screen,  Select your Condition Type: MWST (from Left-hand of the screen) and Double Click.
    Read the "Overview" (from Right-hand of the screen).
    This will tell your the exact reason. Based up on, take corrective actions; else post the same for our understanding/ working.
    Best Regards,
    Amit

  • Approval Procedure for Sale Orders

    Hi Experts:
    Anyone can help me?...I´m needing an Approval Procedure for Sale Orders to be activated whenever the user is trying to give diferent discount percentage from the one assigned in the price list throughout Period Discounts. We have Sap Business One 2007A SP01 PL05
    Thanks very much in advance
    CLAUDIA

    Hi CLAUDIA,
    This has to be done through user query approval.  However, since I don't have similar environment to try, you may start to create your own query first.
    Thanks,
    Gordon

  • How to display delivery status on sales order line

    Hi,
    We're on R12.1.3
    We have a requirement to display delivery status on sales order lines in quick sales order form. Is there a standard configuration available to achieve this? if not available, what would be the best way of achieving this?
    I mean using, Forms personalization or Event based Alert etc?
    Thanks,
    Ram

    This is already available in the additional line information..though..
    If you still want that at line level to be displayed..maybe you need to customize the form...not sure how u can handle that logic
    Mahendra

Maybe you are looking for

  • MR11 error message system status CLSD is active

    MR11 fails with error message system status CLSD is active . How to clear the PO line item which gives error message in MR11 system status CLSD is active .

  • Commitment code---cost center and gl

    There is a issue regarding budgeting. we have some option that we are considering. pls give some views on it option 1  whenever  we put a  cost center while making any posting ,system picks up a commitment code and then budget gets allocated. but her

  • Cannot preview locally, only remotely

    I'm sure there is a simple answer to this; I just don't know it: I want to preview pages locally before I publish.  However, none of the graphics show up when I save to my local site then Preview in Browser, and the hyperlinks don't work either. • I

  • Why do I have to force-quit Thunderbird every damn time? Using 31.5.0.

    Every single time I use Thunderbird (has been going on for awhile - and this update tonight didn't change anything, it will not close down properly. Doesn't matter if I use File menu to exit or do Cmd + Q. It just sits there, and when I do Ctl + clic

  • CISCO CLEAN ACCESS AGENT ALWAYS POPS-UP EVEN ALREADY AUTHENTICATED

    Hello, Just wonder why clean access agent always pops-up even already authenticated. Please how can i eliminate those multiple pops-up? thank you and best regards, Edwin