Dynamic selection screen fetching the value from table fields

hi gurus,
i have one table say ztable...and i should create a dynamic selection screen which should populate the selection screen by the table field names.
example..if i have 3 fields im my table..my selection screen should have three selection option fields..and in future if i add one more field in my table it should automatically create another slection-option in selection screen..
thanks
Sudheer

Do you mean like SE16 works. If so, you should notice that if you  amend the selection fields, the screen program is actually re-generated.
That is what is happening. A program is being created and re-generated.
To create a dynamic selection screen in a single program is not possible ( I may be wrong ). If it is possible, then you would have problems in defining selection screen field names and using them.

Similar Messages

  • Please help..it's Urgent..How to fetch the value from table row from Page

    Hi,
    I have created a table with 2 LOV's , LOV2 is dependent on LOV2.
    Here I can not use the general Dependent LOV concept, as these values are coming from 2 different LookUps.
    I am not able to fetch the user input for LOV1 (from page) .that is why not able to set the where cluse fro 2nd LOVVO.
    I have used this code:
    if ("ViolationCat".equals(lovInputSourceId)) {
    OAMessageLovInputBean msglov =
    (OAMessageLovInputBean)webBean.findChildRecursive("ViolationCat");
    // String p_violation_category = "'"+(String)msglov.getValue(pageContext)+"'";
    String p_violation_category =
    (String)msglov.getValue(pageContext);
    // System.out.println(" p_violation_category =" +
    // p_violation_category);
    String v_violation_category = "";
    //System.out.println("vcat=" + vCat);
    OAViewObject violationVO =
    (OAViewObject)am.findViewObject("SNI_Violation_DtlsVO2");
    Number vcatViolationIdnum =
    (Number)violationVO.getCurrentRow().getAttribute("ViolationId");
    String vcatViolationId = "" + vcatViolationIdnum;
    pageContext.putTransactionValue("vcatViolationId",
    vcatViolationId);
    pageContext.putTransactionValue("p_violation_category",
    p_violation_category);
    String query =
    " SELECT LOOKUP_CODE, \n" + " MEANING, \n" +
    " LOOKUP_TYPE \n" +
    " FROM apps.fnd_lookup_values \n" +
    " WHERE LOOKUP_TYPE ='SNI_VIOLATION_CATEGORY' AND MEANING=?";
    PreparedStatement ps = txn.createPreparedStatement(query, 1);
    try {
    ps.setString(1, p_violation_category);
    ResultSet rs = ps.executeQuery();
    //System.out.println("before while,");
    // rs.next();
    // v_violation_category = rs.getString("LOOKUP_CODE");
    // System.out.println("v_violation_category="+v_violation_category);
    while (rs.next()) {
    //System.out.println("inside while");
    v_violation_category = rs.getString("LOOKUP_CODE");
    // System.out.println("v_violation_category=" +
    // v_violation_category);
    ps.close();
    } //try ends
    catch (Exception e) {
    e.getMessage();
    //System.out.println("in catch.." + e.getMessage());
    OAViewObject subCatVO =
    (OAViewObject)am.findViewObject("SNI_ViolationSubCategoryVO1");
    //System.out.println("get VO before where clause: subCatVO::"+subCatVO.getQuery());
    subCatVO.setWhereClause("LOOKUP_TYPE like '%SNI_VIOL_SUB_CAT_" +
    v_violation_category + "'");
    System.out.println("after set where clause VO: subCat VO::" +
    subCatVO.getQuery());
    subCatVO.executeQuery();
    // System.out.println("query of subCat VO::" +
    // subCatVO.getQuery());
    //End of sub category Validation
    It is working fine only for the 1st row of teh table.
    I have tried to fetch the value using :
    String violationCategory = (String)violationVO.getCurrentRow().getAttribute("ViolationCategory");
    String violationSubcategory = (String)violationVO.getCurrentRow().getAttribute("ViolationSubcategory");
    But it is fetching null value.
    Please tell me how can I able to fetch the values.

    Hi
    in your scenarion,first u have to identify the particular row of table where the changes is being made ,u have to use this code .when u select the lov ,first it will give the row refernce and then u have to catch the lov event
    OAApplicationModule am =
    (OAApplicationModule)pageContext.getApplicationModule(webBean);
    String event = pageContext.getParameter("event");
    if ("<ItemPPREventName>").equals(event))
    // Get the identifier of the PPR event source row
    String rowReference =
    262
    pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Serializable[] parameters = { rowReference };
    // Pass the rowReference to a "handler" method in the application module.
    am.invokeMethod("<handleSomeEvent>", parameters);
    In your application module's "handler" method, add the following code to access the source row:
    OARow row = (OARow)findRowByRef(rowReference);
    if (row != null)
    thanx
    Pratap

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Fetch the values from internal table inside an internal table (urgent!!)

    data : BEGIN OF PITB2_ZLINFO occurs 0,
             BEGDA LIKE SY-DATUM,
             ENDDA LIKE SY-DATUM,
             PABRJ(4) TYPE N,                       "Payroll Year
             PABRP(2) TYPE N,                       "Pay. Period
             ZL LIKE PC2BF OCCURS 0,
           END OF PITB2_ZLINFO.
    I have a internal table like this,
    How to Fetch the values from internal table inside an internal table.
    Kindly Help me on this..
    Regards,
    Ram.

    Hi,
    Try this....
    Loop at PITB2_ZLINF0.
    Loop at PITB2_ZLINF0-ZL.
    endloop.
    Endloop.
    Thanks...
    Preetham S

  • Deleting the values from table control

    HI,
    I need to remove the selected line from the Table control on my screen.
    The point is that the Internal table does not have any records,.
    for example in the Customer Create screen,
    while entering the bank details we will enter it in a tbale contraol.
    but the records doesnt exist in the database. but the record gets deleted from the table control only if we press delete button.
    please guide me.
    please note : I want to delete the record from Table Control on the screen and I dont have any corresponding database records..
    regards

    Hi..
    The solution to your problem - deleting values from table control.
    Here: it_wizard is the internal table which is holding the value of table control.
             wa_wizard is the work are of the internal table it_wizard.
             it_delete is the internal table which holds the deleted record of table control.
             wa_delete is the work area of the internal table it_delete
    Also here the field ZSEL is the character field which is used to select the entire record in the table control.
    LOOP AT it_wizard into wa_wizard WHERE zsel = 'X'.
           MOVE-CORRESPONDING wa_wizard TO wa_delete.
           APPEND wa_delete TO it_delete.
           delete table it_wizard from wa_wizard.
    DELETE  FROM zfin_goods WHERE ZFG = WA_delete-ZFG.
    ENDLOOP
    if sy-subrc eq 0.
    Message 'Delete Successful' type 'S'.
    endif.
    The above code will delete the record from both the table control.internal table and the database table.
    I think this will help you to great extent.
    Ward regards,
    Bhuvaneswari
    Edited by: BHUVANESWARI THIRUNAVUKKARASU on Jan 7, 2009 10:39 AM

  • Error while fetching the values from database

    hiii all,
    I have a dynpro project where i am using JDBC codes to fetch data from tables. I have used 2SQL queries...in the first query i am fetching values from 2tables and taking the result from this i run another query.As a result i expect 19591 records as the output....
    1)when i put while loop for 19000,  19000records are being within 1min.....
    2)when i put while loop for 20000, exception is thrown as :
    ArrayIndexOutOfboundsException : size:19591,i:19591
    i is variable for while loop
    3)when i dont put any condition for while loop, itz taking unlimited time and output is not displayed....
    please do help out...

    group_rs1 = group_st1.executeQuery("SELECT A.JOINT_ID,C.LINE_ID FROM EALPS_DRWREVSPLJTS A,EALPS_DRW_REV_SPL B,EALPS_DRW_REV_LINE C WHERE"
                                                                + " B.SPOOL_ID=A.SPOOL_ID AND B.LINE_ID=C.LINE_ID");
                             //group_rs1=group_st1.executeQuery("SELECT D.TESTLEVELNO FROM EALPS_EALPS_DRWREVSPLJTS A,WELDTESTCRIT D WHERE D.WELD_TEST_CRIT_ID=A.WELDTEST_CRI_ID ");
                             //wdComponentAPI.getMessageManager().reportSuccess("connection.toString ="+conn.toString());
              int index1=0;
              while(group_rs1.next())
                   arr_joint_id.add((group_rs1.getString(1)));
                   arr_line_id.add(group_rs1.getString(2));
                                                 index1++;
              for(int i = 0; i <arr_joint_id.size(); i++)
                   String joint_id = arr_joint_id.get(i).toString();
                   group_rs = group_st.executeQuery("SELECT A.SIZE_NBMM,A.ISFIELDJOINT,A.WELDTEST_CRI_ID,D.TESTLEVELNO,E.COMPLETE FROM EALPS_DRWREVSPLJTS A,EALPS_WELDTESTCRIT D,EALPS_ACTV_SEQ E WHERE"
                                                                                                        + " A.JOINT_ID='" + joint_id +"' OR D.WELD_TEST_CRIT_ID=A.WELDTEST_CRI_ID OR E.JOINT_ID=A.JOINT_ID");
              int index = 0;
                                       while(group_rs.next())
                                                 //wdComponentAPI.getMessageManager().reportSuccess("inside while loop");
                                            arr_size.add(new Float(group_rs.getFloat(1)));
                                            arr_isfieldjoint.add(group_rs.getString(2));
                                            arr_weldtest_cri_id.add(new Long(group_rs.getLong(3)));
                                            arr_testlevelno.add(group_rs.getString(4));
                                            arr_complete.add(group_rs.getString(5));
                                       index++;
    thanks a lot for pointing out my mistake that i was taking the last resultset and performing operations on that only....
    please go thru my code,i have changed them....now i am taking all the values from each of the record-sets...............but now itz taking infinite time after which the page is exprining....can u plzz suggest.............

  • Fetch the value from memory ID in ASR_PROCESS_EXECUTE

    Hi all,
    I am using the standard WD4A component HRASR00_PROCESS_EXECUTE and it's application ASR_PROCESS_EXECUTE. I have one doubt in the parameter tab of the application ASR_PROCESS_EXECUTE.
    Actually there is a parameterPERNR_MEM_ID, I think this is the parameter by which we can set the value parameter(PERNR) into memory ID and retrieve the value(PERNR), when this application triggered.
    But I don't know how to to this, if this is the right approach.
    Can anyone please suggest me how can I retrieve the value from memory ID when ASR_PROCESS_EXECUTE application actually trigged.
    Please suggest.
    Thanks
    Sanket sethi

    Hi Manas,
    Thanks for your reply. Actually I am facing one issue, If I pass the Memory ID as "ECC01" and set the process name in Process parameter, then the form will open by skipping the Select employee and select Process.
    But in the case of MSS, ehen I am passing the memory ID as "MSS01" and set the process in Process parameter, then it will not open the form screen dirctly. It will then open the Initial screen Select Employee for ASR_PROCESS_EXECUTE.
    It is because of the multiple PERNR are available for the Manager. Do I open the form dirctly for Manager also.
    Please suggest.
    I have found a blog HCM Processes & Forms: The Many Faces and Frustrations of the Start Application by Chris Solomon for this.
    Please go through the link to open the form directly:
    /people/christopher.solomon/blog/2010/02/01/hcm-processes-forms-the-many-faces-and-frustrations-of-the-start-application
    Please suggest if you have any idea on how to achieve this.

  • How to get the values from table SKB1 R/3  to SRM

    Hi Gurus,
    My requirement is to get all the values from the table SKB1 to SRM (i.e. in to an internal table) for doing some validation(G/L account XXXXXX requires an assignment to a CO objectXXXXXX.)
    Like wise I have many tables for doing validation in SRM
    Help me how to get this, suggest me any Function module with sample code.
    OR
    Any Standard FM which will give all the values of the fields in the table SKB1 when I pass the key fields G/L account & company code alone so that I can improve the performance.
    Suggest me.
    Regards
    Paul

    Hi,
    You can use the FM 's META_READ_TABLE Or RFC_READ_TABLE
    Which SRM / Backend system version are you using ?
    Are you taking care of the Importing paramater - DELIMITER in this case.. ??*
    See related links ->
    Re: Retrieving data from R/3 into SRM
    Re: Product Search TIME lag
    Else you can just call the remote enabled  FM "BAPI_GL_ACC_GETDETAIL"  from SRM.
    BR,
    Disha.
    Do reward points for useufl answers.

  • Need to get the values from "Signed" field from PDF form.

    Hi,
    This is Dinesh. I am PHP Developer. My issue is "I am not able to get the value of "signed" field from the PDF form when the form has been submitted.". I want to get the Digital Signature value of that field and i need to store it in the DB.
    Please help me here Or Please forward this issue to any of the PHP developer who solved this issue and let me know.
    Thanks & Regards
    Dinesh

    Hi Vikas,
    you can use this badi MRM_WT_SPLIT_UPDATE, the method will be WHTAX_SPLIT_UPDATE
    in this badi please see the importing and exporting parameters, you will get the  values of withholding tax code  as TE_RBWS in export parameters.
    Please search in google or SCN you will get how to use it.

  • Fetch the value from combobox

    we have two jsp files:-
    1. fundtrans.jsp
    2. update.jsp
    in file 1 we used 2 combobox and 1 textbox, we retrieved values in comboboxes from database.Now user select any value from both combobox and we want to send that value in next jsp page. After submitting values in both combobox and textbox , the database table updates.
    my problem is that we are not able to use the selected value in combobox on next jsp page

    Get the values and put it in the session (in your action class), then using session.getAttribute, get the values back in your another jsp.
    OR
    Put the selected values in the hidden field (do it in the javascript), using getter and setter method get the value back.

  • How to get the values from table region and how to set

    Hi,
    I have a requirement as Seeded Page Having One Table Region having around 8 columns, In That Item Description field is there. My Requirement is I need add one more field for that Region and assign the value depending Item Description.
    I will create one new Item in that region and will give name as Item, But how to set the values to Item Depending on Item Description.
    Is it possible to through CO Extension, If yes..Pls help how to get it.
    Thanks in Advance,
    Hanimi

    Hi Hanimi,
    1. You need to extend the VO, add a new Attribute.
    2. In VORowImpl of the extended VO, you can find the getter for your new attribute (example getItem())
    3. In this getter method you can write some code like:
    if("ABC".equals(getItemDescription())
    return "XYZ" ;
    -Prince
    http://princekapoor82.blogspot.com

  • Fetch the value from a HashMap through EL

    Hi,
    I have this question,
    how can we get a value from a HashMap through EL. is there any way to do that.
    for example i have a hashmap in my bean and i want to place the value of of certain attributes on the page. specific to the key values in the hashmap.

    Just by the key.
    ${bean.map.key}roughly resolves to bean.getMap().get(key).

  • Adding Drop Down List values from table fields

    Hi all,
    Recently we have switched from Microsoft's Infopath to Adobe's LiveCycle Designer.  In InfoPath i was able to allow a user to enter data in a table and then use that data as values for a drop downlist, which could in turn be used in another table.  Infopath made it relatively easy to do this, but I assume it requires scripting in LiveCycle.  Here is an example that make make it easier to to explain:
    Let's say we have a form with a table that has a colomn where the user can enter a value in a table let's say "Computer Name":
    Computer Name | IP | Vendor | Serial Number|
    PC 1
    ---------------------| 192.168.2.34| HP | US4839494
    PC 2
    PC 3
    PC 4
    Further down the form there is a nother table with a drop down list.  I want the values of the drop down list to be what ever values were entered for "Computer Name" in the previous table.  So in this case the table would look like this:
    Computer Name | Acquisition Date| End of Life Date
    <Drop DownList>|  07/21/2010 | 07/21/2014
    The drop downlist values would be "PC1, PC2, PC3, PC4"  or whatever values were entered in the previous table.  Essentially, I am trying to avoid from having users type in "Computer Name" data every time the "Computer Name" needs to be entered.  It would be so much easier to enter all "Computer Name" values and then use those values as part of a drop down list to avoid excessive typing.
    I hope this makes sense, it is fairly easy to do in InfoPath and I am sure there is a way to do this in LiveCycle.
    Let me know if my explanation is not clear enough.
    Thanks!

    Thanks for the feedback, but it doesn't seem to quite accomplish what I am trying to do. I've tried using global binding as you specified, but the outcome is not exactly what I want.  Perhaps this drawing can help depict what I am trying to do:
    http://imageshack.us/photo/my-images/153/dropdownlist.png/
    On the picture I manually defined the values for the drop down list.  Again, I want these values to be taken from "Computer Name" in the table above.
    Thanks!

  • What is the JavaScript to copy the value from a field to the clipboard?

    I have a "Save As" Button scripted. But would like the button to first copy the value "SiteCode" so when the user is prompted to enter in the name they can just paste it.
    Anybody got any ideas?
    Thanks

    That's not possible. It is possible to save to an existing folder with a filename derived from one of more field values, but the code that does that save has to be in a folder-level JavaScript file or in a certified document that the user chooses to trust for privileged JavaScript execution. So each user would have to manually install the JavaScript file or manually add the certificate to their list of trusted certificates and specify that it's trusted for privileged JavaScript execution.
    I've had good success providing instructions for copying the field name from a form field so that the user can paste it as the field name in the Save As dialog that's invoked using an "Execute a menu item" action (File > Save As), so this might be a viable alternative you can use.

  • Fetching Null Value from table

    I have a table where I am want to findout the total number of product (count of product) based on the ProdName.
    I have the following table with two columns:
    create table newproduct (prodid integer, prodname varchar(30));
    Insert into newproduct values (100, 'TowerA')
    Insert into newproduct values (160, 'TowerA')
    Insert into newproduct values (170, 'TowerB')
    Insert into newproduct values (120, 'TowerB')
    Insert into newproduct values (140, 'TowerC')
    Insert into newproduct values (180, '')
    So here the query that I trying to use:
    Select Distinct prodname from newproduct;
    Select prodid from newproduct where prodname is null; /* Correct way */
    Select prodid from newproduct where prodname in (''); /* I want result (180) by using this query */
    How can I do it?

    I'm not sure why you're trying to accomplish it that way, but you could try to use NVL to do that.
    You just need to make sure whatever value you input in the NVL is something you won't ever obtain as a real column value.
    Select prodid from newproduct where nvl(prodname, 'NULL VALUE HERE!') in ('NULL VALUE HERE!');Also, for performance reasons, since you're applying a function to the column, it won't be looking up indexes for matches, unless you create a function-based index.
    Nulls are not indexed anyway, but I'm not sure what you're trying to do with this query.

Maybe you are looking for

  • Can i use office web app server without adding to a domain ?

    spserver.local is my domain controller webapp.spsserver.local is my office web app server(OWA)(IP:79.123.161.xxx ) I manage to use office web app with sharepoint 2013 my OWA is in a domain (spserver.local) and it's address is http://webapp.spserver.l

  • Open Item Management for GL Account

    When I run transaction code FAGL_FC_VAL - Foreign Currency Valuation a certain GL account is not apprearing on the list generated by the report. The Open Item Management checkbox is selected for this GL account in the master file, whereas the other G

  • Why  doesn't my ipod advance to the next song when i'm listening to it.

    why doesn't my ipod nano, 6th generation advance to the next song while playing.  i have to manually advance it to hear the next song. .This is a nex nano, 6th gen that apple just sent me  because of possible battery issues in the nano, 1st gen.

  • Defaulting messages to a particular message area

    Hi All, I have two applications running on same screen, One at top and another one just below it  . Both have their own message area. When applications are run individually, messages are getting shown in their respective message area. However on scre

  • "A" key doesn't always register

    Hi, My A key occasionally will not register with the iBook unless I press it down a bit harder than normal. A while ago, that happened with Control (not Command), but this has since stopped. The A isn't doing it right now. Anybody know what might cau