Activate or deactivate a condition based on Input Variable

Hi,
Is it possible to Activate/De activate a condition based on Input variable, if yes can any one tell me how this could be done...

Hi... Is there any other round about way other than using a User exit????
Basically this is what I am looking for
Quest to User: Y/N
if "Y" then Activate the condition and suppress the records based on the condition
If "N" then do not activate the condition and publish all the records...
Any thoughts....

Similar Messages

  • Activate or deactivate a condition based on Input Variable - Bex

    Hi,
    Is it possible to Activate/De activate a conditiion based on an Input Variable in Bex Analyzer? If yes, can some one let me know how this could be done

    Hi... Is there any other round about way other than using a User exit????
    Basically this is what I am looking for
    Quest to User: Y/N
    if "Y" then Activate the condition and suppress the records based on the condition
    If "N" then do not activate the condition and publish all the records...
    Any thoughts....

  • Condition based on Input value by parameter

    Hi experts,
    I  am looking for a solution in crystal reports  in conjustion to BI . I m using Bex query directly for this report rathing creating an universe.
    I am trying to create a RKF based on parameter value by user's input.
    For example : - user input a date FROM-TO and than I am filtering minimum and maximum value . Based on these 2 values I have to restrict a KF Sales amount.
    Whenever I try to do like this in formula I get this error. Can someone help me in that please ?
    if  ({ZCRETA_ZZCRETA_Q_001_TEST.[ZCALMTH]} <= {@Min}) then {ZCRETA_ZZCRETA_Q_001_TEST.[Measures]-[D6T7LZ8YG3KSRHCE821ZX1WVY]}
    I also tried while do as well but did not work.Bascially I am trying to do something like this
    If Calmonth <= Min ( already filtered by me from parameter's value ) than display sales amount.
    As per this logic I should be able to see all the sales amount wherver Calmonth is less than of equal to minimum value of Calmonth.
    Thanks in Advance,

    Hi, your statement is looking at a formula, not a parameter
    f ({ZCRETA_ZZCRETA_Q_001_TEST.ZCALMTH} <= {@Min}) then {ZCRETA_ZZCRETA_Q_001_TEST.Measures-D6T7LZ8YG3KSRHCE821ZX1WVY}
    If it was a parameter it should look like this
    if ({ZCRETA_ZZCRETA_Q_001_TEST.ZCALMTH} <= {?Min}) then {ZCRETA_ZZCRETA_Q_001_TEST.Measures-D6T7LZ8YG3KSRHCE821ZX1WVY}
    you may also need to add the else.

  • Passing the column name on Where condition based on input parameter

    Hi,
    I am using Oracle10g. Following are my table schema.
    Table Name : Codes
    Columns( ID, Level0, Level1,Level2)
    View Name : SampleView
    I have a scenario : A parameter will be passed to my view from C# application. I need to cut the last 4 places of the parameter and need to check 4 conditions as follows :
    1. IF last 4 places of parameter contains the value as "AMPD" then pass level0 column on where condition.
    Sample code : A123XPAMPD
    Expeted Result: Select * from Codes where Level0 ='A123XPAMPD'
    2. IF last 4 places of parameter contains the value as "Alpha numeric" then pass level1 column on where condition.
    Sample code : A123XPAA00
    Expeted Result: Select * from Codes where Level1 ='A123XPAA00'
    3. IF last 4 places of parameter contains the value as 0000 then pass level1 column on where condition.
    Sample code : A123XP0000
    Expeted Result: Select * from Codes where Level1 ='A123XP0000'
    4. IF last 4 places of parameter contains the value as (cannot be all 0's) and cannot contain "Alphabets" then pass level2 column on where condition.
    Sample code : A123XP1001
    Expeted Result: Select * from Codes where Level2 ='A123XP1001'
    Could any one please help me on writing this logic inside the view.
    Thanks in advance.

    Do you want to make sure that at least one alphabet and one number is there?
    select case
         when regexp_like('1111','^[a-zA-Z]+$') -"This says - Only alphabets, not even space
              THEN 'Alphabets'
         when regexp_like('1111','^[a-zA-Z0-9]*$') --"This says - Only alpha-numeric, not even space
          and regexp_like('1111','[a-zA-Z]') --"To make sure atleast one alphabet is there
          and regexp_like('1111','[0-9]') --"To make sure atleast one number is there
              THEN 'AlphaNumeric'
           else 'NULL' --"This is a string. Not actual NULL
          end
    from dual;
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to activate or deactivate a user-exit based a specific condition

    hi all,
    i want to activate or deactivate(make it trigger) a particular user-exit based in a condition.
    can i do that. if yes please tell me how.
    can we use COMMIT in user-exits or BADI's.
    Thanks & Regards,
    Saroja.

    Hello Saroja
    The solution provided by Rich should be used for testing purposes only in the the reverted sense:
    IF ( syst-uname ne '<specific user>' ).
      RETURN.
    ENDIF.
    " Execute user-exit for specific user
    However, for serious programming you should use a a better strategy. In principle, user-exits are either ON or OFF and, if they are ON, they are ON for <b>all </b>user which is usually not intended.
    The following example shows a (possible) strategy how to execute user-exits based on specific conditions.
    The SAP extension CATS0001 contains the component EXIT_SAPLCATS_001 with the following interface:
    FUNCTION EXIT_SAPLCATS_001.
    *"*"Lokale Schnittstelle:
    *"  IMPORTING
    *"     VALUE(SAP_TCATS) LIKE  TCATS STRUCTURE  TCATS
    *"     VALUE(SAP_PERNR) LIKE  CATSFIELDS-PERNR
    *"     VALUE(SAP_DATELEFT) LIKE  CATSFIELDS-DATELEFT
    *"     VALUE(SAP_DATERIGHT) LIKE  CATSFIELDS-DATERIGHT
    *"     VALUE(SAP_DATEFROM) LIKE  CATSFIELDS-DATEFROM OPTIONAL
    *"     VALUE(SAP_DATETO) LIKE  CATSFIELDS-DATETO OPTIONAL
    *"  TABLES
    *"      SAP_ICATSW STRUCTURE  CATSW
    *"      SAP_ICATSW_FIX STRUCTURE  CATSW OPTIONAL
      INCLUDE ZXCATU01.
    ENDFUNCTION.
    The include ZXCATU01 contains only the following coding:
      CALL FUNCTION 'Z_EXIT_SAPLCATS_001'
        EXPORTING
          sap_tcats            = sap_tcats
          sap_pernr            = sap_pernr
          sap_dateleft         = sap_dateleft
          sap_dateright        = sap_dateright
          SAP_DATEFROM         = SAP_DATEFROM
          SAP_DATETO           = SAP_DATETO
        tables
          sap_icatsw           = sap_icatsw
          SAP_ICATSW_FIX       = SAP_ICATSW_FIX.
    This function module is just a copy of the exit function module in the customer namespace.
    Let us assume that your condition at which the user-exit should be executed is that the employee (SAP_PERNR) belongs to a specific controlling area. Thus, we make another copy of the original exit function module and call this fm within the "general" customer-specific exit function module:
    FUNCTION z_exit_saplcats_001.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(SAP_TCATS) LIKE  TCATS STRUCTURE  TCATS
    *"     VALUE(SAP_PERNR) LIKE  CATSFIELDS-PERNR
    *"     VALUE(SAP_DATELEFT) LIKE  CATSFIELDS-DATELEFT
    *"     VALUE(SAP_DATERIGHT) LIKE  CATSFIELDS-DATERIGHT
    *"     VALUE(SAP_DATEFROM) LIKE  CATSFIELDS-DATEFROM OPTIONAL
    *"     VALUE(SAP_DATETO) LIKE  CATSFIELDS-DATETO OPTIONAL
    *"  TABLES
    *"      SAP_ICATSW STRUCTURE  CATSW
    *"      SAP_ICATSW_FIX STRUCTURE  CATSW OPTIONAL
    " User-Exit specific for employees (SAP_PERNR)
    " belonging to controlling area 1000
      CALL FUNCTION 'Z_EXIT_SAPLCATS_001_1000'
        EXPORTING
          sap_tcats      = sap_tcats
          sap_pernr      = sap_pernr
          sap_dateleft   = sap_dateleft
          sap_dateright  = sap_dateright
          sap_datefrom   = sap_datefrom
          sap_dateto     = sap_dateto
        TABLES
          sap_icatsw     = sap_icatsw
          sap_icatsw_fix = sap_icatsw_fix.
    " User-Exit specific for employees (SAP_PERNR)
    " belonging to controlling area 2000
      CALL FUNCTION 'Z_EXIT_SAPLCATS_001_2000'
        EXPORTING
          sap_tcats      = sap_tcats
          sap_pernr      = sap_pernr
          sap_dateleft   = sap_dateleft
          sap_dateright  = sap_dateright
          sap_datefrom   = sap_datefrom
          sap_dateto     = sap_dateto
        TABLES
          sap_icatsw     = sap_icatsw
          sap_icatsw_fix = sap_icatsw_fix.
    ENDFUNCTION.
    Finally, within the specific exit function module we define the condition when the exit should be executed:
    FUNCTION z_exit_saplcats_001_1000.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(SAP_TCATS) LIKE  TCATS STRUCTURE  TCATS
    *"     VALUE(SAP_PERNR) LIKE  CATSFIELDS-PERNR
    *"     VALUE(SAP_DATELEFT) LIKE  CATSFIELDS-DATELEFT
    *"     VALUE(SAP_DATERIGHT) LIKE  CATSFIELDS-DATERIGHT
    *"     VALUE(SAP_DATEFROM) LIKE  CATSFIELDS-DATEFROM OPTIONAL
    *"     VALUE(SAP_DATETO) LIKE  CATSFIELDS-DATETO OPTIONAL
    *"  TABLES
    *"      SAP_ICATSW STRUCTURE  CATSW
    *"      SAP_ICATSW_FIX STRUCTURE  CATSW OPTIONAL
      IF ( <user BELONGS to CONTROLLING area 1000> ).
        "   execute user-exit
      ELSE.
        RETURN.
      ENDIF.
    ENDFUNCTION.
    The alternative would be to place the entire coding including the conditions in the include ZXCATU01. However, in this case you can test the user exit <b>only in the context of the transaction</b> in which the user-exit is passed.
    Using the strategy I have devised you are able to test the user-exit in general and the specific user-exits <b>independent </b>of the transaction. For example, if you are already working on 6.40 or higher then you could use ABAP Unit Testing for this purpose.
    The same logic can be applied for BAdI where we can have only a single active implementation.
    Finally, I hope to convince that it makes sense to spend some time into a reasonable strategy for implementing user-exits.
    Regards
      Uwe

  • Writing in to multiple sheets in Excel file based on input condition

    Hi All Experts,
    i need to write in to multiple sheets in one Excel file output.
    is it possible with UTL_FILE ? or Any options there in Oracle to do this ?
    Can anyone please suggest me on this.
    Thanks,
    Ravi

    I have seen all of them they are all just simple SQL pulls from database in to Excel file..No, definitely not
    My requirement is i need to write in to one single Excel file with MULTIPLE sheets based on input condition-> [xml_spreadsheet|http://matzberger.de/oracle/spreadsheet-en.html]
    so for each parameter need to write into separate sheet in one Excel File..-> [xml_spreadsheet|http://matzberger.de/oracle/spreadsheet-en.html]
    I hope you understand my problem atleast now...I think I understood your problem at first sight.
    If you simply want to throw 2 queries at the package and get back an Excel file with 2 worksheets you just have to look at the first page of the [tutorial |http://matzberger.de/oracle/spreadsheet-tut-en.html]. Half way down the page there's an example.
    If you want a special formatting then you can do this too, it's described step by step.
    Regards
    Marcus

  • How to activate or deactivate screen painters element through program?

    i am using module pool programming ,
    i want to activate or deactivate the screen painters elements  through programming how i can do it?

    Hi,
    You can perform active and deactive the fileds in the selection screen using AT SELECTION-SCREEN OUTPUT event. Loop the screen table and modify the content of a screen field inside the loop based on requirements.
    Check this code.
    selection-screen begin of block b1 with frame.
    parameters: p_g1 radiobutton group gp1 default 'X' user-command chk,
    p_g2 radiobutton group gp1.
    selection-screen end of block b1.
    selection-screen begin of block b2 with frame.
    parameters: p_gltrp type afko-gltrp modif id g1.
    parameters: p_werks type aufk-werks modif id g1.
    parameters: p_datum type afko-gltrp modif id g2.
    parameters: p_uzeit type aufk-werks modif id g2.
    selection-screen end of block b2.
    at selection-screen output.
    loop at screen.
    if p_g1 = 'X' and screen-group1 = 'G2'.
    screen-active = 0.
    modify screen.
    endif.
    if p_g2 = 'X' and screen-group1 = 'G1'.
    screen-active = 0.
    modify screen.
    endif.
    endloop.
    Also try the below code to get some idea
    report zsample.
    TABLES:lfm1.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS: s_lifnr FOR lfm1-lifnr .
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS:
    r_asn RADIOBUTTON GROUP rad1 USER-COMMAND uc1 DEFAULT 'X',
    r_ers RADIOBUTTON GROUP rad1 ,
    r_830 RADIOBUTTON GROUP rad1,
    r_850 RADIOBUTTON GROUP rad1,
    r_862 RADIOBUTTON GROUP rad1,
    r_810 RADIOBUTTON GROUP rad1,
    r_820 RADIOBUTTON GROUP rad1,
    r_824 RADIOBUTTON GROUP rad1.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    SELECT-OPTIONS: s_bstae FOR lfm1-bstae MODIF ID sd1.
    PARAMETERS:
    p_ekorg TYPE lfm1-ekorg MODIF ID md1,
    p_evcode TYPE edp21-evcode MODIF ID md2,
    p_kappl TYPE nach-kappl MODIF ID md3,
    p_parvw TYPE nach-parvw MODIF ID md4,
    p_kschl TYPE nach-kschl MODIF ID md5,
    p_vakey TYPE nach-vakey MODIF ID md6,
    p_werks TYPE werks_d MODIF ID md7,
    p_bukrs TYPE lfb1-bukrs MODIF ID md8.
    SELECTION-SCREEN END OF BLOCK b3.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF r_asn EQ 'X'
    AND ( screen-group1 = 'MD3' OR screen-group1 = 'MD4'
    OR screen-group1 = 'MD5' OR screen-group1 = 'MD6'
    OR screen-group1 = 'MD7' OR screen-group1 = 'MD8' ) .
    screen-active = '0'.
    screen-invisible = '1'.
    screen-input = '0'.
    screen-output = '0'.
    ELSEIF r_ers EQ 'X'
    AND ( screen-group1 = 'SD1' OR screen-group1 = 'MD1'
    OR screen-group1 = 'MD2' OR screen-group1 = 'MD3'
    OR screen-group1 = 'MD4' OR screen-group1 = 'MD5'
    OR screen-group1 = 'MD6' OR screen-group1 = 'MD7'
    OR screen-group1 = 'MD8' ) .
    screen-active = '0'.
    screen-invisible = '1'.
    screen-input = '0'.
    screen-output = '0'.
    ELSEIF r_830 EQ 'X'
    AND ( screen-group1 = 'SD1' OR screen-group1 = 'MD1'
    OR screen-group1 = 'MD2' OR screen-group1 = 'MD6'
    OR screen-group1 = 'MD7' OR screen-group1 = 'MD8' ) .
    screen-active = '0'.
    screen-invisible = '1'.
    screen-input = '0'.
    screen-output = '0'.
    ELSEIF r_850 EQ 'X'
    AND ( screen-group1 = 'SD1' OR screen-group1 = 'MD1'
    OR screen-group1 = 'MD2' OR screen-group1 = 'MD6'
    OR screen-group1 = 'MD7' OR screen-group1 = 'MD8' ) .
    screen-active = '0'.
    screen-invisible = '1'.
    screen-input = '0'.
    screen-output = '0'.
    ELSEIF r_862 EQ 'X'
    AND ( screen-group1 = 'SD1' OR screen-group1 = 'MD1'
    OR screen-group1 = 'MD2' OR screen-group1 = 'MD8' ) .
    screen-active = '0'.
    screen-invisible = '1'.
    screen-input = '0'.
    screen-output = '0'.
    ELSEIF r_810 EQ 'X'
    AND ( screen-group1 = 'MD3' OR screen-group1 = 'MD4'
    OR screen-group1 = 'MD5' OR screen-group1 = 'MD6'
    OR screen-group1 = 'MD7' OR screen-group1 = 'MD8' ) .
    screen-active = '0'.
    screen-invisible = '1'.
    screen-input = '0'.
    screen-output = '0'.
    ELSEIF r_820 EQ 'X'
    AND ( screen-group1 = 'SD1' OR screen-group1 = 'MD1'
    OR screen-group1 = 'MD2' OR screen-group1 = 'MD3'
    OR screen-group1 = 'MD4' OR screen-group1 = 'MD5'
    OR screen-group1 = 'MD6' OR screen-group1 = 'MD7' ).
    screen-active = '0'.
    screen-invisible = '1'.
    screen-input = '0'.
    screen-output = '0'.
    ELSEIF r_824 EQ 'X'
    AND ( screen-group1 = 'SD1' OR screen-group1 = 'MD1'
    OR screen-group1 = 'MD2' OR screen-group1 = 'MD3'
    OR screen-group1 = 'MD4' OR screen-group1 = 'MD5'
    OR screen-group1 = 'MD6' OR screen-group1 = 'MD7'
    OR screen-group1 = 'MD8' ) .
    screen-active = '0'.
    screen-invisible = '1'.
    screen-input = '0'.
    screen-output = '0'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    Regards,
    Chandru

  • How to hide columns in the output table in webdynpro based on input

    Hi Experts,
       I have 2 inputs and 1 input is optional.If both inputs are given proper table output is displayed,but if only 1 input is given a column is empty in the output table  so i want to hide this column dynamically at runtime based on my inputs.And i want to hide some empty rows also at runtime based on inputs.
    Can anyone help me out to solve this.
    Thanks in advance.
    Regards,
    Anita.

    Hi Anitha,
    What i understood from your question is,you want to control the table from your inputs.I have a one question for you what do you want to show defaultly i.e when you run the application what you want to show,either no table or table with some values.
    Any how i am giving solution in this way.
    If both inputs are given proper table output is displayed
    Write your below logic in the WDDOMODIFYVIEW )
    Here i am assuming that you already have a table element in the view.
    Get the values entered in the input fields and compare those 2 values ,if the condition is satisfied then bind the values which you want to show in the table to the context node.
    but if only 1 input is given a column is empty in the output table so i want to hide this column dynamically at runtime based on my inputs
    You are telling that you know the empty column.If so get the view element reference and use the REMOVE_COLUMN to remove the column.
    data:lr_table type ref to cl_wd_table,
           lr_column type ref to L_WD_TABLE_COLUMN.
    lr_table ?= view->get_element( 'TABLE1' ).
    CALL METHOD LR_TABLE->REMOVE_COLUMN
        EXPORTING
          ID          = 'TABLE1_color'
         INDEX      =
        RECEIVING
          THE_COLUMN = lr_column.
    i want to hide some empty rows also at runtime based on inputs.
    Removing the rows is very simple.if you know the key fields data of internal table from your input fields then do in this way.
    delete itab from wa where key1= "12" and key2="abd".
    Now bind the internal table to context node.
    LO_ND_hcm->BIND_TABLE(
          NEW_ITEMS            = it_final
          SET_INITIAL_ELEMENTS = ABAP_TRUE ).

  • How to activate and deactivate the text fields in subscreens

    Hi  All,
    I have one requirement to activate and deactivate the fields in Sub screen.
    The requirement is initially the all screen fields are output field with some value .Suppose user want to edit the value, they choose the check box then automatically the sub screen fields are changed to input modeu2026
    How to validate these settings in the sub screens..
    Thanks & Regards,
    Samantula

    Hi,
      if it is report then use the both at-selection screen.
    if it is in dialog program  AT SELECTION-SCREEN OUTPUT instead of PBO and AT SELECTION-SCREEN instead of PAI
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF p_chk <> 'X' AND screen-name = 'FLATFILE'.
          screen-required = 0.
          screen-input = 0.
           MODIFY SCREEN.
         ENDIF.
    AT SELECTION-SCREEN.
      LOOP AT SCREEN.
        IF p_chk <> 'X' AND screen-name = 'FLATFILE'.
          screen-required = 0.
          screen-input = 0.
           MODIFY SCREEN.
        ELSEIF p_chk = 'X' AND screen-name = 'FLATFILE'.
           screen-input = 1.
           MODIFY SCREEN.
        ENDIF.
    Thanks & Regards,
    Vallamuthu.M

  • Condition based maintenance

    Hi Gurus,
    As per my business needs
    Measuring document needs to be updated automatically from proleit (Another system) by IDOC-Pls let me know from our PM end what we have to do?
    Condition based maintenance (As per proleit system measuring document would be updated and determine the condition for automatic notification creation)-Pls suggest how to map the both scenario. if possible pls send the relative documents

    Hi,
         You will have to activate User exit IMRC001  -This gets triggered when measuring document is posted via IK11
    You will have to create a measureing point for the eqpt ..
    In the above user exit you can find sample code which would be helpful
    In config spro ->pm - basic settings -->measuring points & counters  ->Define Measuring point categories, here for a category mention the Tolerance period , if there is any ..
    regards
    giri

  • Populate a variable based on input (Customer Request Ship date)

    Hi Gurus,
    I have a requirement to code on a custom variables.
    Created two Customer Exit Variables:  "ZCRD" AND "ZFYPRD."
    Variable one - "ZCRD" - customer requested ship date.  ( input) variable.
    Populate a variable - "ZFYPRD" based on users input - "ZCRD."
    Please provide me if function module exist / how to code a new FM and code to populate the value on variable ZYPRD.
    For Instance:
    if user's input is "ZCRD = 05/30/08".
    Populate the value in the variable (custom) "zfyprd" = 005/2008.
    How would I code in ABAP If this is the condition.
    Please help.
    Thanks in advance.
    BW

    Hi Ramesh,
    Thank you for the response.  Your input is valuable.  For this requirement its a BPS Planning Layout.
    Do I need a function module to work this code?  The (key date) customer requested ship date (variable) is an input from users through planning area.  If function module requires please give me the code for the function module.
    Users enter = customer requested ship date.
    Variable for this fiscal yr/period should populate/ convert it to the period.
    I used the function module convert it to period.  But which function module is to use to connect it to the variable for customer requested ship date in bps?
    I created a variable (customer exit) for period in the query.  I referred the code given in the document to convert it to period from key date.  But while testing the variable customer requested ship date is coming as initial.  what is it that I am missing here?  Please help
    Thanks in advance,

  • Unable to activate or deactivate the Correlation policy

    After creating a correlation policy with complex conditions, I am unable to activate or deactivate the policy.

    Reason
    This issue occurs when a complex condition is created, and one of the sub conditions is deleted. In the case below, the correlation rule is missing a sub condition that would have been used together with the Rule Message condition, but it has been deleted. The following screenshot shows a similar situation.
    Workaround
    The workaround of this issue is to delete the "indented" broken complex condition, and adding it back to the rule as a regular condition.

  • In BI how to filter the selection options based on inputs on top field

    Hi Friends,
    In BI, How to filter the selection options based on inputs on top field.
    The system should automatically filter the lower level drop downs based on the selection of a higher level.
    For e.g. :
    If a user selects a Country then the States drop down should only display the State's belongs to the Country. Similarly when a State is selected, the District drop down should display only those District's belongs to the State.
    Thanks in Advance.
    Regards
    Jayaram M

    Hi Anil,
    Thanks for reply but I couldn't use Compounding Characteristic here. Need some other solution.
    Regards
    Jayaram M

  • How to create a condition based on a select that retrieve dynamically a LOV

    Hi all, I need to create a condition based on a select that retrieve dynamically a LOV.
    So, the condition have to be:
    inventory_item_id NOT IN (SELECT inventory_item_id FROM apps.mtl_system_items_kfv WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV')
    I need to create a LOV based on this select without making any join with the folder which contains the field inventory_item_id, because otherwise I have the contradiction:
    and o124757.INVENTORY_ITEM_ID = o118741.INVENTORY_ITEM_ID -- join between the main custom folder (o118741) and the LOV custom folder (o124757)
    and o118741.INVENTORY_ITEM_ID NOT IN (o124757.INVENTORY_ITEM_ID) -- condition
    These two condition together don't show any data, obviously....This means also, that I can't use a calculated field, because if I want to see this field, I have to create a join, another time, with the main custom folder.
    I tried to create a LOV on the Administrator, but when I create the condition I have to check manually the values....and if in the future this LOV will increase I need every time to re-check all the values.....instead I need that the inventory_item_id have to be NOT IN dinamically in the list of values retrieved by the select.
    Anybody has inplemented something similar ??
    Thanks in advance
    Alex

    Hi alex,
    SELECT incidents.INVENTORY_ITEM_ID,
    pcodes.PROBLEM_NAME
    FROM apps.cs_incidents_all_b incidents,apps.jtf_rs_problem_codes_v pcodes
    WHERE incidents.category_id IN (SELECT category_id
    FROM mtl_categories_kfv
    WHERE concatenated_segments = 'IPTV')
    AND incidents.PROBLEM_CODE = pcodes.PROBLEM_CODE
    where incidents.INVENTORY_ITEM_ID NOT IN SELECT inventory_item_id
    FROM apps.mtl_system_items_kfv
    WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
    You want to add this condition to the first query it holds good for this scenerio.All the items which are NOT IN will be retrieved.Here you are selecting other than "General_faults_iptv"
    But again your trying to select in the second query where you want "General_faults_iptv"
    SELECT inventory_item_id
    FROM apps.mtl_system_items_kfv
    WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
    If you carefully go through what your doing,you will understand.In the above explantion ,there will be no records generated.First query your saying NOT IN and again your saying for the same IN,how will records retrieve its meaningless.
    I dont know what you want to get from second query.I would suggest you to do is dont use the second query and just use the first query and you will get.Here is the query and this will give you result.
    SELECT incidents.INVENTORY_ITEM_ID,
    pcodes.PROBLEM_NAME
    FROM apps.cs_incidents_all_b incidents,apps.jtf_rs_problem_codes_v pcodes
    WHERE incidents.category_id IN (SELECT category_id
    FROM mtl_categories_kfv
    WHERE concatenated_segments = 'IPTV')
    AND incidents.PROBLEM_CODE = pcodes.PROBLEM_CODE
    AND incidents.INVENTORY_ITEM_ID NOT IN SELECT inventory_item_id
    FROM apps.mtl_system_items_kfv
    WHERE concatenated_segments = 'GENERAL_FAULTS_IPTV'
    Regards,
    Kranthi.

  • Dequeue (using a AQ Adapter) based on a "Variable" condition

    Hi,
    I use an AQ Adapter to dequeue messages from an AQ and send it to an BPEL process. I have setup the adapter for conditional dequeuing as follows:
    My message object has a field called "title" so in my adapter i use the Dequeue condition as below and it works perfectly:
    <jca:operation
    ActivationSpec="oracle.tip.adapter.aq.inbound.AQDequeueActivationSpec"
    QueueName="DETPAYLOAD_QUEUE"
    DatabaseSchema="APPS"
    DequeueCondition="tab.user_data.title='Test Case'"
    OpaqueSchema="false" >
    </jca:operation>
    My question is : Is it possible to configure the adapter based on a Variable in the BPEL process?
    For example: Can i use the DequeueCondition as : DequeueCondition="tab.user_data.title=Process_Variable" (where Process_Variable is a BPEL process variable that has been populated in the previous activity)
    I have tried some of the below ways to get this working but have not been successful so far. Has anyone tried this before?
    - DequeueCondition="tab.user_data.title=(String)getVariableData("Process_Variable")"
    - DequeueCondition="tab.user_data.title=:Process_Variable"
    - DequeueCondition="tab.user_data.title=@Process_Variable"
    Thanks,
    Amol

    That's the way.

Maybe you are looking for

  • Batch input error No batch input data for screen SAPLSPO4 0300 for ABZON

    Hi, I have to process ABZON for posting asset aquisition. BDC when i am running in background is giving me above error. though i have found BAPI BAPI_ASSET_ACQUISITION_POST but this BAPI is not posting into correct GL account for which i have to make

  • How to Set UserId in Http Header for SSO?

    Hello All, I have a requirement to set the userid into the HTTP Header so that i can use the "Header Variables for User Authentication" module provided by SAP to achieve the SSO . Could some 1 let me know how can I achieve this? I know abt the HTTPSe

  • How to do coding to change the file name while loading

    Hi All, Recently we have upgraded to BI 7.0. I am currently loading flat file from Application server. Flat file name will change after a period of month ex. from 17 dec to 16 jan one file name and 17 jan to 16 feb another name. I have a table /bic/p

  • Refresh Window

    Hello, Is it possible to relaunch a jar application or refresh the window if a user fails to enter something in a text field. I can use an error trap but so far all I have created is an endless loop into a JOptionPane which is not good.

  • Arrow in mine PB without duplicate screen?

    Hi, when I make a presentation i do 2 screen: 1.- the principal screen, where the people see the presentation, and in it I can see the arrow-mouse. 2.-the PB G4 screen I see the notes, the clock, and the actual and next slide... OK My question is: I