Condition is not Satifiying

Hi All,
I have a form.Which containf in tabular format.Here i'm using calculation for selected record.
1) i will check 1st record and i will give 10% and i will click on calculate button and i will unheck that record.
2)again i will check 2nd record i will give 20% and i will click on calculate button and i will uncheck that record....like wise will do
here is the code i have written .pls help me in this
DECLARE     
     CURRENTRECORD NUMBER;     
BEGIN
DECLARE
               CURRENT_DISCOUNT NUMBER;
               CURRENT_REASON VARCHAR2(100);
BEGIN
CURRENT_DISCOUNT:=:XXSY_DISCOUNT_MANAGER_V.DISCOUNT_RATE;
               CURRENT_REASON:=:XXSY_DISCOUNT_MANAGER_V.DISCOUNT_REASON;     
               FIRST_RECORD;
               IF :XXSY_DISCOUNT_MANAGER_V.DISCOUNT = 'Y' THEN
--               CURRENTRECORD :=:SYSTEM.CURSOR_RECORD;
               WHILE TRUE LOOP
          :XXSY_DISCOUNT_MANAGER_V.DISCOUNT_RATE:= CURRENT_DISCOUNT;
          :XXSY_DISCOUNT_MANAGER_V.DISCOUNT_REASON:= CURRENT_REASON;
IF :System.Last_Record = 'TRUE' THEN                    
--                    :XXSY_DISCOUNT_MANAGER_V.DISCOUNT_RATE:=CURRENT_DISCOUNT;
--                    :XXSY_DISCOUNT_MANAGER_V.DISCOUNT_REASON:=CURRENT_REASON;
EXIT;
                    ELSE
                    NEXT_RECORD;
                    END IF;
               END LOOP;
               END IF;
     END;
END;
as itis bit urget.any ne pls help me soon
Regards
Prasad.

HI Galaxy,
That is also my thread.
my calculation of last record is also effecting the 1st record.
By tht shuld not happen.all the records wil have different discount.
by this code last record data is also updating the 1st reocrd.
i want to exit out off loop...my code is corret to wrong.pls hlp me in this
Regrads
Prasad.

