Approval or rejection of sales order

Hello Friends,
I have the following scenario in which end user creates the sales order and thn it will go to manager for apoproval. till the order is not approved it shld nt allow user to create delivery or billing document.
Regards,
Sunny

This can be configured in the standard system itself without any z-development.
Ask your SD consultant to assign Status Profile in Sales Document.
Revert if you have any doubt.

Similar Messages

  • Sales Order - Draft[Rejected] and Sales Order - Draft[Approved]

    Hi,
    I am using SBO 2004B.
    I want to check through my VB6 code, if a Sales Order document is a normal Sales Order or it has been through approval system and is in Sales Order - Draft[Rejected] or Sales Order - Draft[Approved] status.
    How can i do that?
    Thanks.

    Hi Satish,
    The document drafts are saved in the ODRF table. The WddStatus field in the table (ODRF and in all other document tables, like OINV, ORDR, etc.) shows the authorization status of the document. Valid Values are
    - Without Authorisation (Normal Transaction)
    W Pending
    Y Approved
    N Rejected
    P Generated
    A Generated By Authorizer
    C Canceled
    Let me know if it helps...
    Adele

  • Add 2 buttons Release and Reject on Sales Order CRMD_BUS2000115 application

    Hi Experts,
    My Requirement is to add 2 button 'Release' and 'Reject' for Sales Order CRMD_BUS2000115 aplicaiotn using PCUI.
    Also provide the functionality...as
    1.Click On Release will change the status of seleceted order as "Released" i.e. to remove the Billing/Dleivery Blocks...And SAVE it.
    2. For "Reject"  change status as Rejected and Save it using standard "SAVE'' button.
    Can anybody would explain how should i proceed and where i have to code ??
    Or Source code or sample code?
    Can I call BAPI_TRANSACTION_COMMIT aftre changing it ??
    Thanks in Advance,
    Arjun Pawar.

    Hi Experts,
    I have added 2 buttons 'Release' and 'Reject' for Sales Order CRMD_BUS2000115 aplication using PCUI which provides the functionality...as
    1.Click On Release will change the status of seleceted order as "Released" i.e. to remove the Billing/Dleivery Blocks...And SAVE it. 2. For "Reject" change status as Rejected and Save it using "CRM_ORDER_SAVE" api followed COMMIT work. Functionality is working fine.
    But <b>I'm getting an error / explorer error " An error has occurred in this script page" ( the Error is : 'CAT Params' is undefined ) is coming as soon as query/click on "GO", carried out after the action performed like "Release/Reject"</b> on the sales order approval screen.
    Please, can anyone give an idea @ the cause of error ?? whether it is frame error ?? or else???
    And How to resolve it???
    Thanks,
    Arjun

  • BAPI_SALESORDER_CHANGE to update reason for rejection of sales order item

    Hi,
    The FM BAPI_SALESORDER_CHANGE is not working properly as I am getting below error when try to update the reason for rejection at sales order item level.
    The delivery is done for this salesorder. Is it because the reason for rejection field is not as an input field when delivery done?
    error in return table is " Field 'ABGRU' cannot be changed, VBAPKOM 000010  ready for input"
    Request your suggestions to avoid this error.
    Thanks

    >
    anikaushi wrote:
    > Hi,
    > The delivery is done for this salesorder. Is it because the reason for rejection field is not as an input field when delivery done?
    >
    >  error in return table is " Field 'ABGRU' cannot be changed, VBAPKOM 000010  ready for input"
    >
    >
    > Thanks
    Yes, Most likely.. You can confirm this by trying to change a order without delivery and see if it goes thru (to ensure that you have passed correct parameters)...
    you may have to delete the delivery (and if billing document exist, cancel it), before you can reject the line item... it would be safer to raise an error message and let the users manually delete delivery document as long as you don't have large volumes of this scenario..
    Please see the SDN thread for how you can avoid this error...
    Re: Cancel Sale Order after Issued Billing

  • How can we reject a Sales order after first Down payment invoice for Italy?

    Hello,
    As a legal requirement in Italy the Down paymenty have to be transformed into real invoices, another legal requirement is that an invoice cannot be cancelled it has to reversed by a credit memo.
    I would like to know in this context how we can reject a sales order line once a Down payment invoice has been emitted.
    When I do enter a reason for rejection in the sales order line I receive the message : V1036: Subsequent documenst exist for item XXX and then V2432 Cancellation not possible. Down payment request already created.
    I can create a down payment credit memo in order to cancel the down payment invoice but how can I get rid of my SD requirement in MD04 if I cannot reject the sales order line?

    Hello,
    have you tried using a recjection code which is not relevant for billing?
    Regards,
    Uli

  • Deletion of delivery and rejecting the sales order

    hi,
    my requirement is
    we have to delete the delivery and reject the sales order.
    can any body provide me the code for that.
    it is very urgent..
    thanks in advance.

    how do we come to know abt ur Config settings  in case of rejecting Sales Order ? Just ask ur functional person what to do in  this case ?
    Regards
    Prabhu

  • Error when i reject the sales order

    Hi:
    I´m in Upgrade to 6.0, and when I reject a sales order in SD, the system show me this message "Subsequent function 'Production order/plan order from sales document' not possible: Item 000010 was rejected Message no. V1579".
    In the implementation the products was delivered for the company, but today they work with service orders but the integration SD with PP is until running but they user the order for documentation and to saw the costs.
    I wrote a SAP message and read this notes 964813 and Note 1028464 but both are already aplicated. SAP responce to me but I don´t konw to much of the SD and PP integration. Please, can any one help me?
    SAP responce:
    Info to SAP    
    12.03.2008 - 12:49:44 CET - Reply by SAP     Attachments
    SAP Note 97272  - Rejections of individual order items possible
    SAP Note 356895  - Rejection of third-party items and individual PO items
    SAP Note 549972  - FAQ: rejecting third-party or individual PO items
    SAP Note 1054121  - The SAP Ecosystem in a Nutshell
    Dear Gina,
    I was analyzing the problme in your system.
    If I understand you rigt you are expecting that the link between the
    sales order and the production order is not deleted when you set the
    reason for rejection. When you set the reason for rejection again then anew production order is created.
    The standard behaviour is that the link between sales order and
    production/assembly/service order is deleted. As field vbep-aufnr is
    deleted also no later restructuring is possible.
    In the header table of the order aufk-kdauf there is still the relation
    to the sales order number but there is a deletion flag set for it and
    the link can't be reactivated.
    I am sorry that I could not give you a more positive reply.

    Hi:
    In the table AFKO I don´t have any order document. I searched this, before reject the sales order, and then, when I try to reject the sales order, and in both cases I don´t have the relation about the order and the sales order in this table.
    I looked at the table AUFK and in the field KDAUF I saw the sales order and the relation with the PM order, and this is my problem, I don´t no why the message error tell me something  about PP order,  I didn´t understand.
    I saw the customizing and I Know they works with the "Strategy group" in materials and it was customizing in "Demand Management" and the order was customizing in "Plant Maintenance and Customer Service", (PM) customizing the Order Types. I think when finally they decided that the material was only for services, they changed something, and the customizing is not complete in PP.
    In the old version 4.6C the rejection of sales order works, but in this version 6.0 and with MRP implementacion I don´t know in what step this was change. If you Know where can i find if something of MRP affect the previous integration please let me know, because I think is a PP customizing problem.
    Thanks
    Best Regards
    Gina

  • Enable the approval workflow for the Sales Orders (Standard)

    Dear All,
    I need to enable the approval workflow for the Sales Orders (Standard). How can I do this? Please update
    The version of apps is 11i
    many thanks in advance...
    Edited by: santark on Oct 27, 2010 3:47 PM

    Dear All,
    I need to enable the approval workflow for the Sales Orders (Standard). How can I do this? Please update
    The version of apps is 11i
    many thanks in advance...
    Edited by: santark on Oct 27, 2010 3:47 PM

  • How to Place Approve and Reject Button in every row to approve and reject the particular order in sapui5

    Hi Experts,
       How to Place Approve and Reject Button in every row  to approve and reject the particular order in sapui5.
      Please Kindly help me.
    Thanks & Regards
    Chitti Babu

    Hi Chitti,
    You can achieve this using sap.m.CustomListItem.
    View :
    <core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc"
      xmlns:l="sap.ui.layout" xmlns="sap.m" controllerName="demoallinonegrid.tablewithscroll"
      xmlns:html="http://www.w3.org/1999/xhtml">
      <Page title="Title">
      <content>
      <ScrollContainer horizontal="true" width="100%">
      <Table id="empTable">
      <headerToolbar>
      <Toolbar>
      <Label text="Employees"></Label>
      </Toolbar>
      </headerToolbar>
      <columns>
      <Column width="12em">
      <Label text="Employee Id"></Label>
      </Column>
      <Column width="12em">
      <Label text="Last Name"></Label>
      </Column>
      <Column width="12em">
      <Label text="First Name"></Label>
      </Column>
      <Column width="12em">
      <Label text="Title"></Label>
      </Column>
      <Column width="12em">
      <Label text="Approve"></Label>
      </Column>
      <Column width="12em">
      <Label text="Reject"></Label>
      </Column>
      </columns>
      </Table>
      </ScrollContainer>
      </content>
      </Page>
    </core:View>
    Controller:
    var model = new sap.ui.model.json.JSONModel();
      model.loadData("http://services.odata.org/Northwind/Northwind.svc/Employees?$format=json",null,false,'GET',false,null);
      this.getView().byId("productTable").setModel(model);
      var template = new sap.m.ColumnListItem({
      cells:[
            new sap.m.Text({text:"{EmployeeID}"}),
            new sap.m.Text({text:"{LastName}"}),
            new sap.m.Text({text:"{FirstName}"}),
            new sap.m.Text({text:"{Title}"}),
            new sap.m.Button({text:"Approve"}),
            new sap.m.Button({text:"Reject"})
      this.getView().byId("empTable").bindAggregation("items","/value",template);
    Output:
    Regards,
    KK

  • Reject of sales order position, but the confirmed quantity doesnu00B4t change

    Hi gurus,
    when I reject a sales order position, the confirmed quantity doesn´t change in the schedule line. Internally, after the position is rejected, the available quantity of the material increases in the position quantity, but the schedule lines of the position doesn´t change.
    Regards

    HI,
       Check the sales order entry in Tcode MD04 before and after putting reason for rejection u can definately get the inpact
    Regards,
    kishore.

  • Line Items are getting rejected in Sales Orders

    Hi,
    I am creating sales orders using ORDERS Message type and for this I am using the Standard SAP Inbound Function Module to create sales orders.
    Idocs are getting processed successfully and sales orders are getting created, but line items in the sales order are getting rejected and hey are getting rejected with reason for rejection to be <b> No Availability Lost</b>.
    So, I would like to know if this is a problem with the data furnished in the Idoc or else any custom setting have to be maintained or not?
    Raghuram

    The reason why they are failing is because in the user exit as per the logic present here whenever a EDI Order with customer Purchaser Order Type DFUE is to be processed ABGRU (Reason for Rejection) has been flagged equal to 01 and hence order item lines are having rejection reason.

  • Reason for rejection for sale order stock existing line item

    Hi,
        I am giving reason for rejection for a line item where there is already sale order stock. Then I am getting a warning message like " there is sale order stock assigned". I want this message to be as error message. Any customisation (SPRO) is there for this?
    Kindly update.
    Ratna

    Dear Rama Rao
    I think, there is no problem you can ignore the warning message and go ahead give reason of rejection and close the order
    There wont be any problem absolutely
    The reason  of warning message is, (it is sales order created with item category with special stock indicator as E )  that means the system tells you that it is extra special stock which you have created and now you are trying to reject hence it alerts you by giving a warning  message
    The item category of the items which you are trying to reject  is marked  or should have been marked with special stock indicator (you can check that in VOV7)
    By double clicking warning message if it is of V4 message class in t code OVAH you can make that as no message
    But i doubt that this is available in OVAH
    Regards
    Raja

  • Dump while supplying Reason for Rejection in sales order

    Hi Gurus,
    when I am suppling the Reason for Rejection ("Cancelled") for a line item in existing Sales Order, the sales order is going to dump,this is the case with production system where as the same is working fine with testing system,ofcourse I am using different sales order numbers for both the cases....what may be the reason...
    Please suggest.
    Thanks for the help....Have a Nice Day..

    Hi
    Kindly post the error details.
    After dump, use t code ST22, click on today, click on the error & analyse.
    thank you.

  • Not able to put reason for rejection at sales order level.

    Hi Gurus,
    I have an issue where I am not able to put reason for rejection for line item in sales order. It gives error as please delete the follow on document purchase order line item number 10. I have already deleted the line item in purchase order. Then tried but did not work. Tried by deleting the purchase requision item also but it did not work.
    Tried to undelete the item from PO and then again tried to put reason for rejection but it could no worked out. 
    Please guide me what can be the solution.
    Regards
    Vinod

    As far a I understand you created PO for line item
    So first check whether GR is reversed or not for PO
    Then mark this line item for deletion in PO and then in PR
    Check if you have created any billing document for PO if so reversed that invoice
    Also check if you have created any delivery for the Line item in sales order if yes then reversed the same
    If you have Sales order related Billing, and if you have done billing reverse the same
    If you have Delivery related Billing, and if you have done billing reverse the same
    After reversing all docuemnts created for Sales order then only try to reject the line item
    You can check table VBFA for document flow

  • Remove Reason For Rejection From Sales Order Using BAPI_SALESORDER_CHANGE

    Hi
    I have a sales order and would like to remove the rejection reason.
    I am trying to use BAPI_SALESORDER_CHANGE with the following code:
    (0000xxxxxxx  is my material #. i just removed the actual #).
    MOVE: '0000050106' TO SALESDOCUMENT.
    MOVE: 'U' TO T_HEADER_INX-UPDATEFLAG.
    MOVE:                        30 to t_order_item_in-ITM_NUMBER,
                                      ' ' to t_order_item_in-REASON_REJ,
          '0000000000xxxxxxxx' to t_order_item_in-material.
    APPEND t_order_item_in.
    MOVE: 'U' TO t_order_item_inx-updateflag.
    MOVE: 'X' to t_order_item_inx-REASON_REJ,
               'X' TO t_order_item_inx-material.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
      EXPORTING
        salesdocument              = SALESDOCUMENT
        order_header_inx           = T_HEADER_INX
      tables
        RETURN                     = T_RETURN
        ORDER_ITEM_IN              = T_ORDER_ITEM_IN
        ORDER_ITEM_INX             = T_ORDER_ITEM_INX
    WAIT UP TO 5 SECONDS.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          = 'X'
    IMPORTING
       RETURN        = t_return
    WAIT UP TO 5 SECONDS.
    can anybody help?
    the BAPI returns success messages saying the item was processed successfully but the reason code is still there.
    However, if i pass in any other reason code like 02 or 06, it works!.
    thanks.

    Thanks for your help. =)
    I also realized that I forgot to add the SO Item # into the T_ORDER_ITEM_INX-ITM_NUMBER fields.
    But now it works.

Maybe you are looking for

  • Generic document services - web

    hi folks, we're in planning/doing to migrate a part of an application (abap / dynpro) to a webdynpro abap application for the frontend part, and in the old one we're using the generic object/document services (cl_gos_manager etc.). does anyone has so

  • Calculate function in a PDF form

    I created a form from an existing PDF file, and got all the fields with no problem.  When I try to designate a field as a calculated field, however, it won't let me select individual fields.  It only lets me select all or none.  Anyone else have this

  • Foursquare "Smart" Installer Fails on Nokia 5800

    Hi there, My foursquare application stopped working on my Nokia 5800 Xpress Music so I removed it with the intention of reinstalling it. It turns that a new version of foursquare is available - running on Qt and requiring Nokia's "smart" installer to

  • How to connect two computers

    please help me how to connect two computers through telephone line

  • Read Access to Planning applications.

    Hi Gurus Is it possible to give Read access to the Planning applications through HSS? similar to 'Read' access of the essbase apps? I m in 11.1.2.1 and the Provisioning Options we have are Administrator, Analytic Services Write Access, Cube Creator,