How to Validate this Condition

Table Structure
1-Master_table
ct_no number(4)
rent_no number(4)
rcv_dt date2-Rcv_table
rcv_no varchar2(5)
rcv_dt date,
ct_no number(4),
rent_no number(4),Sample Data of master_table
    CT_NO   RENT_NO RCV_DT
     2717         1 11-MAY-07
     2717         2 25-MAY-07
     2717         3 07-JUL-07
     2717         4
     2717         5
     2717         6
     2717         7
     2717         8
     2717         9
     2717        10
     2717        11
     2717        12
     2717        13
     2717        14
     2717        15
     2717        16
     2717        17
     2717        18
     2717        19
     2717        20
     2717        21I build a tabular form based on RCV_Table contain 10 Rows,in which user select ct_no and Rent_no from master_table from LOV (seperate LOV for Ct_no and Rent_no).
LOV of CT_no
select distinct ct_no from master_table
LOV of Rent_no
select rent_no from master_table where ct_no=:ct_noI want to validate..if user select 2717 in Ct_no and 4 in rent_no at first record,if user enter another record for that ct_no 2717 ,rent_no field should check the enter value should be 5.
In rent_no LOV i successfully handle that the record already been selected are not showing in LOV,but if User enter the rent_no manually without using LOV then my validation fails.
Tell me how to restrict the user to not to enter invalid value of that field

One IDEA!!!!!!!
you create a summary item rent_max with
summary function : max
summary block : detail bl
summary item :rent_no col of detail
So every time you have the max. rent no entered...When you enter in the next record,
if rent_no != rent_max+1, then throw error...
But One doubt ....
If ur LOV works fine ...Why dont you use Validate from list for rent no set as YES ???
Edited by: Dora on Dec 10, 2009 5:42 PM