Similar Messages

  • If condition statement not working in jsp scriptlet

    <%
    String hostName = java.net.InetAddress.getLocalHost().getCanonicalHostName();
    if(hostName.endsWith("dinesh.com"))
    System.out.println("it works");
    else {
    System.out.println("it doesn't work");
    %>
    I am getting output as it works & it doesn't work. It seems the If condition is not working. Pls help with this issue.
    Thanks

    Dinesh_Nala wrote:
    Even the condition in if is returning true, the x value i am get as "/user2/"How did you knew that it returns true? Or did you just expect that? Do you trust yourself more than Java? Too bad.
    Just debug it:
    System.out.println("Actual hostname value: [" + hostName + "]");
    System.out.println("Does it end with dinesh.com? " + hostName.endsWith("dinesh.com"));

  • Pricing: New condition type not getting listed in options in product master

    Hi,
    I have created a new pricing procedure and also created a new condition type for it. I am trying to create a condition record in the product master for this  condition type but the condition is not there in the list of conditions. How can I inlcude it in the condition list?
    Even the new condition type I have created by copying 0PR0 is not getting listed in the options, whereas 0PR0 is getting listed.
    Regards,
    Meenakshi
    Edited by: Meenakshi Sawhney on Sep 9, 2010 8:27 AM
    Edited by: Meenakshi Sawhney on Sep 9, 2010 8:29 AM

    Hi Meenakshi,
    you need to enhance the condition maintenance group in the customizing, which is assigned to the product master. Please check: IMG: Customer Relationship Management -> Master Data -> Products -> Special Settings for Sales Operations -> Assign Condition Group to Application CRM and IMG: Customer Relationship Management -> Master Data -> Conditions and Condition Technique -> Condition Technique: Basics -> Create Maintenance Group.
    Best Regards,
    Michael

  • Price and Pricing conditions are not copied to PO for a line item !!

    Hi
    I have created a PO w.r.t a PR which has only one line item.
    Now, I add another line item to this existing PO, i get an error message that the Price and Pricing conditions are not copied.
    How do i rectify this error !!
    Where might be the link for this Price and Pricing conditions to get copied in to this PO ??
    MaruthiRam

    What kind of PR and in the PO same material you enter for new line or new material and do you have any funcitonal authorization assigned o your user id
    please reply

  • Sales Condition, but not totalling to net value in SO

    Hello,
    We have costs which we need to post to certain GL accounts, to do this I created new condition type (not have statistical ticked in procedure). This is for royalty process, whereby every SO which we sell to every customers, we will pay 3% of sales to another party.
    - Problem, if dont tick statistical, wrong values get posted to customer because we're adding 3% to credit customer.
    - If tick statistical, values dont get transfered to accounting.
    Is there any better way we can use to not allow values to be totalled into net value in SO, but still be able to bill and post to accounting?

    You can achieve this requirement by creating New Condition Type ( suppose XYZ ) with Calculation Type as Percentage & Plus/minus as -ve . Add this Condition Type below the Condition Type for Royalty Process (suppose ABC ) with Step Number as the one of  Condition Type ABC in From Column in the Pricing Procedure.
    You would have to mention the Account key for Condition Type ABC & maintain 100 % Condition Record for Condition type XYZ & no Account key should be assigned against Condition Type XYZ.
    Best Regards,
    Ankur

  • TS4425 when trying to access photo stream on Apple TV, I am getting the error message terms and conditions have changed, but when I go into iCloud on my Mac the new terms and conditions are not appearing - How can I manually agree to them ?

    When trying to access photo stream on Apple TV, I am getting the error message terms and conditions have changed, but when I go into iCloud on my Mac the new terms and conditions are not appearing - How can I manually agree to them ?

    Welcome to the Apple Community.
    The following article(s) may help you.
    Photo Stream ToU's

  • Condition type not visible in billing document

    Hi
    We are currently in the process of making some changes to the pricing procedures.
    While processing an IC order, we find the following discrepancies,
    In VA03, when we enter the order details, the price shows the expected value and so do the condition details.
    However, in the billing document for the same, in VF03, we find that one of the condition types are missing, hence the value in the sales document and the billing document are different.
    I have checked the details in the condition types, pricing procedures and the access sequences, everything appears to be configured correctly.
    Please advice as to how this can be corrected.
    Thanks
    sap10

    Hi
    Check in pricing procedure (tcode V/08) if you have any Reqt.
    Other possibility, but I think that it doesn't matter in your case. See SAP Note 105621 - Authorization check for the condition screen, that it is used to hide conditions, but not for delete them.
    I hope this helps you
    Regards
    Eduardo

  • VA00 condition type not getting determined for the returns order

    Hi All,
    I have a case where VA00 condition type not getting determined for the returns order that has been created with respect to the billing document.
    When the pricing conditions are being copied from invoice it is getting copied but later it is getting deleted in the include LV61AA42.
    Note:VA00 condition type is getting deleted from the  internal table tkomv[].
    If any one came across  this scenario can you please help me.
    Request your valuable inputs

    Hi,
    Please check the copy control setting in VTAA.
    Maintain the pricing type as "D" at item category level for the respective document type .
    Hope this will resolve your issue.
    Regards,
    Krishna O

  • Condition type not coming in sales order

    Hi,
    we have a condition type Z026. The issue is that  it is not set in the order but the condition records exists. The pricing analysis shows that condition reocrd is missing but the fact is the condition record is there. The acess seq is Z026 and there are many tables in the acess sequence.
    The first table in the access seq is 906 and the condition record exists but still the system says that the condition record is not found using  cond preliminary step (header fields like customer/sales org/div). the cond record is maintained for  relevant sales org/dist channel/customer/material. cond preliminary step means that system first looks for the header fields but everything is there.
    The condition is active and the conditon is created on 21.7.10 with validitity from 21.7.10 to 31.1.2010 and the pricing date in sales order is 27.7.10. so everyhting is fine but yet the condition is not coming in sales order
    what could be the issue.
    regds

    Hi,
    Now try creating a sales order with 20.07.2010 as the pricing date. It will work. Create another order with 21.07.2010 and it will not work. If so, it is due to the validity date. When you give 21.07.2010 as validity date and there is already another record which was valid on that date, the gap of one day can happen and we have experienced this. There is even an OSS note explaining this concept, which makes sense business-wise.
    However you check the scenarios I have mentioned. If the behaviour is as I have mentioned, then you have to change the pricing date of your problamatic sales order to one day earlier, or move the validity date one day earlier.
    If the behaviour is different, pls lemme know

  • Discount condition type not appearing in sales order but in invoice

    Hi,
    I have two discount condition types (MPDI,ZSDI) in my pricing procedure,at the time of sales order creation one discount condition is not appearing.
    On analyzing the condition type MPDI,system throws message "Access not been executed due to previous access",what would be the reason.
    In the billing ,i could see the condition type appearing.I have checked this,but i could not understand why it is happening.Even the condition catergory of condition is empty not L.
    Also please find the screen shots below,
    Pradeep

    Pradeep,
    Am sure user might have deleted the condition type in sales order, the same condition type woudl have entered manually in invoice.
    Please check my testing, i have done the same entered ZA09 manually and after saving have deleted again in sales order, after dilivery and when i created invoice here i have entered manually the same condition type.
    So in your case also the same thing could have happend, check the change log and also in invoce condtion tab check the condtion type in analysis ( Invoice analysis not order). so that you can udnerstand whether it was entered manully or not.
    On analyzing the condition type MPDI,system throws message "Access not been executed due to previous access",what would be the reason.
    This is because in the condtion tyoe the abvoe key combiantion was found with records hence the below key combition was ignored. this you observe in your screen shot with with 5.00
    So my guess is the condtion records was deleted in sales order.
    thanks,
    srinu.

  • Condition Type  not displaying on the pricing procedure

    Hello We are copying a sales order contract with reference to a sales order but we want a condition on the contract pricing procedure to be determined. Now I know I could redetermine pricing by selecting these option but we can't do that as there could be  a year difference so we need the old pricing. B    Carry out new pricing C    Copy manual pricing elements and redetermine the others e.g. Sales Order  Pricing Procedure XXXX                         Conditions ZPR0                          Conditions ZHD1 Create Contract with reference to sales order    Contract  Pricing Procedure yyyyy                         Conditions ZPR0                          Conditions ZHD1                         Conditions ZNEW In the analysis the condition ZNEW has the "Condition without condition record (not relevant)" As I mention in new pricing it appears   

    Hi Roy,
    Trust you are doing good,
    I have gone through the question which you have asked but its not clear what do you want to exactly do.
    Pricing Procedure XXXX                         Conditions ZPR0                          Conditions ZHD1 Create Contract with reference to sales order    Contract  Pricing Procedure yyyyy                         Conditions
    Here you talking about two different pricing procedures..or you talking in terms of pricing values.
    Please highlight.
    Thank you,
    Regards
    SRT

  • Condition type not appearing in PO line item

    Dear All
    I made a condition type Y001 for agriculture tax with below mentioned config. and marked as both header and item condition.
    Cond. class   A Discount or surcharge
    Calculat.type A Percentage
    Cond.category B Delivery costs
    Manual entries      C Manual entry has priority
    Now problem is that when I am making contract in contract line item condition Y001 condition is appearing in dropdown and I am able to enter the same in contract and save it.But when I am trying to make a PO by referring the same contract with line item condition Y001, this same condition is not appearing in PO and also it is not appearing in dropdown also so that I can manually enter the same.
    Please let me know why system is behaving like this.
    Regards
    SK

    satish kumar wrote:
    In short condition type Y001 is appearing in contract line item condition tab while making contract but same condition is not appearing in PO line item condition tab while making PO.
    Hi Satish,
    Perhaps you have not assigned the pricing procedure to the Purchasing Orgn & Vendor in IMG Schema determination. Have a chk once and if you have assigned try maintaining a PIR and I hope it should populate the priceing procedure and your cond type Y001 in the PO also.
    Anything pls revert
    Regards
    Shiva

  • Varient condition is not picked in the pricing procedure.

    Dear Friends,
                        I am creating a sales order where, I am getting a message that VA00 condition is not determined. I analyze the pricing,and find out that the condition record is not determined by the system. Message number is 106. I already maintained the condition record for VA00. 
    Thanks,
    Abhishek Kumar

    Hi,
    Only if you have created the variant and assigned the same in VK11 then the system will fetch that during pricing
    otherwise for VA00 manual entries has a priority so you can add the condtion type manually and give the value to it manually.

  • SD: Condition record not getting automatically determined

    Hi,
    Condition record not getting automatically determined for a condition type for which following access is maintained.
    The access has table containing following fields:
    Sales Organisation
    Distribution Channel
    Division
    Sales Document type
    Sales Document No.
    Material no.
    Following is the scenario:
    A sales order is created  for Project Systems attach a WBS element to the line item .
    With respect to the above created sales order a Billing request ( a sales doc. type which is different than the above sales order). When the billing request is created materials appearing in the line item will be different.Different materials will appear in the billing request because of the DIP profile maintained.
    The prerequisite is that before creating billing request the sales employee has to maintain condition master record with above access.The condition record will combine sales organisation, distribution channel, division, sales document type ,
    sales document number ( the 1st refered sales order)
    and the material are different
    than the ones maintained in the 1st sales order.
    This will enable in getting billing request generated without manual intervention in pricing for other materials for which condition records have been maintained as stated above.
    Following is the error message we get
    ===================================
    " Inactive        X   Inactive via formulae of incorrect "
    Thanks
    Aby
    Message was edited by: Aby Jacob Emmanuel

    As I know, thats just a warning message(if its a std one).
    Ignore it and save.
    Check your pricing date of the document. For execution it should be similar or after valid-from date maintain in condition record.
    But, you need not create a condition record. Simply change the existing one combination of your desire. But, this warning will come there also for your combination.
    Thanks & Regards
    JP

  • Statistic condition values not updated during Sales order Settlement

    Hi,
    In our client we have different Price condition types for based on scenario wise. Ex: Domestic Sales (ZPR1) and Export Sales ZPR2. I have maintained separately value fields for each price condition types.
    We are booking some financial charges, and interest on working capital etc., this cost we need to transfer to COPA each Material wise based on sales revenue.
    For this purpose we have created one COPA Assessment Cycle.  Tracing factor is Sales Revenue and receiver is Materials.
    In COPA Assessment cycle we can give only one base means ZPR1 related value field or ZPR2 related value field.
    For this reason we have created one new statistic condition type,  what is amount there in ZPR1 that amount will updated automatically in statistic condition place and so that we can give once one trance factor in COPA Assessment Cycle. We have assign this statistic condition all pricing procedure
    Now my problem is in MTS scenario statistic condition values updated correctly. But in MTO scenario sales order settlement time statistic condition values not updated.
    So is it possible update during sales order settlement time statistic condition values.
    Please give me suggestion.
    Regards,
    Thiru

    Hi Ajay Sir,
    As you said is correct.
    But in our client we have around 9 Plants and each plant manufacturing product are different. Client Requirement is in COPA Report they need see each product wise sales revenue. In this way we mapped product wise value field.  System already mapped one guy in this way earlier. Now I am doing some changes for relevant to month end activities.
    Some financial changes transfer to COPA each plant wise on Material. Here sender is cost center and receiver is Material. Base is Sales Revenue.
    Please suggest me is there any alternative.
    Regards,
    Thirumalesh .

Maybe you are looking for

  • File and Printer Sharing problem

    Message Edited by bartman_60042 on 11-13-2007 05:47 AM

  • Iphone 4 without service after IOS 5.1

    I am without service after IOS 5.1.  Since the upgrade, my phone can't make or receive any call. I bought it from my mobile operator (Claro Brasil) itself. The odd thing is that when I use the SIM of my brother (from another provider - TIM) the phone

  • Weblogic security authentication; question to interact with the realm

    Hi, I have a quick question about weblogic security authentication.... We are using weblogic 81sp3. We have user-group info in an Novell eDirectory LDAP server. Currently, a Novell Authenticator provider is configured under : Security > Realms > myRe

  • I have doubt in pp module....

    i have doubt in pp module.... i want to know relationship between pp tables (s901,s902,s903,s904) and bomtables (mast,stpo,stko,stas) because the material(element) available in pp tables is not exists in bom tables. key: plant,material,sub material i

  • Display mysteriously changed... not a zoom problem.

    I opened up my computer and the font and display had changed.  Now things like webpages don't fit in the screen.  Even the desktop picture has changed.   It isn't zoom and I've checked the display resolutions.   Anyone know how to correct this proble