Cannot delete sales order when invoice is canceled
Hi guys,
I have this problem. Proces is defined with two document: sales order and invoice. I have canceled invoice
with VF11 and set u201CReason for rejectu201D in sales order but status overview is not set as u201CCompletedu201D.
I cannot delete sales order, what is the problem any idea??
Thanks,
Nihad
This is overview of the status:
Standard Order 27057
Sold-to 400000 proba
Status overview
5 Current hdr status Everything rejected
Total processing Open
Rejection status Everything rejected
5 Ord-related bill.st. Not invoiced
Invoice 90012921 14.10.2008
Cancel. Invoice (S1) 90012986 14.10.2008
Completeness Complete header data
Billg doc. complete Complete header data
Current item status
ItemNo Material
5 000010 Otkup tendera 1,000 PC Fully rejected
Total processing Open
Reason for rejection 10 Unreasonable request
Rejection status Fully rejected
5 Ord-related bill.st. Not invoiced 0,000 PC Billed 1,000 PC open
Invoice 90012921 10 14.10.2008 1,000 PC
Cancel. Invoice (S1) 90012986 10 14.10.2008 1,000 PC
Completeness Complete item data
Billg doc. complete Complete item data
Similar Messages
-
User should not delete Sales orders in CRM before May 2014.
Hi,
We have requirement in CRM i.e. user cannot delete Sales orders before may 2014 in SAP CRM.
Recently we have implemented Credit Check management in ECC (Cash n Carry Process especially for some customers)
Normally we do create orders in CRM it should be replicated to ECC, based on FD32 credit value in ECC, CRM order should give credit check massage.
go through the below notes n help us where to change BADI in CRM, plz.
We like to add a scenario where prior to April’14 period, user can not cancel/delete any order in CRM, so that the order cancellation data will not flow to SAP and below problem can be resolved.
While checking the credit Exposure of the INDL Customers, we found in some cases, user has deleted few old orders in CRM which creates a open sales order value as Negative in SAP System. Due to this for a customer, if there is ZERO credit limit, ZERO outstanding, ZERO liability, Credit Exposure is become Negative as open order value is there. In CRM order is being raised and credit block is not appearing if the order amount is below the Credit exposure.
Request you pls maintain the open Sales order value as ZERO for the INC customers (as per attachment list) for those who have a NEGATIVE open sales order value.
For the open Sales order Value which are POSITIVE, keep these as same as these are customer’s actual & current open orders.
NOTE: If user delete before may 2014 sales orders, all the deleted order values will be added to FD32 (Credit exposure -Negative),then user can able to raise sales orders for that value also.(It cannot be happened)
Regards,
JKHello JK,
I guess you can play around with the standard. You need to create a separate PFCG Role which only contains sales order related authorization object. Basically removing sales order related authorization object from the main primary PFCG role. And then controlling the secondary PFCG Role which only have sales order object. Controlling sales order PFCG role with validity period. Below is the screen shot of the PFCG role where you can maintain the validity period of the PFCG role for the specific user assigned to it.
I hope this solution was helpful for you!
Regards,
Neha Gupta -
How to view the cancelled/deleted sales order?
Hi SAP Gurus
I there any T.code/Table to view the cancelled or deleted sales order.
I am not able to view the order even in VA03.
Regards
GiridharDear Sushmitha,
T. Code: SE16
Key-in -
Table: CDHDR - Change Document Header.
Table: CDPOS - Change Document Items.
and "Enter". On to next page, Key-in
Field: Change doc. object (OBJECTCLAS) as VERKBELEG
Field: Transaction Code as VA02
Field: Appl.obj.change, as D - Delete, and execute (F8).
Then you will get object values (sales orders) and document numbers. Pass these two values along with objectclas: VERKBELEG) to table CDPOS to get more details about these deleted orders.
Also, Go to -
T. Code: SE38,
and execute Report: RVSCD100.
Enter Sales Document Number and Execute. This will provide information, who deleted the order.
Best Regards,
Amit -
Delivery Deleted, Showing error when deleting sales order. R3, Oracle9i
Hi experts,
One of my users deleted delevery document and when he is trying to delete sales order it is giving error.
Also it is showing delivery archived. How to retrieve the document.
Thnx in advanceHi Dhanush,
I suppose there is no need to run any consistency jobs for this issue(as per my understanding).
As specified above by Senthil just try first running //CCR for the LOC_PRODUCT with category as Sales Order (also tick the VBBE table option) and Purchase Order. I think this will solve your purpose. Also please make sure that the IMs for the LOC_PRODUCT is active.
Do let us know your findings on the same.
Thanks and Regards,
PP. -
View Deleted Sales Order by material
I need to know in that sales order has been a material because when we run MRP, system creates purchase requisition for requeriments of sales order, ok?
But, after if user deletes sales order, the purchase requisition created is incorrect but purchase department can be that it purchase requisition is studied yet. Customer would like know what sales order deleted causes this purchase requisition in this case.Hi Daniel,
If the sales order has been deleted then you should delete the corresponding PR as well. Inorder to achieve this you need to write the logic in the Sales order user exit, to cancel the corresponding PR.
We cancel the PR if the release strategy is implemented in the PR. We have implemented this logic and it worked fine for us.
Thanks,
Mahesh. -
View Deleted sales orders by material
Hi gurus,
how I can see deleted sales order by a specific material. My requeriment is that know all deleted sales order or items deleted in existing orders filtering by material.
It's possible?
Table CDPOS doesn't contain field material...
Thank you!!!
I will reward points all answers!!Hi,
In this case, when you call MD04 for this material, the system displays an exception for the pruchase requisition.
20 : cancel process.
Then, you must to be deleted this purchase requisition.
But, i have a proposition to follow sales orders which have deletes (quick approach).
You can create en infostructure with LIS with keys : sales order nb, item, material, customer + key figures : quantity (or other).
With an update rule appropriate.
When you create sales order, this LIS table (infostructure) is update with different informations.
If you delete item or sales order, system updates this table and displays "0" in quantity or price ...
This is the simple test to know if sales order was deleted.
But, you can used another information during the update in LIS user exit (MCS10001) with this condition XVBAP-UPDKZ = UPDKZ_DELETE (see in MV45AFZZ, doc_prepare).
Why not ??
That's all folks !!!
Regards,
Lionel -
Importing Sales orders and Invoices thru DTW
Hi every one,
I am facing a unique problem when using DTW to import sales orders and invoices through DTW.
I am using the two templates- Documents and Document Lines. But the imported Invoice or the sales order(In both cases) the dicount field in the row is taking a negetive discount value. Let me elaborate....
1. I am taking a BP which has been alloted a Particular pricelistcode in the BP Master.( say it be Purchase price).
2. Now In the Doc_lines Template I have put the value in the price column- (eg. Rs. 500).
3. Now the itemcode used in the template is already having a masters and the prices are also defined in SAP B1. Say the Purchase price defined for the item is Rs.400
4.When I am importing the order/nvoice then the discount field in the row automatically takes a value of -25%, the unit price has the value Rs.400 and the Total Field shows Rs.500.
( this Implies that the price I have suggested to Import i.e. Rs500 is some how not taken by the system. The system takes the price defined for the BP and then adjusts it with the price suggested by the user during import) So a negetive discount is taken.
On the other hand if the same procedure is followed for an item where the prices are not updated in the master data then there is no such problem. the unit price field reflects the price which is given in yhe template.
please suggest a way to get out of this problem.Hi Debraj,
Try the following..
In Admin > System init > Document Settings > General Tab ..Calculate the Row total using Unit price ....... leave this unchecked
Also, at the Document_lines template fill the discount column with 0
Suda -
Report on deleted sales orders ( va02)
hi,
i got one requirement to write a program to display the list of deleted sales orders (through VA02 Tcode).
to my knowledge when a sales order is deleted through VA02 the order will be deleted from the database itself and will be deleted from all the SAP tables.
if that is correct, is there any possibility that we can create a Ztable and update the data before deletion or any other solution for the above requirement?
thanks in advance,
Rajani yelurihi rajani,
u will get deleted data from using tables CDHDR,CDPOS,CDRED and function module ' CHANGEDOCUMENT_READ'.
i am sending u some sample code, i hope it will helps u
DATA: it_editpos LIKE cdred OCCURS 0 WITH HEADER LINE,
"Change documents, display structure
it_editpos1 LIKE cdred OCCURS 0 WITH HEADER LINE,
"Change documents, display structure
x_editpos1 LIKE cdred, "Change documents, display structure
x_editpos LIKE it_editpos,
"Change documents,display structure
*-----Calling FM to populate the structure 'EDITPOS'
CLEAR it_editpos.
CALL FUNCTION 'CHANGEDOCUMENT_READ'
EXPORTING
objectclass = ' '
TABLES
editpos = it_editpos
EXCEPTIONS
no_position_found = 1
wrong_access_to_archive = 2
time_zone_conversion_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CLEAR: x_editpos,
it_editpos1.
LOOP AT it_editpos
INTO x_editpos
WHERE tcode = 'ME21N' OR "Here u have 2 pass 'VA02'
tcode = 'ME22N' OR
tcode = 'ME23N'.
APPEND x_editpos TO it_editpos1.
CLEAR x_editpos.
ENDLOOP.
now it_edipos1 has all CHANGENR numbers, so now u have to fetch data from F_NEW and F_OLD Fields
i hope this will helps u
Regards,
prasad -
Reg:Deleting sales orders in bulk
Hi Gurus,
Can anybody through some light on the below mentioned queries.I faced this in one of my interviews .
1.How to delete sales orders in bulk ?
2.How to print invoices in bulk ?
Thanking you in advance.
With Regards,
Sash......Dear sash
1) To delete sale orders in bulk (subject to no subsequent documents), either you can use LSMW or BDC
2) To print invoices in bulk, two options are there. One is foreground and another one is background
- To schedule foreground, run T.Code VF31
- To schedule background, run T.Code VF06 where you can see a tab [Job started on] If you fix a date and time here, that time, invoice will be printed out in mass
thanks
G. Lakshmipathi -
How to find out the deleted sales order
hi,
sap gurus,
my core user has deleted one sales order
its showing as sales order is ARCHIVED in the status when we go for VA02
in SAP in which table the deleted sales order will be stored.
so that i can
regards,
balaji.tPlz SEARCH in SCN before posting.
You can get those details from CDHDR, CDPOS tables.
Give OBJECTCLAS = VERKBELEG and CHNGIND = 'D' in CDPOS table.
You will the List of all Deleted Sales Orders. -
Reg:User-Exit In Sales Order to Invoice
Hi All,
I have An requirement that to create automatic sales order and invoice in one go, i have used BAPI_SALESORDER_CREATEFROMDAT2 to create sales order and bdc invoice to create invoice its worked fine.
My problem is now i got an requirement as after creating sales order it should not create invoice as such because they will manually check whether the sales order is correct then only i should proceed to invoice also they need the option to create,change,delete sales order and same too invoice how can i acheive this scenario through user exits?
Since am new to user exit can any one tell me how to use user exits and what user exits need like this scenario?Hi Suresh,
For sales order following user exits can be used. These are available in include MV45AFZZ.
USEREXIT_DELETE_DOCUMENT : At the time of deletion of sales order
USEREXIT_SAVE_DOCUMENT : At the time of updations or creation of sales order.
Following are the user exits available in smod.
SDVFX007 User exit: Billing plan during transfer to Accounting
SDVFX008 User exit: Processing of transfer structures SD-FI
SDVFX009 Billing doc. processing KIDONO (payment reference numbe
SDVFX010 User exit item table for the customer lines
SDVFX011 Userexit for the komkcv- and kompcv-structures
V05I0001 User exits for billing index
V05N0001 User Exits for Printing Billing Docs. using POR Procedu
V60A0001 Customer functions in the billing document
V60P0001 Data provision for additional fields for display in lis
V61A0001 Customer enhancement: Pricing
Please check this exits which will help you for your requirement.
Thanks,
Naveen Kumar. -
Creation of u201CHeader Textu201D in sales Order and Invoice
Dear friends,
Can any one guide me the complete configuration settings that are required for creation of u201CHeader Textu201D in sales Order and Invoice. Please help me to overcome this issue.
Regards,
Bhanu.Hello Bhanu...
Hope you are aware of the configurations you need to maintain for the Text determination.Anyway, herewith are the steps that may help you to accomplish your requirement.
Text Determination procedure for sales document header:
Text can be determined at sales document header level or it can be imported from customer master. The process is...
Define Text types:Path: Imgsales and distributionbasic functionstext controldefine text types
Select sales document header. Click on text types go to new entries and define text types. For Eg:Z1
Define Access sequence:
Select sales document header
Click on change icon
Click on access sequence control button under dialog structure
Go to new entries and define access sequence number with description.Ex: 55
Save it and exit
Define text determination procedure:
Go to new entries
Define text determination procedure.Ex: ZX save it and exit
Assign text id's to text determination procedure:
Select your text determination procedure(ZX)
click on text id's in text procedure control button under dialog structure
go to new entries and maintain entries. Text id:assign text id (Z1) that we defined in the previous step
Specify sequence No-10
Check Reference: this indicator specify that the text is reference or copies from preceding object
Text in obligatory: text will be displayed during copying. the value of this field specifies whether text is obligatory or not and if it is obligatory the how it is to be displayed
Apart from this... you also have to maintain the text in the Customer master as mentioned in the previous mail..
For this you have to maintain the customer text.Do the following steps.
1. Go to Customer master, Choose from the Menu Extras --> Text and mention the text
2. Then in a sales order automatically wehn you are entering that sold to party..the header message will be appearing..
In a nutshell i would request you to check weather you have maintained the Sales-Customer text KNVV and also that you have maintained all the required customizing settings for the text procedure, access sequence etc were completed....?
Also make sure that the text type is also inclueded in the text determination procedure of the sales document header...
Note: If all the settings of text determination exists and still if the text is not appearing then In sales document Header Text procedure, select sales header procedure, then select Texts in procedure. Check for the Header note, No. box is checked. This check mark ensures text is to be displayed when it is copied..
Its should be working if all the requried setting are made....
Reward if this helps..
Thanks,
Safeer Rahman -
Text copy from customer master to Sales order and invoice
Dear friends,
when i maintain the text in the customer master ther needs to copy to sales order and from sales order to invoice.
Can you please guide me how to do this config
Thanks
Raju.Dear Raju,
First you need to do the Text determination for all areas(i.e Customer Sales and distribution,Sales order header,delivery header and billing header) through VOTXN transaction.
-->Create the Customer text ID under Object KNVV
Maintain the text for Text ID in the customer master >sales area data>Extras-> Text
To copy the customer text to the sales order you need to keep KNVV table as Text object in the sales order text access sequence for the text ID.
If you want to copy the sales order header text to the invoice header first you need to copy the sales order header text to the delivery header from delivery you can copy to invoice.
When you want to copy the Text from Sales order to delivery the Access sequence will place a role
If you want to copy the sales order text to the delivery document The Text Object should be VBBK in the delivery Header Text determination access sequence for that Text ID
Again you can copy the text from delivery to Billing document through checking the Delivery Text field in the billing document detail screen (Top most bottom of the screen).
Go to VOFA transaction select your billing document type then go in to the details here you can find the Delivery Text field you just check that check box.
Now system will copy the sales order header text to the delivery header then it will copy to the invoice header.
I hope this will help you,
Regards,
Murali. -
Information about the deleted sales order line item in idoc.
Hi Experts,
I am new to IDOC.We have the following idoc requirement,
When a line item is deleted from the sales order(VA02) ,
the outbound idoc getting triggered for the sales order has the information about the rest all line items other than the deleted line item.We now want the information about the deleted line item in the Idoc .
Please help me in proceeding further.Hi,
I am facing the same scenario of capturing the deleted sales order line item in idoc.
I am using ORDRSP message type , where in E1EDP01- ACTION contains value "000" .
And the Deletion line item is not been captured, is there any configuration setting required to
capture the deleted line item in Idoc.
Based on the posting in this thread i understand that there is an indicator which has to be set .
Please let me know what is that indicator and how to set it?
Thanks
Sathish -
Hi,
I have a typical issue with Sales Order deletion in R/3
In R/3,the Sales Orders have been physically deleted due to which the sales orders are not available in the tables.
In R/3 reports those Sales Orders are not reflected. But in BI, since they have already been loaded, they are showing in the results since the SOs at that time were loaded to BI. Once documents are deleted in R/3 those changes are not reflected in to BI. This discrepency is not acceptable by the customer. Plz help in how to resolve the issue.
Many Thanks
UdayHi Uday,
It seems the same issue has been discussed sometimes back ,but no solutions were given.
Deleted sales order items and delta direct
As I said earlier,extractor will not capture those deleted items. Even enhancement may also not work for this case. Anyway,please check with OSS whether any solutions available for this problem .I convinced my users to go for the cancellation (not mark for deletion) of the items.
Below link will give you the info about why it is not a good practise to delete the item .
deleted sales order
All the best.
Thanks.
Maybe you are looking for
-
I believe I am experiencing the problems discussed in this article: http://www.macnn.com/articles/14/11/04/several.support.threads.discussing.issue. related.to.gpu.switching/ However I am not sure. I am not that tech savvy... Anyway my computer is b
-
Is GoogleTalk Audio Chat Between Mac & PC Possible?
Using latest version of iChat AV, I tried GoogleTalk with a PC-user (using our respective gmail accounts) and was able only to do typed chat - both the audio and video buttons remain greyed out. Tried with Plantronics headset, Telex microphone, and C
-
I'm having a problem setfing up migration on my Managed Servers on Welbogic 9.2 mp2. First, My problem. When I try to manually migrate ManagedServer1 from MachineA to MachineB: Nodemanger shutdowns ManagedServer1 Nodemanager removes the interface wit
-
Could I Manually calculate tax in MIRO
Dear 1, We know that we can use auto-calculate tax function in Tcode MIRO. 2, But there is a little difference of tax between actual invoice and auto-calculated by SAP. Meanwhile the tax field is disable if we use auto-calculate tax function. So, we
-
To debug the Tcode F110 for script output
Hi, I want to debug the Tcode F110 for the onr particular vendor whose payment has be runned. the script that is attached is the ZScript. I want to debug the attached script through F110 to view the payment output in production. Kindly suggest how to