Similar Messages

  • How to map this condition in XI

    Hi all,
    Please can any one tell how to proceed this condition in XI map :
    Please any one provide some solution, bcoz its hamppering my development.
    EITHER(
                                                       EXTRACT(
                                                                       Group_3:Group_1,
                                                                       EAN11 E2MARMM002 Field:E2MARMM002 Segment:Group_3:Group_1 != ""  &
                                                                       MEMBER(
                                                                                    MEINH E2MARMM002 Field:E2MARMM002 Segment:Group_3:Group_1,
                                                                                    MEINH_SAP Fileds:Target_Market                                                                               
                                                       FAIL(
                                                                " No Valid MEINH (UOM) found in given IDoc for Material Number = " +
                                                                  TRIMLEFT(MATNR E2MARAM005 Field:E2MARAM005 Segment:Group_1, "0") + "," +
                                                                 " Either correct MEINH (UOM) in the IDoc or configure MEINH for the material number in file " +
                             GETFILENAME( SAPMW_Lookup )
                                             Group_5,
                                             Group_1,
                                             SAPMW_Lookup,
                        Variant_Language_Lookup                  
    Message was edited by:
            vijaya laxmi
    Message was edited by:
            vijaya laxmi

    HI Ranga Rajan,
    Now, here i am pasting new condition which was used in mercator.
    But the same condtion i have to use in XI also, so please explain indetail  interms of XI.
    =IF(  MEINH E2MARMM002 Field:E2MARMM002 Segment:Group_3_MATMAS05_V1_UNI = "D97" &
            EAN11 E2MARMM002 Field:E2MARMM002 Segment:Group_3_MATMAS05_V1_UNI != "",
            IF(TRIMLEFT(TRIMRIGHT(#GLB#MATSW #GLB#XGT_E1MARA1000 Field:#GLB#XGT_E1MARA1000 Segment:Group_1_MATMAS05_V1_UNI)) != "",
          F_04_CreateUOMSW(
                                           LOOKUP(
                                                           UOMSW:UOMSW_File:SAPMW_Lookup,
                                       TRIMLEFT(TRIMRIGHT(#GLB#UOMSW #GLB#XGT_E1MARA1000 Field:#GLB#XGT_E1MARA1000 Segment:Group_1_MATMAS05_V1_UNI)) =
                                             TRIMLEFT(TRIMRIGHT(UOMSW_SAP Fileds:UOMSW:UOMSW_File:SAPMW_Lookup))

  • How to get this condition right ?

    Hi Friends,
    Please tell me , How to get this condition right.
    Current Date = Posting date (RBKP.BUDAT) + 7 (i.e. notifications are sent 7 days after the Posting date).
    I need to get the blocked invoices which are overdue for 7 days, and send these blocked invoices. How to do the declaration and get it right ...
    thanks in advance ...
    Edited by: Matt on Jan 28, 2009 2:38 PM - subject amended by moderator

    Hi, SK SIDDIQUI
    Have a look at following code will solve out your problem,
    TABLES: RBKP.
    data: it_rbkp like STANDARD TABLE OF rbkp WITH HEADER LINE,
          wa_it_rbkp like rbkp,
          p7date like sy-datum,
          p14date like sy-datum,
          p21date like sy-datum.
    p7date = sy-datum - 7.
    p14date = sy-datum - 14.
    p21date = sy-datum - 21.
    SELECT * from rbkp
      into CORRESPONDING FIELDS OF TABLE it_rbkp
      where budat <= p7date. " for 14 just Replace p7date with p14date and for 24 just Replace p7date with p24date
    Please Reply if any Problem,
    Kind Regards,
    Faisal

  • How to put this condition in Query

    Dear experts,
    I have a scenario where in the calculation should be dynamic between key figures in query
    For example i have a
    Target Cost and Actualcost1, Actualcost2, Actualcost3
    i need to findout the variance between the Target and Actual
    but the catch is that i need to findout the variance with the latest actual cost
    1. )  Target cost = 100
    Actual cost1=10, Acutal cost2=0, actual cost3=0
    then the formula should be Actual cost1-target cost
    2. )But if
    Target cost  =100
    Actual cost1=10, Actual cost2=5, Actual cost3=0
    then the formula should be Actual cost2- Target cost
    3. Target cost =100
    Actual cost1=10, Actual cost2 = 5, Actual cost3= 15
    then the formula should be Actual Cost3-Target cost
    How to achieve this
    Thanks and regards
    Neel

    Hi Neel,
    Do you have indicator saying that a particular actual cost is the latest? If you have any indicator thsi would make the job easy. Else you need to create new formulas to derive the logic.
    Else you can proceed with the belwo logic.
    1.target cost
    2. Actual Costs 1 - Hide
    3. Actual Costs 2 - Hide
    4. Actual Costs 3 - Hide
    5. New formula whcih evaluates the latest.
    Write the condition
    If Actual costs3 = 0 and actual cost2 = 0 then actual cost1.
    else if actual cost2= 0 then actual cost1
    else if actual cost1 NE 0 and actual cost2 NE 0 then Actual cost3.
    Then hide the above new formula.
    And in a new formula you can find the diff between the Target cost and the latest cost derived in teh above new formula.
    If the conditions is too big in the above new formula, you can split across two three new formulas and derive the logic.
    Just make some changes to the above logic if it is not 100%.
    I believe this logic will work.

  • How to Validate this using Regular Expressions

    Hi All,
    I have following types of Mail IDs, Each is a String.
    It may be either of the Following:
    [email protected]
    or
    Ameer<[email protected]>
    Then How to validate using the Regular Expressions.

    use this regex.. might need to convert it from perl regex flavor:
    (?:(?:\r\n)?[ \t])*(?:(?:(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t]
    )+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:
    \r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(
    ?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[
    \t]))*"(?:(?:\r\n)?[ \t])*))*@(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\0
    31]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\
    ](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+
    (?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:
    (?:\r\n)?[ \t])*))*|(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z
    |(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)
    ?[ \t])*)*\<(?:(?:\r\n)?[ \t])*(?:@(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\
    r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[
    \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)
    ?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t]
    )*))*(?:,@(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[
    \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*
    )(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t]
    )+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*))*)
    *:(?:(?:\r\n)?[ \t])*)?(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+
    |\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r
    \n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:
    \r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t
    ]))*"(?:(?:\r\n)?[ \t])*))*@(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031
    ]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](
    ?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?
    :(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?
    :\r\n)?[ \t])*))*\>(?:(?:\r\n)?[ \t])*)|(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?
    :(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?
    [ \t]))*"(?:(?:\r\n)?[ \t])*)*:(?:(?:\r\n)?[ \t])*(?:(?:(?:[^()<>@,;:\\".\[\]
    \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|
    \\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>
    @,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"
    (?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*))*@(?:(?:\r\n)?[ \t]
    )*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\
    ".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?
    :[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[
    \]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*))*|(?:[^()<>@,;:\\".\[\] \000-
    \031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(
    ?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*)*\<(?:(?:\r\n)?[ \t])*(?:@(?:[^()<>@,;
    :\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([
    ^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\"
    .\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\
    ]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*))*(?:,@(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\
    [\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\
    r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\]
    \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]
    |\\.)*\](?:(?:\r\n)?[ \t])*))*)*:(?:(?:\r\n)?[ \t])*)?(?:[^()<>@,;:\\".\[\] \0
    00-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\
    .|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,
    ;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?
    :[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*))*@(?:(?:\r\n)?[ \t])*
    (?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".
    \[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[
    ^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]
    ]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*))*\>(?:(?:\r\n)?[ \t])*)(?:,\s*(
    ?:(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\
    ".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*)(?:\.(?:(
    ?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[
    \["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t
    ])*))*@(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t
    ])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?
    :\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|
    \Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*))*|(?:
    [^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\
    ]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*)*\<(?:(?:\r\n)
    ?[ \t])*(?:@(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["
    ()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)
    ?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>
    @,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*))*(?:,@(?:(?:\r\n)?[
    \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,
    ;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t]
    )*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\
    ".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*))*)*:(?:(?:\r\n)?[ \t])*)?
    (?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".
    \[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*)(?:\.(?:(?:
    \r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\[
    "()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])
    *))*@(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])
    +|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\
    .(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z
    |(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*))*\>(?:(
    ?:\r\n)?[ \t])*))*)?;\s*)

  • How to Validate this String

    Hi All,
    I want to validate this strange String. I am not very good in REGEX, can anyone help me here.
    The String is like this
    AnyText [link=XXX][link]
    WHere [link=XXX][link] block could be multiple times, XXX must be any number, and it could contain any text after link blocks.
    Any help is highly appreciated.
    Thanks

    This is what I came up with
    public class Test20040906
        public static void main(String[] args)
            String regex = "[^\\[]*(\\[link=\\d+\\][^\\[]*\\[/link\\][^\\[]*)+";
            // Should pass
            String target = "Some rubbish [link=123]Hello World[/link] and some [link=123]Hello World 1[/link] further rubbish";
            System.out.println("Matches " + target.matches(regex));     
            // Should fail
            target = "Some rubbish [link=123]Hello World[/link] and some [link=xxxx123]Hello World 1[/link] further rubbish";
            System.out.println("Matches " + target.matches(regex));     
    }1) It does not use the 'reluctant' match used by yawmark.
    2) It does allow for the repeats and markup text requested.
    3) I does not allow '[' to be part of the markup text.
    I think that an extension of yawmark's approach to deal with the markup text is probably the best.

  • How can achieve this (Condition on CHARS at cube or report level)

    HI,
    My report requirement is to display only values where employee Home Dept Not Equal To Worked Department.
    Home Department (CHAR-20) and
    Worked Dept (CHAR-20)
    For that I created a Info Object in Cube (ZINDICATOR).While data load i want to populate this field with ‘X’ (Flag) if Home Dept = Worked Dept and ‘Y’ (Flag) if Home Dept <> Worked Dept.
    So that I can use ZINDICATOR in Query Filter to restrict accordingly..
    When I tried to write an if condition in update/Transfer rules it is giving me error...
    <b>“Formula element is not allowed here”</b>
    How can I achieve my desired results......?

    OK sorry,
    Are you doing this in an individual update rule or in a start routine?
    I suggest start routine. Steps:
    1. Add your derived characteristic into the communication structure of the transfer rules (do not have any update in the transfer rules for it)
    2. In the update rules have a direct mapping for the characteristic.
    3. Create a start routine in the update rule. code should be something like
    FIELD-SYMBOLS: <f_dp> TYPE data_package_structure.
    LOOP AT DATA_PACKAGE ASSIGNING <f_dp> .
      IF <f_dp>-home_dpt eq <f_dp>-work_dpt.
         <f_dp>-/bic/zindicator = 'X'.
      ELSE.
         <f_dp>-/bic/zindicator = 'Y'.
      ENDIF.
    ENDLOOP.
    You will need to replace the work_dpt and home_dpt etc. bits with the names of your characteristics.
    Regards
    Peter

  • How to Join this condition

    Hi, I have a query regarding joins
    I have two tables named Master_table and Child_table. suppose assume that tables look like this
    Master_table
    ID name .. ..
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    100
    Child_table
    ID Date .. ..
    101
    102
    103
    104
    105
    1
    2
    3
    4
    109
    200
    I have some conditions and wrote a single query using views and joins and got some rows from Master table
    and also from child table. suppose assume I queried 50 results from Master table and 40 from child table
    now
    condition 1:
    I have to get the same ID's common data from both the tables so I wrote query as shown below
    to get that data I used this join condition master.ID = child.ID this works fine and returning the result ID
    as 1,2,3,4 that's fine
    conditon 2:
    Now I have to write the query that it shouldn't return the above ID's i.e 1,2,3,4 and return the remaining 46 IDs present in the
    master table query resultset (Actually our master table query returned 50 ID's)
    now my join condition is as shown below
    master.ID = child.ID(+) but it is returning 50 IDs I want only those 46 except those above 4 IDs.
    can any one help me out
    Thanks
    basu

    Thanks for your response
    I will be more clear regarding this query. Assume my Master table and child table have 100 rows each. No I used views and some conditions
    and get 50 results from my Master table view and 40 results from my Child table view .Now in those 50 and 40 I have common date assume 4 rows. Now I want to eliminate those 4 (not 40 rows in child table) rows from the 50(result set of master table)rows and get the remaining rows.

  • PR00 : How to implement this condition type ?

    Hi,
    Please can you give me the steps to implement a Condition Type (condition that we use in Tcode VK11)
    Example of  condition : PR00 (price)
    Please help.
    Regards.

    Transaction Code: VK11 is to maintain Condition Records. Condition record can be maintained for all condition type, except Header and manual condition types.
    Write-up on Pricing procedure configuration:
    Determination of Pricing Procedure:
    In SD, Pricing Procedure is determined (T.Code: OVKK) based on Sales Area (Sales Organization + Distribution Centre + Division) + Customer Pricing Procedure + Document Pricing Procedure. Sales Area is determined in Sales Order Header Level. Customer Pricing Procedure is determined from Customer Master. Document Pricing Procedure is determined from Sales Document Type / Billing Type (if configured). Once the pricing procedure is determined, Condition records are fetched. If appropriate condition records are found, the price is determined. If Mandatory pricing condition is missing, system will through an error message.
    Configuration of Pricing Procedure:
    In SD, the steps to configure Pricing procedure are as under:
    Step 1:
    Condition table (T.Code: V/04): If existing condition table meets the requirement, we need not create a new condition table. Considering the requirement for new condition table, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Condition Table (select the required fields combination, which will store condition record).
    Step 2:
    Access Sequence (T.Code: V/07): If existing access sequence meets the requirement, we need not create a new access sequence. Considering the requirement for new sequence, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Access Sequence (Access sequence is made up of Accesses (Tables) & the order of priority in which it is to be accessed. Here we assign the condition table to access sequence.
    Step 3:
    Condition Type (T.Code: V/06): If existing condition type meets the requirement, we need not create a new condition type. Considering the requirement for new condition type, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Condition Type. It is always recommended to copy an existing similar condition type & make the neccessary changes. Here we assign Access sequence to Condition type.
    Step 4:
    a. Pricing Procedure (T.Code: V/08):  It is recommended to copy a similar pricing procedure & make the neccesary changes in new pricing procedure. Pricing Procedure is a set of condition type & arranged in the sequence in which it has to perform the calculation. Considering the requirement for new Pricing Procedure, the configuration will be done in spro as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Pricing Procedure --> Maintain Pricing Procedure.
    b. Pricing Procedure (T.Code: VOK0): After maintaining the pricing procedure the next step will be determination of pricing procedure. Configuration for determining pricing procedure in SPRO is as follows: IMG --> Sales & Distribution --> Basic Function --> Pricing Control --> Pricing Procedure --> Determine Pricing Procedure.
    5. Condition record (T.Code: VK11 / VK12): Condition record is a master data, which is required to be maintained by Core team / person responsible from the client. During new implementation, the condition records can be uploaded using tools like SCAT, LSMW, etc. Condition Record is maintained in T.Code: VK11 / VK12, which are captured in Sales Order & Billing.
    Also check document pricing procedure in Sales Document Type (T.Code: VOV8 - Sales order Type, VOFA: Billing Type (If Required)), customer pricing procedure in Customer Master Data (T.Code: XD02), ... are in place.
    Regards,
    Rajesh Banka

  • To Validate a condition in program

    Hi,
    I have to put a condition in custom program that ~
    For a plant in the selection screen field which is does not lie in the table for T001K for company code u20181000u2019 and in the table T001W for the Node Type entered on the selection screen field there  should be a error message that  'For company code 1000 only Chilled DSD plants with a node type of DSD should be enteredu201D.
    How to validate this condition in my Program by code.
    Please suggest.
    Thanks

    Hi
    In Initialization,
    1.Get data from table T001K and T001W into 2 different internal tables based on Company code and sort them by key values.
    Now in Selection-screen Validations: You can read these 2 internal tables and accordingly issue the error message.
    Regards
    Raj

  • How to validate editbox item

    hi everybody...
    i have  a form with eidt box(uid 23) i want to check whether entered value is numeric or alphanumeric or alpha....
    i want to make it fix so that i should be able to enter only numeric values.....
    how to check this condition????

    Shenaz,
    This thread looks to be a repeat of this thread ...
    Re: how to validate editbox item
    Please only post your question once.
    Eddy

  • How to validate numbers in char field.

    Hello all,
    I have one database column with char data type. This field should allow insert only
    numbers [ zero to nine] and plus symbol .. how to validate this?
    Pls help me..
    I.m using oracle 9i database. So it does not allow REG-EXP and WITH methods.. So give some
    sql coding to do this

    As this forum is for issues with the SQL Developer tool, you'll probably get more answers in the SQL And PL/SQL forum.
    Regards,
    K.

  • How to validate the input field

    Hi,
    I have a input form which is draged from input port of a RFC.
    in this input form i have two input fields nad submit button.
    on of this input field should always take the character values only. it should not take any numeric value
    and other input field should always take numeric value only.
    i.e how to validate this two input fields.
    regards
    srinivas

    Hi,
    U can validate input fields using javascript.Write OnClientClick function for that submit button if ur using htmlb or onClick if u r using html.Refer the follows
    http://help.sap.com/saphelp_nw70/helpdata/en/03/900e41a346ef6fe10000000a1550b0/frameset.htm
    There are two ways to achieve ur task.
    1.By checking for all alphabets.in this u need check all the alphabetic characters one by one.Refer the following
    http://www.shiningstar.net/articles/articles/javascript/javascriptvalidations.asp?ID=ROLLA
    http://www.shiningstar.net/articles/articles/javascript/checkNumeric.asp?ID=AW
    2.By using regular expressions.its very easy and a single line code.here u need to specify single expression for whole alphabets.Refer this
    http://aspzone.com/blogs/john/articles/173.aspx
    Everything has been given for validating in javascript.i hope u also validating in javascript only.
    For more details on "Regular expressions" search google.
    Regards,
    Tamil K

  • How to validate selection-screen field

    Hi all,
      How to validate a selection-screen field defined as a select-options.for Ex i declared a selection-screen field select-options:s_matnr for mara-matnr.
       Then how to validate this field.

    Hi,
    write the below code in AT SELECTION-SCREN.
    EX :
    AT SELECTION-SCREEN.
    *-- Validate the Selection screen data
      PERFORM VALIDATE_SELSCR_DATA.
    WRITE THE below code in Form "VALIDATE_SELSCR_DATA".
    IF  S_MATNR[] IS INITIAL.
    *--MATNR is initial.
       message e000(MsgCLass) with 'matnr is empty'.
    ELSE.
        SELECT MATNR
               INTO MARA-MATNR
               FROM MCHA
               UP TO 1 ROWS
               WHERE MATNR IN S_MATNR.
        ENDSELECT.
        IF SY-SUBRC <> 0.
          MESSAGE E000 WITH 'Invalid MATNR entered'.
        ENDIF.
      ENDIF.

  • Please help me on how to pass date condition Dynamically.

    Hi Experts,
    I have the following control table.
    ID S_OWNER  SOURCE_TABLE     A_OWNER    ARC_TABLE             CONDITION_COLUMN     PERIOD_VALUE   PERIOD_UNIT
    1    wedb     Auction_table    wedb     Arc_Auction_table     Auction_date            15               Days
    1    wedb     Sales_table      wedb     ArcSales_table             Sales_date            180              Days
    1    hr       Accounts_table   hr       Arc_Accounts_table     Account_date             2             Years
    2    concor   Concur_table     con      Arc_Concur_table        Last_update_date        4               MonthsLike this 1000 entries are there in the control_table.
    I want to pass all the columns from my control table dynamically.
    I am able to pass all the columns dynamically,except the PERIOD_VALUE.
    I have stucked up how to implement this condition.
    My aim is to get the data which is <= sysdate-PERIOD_VALUES based on PERIOD_UNIT.
    For Example:
    For Auction_date column I want to get the data which 15 days old.
    For Sales_date column I want to get the data which 180 days old.
    For Account_date column I want to get the data which 2 yers old.
    For Last_update_date column I want to get the data which 4 months old.
    The conditions something like this.
    condition_column<=(sysdate-15 days)
    condition_column<=(sysdate-180 days)
    condition_column<=(sysdate-2 years)
    condition_column<=(sysdate-4 months)This is my procedure.
    CREATE OR REPLACE PROCEDURE WEDB.procedure_control(
       P_ID IN NUMBER)
    IS
       CURSOR C
       IS
            SELECT ID,S_OWNER,SOURCE_TABLE,A_OWNER,ARC_TABLE,CONDITION_COLUMN,PERIOD_VALUE,PERIOD_UNIT
              FROM wedb.CONTROL
             WHERE ID = p_id
          ORDER BY ID, SOURCE_TABLE;
          rec C%ROWTYPE;
    BEGIN
       FOR I IN C
       LOOP
        EXECUTE IMMEDIATE
                   'INSERT INTO '
                || rec.A_OWNER
                || '.'
                || rec.ARC_TABLE
                || '(SELECT * FROM '
                || rec.S_OWNER
                || '.'
                || rec.SOURCE_TABLE
                || ' WHERE '
                || rec.CONDITION_COLUMN
                || '<=I want to pass dynamic condition'
                || ')';
             EXECUTE IMMEDIATE
                   'DELETE FROM '
                || rec.S_OWNER
                || '.'
                || rec.SOURCE_TABLE
                || ' WHERE '
                || rec.CONDITION_COLUMN
                || '<= I want to pass dynamic condition'
                || '';
          COMMIT;
       END LOOP;
    EXCEPTION
       WHEN OTHERS
       THEN
          ROLLBACK;
          DBMS_OUTPUT.PUT_LINE (
             'An error was encountered - ' || SQLCODE || ' -ERROR- ' || SQLERRM);
    END procedure_control;
    /Please help me how to implement this.
    Thanks in advance.

    I have added ||')' paranthasis for each CASE stament to avoiid the error.
    Now I am getting the below error
    ORA-00903: invalid table name
    ORA-06512: at line 42
    I am using below code.
    Please find my below code.
    DECLARE
       stmt   LONG;
       CURSOR C
       IS
            SELECT GROUP_ID,
                   SOURCE_TABLE_OWNER_NAME,
                   SOURCE_TABLE_NAME,
                   ARCHIVE_TABLE_OWNER_NAME,
                   ARCHIVE_TABLE_NAME,
                   CONDITION_COLUMN_NAME,
                   RETENTION_VALUE,
                   RETENTION_UNIT,
                   FLAG
              FROM APPS_GLOBAL.control_table1
             WHERE GROUP_ID = 1
          ORDER BY GROUP_ID, source_table_name;
       rec    c%ROWTYPE;
    BEGIN
       FOR rec IN C
       LOOP
    stmt := 'INSERT INTO '
             || rec.ARCHIVE_TABLE_OWNER_NAME
             || '.'
             || rec.ARCHIVE_TABLE_NAME
             || '(SELECT * FROM '
             || rec.SOURCE_TABLE_OWNER_NAME
             || '.'
             || rec.SOURCE_TABLE_NAME
             || ' WHERE '
             || rec.CONDITION_COLUMN_NAME
             || '<=';
    CASE LOWER (rec.RETENTION_UNIT)
        WHEN 'd'
        THEN
         stmt:= stmt||'sysdate -'||rec.RETENTION_VALUE||')';
         ELSE
         stmt := stmt||'add_months(sysdate,'|| rec.RETENTION_VALUE||'*-12)'||')';
    END CASE;
    execute immediate stmt;
       END LOOP;
       COMMIT;
    END;
    /The values for the field RETENTION_UNIT in my control_table1 are D and Y.
    Before making the date comparison condition it was working fine.
    If I made it as dynamic why I am getting the error.
    If I use condition as below it's working fine.
    EXECUTE IMMEDIATE
                   'INSERT INTO '
                || I.ARCHIVE_TABLE_OWNER_NAME
                || '.'
                || I.ARCHIVE_TABLE_NAME
                || '(SELECT * FROM '
                || I.SOURCE_TABLE_OWNER_NAME
                || '.'
                || I.SOURCE_TABLE_NAME
                || ' WHERE '
                || I.CONDITION_COLUMN_NAME
                || '<=ADD_MONTHS(SYSDATE,-24)'
                || ')';Please help me .
    Thanks.

Maybe you are looking for

  • Spool List from MRP RUN

    hi, After i run MRP for a Plant , in the spool list i get a list of materials for which MRP has run. There is another coulmn with heading Selection group, under which nos 1 to 8 are listed. against each material some nos are displayed. I am attaching

  • Automatic Creation of Project (PS) from SO (SD)

    Hi All, I know that you can automatically create a Project in PS upon creation of a Sales Order. My question is if it is possible to limit the creation only at a WBS Element Level. The scenario is that the Project we're actually implementing is a Sub

  • Single migo for multiple vendors and multiple material

    Dear MM Experts, I have 2 open purchase orders as per below PO no 01 :- Material : A , Vendor : X PO no 02 :- Material : B , Vendor : Y Can we make the single goods receipt for both purchase orders even having different vendor and material. If yes th

  • ITunes 7.1 Causes Computer to Crash During Games

    When running iTunes 7.1 along with games in order to play my own music in the background (specifically Elder Scrolls IV: Oblivion but presumably any game with significant usage of EAX or 3D sound hardware capabilities), my sound card's output becomes

  • How to set the HOME link from two frame jsp page to no frame main page?

    Hi all, i have one main jsp page named as main.jsp. From the main.jsp, i can click the button and link to the twoFrame.jsp. This twoFrame.jsp have another two different jsp inside the frame called Aframe.jsp and Bframe.jsp. i try to put HOME in the A