Change the status of Sales Order

Hi,
I have a scenario wheirin I need to forcefully change the status of a sales order to complete eventhough the delivery / invoice is not complete. Reason is because the user has stopped to take further deliveries.
I already have 3 deliveries / invoices for my Sales order and I want to stop any subsequent ones. However the status field in a sales order is grayed out so I cant change it manually.
Is there any other way I can make the status of my sales order to complete or stop further deliveries / invoices?
If you want any other information then do let me know.

I understand you already have some deliveries for some of the items in the order and some invoices too. If so then you CAN'T changes the status of THE document. thatd be wrong, as some transaction is already processed hence it is greyed out.
if you wish to block further deliveries etc for the balance of the items then the blocks too wouldnt be right as again they are on the doc level.
For the case specific you need to set the "reason of rejection" at the ITEM level thus updating that the balance of the items are irrelevant for the further processing. and save. That would complete the order, and your purpose met.
Regards,
Tariq

Similar Messages

  • 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

  • Changing the payer in sales order other then BDC, LSMW

    Hi Friends,
    We are working at BHEL,
    here we want to change the payer instead of old payer for all open sales orders is , is there any possibility to change the payer in sales order other then LSMW , BDC , those two are not helpful for us  because there is lot of incompleteness logs in my incomplete procedure,
    please suggest me to proceed further,
    regards,
    Gangi Reddy.

    Hi Gangi,
    I have explained the CATT procedure, step by step, on 31/03/2007 for another mass updation requirement in the same forum with subject as 'Regarding Customer Master'.
    Have a look and let me know if you have further doubts.
    Rewards if helps.
    Regards
    Nadarajah Pratheb

  • Unable to change the status of Internal order.......

    Hi,
        I am trying to change the status of Internal order from Technically completed to Release. But i am getting an error that ---Status REL is not allowed (order 4564564).
    We have created this order and till now zero value is used of actual budget means we not used even single amount till now for this order and we want to change the status of order from Tech to REL again.
    Is it possible.
    Please suggest.
    Regards,
    R.

    Hello,
    You can release the Order by the following method:
    Go to KO02
    Enter the Internal Order name
    Go to Control Data Tab
    There we have one screen area as Status: there we have one push button(like); click it and from there you can set the staus of the internal order to Released(or you can also change the current status of the internal order)
    Please let me know if you I am missing something in my reply.
    Thanks,
    Anurag Singh Rathore

  • Changing Credit status in Sales order under header status

    Hi,
    How can we change the Credit status for a sales order.
    The Status tab under the header is in read only mode and i am  not able to find any BAPI or FM for 
    this.
    Thanks in advance..
    Dinakar.

    Hello every one,
    I want to change the credit status ( VBUK-CMGST ) for sales order header.
    Since the screen is read only mode i am not able to go for recording. and i am not able to find
    any BAPI or FM to change the status.
    If any one has any Idea please let me know..
    Thanks,
    Dinakar.
    Edited by: Dinakar Tirukoovaluri on Feb 24, 2009 5:43 AM

  • Restricting changing the status of an order

    Hello,
    When creating an order (tcode va01), it is possible to change the status of the object. Some of the statuses are for example:  
    u2022 1 Napp Not Approved
    u2022 2 App Approved
    u2022 3 Reje Rejected
    u2022 u2026.
    Is it possible to restrict people in choosing the status? For example  one can only choose Napp and the other one can only choose App.
    I have checked the va01 auth obj in su24, but did not find any auth obj related to this matter.
    Thank you very much for your help in advance.
    WR
    Salameh

    Hello,
    I think no status objects are present for customization in sap and for this you can use STATUS_OBJECT_CREATE (functional module) and it will generate for you a temporary OBJNR and you can fill at least OBTYP and replace it actual one, for replacement you can use function module STATUS_OBJECT_SWITCH_NUMBER.
    Hope this helps
    Dheeraj

  • How to change the status of clinical order header

    Hi all,
    I need to change the status (N1CORDER-WLSTA) of the clinical order header. I have found the way to change the status of the items and it works, but i dont know how to change the header status.
    Now, for the items i do:
    1- Create an object type cl_ishmed_prereg
    2- Load the item (n1vkg-vkgid)
    3- Use set_status method
    4- Save the object
    5- Commit work
    So, do you know how i can change the status of the header? Im looking for other methods but...
    Thanks,
    Manel

    In order to change the clinic order header status u have to:
    1- Obtain the instance from item instance:
        CALL METHOD lv_prereg->get_corder
          IMPORTING
            er_corder = lv_corder
            e_rc      = rc.
    2- Create a var type rn1_corder_x
    3- Modify:
    is_n1corder_x-wlsta = 'RE'. " new status
    is_n1corder_x-wlsta_x = 'X'.
    4- Use change mehod:
        CALL METHOD lv_corder->change
          EXPORTING
            is_corder_x     = is_n1corder_x
          IMPORTING
            e_rc            = rc
          CHANGING
            cr_errorhandler = cl_error.
    5- Save:
    CALL METHOD lv_corder->if_ish_objectbase~save
    6- Commit work
    Regards,
    Manel

  • 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

  • What is the tcode  to change the contents of sales order

    hi
    what is the tcode  to change the contents of sales order

    SD Transaction Code Flow:
    Inquiry / Document type IN
                              create chan  disp             tables updated
    Tcode for creation VA11,VA12,VA13. tables VBAK,VBAP
    Quotation / QT
    Tcode for creation VA21,VA22,VA23. tables VBAK,VBAP
    Purchase Order PO
    Tcode for creation ME21,ME22,ME23. tables EKKO,EKPO.
    Sales Order OR
    Tcode for creation VA01,VA02,VA03. tables VBAK,VBAP
    Delivery LF
    Tcode for creation VL01,VL02,VL03. tables LIKP,LIPS
    Billing F2
    Tcode for creation VF01,VF02,VF03. tables VBRK,VBRP

  • How can I change the status of refund order to complete from CRMD_ORDER?

    I can I manually (Force) change the status of a refund order from within CRMD_ORDER?.
    Jason

    When doing that from the order's Status screen against User status I only get the dropdown status of 'Request Payment' that can be set. Hence the reason for thinking that there's more to do to correct this problem.
    Jas

  • Detect change user status on sales order

    Hi,
    I have a requirement that a custom program must start when a user puts a certain user status on a sales order.
    Problem is that I cannot detect on which event I can trigger this custom when the user status is changed. There seems not to be an entry in the change documents table, or an event triggered,...
    Does someone has already encountered such an issue ?
    thanks in advance !
    kind regards,
    Björn

    Hi Carl and Shiromani,
    thank you for your fast reply!
    I guess I will give it a try to do this with functions if I just can get it running with the cl_crm_mktpl_appl_base-class.
    As you suggested Shiromani the Save_and_commit gets an error in the assignment checks in the check_attributes-method.
    So I probably have to take a closer look why this method is returning an error-flag. Unfortunately I am not getting an error message - only an error flag is set.
    I will take a closer look at it today and keep you informed if I find out anything useful.
    Cheers,
    Dennis

  • How to change the price in sales order copying from contract?

    Hi All,
    I am creating a sales order with reference to contract & the same prices in the contract are flowing. But the validity of prices are expired & I am unable to edit the prices in the sales oerder level.
    Please suggest what configuration need to do to edit prices in the sales order level.
    Thanks,
    Madhu

    Hello Madhu,
    I am creating a sales order with reference to contract & the same
    prices in the contract are flowing. But the validity of prices are expired
    & I am unable to edit the prices in the sales oerder level.
    Please suggest what configuration need to do to edit prices in the sales order level.
    The configurational setting for changing the pricing flow from Contract to Sales Order is in Copying control. Go to the T-code VTAA and select your relevant Contract and Sales Order. At the Item level itself, you shall find a control called PRICING TYPE. Select the option as B or C.
    Please try out this approach so that your issue related to pricing flow can be avoided.
    Regards,
    Sarthak

  • MTO; change system status of sales order lines after settlement to "Closed"

    HI
    Is there a program (or transactin), to do mass change of system status for MTO sales order lines to "Closed" ?
    Thank you, Dejan

    Try using transaction "MASS" and object type "BUS2032".
    Shail

  • Help to change the price in sales order create bapi

    hi,
       i am able to change the price but not what i am trying to do.
       can anybody please help . here i am submitting the code.
        i am trying to enter the 40 into price field but it is takeing 400
    <b>report  zmybapi1        .
    data : my_order_header_in like bapisdhd1 occurs 0 with header line,
           my_order_header_ix like bapisdhd1x occurs 0 with header line.
    data : my_orderitemsin like bapisditm  occurs 0 with header line,
           my_orderitemsix like bapisditmx occurs 0 with header line.
    data : my_order_partners like bapiparnr occurs 0 with header line.
    data : my_return like bapiret2 occurs 0 with header line.
    data : w_vbeln like bapivbeln-vbeln.
    data:
         my_orderschedulesin like bapischdl occurs 0 with header line,
         my_orderschedulesinx like bapischdlx occurs 0 with header line.
    data : my_orderconditionsin like bapicond occurs 0 with header line,
           my_orderconditionsinx like bapicondx occurs 0 with header line.
    start-of-selection.
    this is to assign values to internal table my_order_header_in
      my_order_header_in-doc_type   = 'TA'.
      my_order_header_in-sales_org  = 'JNJ1'.
      my_order_header_in-distr_chan = '02'.
      my_order_header_in-division   = 'J1'.
      my_order_header_in-sales_off  = 'JNJ1'.
      my_order_header_in-purch_no_c = 'testbapipo'.
      my_order_header_in-purch_date = sy-datum.
      my_order_header_in-req_date_h = sy-datum.
      append my_order_header_in.
    this is to assign values to internal table my_orderitemsin
      my_orderitemsin-material      = '000000000000000727'.
      my_orderitemsin-plant         = 'JNJ1'.
      my_orderitemsin-target_qu     = 'EA'.
      my_orderitemsin-target_qty    = '10'.
      append my_orderitemsin.
    this is to assign values to internal table my_order_partners
      my_order_partners-partn_role = 'AG'.
      my_order_partners-partn_numb = '0000000011'.
      append my_order_partners.
      my_order_partners-partn_role = 'WE'.
      my_order_partners-partn_numb = '0000000011'.
      append my_order_partners.
    This is to assign values to internal table my_orderschedulesin
    my_orderschedulesin-itm_number = '10'.
      my_orderschedulesin-itm_number = '000010'.
      my_orderschedulesin-req_qty   = '10'.
      my_orderschedulesin-SCHED_LINE = '0001'.
      append my_orderschedulesin.
    *This is to assign values to internal table my_orderconditionin
      my_orderconditionsin-itm_number = '000010'.
    my_orderconditionsin-cond_type = 'ZPR1'.
      my_orderconditionsin-cond_value = '40'.
      append my_orderconditionsin.
      my_order_header_ix-updateflag = 'I'.
      my_order_header_ix-doc_type   = 'X'.
      my_order_header_ix-sales_org  = 'X'.
      my_order_header_ix-distr_chan = 'X'.
      my_order_header_ix-division   = 'X'.
      my_order_header_ix-sales_off  = 'X'.
      my_order_header_ix-purch_no_c = 'X'.
      my_order_header_ix-purch_date = 'X'.
      my_order_header_ix-req_date_h = 'X'.
      append my_order_header_ix.
      my_orderitemsix-updateflag    = 'I'.
      my_orderitemsix-material      = 'X'.
      my_orderitemsix-target_qty    = 'X'.
      my_orderitemsix-plant         = 'X'.
      my_orderitemsix-target_qu     = 'X'.
      append my_orderitemsix.
      my_orderschedulesinx-updateflag = 'I'.
    my_orderschedulesinx-sched_line = '0001'.
      my_orderschedulesinx-req_qty    = 'x'.
      append my_orderschedulesinx.
      my_orderconditionsinx-itm_number = '000010'.
      my_orderconditionsinx-cond_type = 'ZPR1'.
      my_orderconditionsinx-updateflag = 'U'.
      my_orderconditionsinx-cond_value = 'X'.
      append my_orderconditionsinx.
      call function 'BAPI_SALESORDER_CREATEFROMDAT2'
        exporting
      SALESDOCUMENTIN               =
          order_header_in               = my_order_header_in
          order_header_inx              = my_order_header_ix
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
        importing
          salesdocument                 = w_vbeln
        tables
          return                        = my_return
          order_items_in                = my_orderitemsin
          order_items_inx               = my_orderitemsix
          order_partners                = my_order_partners
        ORDER_SCHEDULES_IN            =  my_orderschedulesin
          order_schedules_inx           = my_orderschedulesinx
       ORDER_CONDITIONS_IN           =  my_orderconditionsin
       ORDER_CONDITIONS_INX          =  my_orderconditionsinx
      ORDER_CFGS_REF                =
    if sy-subrc ne 0.
        write: my_return-message, my_return-number, my_return-type.
      else.
         call function 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
           WAIT          =
         IMPORTING
           RETURN        =
          write: my_return-message, my_return-number, my_return-type.
    endif.</b>
    Message was edited by: pavan kumar pisipati

    Is there any Multiplication happening in the condition type or any other conditions executes. Please check those..
    Another way is, if always  a multiplication of 10 is happening then pass the value by dividing it by 10. But this way is not a nice way or programming...
    Check out both and let me know if not working.
    Cheers,
    Thomas.

  • Changing the status of Equipment in a follow up action

    Hi All,
               I have a requirement in which a function module will be triggered for a particular Follow up action.
    In this FM we have to determine the equipment and the Maintenance Order , if both are available , status of the equipment
    should change to 'A' , status of maintenance - order = 'Technically completed' and Maintenance Notification = 'Notification Completed' .
    How can this be done.? I am able to change the status of Maintenance order and notification but can anyone help me in
    determining the equipment and changing its status to 'A'. ?
    Thanks in advance.
    Vasuki

    Hi Gajesh,
                     The process is as follows :
    1) During Calibration of a product,depending on the technician's User decision , 3 follow up actions are created.
    2) Each follow up action has one FM associated with it, which is customised in      SPRO > Display IMG > Quality Management > Quality Inspection > Inspection Lot Completion > Define follow-Up Action .
    3) In the first case ( first Follow up action when the inspection is successful) the first FM is triggered. In this FM we have to perform the following steps :
                                   a) Determine the Maintenance Order and the equipment.
                                   b) Incase both are available, status of equipmnt should be changed to 'A',
                                       Maintenance Order should be changed to 'Technically completed' and
                                       Maintenance Notification to 'Notification Completed' .
    If you need further info pls let me know.
    Thanks,
    Vasuki

Maybe you are looking for