Validity of the Qty Based Condition
Hi All
In one of my scenarios, I am using a Tax Code containing Qty Based BED Condition.
Like V3 Tax Code BED + VAT, BED / Qty Condition is JMOQ
I am maintaining FV11 - JMOQ
Value for Plant / Material Group Combination is 500 / TON with Validity 28.02.2009 to 27.02.2010
No I am trying to set the different Value for the different Validity like 550 / TON with Validity 28.02.2010 to 27.02.2011
Then system gives me Error as the condition is being processed in the current session.
Tax Procedure in use - TAXINN
Kindly guide me.
Sorry
I already did this activity.
But couldnt find out the solution.
Anyways
Thanks for your reply
Resolved with some other trials.
Similar Messages
-
Back calcualtion of the qty based on the value
Dear Friends,
I have a requirement where the customer gives a lumpsum amount and asks for the material qty to be given based on the lumpsum amount that includes the excise and the tax as well.
How can I achieve this in the pricing procedure?
Thanks
IsaacClosing this unresolved
-
Reading data from table and print the value based condition
hi
my table like this
slno | value1 | value2 |
1 0 5
2 5 10
3 10 15
assume n= 8 ( where n is user define)
i want output like
number 8 between value 5 and 10
plz helpHi,
Try:
Select 'Number '+ U_Value3 + ' Between '+ U_Value1'and 'U_Value2
From [dbo\].[@UDT T0\]
Where T0.U_Value3=[%0\] and T0.U_Value3 BETWEEN U_Value1 AND U_Value2
Thanks,
Gordon -
VPRS-based condition redetermined in return order (referencing billing doc)
I have an issue with copy-control from invoice to return order.
I want the invoice pricing conditions to be copied unchanged to the return order.
This is similar to when creation the Sales order>Delivery>Billing Document.
I need to make a return order for the same amount as in the original sales order (naturally, we want to credit the same amount).
This works fine for all conditions, except for a VPRS-based condition, which is redetermined upon return order creation.
The VPRS-based condition should fetch the moving average price for the sales order only, not for the return order.
I have maintained copy control for billing document to sales order with pricing type 'G'
G: Copy pricing elements unchanged and redetermine taxes. The system
This works fine for Sales order --> Delivery --> Invoice, but not for Invoice --> Return order.
I would prefer not to use a formula, but I guess one alternative solution is to fetch the condition value from the original sales order if I cannot do this with customizing.
Let me know what you think about the forumla (VOFM) and if it is possible to achieve copy-control with unmodified condition values for the VPRS-condition.
Thanks!Ok, thanks for your input!
I'm sharing my solution:
I implemented a new condition value formula for my pricing procedure:
VOFM>Formulas>Condition value
FORM FRM_KONDI_WERT_XXX.
DATA: lv_kbetr TYPE kbetr,
ls_vbfa TYPE vbfa,
lv_knumv TYPE knumv.
Get moving average price for return order from SO
The ZPRS pricing condition modifies price in return order
The value of ZPRS should be the same in return order and SO
IF xkomv-kschl EQ 'ZPRS'.
Get sales order and position
SELECT SINGLE vbelv posnv
INTO corresponding fields of ls_vbfa
FROM vbfa
WHERE vbeln EQ komp-vgbel "invoice number
AND posnn EQ komp-vgpos "invoice item
AND vbtyp_n EQ 'M' "invoice
AND vbtyp_v EQ 'C'. "order
IF sy-subrc EQ 0.
Get sales order conditions key
SELECT SINGLE knumv
INTO lv_knumv
FROM vbak
WHERE vbeln EQ ls_vbfa-vbelv.
IF sy-subrc EQ 0.
Get moving average price from sales order conditions
SELECT SINGLE kbetr
INTO lv_kbetr
FROM konv
WHERE knumv EQ lv_knumv
AND kposn EQ ls_vbfa-posnv
AND kschl EQ 'ZPRS'.
IF sy-subrc EQ 0.
Recalculate condition values
xkomv-kbetr = lv_kbetr.
xkomv-kwert = ( lv_kbetr * komp-mgame / 1000 ).
xkwert = xkomv-kwert.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. -
How to cummulate the quantity based on the date condition?
hi,
In my query,i need to cummulate the open quantity based on the two date condition.
If my Schedule line date > system date, i need to cummulate the open quantity.
But in my query level i am getting 0 or 1 based on the above condition.
i am struggling to cummulate the open qty based on the above condition.
can any body throws an idea to resolve my issue.
Regards,
ravi.Thanks for suggestion,Almost i narrow down my issue to get the proper result.
But i have one doubt.
Is it possible to user Formula variable (Processing by replacement path-Reference char as Scheduline date) in my Calculated Key Fig calculation.?? But here i am created Scheduline date as Characher infoobject.
Actually i am created Scheduline date as Character InfoObject,If i am using the following condition like
(Schedule line date > system date) its throwing "X" value.
For the above issue,if i am changing the Scheduline date as Key figure InfoObject means i will get the proper output for the condition(Schedule line date > system date) either 0 or 1.
Is it correct????
Regards,
Ravi. -
How to handle vendor discounts based on the qty / value procured.
Hello
How to handle vendor discounts based on the qty / value procured.
a. Scenario: you have entered into a contract with vendor that you will buy goods worth Rs 10000/- and if you buy goods worth more than 100000 the vendor says he will give a discount of Rs 5000/- @ the end of the year.
i) How to handle this sceneriou2019s with SAu2019s
ii) What does STD SAP offer.
Regards
Sapman manHi,
For the discucount condition type, you have to maintain scales.
Take Condition type - Discount Value ( RB00)
Discount Value ( RB00) - Means Fixed discount. For this condition type, you have to maintain Scale basis as Value scale 'B' in the condition type customization.
Transcation : M/06
Select your condition type RB00 and click on the details icon.
In the Scales block, you have to maintain and save.Calculation type = Fixed amount
Scale basis = Value scale 'B'
For this condition type, you have to maintain scales in the inforecord.
Transcation : ME12
Select this condition type, click on the Scales icon. There you have to maintain like
From : 10,0000 Rate: 5000.
It means, if the document value is reached 10,0000 then discount is 5000rs. If the value islessthen the 10,0000 then no discount.
Regards
KRK -
Doubt in the value return by the function based on given condition
Hi,
Below function should return the value based on the value of in_row_number_high variable.
I have used CASE but it does't return proper value.
How could I give that condition?
Please help.
FUNCTION gen_total_lane_count_pct
in_lane_id edr_rpt_by_ranges_output.lane_id%TYPE,
in_direction_id edr_rpt_by_ranges_output.direction_id%TYPE,
in_interval_start_date_time edr_rpt_by_ranges_output.interval_start_date_time%TYPE,
in_interval_end_date_time edr_rpt_by_ranges_output.interval_end_date_time%TYPE,
in_row_number edr_rpt_by_ranges_output.range_low%TYPE,
in_row_number_high edr_rpt_by_ranges_output.range_high%TYPE,
in_lane_min edr_lane_by_class_report_data.v_lane%TYPE,
in_lane_max edr_lane_by_class_report_data.v_lane%TYPE
RETURN NUMBER
IS
my_total NUMBER(18);
my_count_pct NUMBER(18);
my_total_pct NUMBER(18);
my_each_count_result NUMBER(18);
my_count_result NUMBER(18);
my_total_count NUMBER(18);
lane_start edr_rpt_tmp_report_lanes.site_lane_id%TYPE;
lane_end edr_rpt_tmp_report_lanes.site_lane_id%TYPE;
row_start NUMBER(12);
row_end NUMBER(12);
BEGIN
my_count_pct := 0 ;
SELECT MIN(site_lane_id)
INTO lane_start
FROM edr_rpt_tmp_report_lanes
WHERE edr_rpt_tmp_report_lanes.output_lane_id = in_lane_id
AND edr_rpt_tmp_report_lanes.output_direction_id = in_direction_id;
SELECT MAX(site_lane_id)
INTO lane_end
FROM edr_rpt_tmp_report_lanes
WHERE edr_rpt_tmp_report_lanes.output_lane_id = in_lane_id
AND edr_rpt_tmp_report_lanes.output_direction_id = in_direction_id;
SELECT MIN(range_low)
INTO row_start
FROM edr_rpt_by_ranges_output;
SELECT MAX(range_low)
INTO row_end
FROM edr_rpt_by_ranges_output;
my_each_count_result := edr_rpt_lane_by_class_package.gen_total_lane_count (
in_lane_id,
in_direction_id,
in_interval_start_date_time,
in_interval_end_date_time,
in_row_number,
in_row_number_high,
in_lane_min,
in_lane_max
my_count_result := edr_rpt_lane_by_class_package.gen_total_lane_count (
in_lane_id,
in_direction_id,
in_interval_start_date_time,
in_interval_end_date_time,
row_start,
row_end,
in_lane_min,
in_lane_max
my_total_count := edr_rpt_lane_by_class_package.gen_total_lane_count (
in_lane_id,
in_direction_id,
in_interval_start_date_time,
in_interval_end_date_time,
in_row_number,
in_row_number_high,
lane_start,
lane_end
IF (my_each_count_result > 0) THEN
my_total := edr_rpt_lane_by_class_package.gen_total_lane_count (
in_lane_id,
in_direction_id,
in_interval_start_date_time,
in_interval_end_date_time,
row_start,
row_end,
lane_start,
lane_end
CASE
WHEN in_row_number_high = row_end THEN
my_count_pct := ROUND((my_each_count_result / my_count_result ) * 100 );
WHEN in_row_number_high < row_end THEN
my_count_pct := ROUND((my_each_count_result / my_total ) * 100 ) ;
ELSE
RAISE_APPLICATION_ERROR(-20101, 'The row number specified is not recognized.');
END CASE;
END IF;
return my_count_pct;
END gen_total_lane_count_pct; Edited by: Indhu Ram on Jan 5, 2010 11:43 AMHi,
I have to find out the % value for each column value( For rx if there is only 2 columns).To calculate the % , each column value should get divided by the total of that column value.
To calculate the % for the total row , each column total should get divide by the sum of column ( sum of column 1 + sum of column 2)values.
ROUND((my_each_count_result / my_count_result ) * 100 ) ---- This calculaton gives me the % for the total row.
ROUND((my_each_count_result / my_total ) * 100 ) ------- This calculation gives the % for the data row.
The condition that I have tried is, if it reaches end of data row (to achieve that condition I have given this condition in_row_number_high < row_end )
Now my result returns only values based on this condition -- in_row_number_high < row_end .
It does't look for the first condition.
CASE
WHEN in_row_number_high = row_end THEN
my_count_pct := ROUND((my_each_count_result / my_count_result ) * 100 );
WHEN in_row_number_high < row_end THEN
my_count_pct := ROUND((my_each_count_result / my_total ) * 100 ) ;
ELSE
RAISE_APPLICATION_ERROR(-20101, 'The row number specified is not recognized.');
END CASE;
Hope , you have some good understanding now. Please help me how could I do this? -
How can hide the buttons based on condition
Dear all
I have to hide the button based on condition
When I open the third page directly I want to hide that button
When I open the third page via first and second page I need to visible that button
I pass spell parameter from first to second and second to third
In third page I get the value using pagecontext
I write the code in third page co
If I go directly third page it is null
If I go to third page via first the value is Y
If(“Y”.equals(pmode))
OASubmitButtonBean btn =( OASubmitButtonBean )webBean.findChildRecursive(“<id>”);
If(!btn=null)
btn.setrendered(true);
else
btn.setrendered(false);
but the button is not hiding
Regards
SreekanthHi Srikanth,
I have modified ur method:
OASubmitButtonBean btn =( OASubmitButtonBean )webBean.findChildRecursive(“<id>”);
If(btn !=null)
If(“Y”.equals(pmode))
btn.setrendered(true);
else
btn.setrendered(false);
Thanks,
'Kumar
Edited by: Kumar Kovela on Aug 3, 2009 5:53 AM -
Adding few fields to the ODS based on a condition
Need suggestions in adding few fields to the ODS based on a condition.
The following is the requirement.
Do a calday and 'Sales Org' based selection:
0CALDAY=20041101-99991231; All Sales Orgs except AM01
0CALDAY=20030701-20070930; All Sales Orgs except AM01Hi Dolly,
You can do this by writing a simple end routine in your transformation rules.It is just an conditional statement.
In that statement write
If <RESULT_FIELDS>CALDAY EQ 20041101-99991231 and If <RESULT_FIELDS>Sales Org NE AM01
<write the statements which populate the fields>
endif.
In the same way you can write the code.
Hope this helps
Regards
Karthik -
Create the deliveries based on the Qty in Sales Order
Hi,
I have a requirement where in i need to created the Deliveries equal to the number of quantities in the sales order.
Example:If i have a sales order with quantity 4 then i should create 4 deliveries separately.
How can i achieve this?
Any exits pls advise.
Thanks .
Muraghendra DMuraghendra,
One gentleman by name Yash had a similar query on Oct 5, 2006. I had given the following reply:
If you want to do it without lot of programming, then VLSP is the way to go. Here is how you can do it using VLSP.
Once the Delivery is created, it needs to be packed. You can setup the a pkg material (say a Pallet) with allowable weight in the material master to automatically create as many handling units as the qty in the Delivery. Then use VLSP to split based on the handling units.
Here is one more tip, if you want to do some programming. Use the Delivery user-exit to change the delivery qty always to 1. Run RVV50R10A multiple times (assuming you will not have qty more than 4 / 5 ).
If the qty will be more than 5, then consider triggering an WF from the Delivery user exit (after checking for remaining qty) to create Delivery for the same SO.
Hope this helps.
Regards,
Anand -
"Filter the LOV based on the selected conditions" RADIO BUTTON doesn' work
Hi All, I'm trying to create a cascading parameters mechanism, but I found certain difficulties.
I need to have 2 LOV connect: the master LOV retrieve a list of User's groups, and the detail LOV has to retrieve only the customer's categories that come from the user's groups selected.
So, in order to retrieve the values I defined on the Administrator:
1) one custom folder for the master LOV (list of the User's groups) and another custom folder for the details LOV (list of the customer's categories).
2) The 2 LOV as item classes
On Discoverer Plus, following the manual ("About filtering lists of parameter values based on selected conditions ("cascading parameters"), I tried to create thw first parameter based on the master LOV, but I DON'T have the radio button "Filter the list of values based on the selected conditions" enabled !!!...I CAN'T USE IT !
If this radio button is not enabled, I can't link the master parameter with the detail parameter.....
Anybody can help to discoverer what I missed during the creation of cascading parameters ?
Thanks in advance for your help
AlexHi Manav, thanks for your reply !
I resolved the problem, linked the two custom folders with a join !
The radio button didn't work just only the parameter where condition has to be deselected and then re-selected !!
Alex -
CofCs are printed automatically with the packlist based on output condition
Hi All,
How to print Certificate of compliance automatically together with the packlist based on an output condition.
My exact requirement is i need to print certificate of compliance after packing list..Pls suggest..
Rgds,
Pavan.This is pretty complicated. You'll have to use scripting for this and I'll tell you how I'd approach this with JavaScript.
First of all you need to decide at what point you want to populate this field with the drop down selections. I think you have two options.
Option 1 - Automatically calculate this field each time a user makes a drop-down selection. It's possible that a user will enter data and then change a drop down value so you'll have to account for this.
Option 2 - Create an update button that users click to calculate this field. There is still a risk that users will change the value in the drop down after clicking update, so you would want to use scripting to lock those fields (e.g. make them protected) when the update button is clicked. You could then change the caption of this same button or have a second button that when clicked would unlock those drop down fields.
The other thing you need to do is figure out how to calculate this field. It seems to me you would probably build a string together that mixes text with the drop-down values. So your JavaScript would look something like this:
calculatedField.rawValue = "The accident occurred on " + table.row1.date.rawValue + ". It was witnessed by " + table.row1.witness1.rawValue +
" and " + table.row1.witness2.rawValue + ".";
When you're in the LC Designer JavaScript editor, hold control for the relative path to those fields and control + shift for the absolute path and then click on the fields whose values you want to access.
I hope this points you in the right direction! -
Conditional Validation on Textfield(s) based on Select/List - help needed.
Hey Gang,
I have a simple page where a select/list menu with values "1" through "5" determines how many following textfields require validation. There is an "onchange" event which calls a function to update the validation. Below is my code:
[ body tag *spry js/css scripts are called in head]
<form id="form1" name="form1" method="post" action="">
<p>
<select name="menu" id="menu" onchange="menuFunction()">
<option value="0" selected="selected">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</p>
<p>
<span id="sprytextfield1"><input type="text" name="text1" id="text1" /></span><br />
<span id="sprytextfield2"><input type="text" name="text2" id="text2" /></span><br />
<span id="sprytextfield3"><input type="text" name="text3" id="text3" /></span><br />
<span id="sprytextfield4"><input type="text" name="text4" id="text4" /></span><br />
<span id="sprytextfield5"><input type="text" name="text5" id="text5" /></span>
</p>
<p><input type="submit" name="submit" id="submit" value="Submit" /></p>
</form>
<script type="text/javascript">
<!--
function menuFunction() {
var menuNum = document.getElementById('menu').value;
for(i=1; i<=5; i++) {
if(i<=menuNum) {
eval("var sprytextfield" +i+ "= new Spry.Widget.ValidationTextField(\"sprytextfield" +i+ "\")" );
} else {
eval("var sprytextfield" +i+ "= new Spry.Widget.ValidationTextField(\"sprytextfield" +i+ "\", \"none\", {isRequired:false})" );
//-->
</script>
[ / body tag etc... ]
The function seems to work when it requires the validation for the textfields, but not when removing the validation. I've tried doing eval("sprytextfield" +i+ ".destroy()"); as well without success.
I've searched through forums and could not find an answer to this (sorry if I missed it) ... so hopefully somebody can point me in the right direction. (*I found the post w/ the link http://www.spry-it.com/examples/spry-widget-validation-generation-and-destroy/ -- however that page doesn't seem to work *Chrome)
Thanks for any help! =)
~MikeHave a look here http://forums.adobe.com/message/2651124#2651124
If that doesn't help please come back here.
Ben -
Rebate Issue: Qty Based Cond Type
Hi All,
I need to know only functional way (cant use update in pricing routine due to issues in business approvals) to tackle following Rebate requirement.
Background of issue:
User has created credit memo because the logistic discount was not correctly invoiced.
However in this case the Rebate Accrual got reduced
Reason:
System must have thought that total amount of cases was returned physically and thatu2019s why rebate accruals are reduced).
This is not correct because the Materials are not returned. The materials are still with the customer. Hence the rebate accruals should not be reduced in this case. The credit note is only written because of price differences and not because of returns.
Example: to understand the issue better:
Suppose we have Invoice with 100 CV and an invoice value of 100 u20AC.
Rebate 1.) Shows an amount of 100 u20AC * 4% = 4 u20AC accruals
Rebate 2.) Shows an amount of 100 CV * 0,20 u20AC = 20 u20AC
Now we came to know that the 100 u20AC net invoice was wrong because of a wrong on-invoice discount. Hence the invoice should not be 100 u20AC, but 80 u20AC. However the 100 CV still remain (NO CHANGE IN QTY).
The credit note should affect the rebates in the following way:
Rebate 1.) Should show after the credit note: 80 u20AC * 4% = 3,20 e accruals
Rebate 2.) Remains 20 u20AC accruals (100 CV * 0,20 u20AC)
Requirement:
We want that whenever credit notes are issued which that just price related (e.g. wrong logistic discount) and which do not have a material movement, the Qty-related rebate conditions should not be affected in that invoice.
This requirement must have been used/tackled in all projects where rebate functionally is used.
If anybody has still some confusion in understanding the requirement please let me know so that I can discuss it over the phone.
With Regards,
Tushar GawandeHello,
actually the rebate basis can be updated for the quantity scale and/or value scale based on the document category assigned to the sales document type in customizing.
I mean that except if you configured differently, actually are used the standard program for rebate calculation and settlement. Using the standard, a key field is the document category of the document type in customizing (table TVAK field VBTYP).
For the below list of standard document category:
A Inquiry
B Quotation
C Order
D Item proposal
E Scheduling agreement
F Scheduling agreement with external service
G Contract
H Returns
I Order w/o charge
K Credit memo request
L Debit memo request
W Independent reqts plan
0 Master contract
For example, document type with document category C or H update both: quantity and value rebate basis; document type with document category K or L update only value rebate basis.
If I understand properly, in your case when the user adjust the price via credit note, once posted to accounting, the reflect in the R.A. was in both direction: update of both quantity and value.
Personal feeling is that the document type used to adjust the price was not correct and that this document type (as per customizing) is configured to reduce both: quantity and value.
Did you check the customizing of the document type used to adjust the wrong discount?
Which category did you find?
Regards, -
How to restrict the Qty & Val in MIRO for Customs
Hi Xperts
I have a reqmnt.
I have found in case of Import procurement process , we are not using GR based IV Indicator in the PO.Also we need to perform MIRO for Customs prior to GR.
1. Hence users need to manually enter the qty/val for all the duties during MIRO(Custom). I have also chkd that users can enter more than the PO-Qty & more then PO-Condition Value as well during that.
2. Also user can do MIRO(for Custom) multiple times as they wish, though MIRO(Custom) has already been completed for that item.
Ho to restrict the above in AP?Plz suggest.
Rgds
SoumickYou requirement can be achieved by enhancement in MIRO.
Check these exits related to MIRO
Enhancement/ Business Add-in Description
Enhancement
LMR1M001 User exits in Logistics Invoice Verification
LMR1M002 Account grouping for GR/IR account maintenance
LMR1M003 Number assignment in Logistics Invoice Verification
LMR1M004 Logistics Invoice Verification: item text for follow-on docs
LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
LMR1M006 Logistics Invoice Verification: Process XML Invoice
MRMH0001 Logistics Invoice Verification: ERS procedure
MRMH0002 Logistics Invoice Verification: EDI inbound
MRMH0003 Logistics Invoice Verification: Revaluation/RAP
MRMN0001 Message output and creation: Logistics Invoice Verification
Business Add-in
INVOICE_UPDATE Business Add-In: Logistics Invoice Verification
refer below link
Code To Find BAdi - ABAP Development - SCN Wiki
Maybe you are looking for
-
App for air printing for hp 4500 all in one
Is there an app for printing from ipad2 to a office jet 4500? I know that there is one for an e4500
-
I am on ML 10.8.4 for a while but am thinking of a back up and full reformat/reinstall I have just downloaded Mavericks to try this but haven't installed. Can I burn this file to a DVD so i have a hard copy? and am i right in thinking this is just 'o
-
Selecting only one row from a query
Hi, I am using database version 10.2.0.4.0 I have 2 tables: artist(artistid, artistname, titleid) trans(transid, datesold, salesprice, titleid, artistid) This is what i used and got the below results. SELECT max(worksold) AS mostworksold FROM ( SELEC
-
How can we speed up delta Process?
Hi All, As per control parameter settings we have max. no processes as 6 and 10 data packages for one Info doc and its the same for that particular infosource settings. but when we schedule the delta info package( R/3 - BW ODS) it is using only one p
-
Related to LUW(logical unit of work)
Hi Experts, Based on an inbound idoc i need to change some data in delivery. SD_DELIVERY_UPDATE_PICKING is used to update delivery(PGI details). And also i need to change some other data(which is not possible with the above function module), so