Closing of sales order

Dear All,
I am closing the sales order by giving the reason for rejection on item level status reason for rejection, after saving the SO will be closed. But if u again go to vao2 and select the reason for rejection as blank the so will be open. Now I want that once you give the reason for rejection the system should close the SO and next time not allow to anyone to modify in vao2. I would like to know how to work out?
I need help.
nikhil d
9325064414

Hi,
You can manage this with help of user exit SAVE_DOCUMENT_PREPARE in MV45AFZZ..
In this exit you can write the code as to check field VBAP-ABGRU (Reason for rejection).
This check should only work in case of VA02 only.So you will have to keep this in mind.
If say user has set the reason for rejection once saved the document.After word if he comes back and tries to clear this reason then you check the field VBAP-ABGRU.Initially this field will be set in VBAP table.
In the internal table if you find this as black then you can throw the error.
Reward points if useful
Regards,
Amrish Purohit

Similar Messages

  • Problem in closing of sales order

    Hi experts
       When i am closing the sales order with rejection reasons i am getting an error message asgiven below
       Item 000010 does not exit
        Message no. V1331
    kaleem

    In our organisation a contract is created first followed by creating a quotation with reference to the contract.Even though the contract is created no line item is entered.Only Valid To,Valid From anad STP is entered.The management wants us to prevent the user from creating the Quotation if the contract expires.
    How to do this .Please help

  • Closing open sales order

    hi
    i want to close all the open sales orders at the end of every month in a single strech
    regards
    ramana

    Ramana,
       You can do this. Before doing this may i know why you want close. Generally, we won't do this. This should be done by the SAP system based on the system. if you want to do it only once for missing materials, you do this. Download all the Open Sales Orders into CSV file. Change the Status of the Orders to Closed (for all open orders). Upload data from Flat file. Then system will take it as closed. Consider the subsequent documents values for the sales orders.
    this will help you. other wise you need to request from SAP (If all sales orders already closed, that missed in delta request). You can do the Repair full request.
    all the best.
    Regards,
    Nagesh Ganisetti.

  • How to display a popup when closing a sales order form

    Hi Team,
    I need to display a popup when a user tries to close a sales order. Can anyone please let me know if we can do it through personalization or custom.pll.
    Thanks,
    Vikash S.

    When we close order form with out saving , a pop up shows to save or not, try to check that how closing event is being captured.

  • Open ,closed & both sales order creating

    hi folks,
              i have  a requirement like seelction  screen is
    1.     Choice should be provided to display either of
           a.     The Sales Order Header details with Navigation. (Radio Button)
           b.     The Sales Order Item details with Navigation. (Radio Button)
    2.     Option should be provided to display the following onto the ouput screen
          a.     Delivery Order Details
          b.     Billing Order Details           
    3.     Choice should be provided to select the output with the following.
          a.     Open Orders
          b.     Cleared Orders
          c.     Both
    could you help me .
    Thanks & Regards.
    Naresh

    Oh my...!!
    Thats a hell lot of work...
    Start with the selection screen and try to keep it as per the functional requirements.
    And in case if you are having any problem with designing the selection screen... you post it here.....
    Better to proceed with the further code once the selection screen part is over.
    Regards.

  • Short Closing Of Sales Order

    Dear All ,
    Pl explain the Procedure : how to Short Close Sales Order ?
    Rgds ,

    By assigning "Reason for Rejection", you can short close an open order and the status of the sale order would also be changed from "Being Processed" to "Completed".  You can of course change the order quantity to delivered quantity.  To achieve this,
    -  Go to TCode MASS,
    -  Input Object Type "BUS2032",
    -  Select "Sale Order Item Data",
    -  Click on "Fields" on top 
    -  Block the field "MASSVBAP-KMPMG" and execute
    -  Input those open sale orders and execute
    -  Change the quantity and execute.
    thanks
    G. Lakshmipathi

  • Closing pending sales order

    Hai gurus
    Please help me how  to close pending sales order with open quantity. So that it cant be never used and partially delivered documents attached to that sales order should nt also be affected
    With Regards

    Hi,
    What ever items are open in sales order. then please go to item level then go to reason for rejection tabage and mention the reason for rejection and then save.
    Then order will be completed...
    Regards
    Sankar

  • Mass Closing of Sales Orders

    Hi All,
    One of our guys has messed up the sales order importing process. We have 3000 orders which have been targetted to an invoice but the delivery has been left behind. He created the delivery in the invoice without linking to the sales order reference.
    Therefore, we need to mass close the 3000 orders. It seems docstatus is read only so we can't use DTW.
    Anyone know how to do this?

    Hi,
    We are not actually using DTW but some other software which uses the API. For our software, we choose the function we are using, such as "Add, Update, Delete" and there were another 2 "close" and "cancel".
    So, it's def available via the API somehow. Try just changing the docstatus or canceled field via DTW.

  • Closing a Sales order

    Dear All,
    I am trying to all close an open sales order, for which a number of deliveries has happened and I'm left with balance stock in hand.
    Now that I want to generate a sales order but would like to deliver from the remaining balance, how do i close the previous order.
    This is in the case of Make to Order scenerio.
    Pls suggest !
    Rgds,
    Indrajit

    Dear Indrajit,
    If all the units in your sales orders are already delivered, then you dont need to do anything. You cannot create another delivery for this.
    If your objective is to deliver the stock in hand and your sales order is not completely delivered(say order is for 100units but you have delivered only 80 so far) you can do delivery with reference to this sales order for the remaining quantity(20 in this case). Now the sales order will become completely delivered, and you can no more create a delivery for this. i.e. You dont need to create another sales order for creating the delivery.
    If your objective is to just close this sales order, you can put a reason for rejection at the item level and close the sales order.
    Hope this helps you

  • Closed Sales orders in Open Item list

    Hi all,
    I facing a problem,
    I have closed few sales orders through right click and close but those are still visible in open sales order list report,
    can anybody please help me in this regards,
    Regards,
    Atul Joshi

    Hi
    It looks to me was database inconsistency however you said it didn't show any result .
    Since sales order donot post journal entry ,you can do it
    1>> Go to particular sales order
    2>>  in menubar ,go to data >> close
    (considering the this sales order was supposed to be close ,but somehow it is open)
    it will ask you to do you want to close  and yes .
    And also ,if you are SAP 2007 A  patch 35, please upgrade as i have seen a lot of thread  regarding this particular patch (Not mandatory just suggestion)
    Before you do this , I would suggest you to back up the file and test it in your test environment .
    If all of this didn't resolve ,I would suggest you to log to sap for support .
    Thank you
    bishal

  • Closing Sales Order through DTW

    I want to close Sales Order using DTW, because the are a lot of open sales orders and is to much work to do it manually. I would do a query to the SBO DB to get the fields into the template. What fields would be needed to do it???

    hector,
    good question.
    You can raise a ticket to
    SAP in service market
    place before procedding
    further with closing of
    sales order.
    Hope it will solve the
    problem.
    Jeyakanthan

  • Closing sales order containing cancelled item

    Hello,
    This is the scenario.  You create a sales order containing 3 items and add the order.  One of the items then gets cancelled (in item master data).  You then try and close or cancel the order.  A red line error message is displayed saying 'Item cancelled' with the item code after it.  Is there a way of closing a sales order which contains a cancelled item? I have tried removing the item from the order but am unable to update it afterwards - it shows the same error.
    Many thanks,
    Kate

    Hello Kate,
    A precaution is always needed when you cancel any items.  You need run a simple query such as:
    SELECT * FROM RDR1 T0 WHERE T0.ItemCode = '[%0\]' to check any Sales Orders contain this code.
    Thanks,
    Gordon

  • How to know the sales order closed using right click menu -Close ???

    I have an sales order with ten item, I have copied the same to delivery and before adding the Delivery I have deleted some items. After adding the Delivery, I manually closed the sales order by using the "right click menu close".
    The Open Quantity of those lines are already closed while i Close it manually.
    Now i need  a report regarding the sales orders which i  have closed manually. Any Options??

    Check the below result
    DocNum     DocDate     CardCode     CardName     Row#     ItemCode     Dscription     Price     Quantity     LineTotal
    2     2012-02-04 00:00:00.000     ED-C-102     AI HUDHA BOOK STALL     2     1010          150.000000     10.000000     1500.000000
    3     2012-02-04 00:00:00.000     ED-C-103     AL AMEEN ENGLISH SCHOOL-MANKADA     2     1011     ZINC ROD HIGH GRADE PURE ZINC 140 X 9 MM     59.790000     10.000000     597.900000
    this is the result i get while i execute your query
    but look at the db result
    DocEntry     LineNum     TargetType     TrgetEntry     LineStatus     ItemCode     Quantity     OpenQty
    1     0     15     2     C     1010     10.000000     0.000000
    2     0     15     3     C     1010     10.000000     0.000000
    2     1     -1     NULL     C     1010     10.000000     0.000000
    3     0     15     4     C     1010     1.000000     0.000000
    3     1     -1     NULL     C     1011     10.000000     0.000000
    3     2     15     4     C     1012     15.000000     0.000000
    3     3     15     4     C     1013     20.000000     0.000000
    4     0     15     5     O     1010     10.000000     5.000000
    See the last line data...it have open quantity of 5 and it also have the target type 15, If I close the sales order with docentry 4 manually using right click, the open quantity will be Zero..
    I need that last line result also as my output..
    Hope you understand my problem.
    Thank You

  • Third pary sales order- when is it closed

    Iam testing third party process.
    All the config is in place.
    after i created the Po from third party sales order , i tried receiving the goods (statistical goods receipt) for it in diffeerent ways.
    1) general MIGO for the Po quantity
    2) Inbound delivery based on a shipping notification and then PGR from there (VL31N)
    In either cases, the sales order workflow, does not get updates with the receipt quanity .
    How do i consider it closed?
    I checked a sap-img link
    http://www.sap-img.com/sap-sd/process-flow-for-3rd-party-sales.htm
    where they suggested to create a delivery VL31N after statistical goods receipt.
    Not sure if that is a good way of doing business as it has lot of implications..as it is suggested for general deliveries going out of our company physically.
    I would really appreciate how other companies work w.r.t receipts and closing of sales orders for third party orders
    Thanks
    AH

    This senario is typical. That means a customer purchase a trade goods from you, and you purchase it from your vendor, and your vendor will deliver the goods to your customer. The PO is for a SO. You can track all processes by SO history.
    1) Normally an automatic PR will be created after you save a SO;
    2) Run Me59N to get an automatic PO
    3) GR for the PO,
    4) IV for the PO
    5) Billing for SO
    You don't need deliver the goods, and actually you received goods but your Stock wouldn't have them.

  • Impact of Updating Customer Name in existing Open Sales Orders

    Hello,
    There's a requirement to update an existing Customer Name which we can very well do via API but what we tested the impact on :
    Sales Order in 'Entered status'
    Sales Order in 'Booked status'
    Sales Order in 'Shipped status'
    Sales Order in 'Closed status'
    Sales Order in 'Cancelled status'
    and the customer information was updated in all the above scenarios.
    The question/doubt I have is:
    1) Does the change in Customer Name has an impact in other modules like Service Contracts etc (In other words is the change reflected there automatically?)
    2) For an Sales Order in Shipped status with an Old customer Name and if we now change the customer name, will there be any impact in AR?
    To summarize will just changing the 'Customer Name' from 'Recievables' ensure that the change is flowed to all modules or is there a chance that somewhere in some module Customer Name is not in sync??
    Please come with suggestions/solutions/alternatives ...
    If you need any more information on this please let me know.
    Thanks in Advance!
    -Ajit

    Hi Jyoti,
    Thanx for the reply.
    You are correct, but for my question I am changing customer name at Recievables not in a Sales Order.
    When I change a Customer Name from Recievables it replaces all existing 'in-process' sales order with the new updated customer name(note that I am just updating the name thereby party_id etc columns remains the same...) in whatever Status it is.
    So my question was:
    1) Does the change in Customer Name has an impact in other modules like Service Contracts etc (In other words is the change reflected there automatically?)
    2) For an Sales Order in Shipped status with an Old customer Name and if we now change the customer name, will there be any impact in AR?
    To summarize will just changing the 'Customer Name' from 'Recievables' ensure that the change is flowed to all modules or is there a chance that somewhere in some module Customer Name is not in sync??
    Hope you got the point!
    Please provide your valuable inputs.
    Thanks,
    Ajit

