When I am making return order on cancelled invoice system should give error
Experts,
In this scenario I have cancelled the invoice 1234567 and when I am creating return order with reference to the cancelled invoice 1234567,system is accepting it
Is there any process where the system should give the error
Regards
Kiran
Hi,
you should go for enhancement,use the exit MV45AFZZ
Pass the XVBAK - VGBEL to VBUK - VBELN and check VBUK - VBTYP = N (Invoice cancellation) system throw an error.
you can specify the message Ex: Return order can not be processed in spite of cancelled invoice.
take ABAPer help.
Regards
Ram
Similar Messages
-
Sales Order : Unit Price U_MRP it should give Error Message
Hi All,
I am using SBO 2005 B PL 25.
When the user add SO, and select the items and update the field of Unit Price and press Tab it should match Unit Price with one another UDF U_MRP. If Unit Price is > then U_MRP then it should give me error message and cursor should go back to Unit Price.
Is it possible through using SBO_SP_TransactionNotification or any other way.
Best Regards,
Chintesh SoniHi Istvan,
I have selected the type of UDF is Units and Total -> Amount.
Below is the full SP_TransactionNotification procedure..
USE [TEST_DB_190808_MRP_Excise]
GO
/****** Object: StoredProcedure [dbo].[SBO_SP_TransactionNotification] Script Date: 08/21/2008 18:00:07 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER proc [dbo].[SBO_SP_TransactionNotification]
@object_type nvarchar(25), -- SBO Object Type
@transaction_type nchar(1), -- [A]dd, <u>pdate, [D]elete, [C]ancel, C[L]ose
@num_of_cols_in_key int,
@list_of_key_cols_tab_del nvarchar(255),
@list_of_cols_val_tab_del nvarchar(255)
AS
begin
-- Return values
declare @error int -- Result (0 for no error)
declare @error_message nvarchar (200) -- Error string to be displayed
--select @error = 0
--select @error_message = N'Ok'
-- ADD YOUR CODE HERE
IF @transaction_type = 'A' AND @object_type = '17'
BEGIN
If exists
(Select t.Price From RDR1 t
Where t.Price > t.U_mrp
and t.DocEntry=@list_of_cols_val_tab_del)
begin
SET @error = 1 --10
SET @error_message = N'Errorr text '
end
END
-- Select the return values
end
With Warm Regards,
Chintesh Soni -
Recalculation of quantity in free goods for return order wrf to invoice
Hello everyone,
I want to recalculate quantity of free goods category in a return order created with reference to an invoice, if the quantity in the High Level Item Category has changed.
For example, a customer bought 100 boxes of product "A " and received 10 of these for free. Then he wants to return 60 boxes. When I create a return order with reference to the invoice and change these quantity from 100 to 60, free goods item category still shows 10 boxes instead of 6.
Recalculation must be take place acording to the pricing date determination in order to apply free goods in a valid date.
Customized features reviewing:
1. There's not Item Category Proposal for Target Sales Doc type of the Return order, but item category of source bill type has one an is set to Pricing Type "D".
2. High Level Item category of free goods category is relevant for billing and is set to M "Delivery - related invoices-no zero qtys (in main bath items)"
3. Free goods category assigment has NORM as item Category Group, FREE ussage, High Level Item category is determinated for return order document type and Item category by default is the free goods category.
I will appreciate your support to solve this issue.
Best Regards,
Andrea FigueroaHello,
Thank you for your response.
My Discount Type of Free Goods determination is set to:
Calculation Rule: "2 - Unit reference"
Free Goods Category: "1 - Inclusive rebate (with item generation)"
Free Goods delivery control: "C - Delivery of main item is part. delivered, only with main item"
However, whatever the calculation rule is, if I change the quantity in the main item, subitem does not work.
I read about SAP Note 573598 that describes perfectly my problem, but is valid in 4.6 to 4.7 version and I have ERP version.
Thank for your help,
Andrea Figueroa -
Quantity updates in return order from referenced Invoice
Dear Gurus,
I have set the return sales order creation with the reference of a Invoice document. Therefore when i make the return order i enter the invoice number into the reference and then make the changes with quantity as per the requirement. suppose in invoice I have 5 quantity and in the return order I make it 2 so return of 2 will take place, then i will do PGR for quantity 2 with the reference of return order and then the credit for return upto this its working fine. But now if I want make the second return order with reference of same Invoice system will give me pop up saying that the return anf credit of quantity 2 has already done for so and so item. Then if I enter in the return sales order in the order quantity I should see 3 quantity only as the return and credit of 2 quantity already took place but here the quantity in sales order is not getting change and it is appearing 5.
I dont know where the mistake? I check the copy control also for ZTAN (invoice) to ZREN (Return) it is as follows.
Copying Reqt - 303
DataT - 153
DataT - 104
DataT - 004
Pricing type - D
Update Doc Flow - X
and remaining all fields are blank
Copy Control at header level ZIF2 to ZIRE
Copying Reqt - 021
DataT - 052
DataT - 103
DataT - 003
Copy Item Number - Checked
Complete reference - Unchecked
Please help me how this quantity update will happen automatically?
Regards,
SanjayHello Dear Sanjay;
I completely understand your requirement, but this is how the SAP system works. I had already this needs and actually the system doesn't have control like this. Is this a bug ? Maybe....
We were forced to development a Z program or new routine to treat this control.
The system send a simple message including quantities, but internally the function module allow to do a return orders, for instance, how many times as you want.....
I hope you can understand the limitation.
Regards
Ruy Castro -
Line item not copied in SDF /KN when creating based on Return order
Hi,
Anybody , can help me?
I try to replace a damaged good returen by the customer,by doing the follwing actions.
1 Creat return order based on orginal oder.
2. Try to create SDF/KN based on Return oder, but line item is not copied.
How can solve this?
Regards
rajeevHi,
Check the copying control betwee these orders in VTLA, and check the item category is maintained in the copying control.
Prase -
I have just make an order yesterday, and it tells me that I will receive my computer between Sep 21th and Sep 23th. However, I will not be the place where the shipping and billing address show. I want to change the shipping and billing address now, but I can't edit them because the status of my order is shipped. What should I do if I want to change the adderss?
Thank you!You need to Contact Apple...
http://www.apple.com/contact/
http://www.apple.com/support/country/ -
Hi,
I have following Query
WITH SET [Union name set test] AS {[Union].[Union Name].&[2],[Union].[Union Name].&[3],
[Union].[Union Name].&[4],[Union].[Union Name].&[5],[Union].[Union Name].&[6]}
SELECT {[Measures].[Emp Count]} ON 0,
{ORDER({[Union].[Union City].[Union City]*[Union name set test]},
[Union name set test].CURRENTMEMBER.MEMBERVALUE, BASC)} ON 1 FROM [Federations];
when i run this query from code as well as SSMS i get following error...
The CURRENT function cannot be invoked in this context because the 'Union name set test' set is not in the scope.
Please help me for this ....Hi Mihirhp,
Base on my research, there are some similar issues and the resault turn out that the Tabular model engine can’t associate .currentmember with a set. The workaround is to use .current in the MDX query. Please try the query below.
WITH SET [Union name set test] AS {[Union].[Union Name].&[2],[Union].[Union Name].&[3],
[Union].[Union Name].&[4],[Union].[Union Name].&[5],[Union].[Union Name].&[6]}
SELECT {[Measures].[Emp Count]} ON 0,
{ORDER({[Union].[Union City].[Union City]*[Union name set test]},
[Union name set test].CURRENT.MEMBERVALUE, BASC)} ON 1 FROM [Federations];
Hope this helps.
Regards,
Charlie Liao
TechNet Community Support -
Cancelling invoice(s1) should be post to old invoiced(f2) posting date
our user wants cancelltion document(S1) should be posted to the old date i.e when it is invoiced (f2)posting date that means both should be same date.
it should happen with out any manual changing of dates.
Can any one help me please ,ponts will be rewarded.
Edited by: r prasad on Apr 7, 2008 10:51 AMHi
This can be done with a single line of code added at copy control level. We have done earlier(long ago). I could not remember exactly the code, what we have written.
But you can try as follows:
tcode: VTFF(Copy control)
In existing routine, at the bottom, add a line for "fkdat = reference document fkdat".
Ask your abaper to write correct structure & field.
Also note that, corresponding FI period should open to post this document.
Regards
Uma -
Returns order against a Cancelled Invoice
Dear Friends,
System is allowing to create a returns order with reference to a cancelled invoice which I want to control now.I have seen some posts regarding this issue.
Based on those posts, I have checked the Copy Control settings and they are in line with what has been suggested.
The Other suggestion was to assign the completion rule to the Item category as B. I have assigned and tested. but still the system is allowing to create a Returns order wrt Cancelled invoice.
Any more suggestions or corrections required?
Regards,
AjitHi
RE and S2 are standard document types, check remove copy control between your document types which may cusmtomized versions of standard types.
regards
Sidi -
Import License Check for Return Orders
Hello,
We are currently testing compliance for return orders in sales.
We would like to check the import license for these orders.
For this we have defined a separate legal regulation and assigned the combination country of plant (= legal unit) and country of departure to it.
When we process the return order the GTS system can not retrieve the correct country of departure.
to check available import licenses.
Does this has something to do with the incorrect determination of the partner function for returns.
I suppose that we need a function for inbound movements : goods supplier, vendor ?
Thanks for your support
Regrds
FrankHi,
What Iam going to tell is not advisable but if you want you can do this.
1)Go to T.code:OVAH
2) Select the message :229
3) Select Application : V4
After selecting the above message and application----towards on the Right hand side "Change the Message category from Waring to Error".
After doing the above setting--when ever the user tries to give more quantity in Return order when referenced from Invoice---""System will give error message" and does not allow to give more Quantity when referenced from the Invoiced quantity.
Regards
SK -
System should check chepter id when i am creating the excise invoice.
dear sir.
when i am creating the excise invoice in J1IIN , system should check chapter ID is maintained are not for the material in J1ID.
if chapter id is not maintained in J1ID for the material, system should give error or warning message when i am creating the excise invoice in J1IIN.
Please help me out this issue.
regards
jrpIn fact, when you are creating billing document, system will give a warning message that chapter id is not maintained for that material and the duty values will be zero in billing document.
As I dont have access to SAP, not sure on the warning message number. Try for a material without maintaining the chapter id in J1ID, note down the warning message number and convert it into an error message if possible.
Alternatively, you can try with the user exit J_1I7_USEREXIT_EXCISE_BEF_SAVE to meet your requirement.
thanks
G. Lakshmipathi -
How to Restrict Return Sales Order with reference to a cancelled invoice
SAP Standard is allowing to create Return Sales Order with reference to a cancelled invoice which practically should not be allowed.
Has any body worked on this problem and what could be the possible solutions so that return sales orders can not be created against a cancelled invoice.
Kindly share your possible solutions.Hi Standard Process will not allow to create a Sales Order With Cancelled invoice,
Kindly go through at Copy Controls
T.CODE:VTAF
in that some body might have maintained between S1 invoice to RE Sales Document.
Remove the settings then u will be not able to create Sales Order w.r.t to Cancelled Document.
Rewards if Usefull
B.Shyam Sunder
SAP SD Consultant -
Returns sales document for cancelled invoice
Dear SAP Gurus,
User has created a normal invoice with certain finished goods. Due to some reasons he cancelled this invoice with T code VF11. And then he tried to create a returns order wrt original invoice and created returns sales document without any error.
OR --> LF --> F2 --> S1 (Cancel invoice)
F2 ---> RE ?
Is this the standard behavoiur of the system or...is there any problem in copy controls config from Invoice document to Sales document.
Request you to please suggest me how to process further..
Thanks & regards,
Praveen> My original billing document is already cancelled and when copying from F2 to RE, want an error message to be poped up saying billing document already cancelled, you cannot create a returns sales order.
My ques. is Why will you create return sales order wrt billing document (F2) when it is not cancelled ?
In other words, you will create return order when there is problem with material. So, for that you have to cancel the billing doc. which you already have done.
So, when you create return order, you want the material to be entered in return order. So, you can use either original sales order or billing doc. (F2) as reference so that you need not enter all the items again in return order. You can also configure return order so that it will not take any reference while creation.
In short, while creating return order you need to cancel the billing doc (F2) if it is there, so that all the accounting entries will be reversed and then have to create return order with ref to this billing doc. or original sales order.
Hope you get some idea. Correct me if i am wrong anywhere
regards,
Sagar -
Error while creating return order(Complaint) in IC web client
Hi SAP Experts,
I am getting following Error while creating return order(Complaint) in IC web client.
Error when processing your request
What has happened?
The URL http://sapcrd.comfort.com:8000/sap/bc/bsp/sap/crm_ic/default_delta.do was not called due to an error.
Note
The following error text was processed in the system CRD : Exception condition "NON_EXISTING_HANDLE" raised.
The error occurred on the application server sapcrd_CRD_00 and in the work process 2 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Function: PRC_PD_HEAD_ADD_COND of program SAPLPRC_PRICING_API
Function: CRM_PRIDOC_UPDATE_EC of program SAPLCRM_PRIDOC_COM_EC
Form: EXECUTE_CALLBACKS_PLANNED of program SAPLCRM_EVENT_OW
Function: CRM_EVENT_SET_EXETIME_OW of program SAPLCRM_EVENT_OW
Function: CRM_ORDER_COMPLETE_SINGLE_OW of program SAPLCRM_ORDER_OW
Function: CRM_ORDER_MAINTAIN_SINGLE_OW of program SAPLCRM_ORDER_OW
Function: CRM_ORDER_MAINTAIN_MULTI_OW of program SAPLCRM_ORDER_OW
Function: CRM_ORDER_MAINTAIN of program SAPLCRM_ORDER_API
Method: IF_EX_ORDER_SAVE~PREPARE of program ZCL_IM_PRICE_ADJUSTMENT=======CP
Method: IF_EX_ORDER_SAVE~PREPARE of program CL_EX_ORDER_SAVE==============CP
What can I do?
If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system CRD in transaction ST22.
If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server sapcrd_CRD_00 in transaction SM21.
If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 2 in transaction ST11 on the application server sapcrd_CRD_00 . In some situations, you may also need to analyze the trace files of other work processes.
If you do not yet have a user ID, contact your system administrator.
Error code: ICF-IE-http -c: 330 -u: VORUSX -l: E -s: CRD -i: sapcrd_CRD_00 -w: 2 -d: 20080324 -t: 021723 -v: RABAX_STATE -e: RAISE_EXCEPTION
HTTP 500 - Internal Server Error
Your SAP Internet Communication Framework Team
Maximum points will be awarded for useful information.
Thanks,
RonyHi,
I notice there is a Z class being called.
Method: IF_EX_ORDER_SAVE~PREPARE of program ZCL_IM_PRICE_ADJUSTMENT=======CP
You should check this customized class.
Cheers,
cady. -
Freed Goods not appearing in Returns Order
Hi Friends,
We are trying to configure the Free Goods scenario in our system. The free goods have been successfully configured for outbound sales orders. However, in case of returns, when we create a return order, the free good does not appear on the order.
How can we configure the returns orders for free goods.
Regards,
AbhishekHi,
Please also check whether you have done item category determinaiton for that Return order..
Retun order type + Item catergory group + Usage + Higher level item category + item category..
And also have a look into free goods record in VBN1 tcode..
Let us know how come your are creating return order without any reference. Please explain the senario..
regards
sankar
Edited by: sankar sankar on Jul 9, 2008 12:54 PM
Maybe you are looking for
-
How can i get a free trial? it's previously been downloaded, not for my use but now it wont let me have it and i need it for college. Help?
-
Condition records in va01 transaction
Hi friends, I have a requirment. in va01 transaction , at the line item level iam entering a material number and order quantity and when i press enter i get the corresponding values for that particular line item. now iam double clicking on that par
-
Ipod sync is greyed out after latest update and libary was wiped
i updated the latest update...2 weeks later opened itunes my libary was gone bar itunes purchases... now when ipod is connected if i go to file/ devices ipod isnt there eg bla blas ipod and the sync is greyed out .. now before i updated the latest up
-
I was using Firefox for a few years with great enjoyment. Recently I opened it and within a second or so, it enlarged to the point that the top and bottom of the screen expanded off the screen. No other windows in any other program are doing this. Th
-
Unable to open Nikon 750 NEF files in Photoshop Elements 13
I just got a Nikon D750 and I cannot open NEF files in Photoshop Elements 13 even when I download Camera Raw 9.0 and DNG Converter 9.0. What can I do?