Modify or restrict the  Value Set attached  to DFF in OAF

How to add where condition programatically to a valueset attached to a DFF
For eg: query in the value set is "(select LINE_NUM,po_header_id,po_line_id from po_lines_all )"
Framework adds a select clause with the column mentioned in the DFF segment on top of this query ,Is there any other way to modify the Value set query?

Thanks for the Reply Saneep,
I have a value set attached to DFF and the dff will appear in PO headers page , Query on value set is
select ood.organization_id,ood.organization_name,ood.operating_unit from org_organization_definitions ood,mtl_parameters mp where ood.organization_id=mp.organization_id) a
I need to add where condition of the query attached to value set,
but framework is provides the below query at run time
select fnd_number.number_to_canonical(a.organization_id) FLEX_ID , a.organization_name FLEX_VALUE , a.organization_name FLEX_DISPLAY from (select ood.organization_id,ood.organization_name,ood.operating_unit from org_organization_definitions ood,mtl_parameters mp where ood.organization_id=mp.organization_id) a where (1 = 1) and 'Y' = 'Y'
Is there any other way to add condition to valueset at run time?

Similar Messages

  • Restrict the values on variables screen

    I've a variable on report screen which I want to restrict the values getting from master data. Variable is a authorization variable type. So I can't set default values. I need to restrict the values for example "00D*".
    At result user should see the master data list values which starts with "00D".
    Cheers,
    Yigit

    SELECT_OPTIONS_RESTRICT is not intended for this, only to restrect the kind of sign and options which are allowed in the select-options, you can restrict to single values, range or disable exclusion, this kind of restriction.
    For your requirement, you have to restrict the dropdown values using FM VRM_SET_VALUES. (use the search tools in [forums|http://forums.sdn.sap.com/search.jspa?objID=c42&q=VRM_SET_VALUES] and [wiki|http://wiki.sdn.sap.com/wiki/dosearchsite.action?searchQuery.queryString=VRM_SET_VALUES&searchQuery.spaceKey=conf_global])
    Regards,
    Raymond

  • How to restrict the values in seach helps

    Dear All,
                   I am new to the BSP concept.I have a requirement
    where in the BSP i need to restrict the values of the search help.i.e. 2 values are coming in the help i need to display only 1 value.
    can anybody please explain how to do it.
    Cheers,
    Deepthee Kasal
    Edited by: Craig Cmehil on Sep 2, 2008 8:21 AM

    Hi,
    I assume that you read values for the search help with function 'F4IF_FIELD_VALUE_REQUEST' and in a later step you display values with <htmlb:tableview>. If that is true and the function is delivering too many records as you mention, you could then restrict the output table of values like this:
    TABLES mara.
    DATA: mytable TYPE TABLE OF ddshretval WITH HEADER LINE.
    DATA l_repid TYPE syrepid.
    PARAMETERS p_mtart LIKE mara-mtart.
    AT SELECTION-SCREEN ON VALUE-REQUEST
    FOR p_mtart.
    l_repid = sy-repid.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    tabname = 'MARA'
    fieldname = 'MTART'
    dynpprog = l_repid
    callback_program = l_repid
    callback_form = 'F4CALLBACK'
    TABLES
    return_tab = mytable
    EXCEPTIONS
    field_not_found = 1
    no_help_for_field = 2
    inconsistent_help = 3
    no_values_found = 4
    OTHERS = 5.
    START-OF-SELECTION.
    blah, blah, blah
    * Form F4_form
    * Exclude all material types that start with F & H
    FORM f4callback
    TABLES record_tab STRUCTURE seahlpres
    CHANGING shlp TYPE shlp_descr
    callcontrol LIKE ddshf4ctrl.
    DATA: aux_struc TYPE ddshselopt.
    MOVE: 'H_T134' to aux_struc-shlpname,
    'MTART' TO aux_struc-shlpfield,
    'E' TO aux_struc-sign,
    'CP' TO aux_struc-option,
    'F*' TO aux_struc-low.
    append aux_struc to SHLP-SELOPT.
    MOVE: 'H_T134' to aux_struc-shlpname,
    'MTART' TO aux_struc-shlpfield,
    'E' TO aux_struc-sign,
    'CP' TO aux_struc-option,
    'H*' TO aux_struc-low.
    append aux_struc to SHLP-SELOPT.
    ENDFORM. "F4_form
    Mark points if helpful

  • CRM R12.0.6  Map Type does not exist in the value set

    Hi Everyone
    When attempting to access Service Request Types in our CRM UAT Release 12.0.6 environment an error message appears referring to 'Value General for the flexfield segment does not exist in the value set'.
    Checked the flexfields for the value set but did not set up a value for MAP_TYPES
    Checked our PROD environment but no value set up as above.
    Currently in progress of mapping service requests to responsibilites in UAT, could this be the cause and how to resolve? No mapping as yet for service requests set up in PROD. Has anyone else experienced this?
    Thanks very much, Louise

    Hi IWolbers,
    >>I have a recurring problem where all of a sudden I can no longer see the values of my variables when I debug my unit tests. I cannot find a pattern as to when this happens but I experience this across one of every 20 tests that I write. Occasionally
    this has also happened during normal debbuging of running code on my machine.
    So you mean that it worked well before, am I right? 
    If you debug the same app in other VS machine, does it work well? So we could make sure that whether it is related to the VS IDE.
    Please disable all add-ins in your VS IDE, and then reset your VS settings, debug it again.
    https://msdn.microsoft.com/en-us/library/ms247075(v=vs.100).aspx
    Or you could run your VS in safe mode, debug it again, at least, we could know that whether it is the add-in's issue.
    https://msdn.microsoft.com/en-us/library/ms241278.aspx
    To make sure that it is not the project files' issue, create a new blank solution, copy the project files to the new solution, clean and rebuild the solution, check the result.
    >>Once I step over this to the next line (screen shot 2) I get the error message 'The name '[variable name]' does not exist in the current context'
    How about debugging it with "Step Into" instead of "Step Over"? Or you could add breakpoints between 234 line to 241 line, after the breakpoint is hit, check the watch window again. How about the result?
    In addition, do you check other debugger window like local or others?
    Best Regards,
    Jack
    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.

  • How to restrict the values during extraction?

    Hi everyone,
    I want to restrict the values while extracting data from R/3 Datasource... For example:
    I have MATNR, which have around 10 materials out of which i want to extract the data for only 5 materials. My Selection screen is disabled, i mean we cant do anything in selection screen... Can anyone plz tell me how to go abt this issue?
    Advance thanks,
    chintu..

    Hi KJ,
    Am saying that its not available in Selection screen in R/3 side.. am not talking abt the BW side.. Then also i want to extract the data.. How to do this? this is an interview question asked by HP today morning..
    Regards,
    Chintu.

  • Restrict the values in the Query Designer

    Hi Guru’s,
    I want to Restrict PLANT or  SALES ORG  values in the Query Designer, in the Query, PLANT has selected in the rows and having variable and SALES ORG is display attribute of the PLANT. In this scenario How can we Restrict the values?
    Thanks in Advance,
    Ravi.

    Hi Ravi,
    You cannot restrict values on the display attributes. Better change it to navigational attribute and check the box as navigational in the cube.
    Regards
    Ram

  • Restricting the values in Drop Down list for ESS application

    Hello Experts,
    We are trying to restrict the values in the drop down list box for payment method field for direct deposit iview.
    Here Payment is the Zlsch field.
    here we are trying to have only 3 vlaues in the drop down. Do I have to do it from java code or can this be restricted on the ECC side?
    Plese let me know.
    Thanks,
    James.

    James,
    What you have to do is create a DropDown ByIndex element instead of by Key and create a context node PaymentMethodNode and a value attribute PaymentAttribute under it ....then write the following code in the wdDoInit() method as :
    //Add whatever values you want in the DropDown
    String[] priority_options= new String[]{"Payroll/Corp/Partner Check","Employee Payroll ACH(PPD)"};
              List ListOfPriorities = new ArrayList();
              for(int i=0;i<priority_options.length;i++)
                   IPrivateDetailView.IPayment_MethodNodeElement pr= wdContext.createPayment_MethodNodeElement();
                   pr.setPaymentAttribute(priority_options<i>);
                   ListOfPriorities.add(pr);
              wdContext.nodePayment_MethodNode().bind(ListOfPriorities);
              for(int e=0;e<wdContext.nodePayment_MethodNode().size();++e)
                   wdContext.nodePayment_MethodNode().setSelected(e,e>=0 && e<=1);
    and then write the following code in wdDoModifyView() method:
    IWDDropDownByIndex di =(IWDDropDownByIndex)view.getElement("DropDownByIndex");
             di.bindTexts("Payment_MethodNode.PaymentAttribute");
    then create an Action and bind it to the onselect property of the DropDown and write the following code in the onAction method :
    if(wdContext.currentPayment_MethodNodeElement().getPaymentAttribute().equalsIgnoreCase("Payroll/Corp/Partner Check"))
        wdContext.currentSelectedInfotypeElement().setZlsch("C");
        else
         wdContext.currentSelectedInfotypeElement().setZlsch("P");
    I am sure it will work..

  • OTL Data Sent By Transfer To Bee From Timekeeper Passes The Value Set Id

    Hi,
    My requirement is to send the Custom Field data in Timecard Layout to BEE. I followed following steps:-
    I have defined a custom Value Set (Independent).
    Defined Alternate Mapping for Input value.
    Defined Alternate Defintion
    Mapped field in the Time Card Layout.
    After entering the time details and running the Transfer from OTL to BEE, I am finding that, rather value entered in the Timecard Entry, the value set id is being passed in the input value of an element.
    Can someone provide the pointers on the missing steps to get the solution of the requirement.
    -Ram

    Hi,
    My requirement is to send the Custom Field data in Timecard Layout to BEE. I followed following steps:-
    I have defined a custom Value Set (Independent).
    Defined Alternate Mapping for Input value.
    Defined Alternate Defintion
    Mapped field in the Time Card Layout.
    After entering the time details and running the Transfer from OTL to BEE, I am finding that, rather value entered in the Timecard Entry, the value set id is being passed in the input value of an element.
    Can someone provide the pointers on the missing steps to get the solution of the requirement.
    -Ram

  • How can I restrict the values obtained in a search help?

    Hi guys,
    The thing is that there is a function module that according to the user name, and a material number, it tells wheter the user has permission to see the material or not.
    It is possible to use that function module to restrict the values of the search help?
    Thanks

    Hello Raulie,
    1. If the function module is not much complex then copy the same Functionmodule into your custom name ,...
    Then you would have the control at your end,,,,
    2. If the funciton module is very complex then fetch the data manually and create a custom f4 help ... to fetch the data use the similar logic of the function module so that data does not get deleted.
    Thanks,
    M.Naveen Kumar

  • What is the value sets?

    Hi all,
    What is the value sets? can somebody explain me about it with example
    Regards
    Kiran Kumar

    hi,
    chk the links
    Precalculated value set
    check the below link.
    http://help.sap.com/saphelp_nw04/helpdata/en/84/00783b3af21f5ee10000000a11402f/content.htm
    Defining Value Set Settings (SAP Library - BI Platform)
    http://help.sap.com/saphelp_nw04s/helpdata/en/84/00783b3af21f5ee10000000a11402f/frameset.htm
    Ramesh

  • I am getting an error in value set which is defined in OAF page

    Hi,
    We have applied a patch OIE-K patch in one of our test instance due to that we have lost all the customizations done on it before.
    when i attempt to restore the customization i am getting this error.
    Line 1 Error - Month-ID &ID for the flexfield segment Month does not exist in the value set 2008-FEBSET. (VALUESET=CN_IE_MOBILE_PERIOD)
    I have recomplied the valuset and also i have checked all the EOimpl.java,VOimpl.java and CO's attached on that page but unable to trace it.
    Please give me any hint so that i can move ahead on this issue.
    regds,
    Satya Prasad

    The team who has immplement this iexpense module done the EO extension in that they have written the custom logic if amount excceds throw an exception.populating the default values in the two mandatory columns and created two custom fields.
    I have defined the two LOV based custom fields through personalization and defined the extensions on that page.
    For me only pending task is only this error becuse with rest of the expense types i am able to genereate expense reports.
    Problem comes when i choose the mobile phone as expense type.
    Navigation Steps:
    This error is comming when we are moving to next page
    steps:
    Iexpense>>T&Lreimbursemment>>create newexpense report>>general information pg click next>>cash and other lines pg>>click the details button>>
    In the detail page we have defined the our custom object mobile phone after giving the required information in the page we press the return button then we return to cash and other lines pg in this page when we press the next button to move to next page to submit the report we are getting error.
    But other custom objects are working fine.but we are getting problem with this object only.
    We have applied OIE-K patch in one of our test instance
    after applying the patch we have lost all the customizatons inorder to restore all custom objects, we have finished rest of the objects and extensions everything is working fine
    but this the error we have stucked.
    Please help me.......
    If you need the screenshots i will mail you please give me the email id.
    regds,
    Satya Prasad.

  • Issue with the value set

    Hi friends,
    am trying to do a percentage calculation from two value sets
    like
    select round((to_number(:$FLEX$.PROP_BONUS)*100)/(12*to_number(:$FLEX$.XX_SAL)),2) FROM DUAL
    this is giving me error ...
    those two are number data type value sets.. and am using this in self service pages
    the error says like this
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: select fnd_number.number_to_canonical(round((to_number(:$FLEX$.PROP_BONUS)*100)/(12*to_number(:$FLEX$.XX_SAL)),2)) FLEX_VALUE
    , to_char(round((to_number(:$FLEX$.PROP_BONUS)*100)/(12*to_number(:$FLEX$.XX_SAL)),2)) FLEX_DISPLAY
    from DUAL
    where (1 = 1)
    and 'Y' = 'Y'
    and nvl(fnd_date.canonical_to_date(:1), trunc(SysDate))
    between nvl(trunc(to_date(null)), nvl(fnd_date.canonical_to_date(:2), trunc(SysDate)))
    and nvl(trunc(to_date(null)), nvl(fnd_date.canonical_to_date(:3), trunc(SysDate)))
    and to_char(round((to_number(:$FLEX$.PROP_BONUS)*100)/(12*to_number(:$FLEX$.XX_SAL)),2)) like :L1
    order by FLEX_DISPLAY
    java.sql.SQLException: ORA-00911: invalid character
    can some one suggest me a solution please

    Please see if (Unable To Use $FLEX$ In Table Name Field While Creating Value Set [ID 1071197.1]) and (Compilation Error ORA-00911 Occurred After Adding To Descriptive Flexfield [ID 445246.1]) help.
    Thanks,
    Hussein

  • BTS 2013 - How to Enable BizTalk to Use the Supplied ISA11 Value on a File Instead of the Value Set in the Agreement ("^", "U")

    I have a case where a trading partner sends two separate file types: a 999 acknowledgement (uses the carat separator) and a 277U (uses the "U"). The trading partner uses the same ISA6/ISA8 identifiers. The 999 acknowledgement
    cannot be defined in the Transaction Set List so I need to support all transaction sets in the agreement. For the 277U, I can set the 277 in the set list, but then having multiple agreements with the same ISA6/ISA8 is not allowed. The type
    of file we accept is directed to an orchestration via the receive port/receive folder (999 files go to one folder and 277U files go to another).
    I would like to be able to accept the file and let BizTalk determine the repetition separator by reading it from the supplied ISA11 value rather than the set value in the agreement. Is this possible?

    Here's the thing, all other HIPAA transactions define ISA11 as Repetition Separator so having an ISA11 value of 'U' on a 277U is an outlier. 
    Let me alter my advice...the first thing you should do is check their Companion Guide for the 277U to see if they have specified the interpretation of ISA11.
    But, looking at the 277CA Implementation Guide, ISA11 is defined as Repetition Separator.  I don't have have the official 277U IG but if you can get a copy, that will decide this definitively.
    So, I would raise it as a bug on their side.
    However, if they insist on remaining non-compliant, you then have to get them to document to you the exact meaning of ISA11 since they're causing some ambiguity.  If they are sending 'U' as Standards Identifier, they I would use a custom Pipeline Component
    to change 'U' to '^' in EDI.

  • Restricting the values based on keyfigures.

    Hi All,
    Good Morning..
    I have a query on Bex reporting.
    I want to calculate transit aging.Just i want to find the difference between the two dates.
    I have one more field called quantity.
    I want to calculate the difference of dates only whose quantity is "ZERO". I can restrict the keyfigures based on characteristics. But for my case i want to restrict the keyfigures based on Quantity keyfigures.
    Is it possible in Query designer.
    Thanks in advance.
    Thanks,
    Siva.

    Hi,
    p.o number ______p.odate_______consimentdate______qty__aging
    87000001______01.02.2009______02.02.2009________1___ nil
    87000002______05.02.2009______07.02.2009________0____( current date - consiment date)
    Craete Two formula Variables with replacement path in columns..
    1. One is for PO date and replace with Key.
    2. Other is forconsiment date and replace with Key.
    then just drag and drop in two columns in report and see the output. Then create one formula and do substraction. In another column you craete one more formula and use If condition
    Column A = p.odate (with Replacemet variable value)
    Column B = consimentdate (with Replacemet variable value)
    Column C = B-A
    Column D =  If QTY <> 0 then C
    Thanks
    Reddy

  • How can we access the value set to a search criteria's attribute

    Hi guys,
    Is there any way to access the value which was set to a search criteria's attribute programmatically in the backing bean?
    Regards !
    Sameera

    Check sample 85 from the adf code corner sampleshttp://www.oracle.com/technetwork/developer-tools/adf/learnmore/85-querycomponent-fieldvalidation-427197.pdf
    Frank shows how to access the variables.
    Timo

Maybe you are looking for