Maximum Document Value
Dear SapGurus,
i have a scenario. my clinet wants to create a delivery upto the particular value only. the particula value depends upon the customer group.
say if customer orders 100000 worth of products . if we define the particular value as 50000. when i am creating the delivery , system should allow upto the value 50000 products into the delivery.
so here we can create two deliveries.
how to acheive this functionality.
Thank in advance
Regards,
Ram
Hi
The control will be more effective if it is confiured at Sales order level instead of delivery. Because the people who creates the delivery are different and they are not sure of reducing the quantities at different line items. The system should not allow to create an order above certain value. The credit management is a different functionality and is no way related to this maximum order value.
You have to create Ztable and maintain the list of the customer groups and the corresponding maximum order values. You have to use a userexit and the system takes the customer group from the Customer Master Record of that SP and then gets the Max Order Value from the Ztable and compares it with the order value of the document under creation. You can configure either an error message or a warning message based on the clients requirement, if the value exceeds.
The userexits which may be useful are.,
Program - SAPMV45A...include - MV45AFZZ
Userexit_save_document
Userexit_save_document_prepare.
You can also check if anyother approrpiate exits are available.
Thanks,
Ravi
Similar Messages
-
Differenct between Net Value and Document Value on a sales order
Can someone please explain what is the difference between the Net Value that we see on the sales order (VA03) and the 'Document Value' thats checked against in Dynamic credit checking?
ThanksIn transaction FD32, you maintain credit limit for customer and assign risk category for the customer.
In transaction OVA8, there are two main types of checks - Static or Dynamic.
System checks the following for arriving at customers credit status-
Static credit check - It compares the credit limit assigned to the customer to the total value of open sales orders, plus the total value of open deliveries not yet invoiced, plus the total value of open billing documents not yet passed on to accounting, plus the total value of billing documents that have been passed on to accounting, but which have not yet been paid by the customer.
Dynamic credit check - It compares customeru2019s credit limit to the total of open sales orders not yet delivered, plus the total value of open deliveries not yet invoiced, plus the total value of open billing documents not yet passed onto accounting, plus the total value of billing documents that have been passed onto accounting, but which have not yet been paid by the customer. In addition you can use Horizon functionality also.
You can perform additional checks in addition to dynamic or static credit check. One of them is document value check.
If you check this box then a additional credit check is done when the maximum document value assigned is exceeded. This is useful if business requires that all sales orders above a certain limit are to be blocked.
In your case, the document value is $0.00.
So system is not doing any additional credit check.
It would just do Dynamic or Static credit check with relevant assignment maintained in transaction FD32 for the said customer. -
Sales order getting maximum doc value exceeds but not blocking.
Hi Experts,
My client using automatic credit control .
And for one risk category we have activated max doc value and sen the value is -0.01. It means even though for the free of charge sales orders also should be block.
I have created a sales order with free of charge item with value of 0.00 after getting warning message and it is blocking.
And i have one scenario for service items , where am creating sales order with value of 0.00 for the service items and while saving the sale order getting warning message and it is not blocking.
Why this sales order is not showing in vkm1 event though if i get warning message while saving the sales order time.
Please any body help out form this issue
Regards
VenkatHi
That i already setup and maximum doc.value i have set there -0.01.
The same functionality is working for diffrent sales document type,but it is not working for this service sales document processing.
Is there any scenario like if there is no delivery further process it should not block
Please revert immediately if any body knows
Regards
Venkat
Edited by: venkat s on Jun 8, 2009 1:28 PM -
Invoice report by document value
Hi Gurus,
I need your assistance in producing a report. Basically we need to get a report showing how much invoices we have entered on a Sales Org with a value below £250.00 for the last 3 months (Oct, Nov & Dec). Can you please advise how I should proceed?
Many Thanks
KumarDear Kumar
Go to VF05 or VF05N and execute the report. There you can see a tab Net Value. Sort it in ascending order so that the report will be sorted based on the least value of the billing document to maximum value of billing document.
If you want to specifically have an option to key in maximum or minimum document value, then you need to go to SE16, key in table VBRP and consider the field NETWR for net value of the billing document.
thanks
G. Lakshmipathi -
Setting up maximum order value for vendor
Hi experts,
I want to set a maximum price/value limit for vendor for giving order
For example - i want to set a maximum limit of 1lakh for vendor A
when ever I create PO for vendor A , system should chck the maximum value for A vendor.
And if there a many open order for vendor A, then the total of open PO's shoukld be
counted and when ever i am creating new PO & if ec=xceeds the value 1 lakh then
system should not allow to create the new PO
Vendor A PO1 value - 50000 status - open
vendor A PO2 value - 30000 status - open
vendor A PO3 value - 40000 status - creating now
At the time of creating PO3, PO value exceeds the vendor limit, so it should not allow to create/save the PO3
please let me know how to handle thisHi,
This can get really complex unless you have clear vision of what you want to control.
For example, the maximum limit that you want to set, is it for the current month / current year etc?
If it is the sum of all Open PO value, would you consider the PO's that were created the sme month and delivered but payment is pending though Invopice is posted?
So answers to such questions provide the clarity for teh controls that need to set in place.
For this you can create a Z table and maintain the limits that you like to set based on the criterion like monthly or yearly.
Then Use a user-exit in the PO to calculate the net value of all open PO's for the vendor and then validate with the Z table and throw an error if it exceeds.
However the performance may get effected with such calculations on PO save.
in that case you may have to consider storing the cumulated PO value on every PO creation and PO Completion.
Consider all this and take a decision.
hope this helps. -
How to find out Maximum date value in RPD.
Hi All,
I have a date column i want to get the maximum date value from that column. I am trying this expression MAX( "sales"."book"."date") in new logical column i am getting the RPD inconsistence error. Database is SQL server 2005. Is there any problem in my syntax?
Thanks in advance.Is that column date part of time dimension?
What does error say? syntax should be ok - maybe something to do with your DB settings in physical layer.
can you try to create the same column in Answers? (select fx button of the column and then add MAX ( ) around the column.
Edited by: wildmight on Jun 12, 2009 10:09 AM -
To split the payment document value as per the line items of the P O
To split the payment document value as per the line items of the purchase order in the period of payment, so that the payment amounts are measured against the Capex order assigned as account assignment in the purchase order.(Account assignment tab for the individual line item in the PO.
Example:
Inputs:
Purchase Order 3100012345, line item 10 value 6000 line item 20 value 4000
VAT @10% , account assignment for PO line item 10(Internal Order no 10001) & line item 20 Internal Order 10002) G/ R no 5105105101 for Rs10,000.
The I/R doc 501501501 appears as follows: (MIRO)
Line 10: Value Rs 6,000
20: Value Rs 4,000
VAT Rs 600
Rs 400
Total Rs11, 000
Withholding Tax Rs 1,100
The accounting entry for MIRO happens as follows: doc 2102102101
GR/IR Dr Rs 10,000
VAT Dr Rs 1.000
Vendor Cr Rs9, 900
TDS due Cr Rs1, 100
The business expects the payment report as follows:payment doc 2001200101
PO Line item Internal Order MIRO Invoice Payment Payment period Amount
A/c doc number doc number
3400012345 10 10001 5605605601 2102102101 2001200101 001/2009 5940
3400012345 20 10002 5605605601 2102102101 2001200101 001/2009 3960
Currently we are able to show the amounts as Rs 6000 for line item 10 & Rs 4000 for line item 20.
The problems faced.
1. The VAT line items are auto created, hence the reference of purchase order number and line item are not available. So the VAT portion which is part of payment liability does not get reflected against the PO.(not able to show the VAT portion , when we try to show the payment amount per PO line item.)
2. The withholding tax is also a problem; WHT is not calculated and assigned per line item. It is calculated on the total amount of basic and VAT. Because of these reasons, the payment could not be shown properly according to the line item of the purchase order.
3. When part payment is made, against invoices, there is no provision to assign a payment amount against a particular line item. Further, when final payment is made in different period, the clearing document will get generated. That adds to the complexity of differentiating full payments and part payments final clearing.
4. When residual payment is made, a new line item is created. Here assignment of Purchase order line item against payment for residual items become a problem.
5. Many a times advance payments are made. Later the invoice is created and balance payment is made. In those situations, the clearing document creates one more line item and makes payment for the balance item. This adds complexity in bringing balance payment alone and to split as per the purchase order line item. The clearing document number system is multi dimensional. It creates two line items for the same item (one at the time of advance and another the time of clearing.)
6. When full payment is made, the payment document number and clearing document numbers are same. In cases of subsequent or partial or residual payment, the document numbers are different. Because of this, the part payment amounts are shown in the period, where the final payment and clearing are made.
Please suggest a way to split the payment amount in the exact posting period with all the considerations given above.
Regards
Sundararajan
Edited by: Sundarajan Venkatachari on Sep 30, 2009 11:04 AMHi,
See Note 301077 - User exits for the interface to accounting, although I think that there isn't this kind of option. Note 429117 - Collective note advice note SD-FI interface will be useful too.
I think that SAP Note 1085921 - Document split perhaps will help you
Regards
Eduardo -
Need a maximum date value using group by
Create table student (dept number(10), dep_name varchar2(10),join_date date,years_attended number(10),end_date date);
insert into student values (1,'I',to_date('3/7/1917','MM/DD/YYYY'),4,to_date('8/26/1987','MM/DD/YYYY'));
insert into student values (1,'I',to_date('1/1/1900','MM/DD/YYYY'),4,to_date('8/26/1932','MM/DD/YYYY'));
insert into student values (1,'D',to_date('1/1/1920','MM/DD/YYYY'),5,to_date('8/26/1994','MM/DD/YYYY'));
insert into student values (1,'C',to_date('1/1/1920','MM/DD/YYYY'),6,to_date('8/26/1945','MM/DD/YYYY'));
insert into student values (2,'I',to_date('7/1/1900','MM/DD/YYYY'),3,to_date('8/26/1932','MM/DD/YYYY'));
insert into student values (2,'I',to_date('8/16/1916','MM/DD/YYYY'),9,to_date('8/26/1923','MM/DD/YYYY'));
insert into student values (2,'D',to_date('8/16/1916','MM/DD/YYYY'),10,to_date('8/26/1987','MM/DD/YYYY'));
insert into student values (3,'I',to_date('3/7/1917','MM/DD/YYYY'),4,to_date('8/26/1987','MM/DD/YYYY'));
insert into student values (3,'D',to_date('7/28/1920','MM/DD/YYYY'),6,to_date('8/26/1945','MM/DD/YYYY'));
insert into student values (3,'I',to_date('7/28/1920','MM/DD/YYYY'),8,to_date('8/26/1965','MM/DD/YYYY'));
insert into student values (4,'I',to_date('12/31/1924','MM/DD/YYYY'),2,to_date('8/26/1998','MM/DD/YYYY'));
insert into student values (4,'I',to_date('6/10/1929','MM/DD/YYYY'),1,to_date('8/26/1943','MM/DD/YYYY'));
insert into student values (4,'C',to_date('1/17/1927','MM/DD/YYYY'),4,to_date('8/26/1955','MM/DD/YYYY'));
insert into student values (4,'C',to_date('6/10/1929','MM/DD/YYYY'),30,to_date('8/26/1967','MM/DD/YYYY'));
insert into student values (5,'D',to_date('2/10/1931','MM/DD/YYYY'),2,to_date('8/26/1943','MM/DD/YYYY'));
insert into student values (5,'I',to_date('2/10/1931','MM/DD/YYYY'),24,to_date('8/26/1962','MM/DD/YYYY'));
commit;I need a maximum date value join_date for each department. If max(join_date) has two records for each dept then max(end_date) should be considered. I have used a below select query
select * from student where join_date in (select
max(join_date) from student group by dept);which gives me the following result
1 D 1/1/1920 5 8/26/1994
1 C 1/1/1920 6 8/26/1945
2 I 8/16/1916 9 8/26/1923
2 D 8/16/1916 10 8/26/1987
3 D 7/28/1920 6 8/26/1945
3 I 7/28/1920 8 8/26/1965
4 I 6/10/1929 1 8/26/1943
4 C 6/10/1929 30 8/26/1967
5 D 2/10/1931 2 8/26/1943
5 I 2/10/1931 24 8/26/1962But I am looking for the result which gives me only one maximum value for each dept column. First it should look for maximum value of join_date, if two records has same join_date then max(end_date) should be considered. The result should be sumthing like this
1 D 1/1/1920 5 8/26/1994
2 D 8/16/1916 10 8/26/1987
3 I 7/28/1920 8 8/26/1965
4 C 6/10/1929 30 8/26/1967
5 I 2/10/1931 24 8/26/1962Can you please tell me how to rewrite the select query to get the above results.
Edited by: user11872870 on Aug 2, 2011 5:29 PM
Edited by: user11872870 on Aug 2, 2011 5:36 PMHi,
That's called a Top-N Query , and here's one way to do it:
WITH got_r_num AS
SELECT student.*
, ROW_NUMBER () OVER ( PARTITION BY dept
ORDER BY join_date DESC
, end_date DESC
) AS r_num
FROM student
SELECT dept, dep_name, join_date, years_attended, end_date
FROM got_r_num
WHERE r_num = 1
ORDER BY dept
;Another way is similar to what you originally posted:
SELECT *
FROM student
WHERE (dept, join_date, end_date)
IN (
SELECT dept
, MAX (join_date)
, MAX (end_date) KEEP (DENSE_RANK LAST ORDER BY join_date)
FROM student
GROUP BY dept
);I suspect the first way (using ROW_NUMBER) will be faster.
Also, the ROW_NUMBER approach is guaranteed to return only 1 row per dept. Using the GROUP BY approach,if there is a tie on join_date and end_date, then it will return all contenders in that dept. Using ROW_NUMBER, it's easy to add as many tie-breaking expressions as you want, and, if there is still a tie, it will arbirarily pick one of the rows involved in the tie as #1.
Thanks for posting the CREATE TABLE and INSERT statments! That's very helpful.
Edited by: Frank Kulash on Aug 2, 2011 9:00 PM
Added GROUP BY alternative -
Relevance of Maximum Plan Value for Cost Center wise SKF plan Data
Hi,
Will you please tell me the relevence of data entered as Maximum Plan Value for the Cost center wise SKF data plan i.e. data entered through T Code KP46 using planning layout 1-301 with planning profile SAPALL.
Regards,
Partha B.Hi,
Try 0CO_OM_CCA_1. -
In Safari, what does "maximum cookie value" mean?
My granddaughter on her MBP is getting an error from Safari about "maximum cookie value" - can someone interpret that for me? Happens when she opens 7-8 wondows from a specific stie, and then she can't open any more.
Thanks!Safari > Preferences > Privacy > Remove All Website Data
-
Maximum document lenght with Epson Stylus 9600 Pro?
Hi!
I'm trying to print a long picture on Epson Stylus 9600 Pro printer from Adobe Photoshop CS 2. The maximum allowed length is 2.5 meters. The printer is capable to print longer documents, since I am using a roll paper.
Is this a limitation of Photoshop CS 2, Epson driver or the operating system? Is there a way to get around of this limitation?Hi tomis,
Generally, the application is the most likely reason for the length limit. Epson's site simply states the length possibility as "Maximum printable length Up to 100' (limited by roll length and software application)". You notice that it also puts the onus on the application for length limit. If you call Epson, the driver itself usually has a limit. Don't know what it is for the 9600, but the 4000 we use has one that is less than the length of a roll.
The only way I know around it is a two step solution. First, you need an application to print from that will allow just about any length document you want to create. Second you need output software that will allow the same.
The first is your application. InDesign CS supports a maximum document length of 216 inches, or 5.4864 meters. Still well short of the length of a roll. I don't know if CS2 offers a larger document size. There's an old trick to get around that, though. We had to use it often in a shop I once worked at to get around Quark's 40 inch limit. What you do is create your raster image at a higher resolution to account for an increase in output size. If your normal file resolution is 300 dpi, than you would create it at 600 dpi to get an effective output resolution of 300 dpi when printed at 200%. 900 dpi for 300% and so on. So for triple size, you can cheat the maximum InDesign length to 16.46 meters (54 feet) by printing it out of the application at 300%.
For the second part, you need a RIP. We use ColorBurst on our 4000. RIPs don't care about the paper size other than exceeding the maximum printing width of the printer. They will let you print a file 10 miles in length if it were possible to get paper that long. RIPs just don't have the length limit that the typical supplied print drivers do.
Hope this helps. -
How to investigate maximum 'permissible' value for jvmmx
Hi all.
I am deploying jdk 1.5 with tomcat 5.5.26, and am facing problems during server start up. However, when I set the jvmmx value below a certain threshold, the server starts up properly.
Is there a way that may tell the maximum permissible value that may be used. I use Windows.
Looking forward to a reply.
Ajay GargSeriously, I'm not sure what answer you expect.
The limit will be a function of many variables: the physical RAM in the machine, what drivers are loaded and are grabbing physical and/or virtual address space, the size of the JVM executable and associated DLLs (which will be influenced by whether you're using any libraries that make use of JNI), the processor architecture (Intel/AMD, 32bit/64bit), the version of Windows, whether you've started it with the /3GB flag, if the BIOS has shadowed any hardware (e.g. graphics), if your graphics card uses any main memory or exclusively it's own memory, the vendor and version of your JVM, etc., etc.
In short, there are far too many variables for there to be a definite answer to this, so you'll just have to try different values until you hit the limit. -
Are there limits to the maximum number value for the albums, items, days and disk space? A friend reached over 108,000 songs (items) and while the number of albums, items (songs) and days keep increasing the disk space stopped at 984.46 GB and while she has deleted duplicates and imported about another 1,500 songs, the disk space value stayed the same. Is there some way to see if anything is wrong or there is a fix?
She's compiling a library of the American pop, rock, etc. songs from the 1960's, 70's and 80's using the Rolling Stone Record Guide. It's 345.2 days worth and only cost her about $20K over 5+ years with friends in the used CD business who either loan her or buy/sell her CD's. She also has a music production studio (no recording) and drives a VW Jetta. So now an answer to the question would be helpful. I couldn't find any event logs for iTunes or thought of any logical reasons why the number stops at that value. She estimates it should be 1.15 TBytes.
-
Hello everyone,
In my case, value in the material document slightly differs from the billing document value. So we have decided to move the material document value to the billing document ( in VPRS).
Now a new routine will be added in the price pocedure, which will have logic saying, "pull the value from material document".
Does anyone know what logic to be written so as to pull the value from the material document.
Thanks,Hi,
If you had selected the Single Account assignment instead of Distr on qty Basis, you will not have face this problem. Actually its not the problem. Since you had selected the option of 'Distr. on Qty basis', system has treated it as multiple account assignment.
and its valuation will only be carried out Invoice Verification level.
Later on check the Material document also.
Pls Check as mentioned below:
If flag 'GR non-valuated' is set in the purchase order, the valuation is only executed through the invoice verification. This flag must be set if the purchase order has multiple account assignment.
A valuated goods receipt for a purchase order with account assignment generates a posting line for the consumption account 'Account-assigned purchase order' (KBS) and for the GR/IR clearing account WRX.
hope it address your issue.
Regards,
S Anand -
Find maximum document number for each document
HI All,
How to find date wise maximum document number for each document (purchase,sales,Finance) .
Thks
ShaileshHi Shailesh,
I am assuming you have data already selected.
Once you select the data, sort internal table as follows.
sort itab by doc_type descending date.
delete adjacent duplicates from itab comapring doc_type.
This will give each latest document no.
Hope ti will help you.
Regards,
Anil
Maybe you are looking for
-
Installation developer suit 10g on windows 7 64-bit
Dear all, I have successfully installed oracle 10g and developer suit 10g in my lappy which runs on windows 7 64-bit, I am able to launch form builder, create a new form and compile it. But when I runs the form the the internet explorer 8 crashes. Pl
-
Ipod not bieng recognised by computer or i-tunes
I need some help please! my ipod was fine just a couple of days ago but just recently my ipod would not connect to itunes or my computer. Now all my ipod does is charge off the computer but nothing else. i have followed all the steps in re-installing
-
Compressing a large file into a small file.
So i have a pretty large file that i am trying to make very small with good quality. the file before exporting it is about 1gig. I need to make it 100mbs. Right now i've tried compressing it with the h.264 compressing type, and i am having to go as l
-
Hi I'm trying to make an Aperture Book using the Stock Book Black Theme. I'm using the page layouts supplied, but when I Print to a PDF to preview it, all the white captions are cut off by a white margin around the edge of the document and therefore
-
Bug in Premiere Pro CC Multicam?
So, I'm getting a bad issue in one of my multicam sections. I'm running Creative Cloud applications on Mac OS X Mountain Lion. I have 5 or 6 seperate multicam sequences and the issue occurs on only one of them, which makes me think this must be a gli