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.
Similar Messages
-
Open Sale Order Value (FD33) not getting diminished even after closing SO?
Hi,
Upon Executing FD33 and clicking the status view for a Customer say XYZ , and then choosing EXTRAS-Open Sale Order . Say the value of open sale orders being shown is 75000. Even after closing the open sale orders (By Selecting VA05 and Putting reason for Rejection), and then also the Open Sales Order value is not getting diminished.
What could be the reason ?
Pls help.
Regrds,
BinayakHi Binayak,
As mentioned by you, running of Credit re-org program 'RVKRED77' is the only solution for this problem and it is known problem in SAP.
Some precautions
1. Always run the program in background by scheduling a job.
2. The idle time is around midnight when no user is working on SAP.
3. Some time the job fails as some other program may be updating same tables as this program. In such cases re-schedule the job at different time.
4. You may run the program 'RVKRED88' which will simulate without actual updation of credit values.
Hope this clarifies..
Regards,
Madhu. -
Closing of open sales order( Reward)
example- i have open sales order of 100 qty and 50 qty have been delivered and 50 qty is left .is there any option to close that sales order without delivery so that nobody can see it again?plz suggest me?best answer ll be rewared.
Hi tripathy
in this case you have to define reason fo rejection path : spro -sd- sales -sales documents header -sales document item define reason for rejection.
you should be more specific about rejection reason.
after delivering 50 quantity for remaining 50 quantity organisation has rejected or customer has rejected.
now goto VA02 give all the details and material give remaining 50 quantity select reason for rejection.
i hope you have understood.
if your doubts is clear don't forget to reward.
thanks
surya
Edited by: ramakrishna suryanarayanarao on May 27, 2008 7:07 AM -
Hi,
We have a business scenario of one sales order --> one delivery document. Any items which have not been confirmed for delivery need to be closed out so that they do not show up as open requirements.
One way is to reject the open line items. However, rejection reduces the original customer sales order value.
Is there any other way that the open sales order line items can be changed in status so that the pricing is intact, but the item is closed out ?
Would appreciate inputs from the forum
ThanksHi
In standard itself this can be achieved
In t code OVAG itself for your reason of rejection if you maintain BLANK in the statistical column
Then those rejected values will not be reflected in sales order
Suppose a sales order contains three materials say
Material A qty 3 units
Material B qty 3 units
Material C qty 2 units
Each and everything is priced as 10 US dollars
then the nett value of this order will be 80 US dollars
Suppose if you reject Material C qty 2 units with a reason of rejection by maintaining the settings that i mentioned above the sales order value still Will be 80 US dollars and will not become 60 US dollars
This is what you are looking for (i hope so)
Please try this
Regards
Raja -
hi ,
developed a report(alv list) to search application database for open sales orders. the inputs are sales organization, sold to party, material number,customer purchase order number,sales order craetion date.Hi,
sales organization, sold to party, material number,customer purchase order number,sales order craetion date.
to get the open sales order, that is the DElivery for sales order is not created.
u can check the status of sales order in the tables VBUK /VBUP.
In VBUK , check one filed(iam not sure at this movement) , if the field value is C, then that particular order is closed, if not C(i.e A (no delivery)or B(some part of items are deliverd) ) . From this u can display Open Sales Orders.
Revert Back if any issues,
Reward with points if helpful.
Regards,
Naveen -
In a report i am in need of obtaining open sale order for a material. open sale order means sale orders for which the PGI is not yet done.
Please tell me the data fetching from various tables.
can anybody tell me how to achieve this..HI
Give logic to ur ABAPER in FS If in VA02 Item is given as if Balance Qty is Greater than 0 then it is OPEN and if not it is Closed.
Regards
Santosh.A.R -
Rajesh/Sadhu/RobertoUrgent :- Open Sale Order Value not getting Reduced?
Hi,
Upon Executing FD33 and clicking the status view for a Customer say XYZ , and then choosing EXTRAS-Open Sale Order . Say the value of open sale orders being shown is 75000. Even after closing the open sale orders (By Selecting VA05 and Putting reason for Rejection), and then also the Open Sales Order value is not getting diminished.
What could be the reason ?
Pls help.
Regrds,
Binayak
Message was edited by:
Binayak Ghosh
Message was edited by:
Binayak GhoshHi Binayak,
As mentioned by you, running of Credit re-org program 'RVKRED77' is the only solution for this problem and it is known problem in SAP.
Some precautions
1. Always run the program in background by scheduling a job.
2. The idle time is around midnight when no user is working on SAP.
3. Some time the job fails as some other program may be updating same tables as this program. In such cases re-schedule the job at different time.
4. You may run the program 'RVKRED88' which will simulate without actual updation of credit values.
Hope this clarifies..
Regards,
Madhu. -
Dear Experts,
I have a similar requirement i.e. A good Volume of Open Sales Orders which are to be Closed. The Status of these Sales Orders being Partially Delivered, Not Delivered and Being Processed. Can I have a best solution to close them via an SAP transaction or with an ABAP Program. Kindly give us a detailed Solution to proceed.
Regards
HariHi,
As i understood, you want the STATUS of the orders to be COMPLETE.
For this you have to do some settings in the ITEM CATEGORY in VOV7
Goto the Transaction code VOV7 and select the ITEM CATEGORIES for all those documents and maintain the *COMPLETION RULE as A.*
Now check creating the new documents after executng the full cycle.
thanks,
santosh -
Hi All,
How to make Open Sales Order Report for previous year.my client want to open sales order list as on 31/03/2014.
please suggested me.
Thanks&Regards,
P.Prataphi all,
thanks for your replies,
i need open sales orders before 31032014. plz look into the below scenario
for ex:
S.no Sales order No still open 31/03/2014 closed date
1 101 open Open
2 102 closed Open 03/04/2014
3 103 closed Open 01/04/2014
i need report like these 3 open sales orders as on 31/03/2014. -
Can someone tell me if there is any FM to list out the Open and Closed Sales Orders as per indicator?
Thanks,
Archana.you can check this program.... SDEWUORD
It contains the logic for open sales orders. you can check the routine FORM FILTER_OPEN_ORDERS in th above program it might be helpful for you.
siri...
check this fm also..........OPEN_ORDER_SALES -
How to Close Mass Open Sales Orders (Partially / not executed ) at one go
Dear All
We are having lots of OPEN SALES ORDERS , few are COMPLETELY OPEN and rest are PARTIALLY used .Now my requirement is to CLOSE all such Sales Order at one go ie. MASS CLOSING OF OPEN SALES ORDER .
Please Guide.
Regards
Animesh ChakrobortyDear Animesh
First have those open order references in an excel sheet.
Go to MASS, input Object Type BUS2032 and execute. There block "Sales order header data" and click on "Fields". There select the field "MASSSDHEAD_S-LIFSK" and execute.
Now click on "Multiple selection" (right arrow), copy those order references and press "Shift+F12" and execute. There on top, assign some block and execute. All your sale orders will be blocked.
On the other hand, you can also change the status of those sale orders by assigning "Reason of Rejection" in mass. To achieve this, go to TCode MASS, input Object Type BUS2032 and execute. There block on "Sales Order Item Data" and click on "Fields". There block the field "MASSVBAP-ABGRU" and execute. Follow the same procedure as explained above.
Now see the document flow of those sale orders.
thanks
G. Lakshmipathi -
Permanent closure of Open Sales Orders
Morning Gurus !!
May be this is an issue with a lot of consultants. Our company wants to close all the open Sales Orders, for which I have suggested giving a Reason for Rejection or a Credit Block to close them. But end users are asking for a method where the closed Sales Orders should not be editable or changable in VA02, they should permanently be closed.
For this requirement I searched the forum and found no solution except one thread, which I did not understand, how to implement. I am giving that info here:
Thread by - Ravi D Mansharamani, Posted on Feb 27, 2008. Topic: Closing of a Sales Order
"You can use status profile (Transaction BS02) at sales order header and here you can define status 10 as created and status 20 as completed. Now for status 20, you can define objects types wherein you wont allow any changes by clicking on forbidden for a particular status, in this case status 20."
Now my questions are:
1. How to implement above suggested method and will it permanently close an open sales order?
2. If this does not, then is there any way in which we can close an open sales order which cannot be changed in VA02??
3. If I want to attach a document or a screen shot to a thread, how to do it?
4. How to know a thread no., if I want to give reference of it in my thread?
Your valuable suggestions are urgently needed
With best regards.
Venkat - HydHi Venkat ,
We can very well do this by using status profile concept.Pls configure as per below.
1.SPRO -
S&D u2013 Sales --- Sales Documents u2013Define and Assign Status Profile T Code:BS02
Define status profile
2.Assign two statuses to the status profile : Double Click on the newly created status profile to create the statuses
3.Click on Object types to select the relevant object .Select the object type and save the profile.
4.Assign status profile to relevant Sales Order Types : VOV8
5.Finally we can control the closing the closing functionality in Exit.MV45AFZZ .
Hope it helps,
Sash. -
Change of open sales order : using BAPI
Hi
this is ravi
can any one help me on this topic
1)change of open sales order using BAPI .With appropriate reason( like header level reason)
thanks & regardshI,
chk this FM BAPI_SALESORDER_PROXY_UPLOAD how the FM BAPI_SALESORDER_CHANGE was used
Check this code,
REPORT Z_SALES_ORDER_CHANGE
NO STANDARD PAGE HEADING
LINE-SIZE 132
LINE-COUNT 65(0)
MESSAGE-ID ZZ.
TABLES: VBAP.
DATA:
V_FILEIN(90) TYPE C,
V_RECIN TYPE I,
V_RECVBAP TYPE I,
V_RECORDER TYPE I,
V_VBELN LIKE VBAP-VBELN,
ORDERHEADERINX LIKE BAPISDH1X.
DATA: BEGIN OF I_ORDERS OCCURS 0,
VBELN LIKE VBAK-VBELN,
POSNR LIKE VBAP-POSNR,
BRGEW(18) TYPE C,
VOLUM(18) TYPE C,
END OF I_ORDERS.
DATA: BEGIN OF I_OUTPUT OCCURS 0,
VBELN LIKE VBAK-VBELN,
POSNR LIKE VBAP-POSNR,
GEWEI LIKE VBAP-GEWEI,
BRGEW LIKE VBAP-BRGEW,
VOLUM LIKE VBAP-VOLUM,
CKWGT TYPE C,
CKVOL TYPE C,
END OF I_OUTPUT.
DATA: BEGIN OF ORDERITEMIN OCCURS 0.
INCLUDE STRUCTURE BAPISDITM.
DATA: END OF ORDERITEMIN.
DATA: BEGIN OF ORDERITEMINX OCCURS 0.
INCLUDE STRUCTURE BAPISDITMX.
DATA: END OF ORDERITEMINX.
DATA: BEGIN OF RETURN OCCURS 0.
INCLUDE STRUCTURE BAPIRET2.
DATA: END OF RETURN.
DATA: BEGIN OF BAPIRETURN OCCURS 0.
INCLUDE STRUCTURE BAPIRET2.
DATA: END OF BAPIRETURN.
PARAMETERS:
P_PATH(45) TYPE C DEFAULT '/usr/users/ftpsapom/' LOWER CASE,
P_FNAME(32) TYPE C DEFAULT '/sweetjo.txt' LOWER CASE.
START-OF-SELECTION.
CONCATENATE PATH AND FILE NAME INTO ONE VARIABLE
CONCATENATE P_PATH P_FNAME INTO V_FILEIN.
OPEN DATASET
IF V_FILEIN IS INITIAL.
MESSAGE E002 WITH 'FILE' V_FILEIN 'DOES NOT CONTAIN ANY DATA!'.
ELSE.
OPEN DATASET V_FILEIN
FOR INPUT
IN TEXT MODE.
IF SY-SUBRC = 0.
READ DATASET
DO.
READ DATASET V_FILEIN INTO I_ORDERS.
IF SY-SUBRC = 0.
APPEND I_ORDERS.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET
CLOSE DATASET V_FILEIN.
IF SY-SUBRC <> 0.
MESSAGE E002 WITH 'ERROR - CLOSING' V_FILEIN.
ENDIF.
ELSE.
MESSAGE E002 WITH 'ERROR - COULD NOT OPEN' V_FILEIN.
ENDIF.
ENDIF.
SORT AND REMOVE DUPLICATES FROM I_ORDERS
SORT I_ORDERS BY VBELN POSNR.
DELETE ADJACENT DUPLICATES FROM I_ORDERS.
POPULATE I_OUTPUT
LOOP AT I_ORDERS.
SHIFT I_ORDERS-POSNR LEFT DELETING LEADING SPACE.
CONCATENATE '0' I_ORDERS-POSNR INTO I_ORDERS-POSNR.
SELECT SINGLE BRGEW VOLUM
FROM VBAP
INTO (VBAP-BRGEW, VBAP-VOLUM)
WHERE VBELN = I_ORDERS-VBELN
AND POSNR = I_ORDERS-POSNR.
IF SY-SUBRC = 0.
IF VBAP-BRGEW = 0.
I_OUTPUT-CKWGT = 'X'.
ENDIF.
IF VBAP-VOLUM = 0.
I_OUTPUT-CKVOL = 'X'.
ENDIF.
I_OUTPUT-VBELN = I_ORDERS-VBELN.
I_OUTPUT-POSNR = I_ORDERS-POSNR.
I_OUTPUT-GEWEI = 'ST'.
I_OUTPUT-BRGEW = I_ORDERS-BRGEW.
I_OUTPUT-VOLUM = I_ORDERS-VOLUM.
APPEND I_OUTPUT.
CLEAR: I_OUTPUT.
ENDIF.
V_RECIN = V_RECIN + 1.
ENDLOOP.
POPULATE BAPI DATA AND RUN BAPI
CLEAR: ORDERHEADERINX, ORDERITEMIN, ORDERITEMINX,
RETURN, BAPIRETURN.
REFRESH: ORDERITEMIN, ORDERITEMINX, RETURN, BAPIRETURN.
ORDERHEADERINX-UPDATEFLAG = 'U'.
LOOP AT I_OUTPUT WHERE CKWGT = 'X' OR CKVOL = 'X'.
V_RECVBAP = V_RECVBAP + 1.
IF I_OUTPUT-VBELN <> V_VBELN AND SY-TABIX <> 1.
V_RECORDER = V_RECORDER + 1.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = V_VBELN
ORDER_HEADER_INX = ORDERHEADERINX
TABLES
RETURN = RETURN
ORDER_ITEM_IN = ORDERITEMIN
ORDER_ITEM_INX = ORDERITEMINX.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = BAPIRETURN.
WRITE OUT RETURN
LOOP AT RETURN.
WRITE: / RETURN.
ENDLOOP.
WRITE: / BAPIRETURN.
SKIP.
CLEAR: ORDERITEMIN, ORDERITEMINX,
RETURN, BAPIRETURN.
REFRESH: ORDERITEMIN, ORDERITEMINX, RETURN, BAPIRETURN.
ENDIF.
ORDERITEMIN-ITM_NUMBER = I_OUTPUT-POSNR.
ORDERITEMIN-UNTOF_WGHT = I_OUTPUT-GEWEI.
IF NOT I_OUTPUT-CKWGT IS INITIAL.
ORDERITEMIN-GROSS_WGHT = I_OUTPUT-BRGEW.
ORDERITEMINX-GROSS_WGHT = 'X'.
ENDIF.
IF NOT I_OUTPUT-CKVOL IS INITIAL.
ORDERITEMIN-VOLUME = I_OUTPUT-VOLUM.
ORDERITEMINX-VOLUME = 'X'.
ENDIF.
APPEND ORDERITEMIN.
ORDERITEMINX-ITM_NUMBER = I_OUTPUT-POSNR.
ORDERITEMINX-UNTOF_WGHT = 'X'.
ORDERITEMINX-UPDATEFLAG = 'U'.
APPEND ORDERITEMINX.
V_VBELN = I_OUTPUT-VBELN.
ENDLOOP.
RUN BAPI ON LAST ORDER
IF NOT ORDERITEMIN IS INITIAL.
V_RECORDER = V_RECORDER + 1.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = V_VBELN
ORDER_HEADER_INX = ORDERHEADERINX
TABLES
RETURN = RETURN
ORDER_ITEM_IN = ORDERITEMIN
ORDER_ITEM_INX = ORDERITEMINX.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = BAPIRETURN.
WRITE OUT RETURN
LOOP AT RETURN.
WRITE: / RETURN.
ENDLOOP.
WRITE: / BAPIRETURN.
SKIP.
ENDIF.
WRITE OUT RECORD COUNT FROM FILE
WRITE: / 'RECORD COUNT FROM FILE ', V_RECIN.
SKIP.
WRITE OUT RECORD COUNT FROM FILE
WRITE: / 'RECORD COUNT OF LINES TO CHANGE ', V_RECVBAP.
SKIP.
WRITE OUT RECORD COUNT FROM FILE
WRITE: / 'RECORD COUNT OF ORDERS TO CHANGE ', V_RECORDER.
SKIP.
TOP OF PAGE
TOP-OF-PAGE.
WRITE:/1(5) TEXT-H01, 6(8) SY-DATUM MM/DD/YY,
100(8) TEXT-H02, 126(8) SY-PAGNO.
WRITE:/1(5) TEXT-H03, 6(8) SY-UZEIT USING EDIT MASK '__:__:__',
20(77) TEXT-H04,
100(8) TEXT-H05, 108(25) SY-REPID.
WRITE:/1(6) TEXT-H06, 8(12) SY-UNAME,
20(4) TEXT-H07, 25(32) SY-HOST,
100(13) TEXT-H08, 121(8) SY-SYSID,
129 '/', 130(3) SY-MANDT.
ULINE.
SKIP
<b>Reward points</b>
Regards -
Dear
Expert,
My client wants to close all the open sales order, I tried with VKM3,VA02, VA05, MASS, given the reason for rejection,but after that when I am going to VA02 and giving a line item and then going for VL01n, its working.
Now I want to stop that thing.
That is don't want to process any thing even though a line item is added after VKM3,VA02, VA05, MASS, alternatively any solution to close open sales order whether it is fully delivered or partially delivered.
I searched in forum but I didn't got any proper solution.
Waiting for earliest reply
Thanks in advance
Regards
Deepankar SenguptaSo you want to prevent the possibility to add new items when some items have been rejected?
Then you should use an user exit:
Adding new Line Items to Sales Order from a closed period
If you want to prevent rejected items from appearing in subsequent documents, use requirement 301:
SALES ORDER REASON FOR REJECTION NOT WORKING . -
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
9325064414Hi,
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
Maybe you are looking for
-
Error while creating sales order with network/project
Dear All, we are getting the following message while creating a sales order with assembly processing with network/project system . The standard Network used as a reference contains assignments to a standard WBS. However you have maintained WBS assign
-
Printing with a LED Colour Laser Printer - No CMYK support?
Greetings. I bought an Oki A3+ printer (C9655) three weeks ago to output a large amount of images for the editing and proofing of a book project. The results I am getting are pretty bad as Lightroom cannot see their profiles so they cannot be loaded
-
ICloud won't setup properly on my iPhone 6, iPad Mini or iMac
Hi everyone, I've had an iMac and iPad for a while now and wasn't keen on setting up iCloud but this changed with my first iPhone which I got a few days ago. I opted to activate iCloud during the setup process thinking it'd be just as easy to do as e
-
Dummy Profit Center not picking correctly in PO
Dear All, PO was cretaed withAccount Assignment Y (Y-account assignment for Balance Sheet accounting) and without material. But in the PO dummy profit center 999 is getting picked up .Ideally profit center RT3 should be picked.This gets updated in EK
-
I'm running the very lastest version of speedgrade on mac osx 10.9.5 The mask works properly until I twist it then as you can see the effect of the mask is 180 degrees off.