Using Stings in conditions

Hi i'm writting a program that is a basic shop program (Customer details orderinformation etc.) but i have the program written but i need some help.
I'm trying to make an if statement where if the user types in Stop the program terminates otherwise it continues. but i'm not sure how to do it:
for example:
boolean cont=true;
for(int i=0;cont;i++)
     System.out.println("Please enter Item Code Enter Stop to cancel");
     String s=in.readLine();
     if(s==Stop)
                    cont=false;
but this doesn't work, so how do i make it work?
i tried:
if(s=="Stop")
but that didn't work either.
please any hlp would be greatly appreciated, and i'm new to Java so please keep it as simple as possible :)
Item code is a string value as the range from A01-F01 depending on type
Thanks in advance for anyhelp.

Thank you so much! i've finally finished :DBut do something about the Stings soon... :)

Similar Messages

  • Using multiple 'and' conditions in a SQL query

    Is it possible to reduce the SQL required to query using multiple 'and' conditions, e.g. I have a query like the following:
    select stat.personal_id, appt.username, appt.password, apps.rgn_apt_id, apps.apy_apn_id
    from apy_ast_application_status stat, rgn_usr_user appt, rgn_aps_applications apps
    where stat.apy_apn_id = apps.rgn_apt_id
    and apps.rgn_apt_id = appt.rgn_apt_id
    and stat.application_completed is null
    and stat.application_started_date > '01-MAY-11'
    and stat.amount_paid is null
    and stat.personal_details = 'C'
    and stat.further_details = 'C'
    and stat.education = 'C'
    and stat.employment = 'C'
    and stat.personal_statement = 'C'
    and stat.choices = 'C'
    and stat.reference = 'C'
    and stat.student_finance = 'C'
    Is there a way, to reduce all the multiple 'and' queries, to be read from say one line? If you know what I mean.......

    Ah, Ok this looks nice, thanks very much. It doesn't quite run as is because the stat.amount_paid query value is 'is null', while the others are 'C'. I tried amending the relevant line to various versions of the following:-
    in (select 'is null' 'C','C','C','C','C','C','C','C' from dual)
    which doesn't work.
    I can get the following to work so I am assuming that the it is not possible to use different query values within the brackets of the 'in (select....' statement?
    select stat.personal_id, appt.username, appt.password, apps.rgn_apt_id, apps.apy_apn_id
    from apy_ast_application_status stat, rgn_usr_user appt, rgn_aps_applications apps
    where stat.apy_apn_id = apps.rgn_apt_id
    and apps.rgn_apt_id = appt.rgn_apt_id
    and stat.application_completed is null
    and stat.application_started_date > '01-MAY-11'
    and stat.amount_paid is null
    and (stat.personal_details, stat.further_details, stat.education,
    stat.employment, stat.personal_statement, stat.choices, stat.reference, stat.student_finance)
    in (select 'C','C','C','C','C','C','C','C' from dual)
    Thanks for everybodys help - the suggested alternatives seem so much more elegant

  • We would like to Use the SKTO condition type as Acrual condition

    Hello Experts,
    We have a requirement to track the possible cash discounts in discounts bucket, Hence we though that we will use the SKTO condition type as a Accrual condition type and post to Accrual accounts at the time of billing document creation.
    While processing the Payment we will clear the bucket with relevant discounts with eligible payment terms.
    We are debating and discussing the use of SKTO as a Accrual condition type and start posting GL accounts with it (This means that we are removing the statistical check box from pricing procedure).
    In a nutshell our requirement is.
    1. Track the cash discounts in a Accrual bucket.
    2. Relieve the accrual when payment is applied (This will be done in Cash app)
    3. What are the consequences of making this change?
    4. Is there a better way of managing this?
    Thanks
    Sreedhar

    Hi,
    Your issue can be solved by CO consultant.
    Your CO consultant can generate report from CO-pa documents.(when invoice is released to a/c ,FI and CO documents are generated) and you know SKTO- cash discount amount even if it statistical condition type.
    You do not need to change in Pricing procedure for tracking  cash discount.
    SKTO is linked wtih payment terms and it is applied accordingly through standard programs.
    thanks,
    Vrajesh
    Edited by: Vrajesh G. Nayak on Jun 2, 2010 5:12 PM

  • How to use a purchase condition in the sales order

    Hello,
    Customer would like to have a purchase "day-price" appearing in the pricing of the sales order. 
    I would suggest to write abap code (reading the correct PU condition record) in a condition base value routine that would be added in the customizing pricing procedure at SD side.
    Is there any "more standard" solution for this ? 
    Thanks,

    Hello,
    Here is the case in more detail :
    This question concerns a product that is just purchased, stored, and sold.  The purchase-price is based on a "day-price" that is maintained in a purchase condition record on a daily basis.  The sales-price should be that daily price with a markup in %. 
    So, in the sales order, this purchase condition record should be picked up with the material and the pricing date as key.  From that base price, a markup can be calculated in sales pricing. 
    I would suggest to use the field "condition base value" in the setup of the sales pricing procedure (Ref to IMG sales and distribution, pricing control, define and assign pricing procedures).  In that field a new routine could be entered that (with a select or function or Bapi) picks up the purchase condition record-value. 
    I would like to know if this would be a "correct" way of solving this requirement,  if there is no "more standard" solution,  if anyone has experience with a similar requirement and how you solved it ?
    Thanks,

  • How to use outer join condition in my below query.

    Hi All,
    How to use outer join condition in my below query.
    In the table  APPS_JP.GEDIS_OFFER_HEADER goh I have more records
    in the table APPS_JP.GEDIS_ORDER_BUILDS gob I have less number of records.
    I want all the records from APPS_JP.GEDIS_OFFER_HEADER goh
    including other conditions.
    I have tried goh.OFFER_NO=gob.OFFER_NO(+) but same result.
    [code]SELECT   GOH.ORIG_SYSTEM,
               gsp.USER_NAME,
               goh.ORDER_NO,
               goh.OMEGA_ORDER_NUMBER,
               goh.ORDER_TYPE,
               gc.CUSTOMER_ID,
               gc.OMEGA_CUSTOMER_NUMBER,
               CASE WHEN gc.PRIVATE = 'N' THEN gc.CUSTOMER_NAME ELSE '' END
                  AS COMPANY_NAME,
               goh.ORDER_STATUS,
               goh.TOTAL_SELLING_PRICE,
               goh.TOTAL_MARGIN,
                  ga1.ADDRESS1
               || ','
               || ga1.ADDRESS2
               || ','
               || ga1.ADDRESS3
               || ','
               || ga1.POSTAL_CODE
               || ','
               || ga1.CITY
                  AS SHIPPING_ADDRESS,
                  ga2.ADDRESS1
               || ','
               || ga2.ADDRESS2
               || ','
               || ga2.ADDRESS3
               || ','
               || ga2.POSTAL_CODE
               || ','
               || ga2.CITY
                  AS BILLING_ADDRESS,
               ga.ADDRESS_ID,
               gol.DESCRIPTION,
               APPS_JP.TZ.to_local_date (goh.OFFER_DATE, goh.OFFER_DATE_UTC)
                  AS OFFER_DATE,
               gc.LEVEL_8,
               goh.NO_OF_BUILDS,
               gob.SFDC_ID,
               goh.PURCHASE_ORDER_NO AS PO,
               gc1.CUSTOMER_NAME AS END_USAGE,
               gol.LOB,
               goh.TOTAL_MARGIN_PCT,
               goh.TOTAL_DISCOUNT,
               goh.TOTAL_DISCOUNT_PCT
        FROM   APPS_JP.GEDIS_OFFER_HEADER goh,
               APPS_JP.GEDIS_ORDER_BUILDS gob,
               APPS_JP.GEDIS_ORDER_LINES gol,
               APPS_JP.GEDIS_OFFER_RELATED_CUSTOMER gorc,
               APPS_JP.GEDIS_OFFER_RELATED_CUSTOMER ship,
               APPS_JP.GEDIS_OFFER_RELATED_CUSTOMER bill,
               APPS_JP.GEDIS_CUSTOMER gc,
               APPS_JP.GEDIS_CUSTOMER gc1,
               APPS_JP.GEDIS_CONTACT gct,
               APPS_JP.GEDIS_ADDRESS ga,
               APPS_JP.GEDIS_ADDRESS_NORM ga1,
               APPS_JP.GEDIS_ADDRESS_NORM ga2,
               (SELECT   DISTINCT SALESPERSON_ID, USER_NAME
                  FROM   APPS_JP.GEDIS_SALESPERSON
                 WHERE   SALESPERSON_ID IN
                               (SELECT   TO_NUMBER (COLUMN_VALUE) AS SALESPERSON_ID
                                  FROM   TABLE (APPS_GLOBAL.SplitString ('337309'))))
               gsp
       WHERE       goh.ORDER_NO <> 0
               AND goh.OFFER_NO <> 0
               AND goh.OFFER_NO=gol.OFFER_NO
               AND gol.BUILD_NO = 1
               AND gol.LINE_NO = 1
               AND goh.OFFER_NO=gob.OFFER_NO
               AND gob.BUILD_NO = 1
               AND goh.OFFER_NO = gorc.OFFER_NO
               AND gct.CONTACT_ID = gorc.CONTACT_ID
               AND ga.CUSTOMER_ID = gc.CUSTOMER_ID
               AND ga.PRIMARY = 'Y'
               AND goh.LEAD_SALESPERSON=gsp.SALESPERSON_ID
               AND goh.OFFER_NO = ship.OFFER_NO
               AND ship.RELATION_TYPE = 'SHIP'
               AND ga1.ADDRESS_ID = ship.ADDRESS_ID
               AND ga1.CUSTOMER_ID = gc1.CUSTOMER_ID
               AND goh.OFFER_NO = bill.OFFER_NO
               AND bill.RELATION_TYPE = 'BILL'
               AND ga2.ADDRESS_ID = bill.ADDRESS_ID
               AND goh.OFFER_DATE BETWEEN APPS_JP.TZ.LOCAL_TO_DB_DATE (
                                             SYSDATE - 30
                                      AND  APPS_JP.TZ.LOCAL_TO_DB_DATE (SYSDATE)
               AND gorc.RELATION_TYPE = 'BASE'
               AND gorc.CUSTOMER_ID = gc.CUSTOMER_ID
               AND goh.SALES_CHANNEL = gc.SALES_CHANNEL
               AND gc.SALES_CHANNEL = 'SMB'
               AND goh.LEAD_SALESPERSON IN (goh.CREATED_BY, goh.LEAD_SALESPERSON)
    ORDER BY   goh.OFFER_NO;[/code]
    Please help me how to use this outer join condition.
    Thanks in advance.

    Hi,
    If you want all the rows from goh, then you don't want any conditions like  goh.OFFER_NO <> 0.
    Make all the joins to goh outer joins, and make all conditions that apply to any tables joined to goh (or to tables joined to them) part of the join condition, like this:
    FROM             APPS_JP.GEDIS_OFFER_HEADER     goh
    LEFT OUTER JOIN  APPS_JP.GEDIS_ORDER_BUILDS     gob  ON   gob.OFFER_NO = goh.OFFER_NO
                                                         AND  gob.BUILD_NO = 1
    LEFT OUTER JOIN  APPS_JP.GEDIS_ORDER_LINES      gol  ON   gol.OFFER_NO = goh.OFFER_NO
                                                         AND  gol.BUILD_NO = 1
                                                         AND  gol.LINE_NO  = 1
    LEFT OUTER JOIN  APPS_JP.GEDIS_OFFER_RELATED_CUSTOMER
                                                    gorc ...
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Simplify the problem as much as possible.  For example, do you really need all those tables to show what the problem is?  Of course, you need them in tyour real query, but if you understand a solution that only involves 4 or 5 tables, you'll know how to apply it to any number of tables.
    Explain, using specific examples, how you get those results from that data.Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ https://forums.oracle.com/message/9362002#9362002

  • Can we use exceptions and conditions at the same time?

    can we use exceptions and conditions at the same time? Are there any dependencies between exceptions an conditions?

    Exceptions are used when there are some mistakes , or exceeds the supposed values, we can highligt that in different colours for enabling the validator to notice easily. In this we are giving conditions for considering the value as exceptions. suppose, if the values is out of the range -1 to +1 then exception.
    But conditions can be considered as the restrictions given in measure level also. So please elaborate what you meant by conditions

  • Use of group conditions in subtotal KZWIW

    Hi,
    I have a specific trouble in the use of group condition in sales order and billing.
    Condition Z001 is a group condition and should also update field kzwi2 as base information for condition Z002
    Condition Z002 is not a group condition and is  calculated based on informations stored in kzwi2. 
    When creating a document, the field kzwi2 is not updated directly (because Z001 is a group conditions) and the price should be redeterminated manually in order to allow the document to be considered as complete.
    Is there any settings that can avoir the manual recalculation of the price?
    Many thanks in advance,
    Nathalie Winand

    Hi Nathalie:
    See Note 1022966 - FAQ for the 'Subto' column (KZWIW) in the pricing procedure
    Perhaps it will help you
    Regards
    Eduardo

  • Issue in using custom discount condition type in pricing agreement at Service Contract line item level

    Hello
    We are facing an issue while using a Z discount condition type in price agreement at service contract line item level.
    A Z Condition type has been created in ECC and assigned to the pricing procedure. This pricing procedure is downloaded in CRM and determined in the service contract.
    A condition maintenance group using this Z condition type is created in CRM and assigned to service contract item category.
    Condition records are created in CRM for this condition type/condition maintenance group for specific products along with sales org and discount percentage.
    But when the price agreement(using this condition type) is used at the item level of a service contract, the system throws errors (related to product/unit of measure and sales org, even though no issues seem to be there)and thus the price agreement is not allowed to be used.
    If anyone has worked on such kind of scenario, please get in touch, I will share more details for the same. 
    Regards
    Ankit Arora

    Dear Ankit,
    Once the pricing procedure is downloaded, please maintain the document pricing procedure at service contract header level, and maintain the customer pricing procedure at business partner sales area billing data.
    In spro, maintain the pricing procedure for the combination of sales area, document pricing procedure, customer pricing procedure.
    Please crosscheck whether the condition table is active or not.
    Regards,
    Maddy

  • IU Elim. "No data found for processing using current selection conditions""

    Dear Experts,
    While Executing task of Interunit elimination  in Consolidation Montior  I am getting Message "No data found for processing using current selection conditions"
    Ex. is
    A)
    In Unit X
    GL (399999) Account     Dr. 65000 (Customer Recon. Ac.)   (with Trading Parter X)
    GL (499999) Rev.A/c           65000 (with Trading Parter X)
    In Unit Y
    GL (199999) Exp. A/c     Dr. 65000   (with Trading Parter Y)
    GL (299999).Account           65000 (Vendor Recon. Ac.) (with Trading Parter Y)
    B) GLs in info cube in 0FIGL_C01 are :-
    GL Account---CCode--Trading PartnerDebit--
    Credit
    199999--YY65000-----00000
    299999--YY00000-----65000
    399999--XX65000-----00000
    499999--XX00000-----65000
    In COnsolidation WorkBench
    1) I have created Document Type
    2) Method-
      In  General Tab
       a) Two SIded Selection
        b) Per Transaction Currency Selected
    In Selection Tab
    1St Selection
    GL Account = 299999 (Customer Recon. Account)
    Company    = X
    Trading Partner = X
    1St Selection
    GL Account = 399999 (Vendor Recon. Account)
    Company    = Y
    Trading Partner = Y
    Difference Tab
    a) Post Diff to "Unit from Selection 1"
    b) Key Figure "Period Value GC
    c) Check Limit Per Difference Row
    Other Differnce
    GL Account = 100099 (Other GL)
    Currencyce Diff
    GL Account = 100510 (Other GL)
    Question :-
    1) Is the posting is appropriate and does it attracts IU Elimination?
    2) The Infocube Details are correct?
    3) Any Config issue
    May any one suggest, Why Am I not able to get the data?
    Thanks
    Rakesh Shrivastav

    Dear Sir,
    Following are the View at my end in context to your suggestion
    1. check the BCS totals data to ensure trading partner is included.
    THis is the view of Source Info Cube 0FIGL_C01
    GL Account---CCode--Trading PartnerDebit--
    Credit
    199999--YY65000-----00000
    299999--YY00000-----65000
    399999--XX65000-----00000
    499999--XX00000-----65000
    2. Execute the task for the cons group that includes both cons units X and Y
    The COns Group Is XYZ
    X- Cons Unit
    Y- Cons Unit
    In Cons Monitor I am executing Test run at XYZ level
    3. Although the trading partner for cons unit X should be Y and vice versa, the elimination should still occur with the cons unit X and trading partner X records.
    Same as the query description
    4. make sure that the items 199999, 299999, 399999 and 499999 are included in the elimination method for either selection 1 or selection 2.
    The Method Selection Tab View is
    1St Selection
    GL Account = 299999,199999
    Company = Y
    TP = Y
    2Nd Selection
    GL Account = 399999,499999
    Company = X
    TP = X
    What is your View On That?

  • Transaction used for maintaining condition record for contract

    Hi All,
    In one of the issue user is not able to print contract,we have noticed that default printer is set for user.I need to check what condition record is maintained for user.
    Can anyone let me know what is the transaction used for maintaining condition record for contract output.
    Regards,
    Dharmesh

    Hi
    MN01 Create Message: RFQ
    MN04 Create Message: PO
    MN07 Create Message: Outline Agreement
    MN10 Create Message: Schd. Agmt. Schedul
    MN13 Create Message: Service Entry Sheet
    MN21 Create Condition: Inventory Mgmt
    MN24 Create Message: Shipping Notif.
    MN27 Create message: rough goods receipt
    MN10 / MN11 - Scheduling Agreement Delivery Schedule
    Vijay

  • Using metadata in conditions

    I'm trying to make a .targets file
    for my NuGet package, which will link to a proper .lib file
    depending on the C++ runtime library of a project. This
    answer recommends to use %(ClCompile.RuntimeLibrary) metadata
    for this. But I cannot use metadata in condition of the <ItemDefinitionGroup> node.
    When trying to run MSBuild with the following test script:
    <?xml version="1.0" encoding="us-ascii"?>
    <Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <ItemGroup>
    <ClCompile Include="main.cpp">
    <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
    </ClCompile>
    </ItemGroup>
    <ItemDefinitionGroup Condition="'%(ClCompile.RuntimeLibrary)'=='MultiThreadedDebugDLL'">
    <Link>
    <AdditionalDependencies>yaml-cpp-MDd.lib;%(AdditionalDependencies)</AdditionalDependencies>
    </Link>
    </ItemDefinitionGroup>
    </Project>
    I have the following error: "error MSB4191: The reference to custom metadata "RuntimeLibrary" at position 1 is not allowed in this condition "'%(ClCompile.RuntimeLibrary)'=='MultiThreadedDebugDLL'"."
    How can I workaround this issue?

    Hi mikhail.matrosov,
    I have read your post in stackoverflow. From your update information:
    <PropertyGroup Condition="'$(RuntimeLibrary)'=='MultiThreadedDebugDLL'">
    <TestProp>defined</TestProp>
    </PropertyGroup>
    <Message Text="TestProp = $(TestProp)" Importance="high" />
    , I know that you want to define a property according to the C++ runtime library. Please refer to the code snippet below. It can satisfy your requirement.
    <?xml version="1.0" encoding="us-ascii"?>
    <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <Target Name="Build">
    <ItemGroup>
    <ClCompile Include="main.cpp">
    <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
    </ClCompile>
    </ItemGroup>
    <PropertyGroup Condition="'@(ClCompile->'%(RuntimeLibrary)')'=='MultiThreadedDebugDLL'">
    <TestProp>defined</TestProp>
    </PropertyGroup>
    <Message Text="TestProp = $(TestProp)" Importance="high" />
    </Target>
    </Project>
    Below is the screenshot of the result.
    I write the elements ItemGroup and the PropertyGroup beneath the target element.
    If you write the two elements outside the target, we can't get the value of an item of ItemGroup in a PropertyGroup.
    I see that you can use "<RuntimeLibrary>@(ClCompile->'%(RuntimeLibrary)')</RuntimeLibrary>" to get the value of RuntimeLibrary in
    ClCompile item. In fact, the value of RuntimeLibrary is actually the string "@(ClCompile->'%(RuntimeLibrary)')".
    In the evaluation phase of a build, property evaluation precedes item evaluation. Nevertheless, properties can have values that appear to depend on item values. Consider the following script.
    <ItemGroup>
        <ClCompile Include="main.cpp">
          <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
        </ClCompile>
      </ItemGroup>
      <PropertyGroup>
        <RuntimeLibrary>@(ClCompile->'%(RuntimeLibrary)')</RuntimeLibrary>
      </PropertyGroup>
      <Target Name="Build">
        <Message Text="Property = $(RuntimeLibrary)" Importance="high" />
      </Target>
    Executing the Message task displays this message:
    This is because the value of RuntimeLibrary is actually the string "@(ClCompile->'%(RuntimeLibrary)')". Item and item transformations were not expanded when
    the property was first defined, so the RuntimeLibrary property was assigned the value of the unexpanded string. This is why we can't use the condition like "<PropertyGroup Condition="'@(ClCompile->'%(RuntimeLibrary)')'=='MultiThreadedDebugDLL'">"
    outside a target. So "<TestProp>defined</TestProp>" defined beneath that condition doesn't work. 
    During the execution phase of the build, when it processes the Message task, MSBuild expands the string "@(ClCompile->'%(RuntimeLibrary)')" to yield "MultiThreadedDebugDLL".
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Derived Column: Assigning and and Using as a Condition

    Hi,
    I have 1 derived column component with 2 derived columns (see below).
    1st derived col:
    DerivedColName: col1
    Derived Column: Replace 'col1'
    Expression: REPLACENULL(col1, col1_DHH)
    2nd derived col:
    DerivedColName: col2
    Derived Column: Replace 'col2'
    Expression: ISNULL(col1) ? col2_DHH : col2
    As you can see, col1 is being used as a condition to determine the value to assign to col2.
    But at the same time, col1 is assigned with a value that depends on the result of REPLACENULL.
    My question is, is  col1's value in (ISNULL(col1) ? col2_DHH : col2) the original value i.e. before it evaluates the REPLACENULL expression?
    I have tested this and it seems that col1 value is the original value (which is what i need). I just want to confirm from you guys that this is always the case i.e. it is deterministic.
    Thanks!

    If they're in same derived column then it takes original value ie prior to start of derived column
    If you want evaluated value to be used for second expression then you need to use two derived tasks and join first to second with precedence constraint with option On Success
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Getting an error saying no primary index is used in where condition in SCI.

    Hi,
    I have develped a report using table PAYR.
    The selection -screen of this report consists of Runid, Identification and Payment date.
    The select qurey i used is
    SELECT chect
               zaldt
               rwbtr
               znme1
               voidd
          FROM payr INTO TABLE it_details
          WHERE laufd EQ p_laufd AND
                laufi EQ p_laufi AND
                zaldt EQ p_date.
    But when i check the code with code inspector im getting an error saying no primary index is used in where condition.
    How can i solve this problem.
    Pls. provide some pointers.
    Thanks.

    HI Deepti,
         The problem is since the fields used in where condition is not mentioned in any of the indexes created for table ( you can check the maintained indexes for table by clicking on the 'Indexes' button or ctrl+F5)
          Atlease include MANDT in where condition, or create your own index with the fields which you have used in SELECT query.
    this will solve the problem
    Regards
    Seema

  • We are using two pricing conditions 1st is ZBP1 Automatic pricing condition

    Dear Experts,
    We are using two pricing conditions 1st is ZBP1 Automatic pricing
    condition type, 2nd is ZBP2 manual pricing condition type. While
    creating sales order, when our sales users entering old pricing date, SAP
    system automatically proposing the manual condition ZBP2 (Manual)instead
    of ZBP1(from condition records)
    We want to restrict this behavior of the system. System should not pick
    the manual condition ZBP2 if the automatic pricing condition ZBP1 exist
    for that particular line item (irrespective of the pricing date). We
    donu2019t want to use manual conditions to all the other customers except
    intercompany customer.
    Please give your comments
    Regards,
    MH

    Hi,
    It would be better if you remove the Check Box as mandatory for that Manual Condition Type in the Pricing Procedure.In such case , system will not ask you to enter the Manual Condition Type , where ever it is required , Sales Users can enter it manually.
    But still Sales User try to give manually then you have to make a small coding in the new Routine at Manual Condition Type in the Pricing Procedure that if Condition Record for automatic Condition Type exits then system should not allow to enter it manually.
    Best Regards,
    Ankur

  • DataTable - Best way use Rendering (if condition)

    Hello ,
    I am new to jsf(come from the JSP/struts world).I have to display dataTables based on multiple conditions , if in JSTL I would have used a series of c:if conditions to display the same.
    I was wondering how I could use the "rendered" as an if condition to check conditions (can I use "and" , "or" conditions using this..).Or is there a better way to do this ..
    An example would go a long way in clearing my doubt .

    The rendered attribute accepts a booleanvalue. This can be just a property or an outcome of one or more expressions.
    Some basic examples:rendered="#{myBean.booleanValue}"
    rendered="#{myBean.stringValue == 'value'}"
    rendered="#{myBean.intValue > 10}"
    rendered="#{myBean.objectValue == null}"
    rendered="#{!empty myBean.collectionValue}"
    rendered="#{myBean.stringValue != null && myBean.intValue == 1}"
    rendered="#{myBean.stringValue != 'value' || !myBean.booleanValue}"

Maybe you are looking for

  • Report background engine

    hi i am using reports6i. every time i run a report, the report background engine appears in my task bar. By closing the report, it still persists in the task bar, and i have to close it manually. Is there any way that by closing the report, the repor

  • File Sharing creamed two Macs

    How we creamed two Macs running Leopard, and how we got them back. My husband got a new early 2008 MacPro and gave me his iMac. Initially we tried to use the Migration Assistant to move his data, but that hung, and caused us to have to start over. Th

  • How do you dynamically set the flat file name

    Within my process flow I call a mapping. Within this mapping I have a flat file operator (which creates and writes to a .csv file). All working great. From this process flow I want to be able to pass a parameter to the mapping (which I can do), and u

  • Connected to network, but no internet connection

    Just returned from a one week trip to CA with my macBook. Prior to the trip everything regarding a connection to the internet worked fine... I have an Airport Extreme network set up at home. For the first five days of my trip, everything worked fine

  • Why the validator can't display the error message on the popup dialog?

    I have input text with a validator and a custom ok button and a cancel button on the popup dialog.When I click the ok button,the validator will validator the input value on the input text,but it just close the popup dialog without display the message