Maybe you are looking for

  • Problems with FPLVMgr.dll in Windows NT

    I have an application that works beautifully in Windows 98, but when loaded onto NT, I get an error message that says: "The application or DLL C:\P2100\program\FPLVMgr.dll is not a valid Windows NT image. Please check this against your installation d

  • I somehow now have "Start Now" in my Firefox and can't get rid of it.

    I have uninstalled this toolbar but it keeps launching with my Firefox. How can I get rid of it. Don't even know how I got it.

  • Qualified Update - Timestamp field

    Hi All, I'm having a qualified lookup FIELD1 and a timestamp field STAMP1 checking for changes in FIELD1, both in main table. When I'm creating/deleting or updating qualified links in MDM Data Manager STAMP1 behaves as expected and displays the time

  • Message that hard drive is full when clearly it is not!!!! HELP!!!

    This is weird. Got a message that I had 117 mb left on hard drive. Dumped a bunch of programs and pictures. Then it said I had 25 gb on drive. Three days later, having done NOTHING, I got a message I was totally out of hard drive space again. Dumped

  • Combing multiple sales order into one delivery - help needed!

    basically, this is what im doing and maybe someone can direct me in the right direction? i goto vl10c, enter the shipping point and then goto the sales order tab and enter one sales order in sales document 1st field and then in the second field for s