Dynamic generation of form to show table entries

Dear experts,
I am aware of how to dynamically program for form generation when the layout static and is already defined in transaction SFP.
However I have a requirement wherein the form layout is not available . But the form should get generated dynamically and display values from a table in a simple field - value format. ( Just the way SE16 displays table content , the only difference being output should be in a PDF)
Any pointers how I can progress on this.
Appreciated your inputs.
Thank you.
With regards,
Sahir.

How does default checked checkboxes work for checkboxes of type String[]?
The following code works, but it is for form property of type String, instead of String[]:
<form-property name="prop" type="java.lang.String" />
form.set("prop", "true");
<html:checkbox property="prop" value="true"> // checked by defaultThis is what I tried for type String[], modelling it off the ideas of the above code, but it does not work:
<form-property name="prop" type="java.lang.String[]" />
String[] propArray = {"1", "4"};
form.set("prop", propArray[]);
<html:checkbox property="prop" value="1">  //should be checked by default, but is not
<html:checkbox property="prop" value="2">
<html:checkbox property="prop" value="3"> 
<html:checkbox property="prop" value="4"> //should be checked by default, but is notWhy does it work for String but not String[]? How do I make it so that they are checked by default for type String[]?

Similar Messages

  • Oracle Excel Generation 6i Form is showing error while compiling in Form10g

    Hi,
    I generate MS-Excel Report by Oracle form 6i but when I am compiling that form in Oracle Form 10g then it is showing
    error "component 'SERVER_ACTIVE' must be declared" and "component 'GET_INTERFACE_POINTER' must be declared".
    Can anybody help me.

    hi,
    ok, now i have migrated my 6i excel generation form in 10g by migrating tool. but still facing same(below) error at
    compile time.
    Error is - "component 'SERVER_ACTIVE' must be declare
    "component 'GET_INTERFACE POINTER' must be declare.
    Below is function which is showing problem at compile time.---
    FUNCTION get_object_handle RETURN OLE2.OBJ_TYPE IS
    obj_hnd OLE2.OBJ_TYPE;
    BEGIN
    /* If the server is not active, activate the server
    and get the object handle.
    IF not forms_ole.server_active ('spreadsheet') then
    FORMS_OLE.Activate_Server('spreadsheet');
    END IF;
    obj_hnd := FORMS_OLE.Get_Interface_Pointer('spreadsheet');
    --RETURN obj_hnd;
    RETURN NULL; END;
    thanks

  • When I move to the next record on a form it shows the entries for the previous record even though the record is actually null

    I have a form that logs fibre analysis for asbestos analaysis. Let's say I am analysisng 2 samples. I log all the details for the first sample and hit save. Now I use the scroll button to move to the next sample. When the screen refreshes all the entries for the first sample are still showing on the screen. But these are just phantom entries, when I look at the back-end database there are of course no entries against the second sample. This does not occur with any other browser.
    I have tried clearing the cache to no avail.
    Any ideas?

    Is Firefox filling the form via the cache or via saved form data?
    If this data still gets filled when "Remember search and form history" is disabled the Firefox fills it from the cache.
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": "Remember search and form history"
    In such a case a hard refresh via Ctrl + F5 might help to reset the form data.

  • RFC WHICH CAN USE DYNAMIC SQL AS INPUT AND SHOW COMPLETE DATA FOR TABLE

    Hi Expert,
    I am trying to create a FM like RFC_READ_TABLE. In this table we put table name and the field name for which we write a query and option for query we get the out put only for that field in this case.
    My requirement is very similar to this. But here i want to enter any table name and in option i want to write dynamic sql query for any filed of table then i want data based on this so that it will display the entire table entries.
    Like TABNAMELIKE     EKKO
    OTHERCON     bukrs_k = 3000.
    Based on this selection it has to show the entire table fields.
    To make this easy to understand i made a custom FM which are getting data from table or view and i select any field and put query it will show the result.
    FUNCTION ZDYNSQL_EKKO_EKPO.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(ERNAMLIKE) TYPE  CHAR15 OPTIONAL
    *"     VALUE(OTHERCON) TYPE  CHAR50 OPTIONAL
    *"  TABLES
    *"      VALUE STRUCTURE  V_EKKO_EKPO
    *TABLES : V_EKKO_EKPO, EKKO, EKPO.
    DATA: STR_WHERE TYPE TABLE OF EDPLINE.
    DATA: STR_LINE TYPE EDPLINE.
    *CONCATENATE 'EBELN LIKE''' EBELNLIKE '%''' INTO STR_LINE.
            CONCATENATE 'ERNAM LIKE ''' ERNAMLIKE '%''' INTO STR_LINE.
            IF OTHERCON <> '            '.
            CONCATENATE STR_LINE 'AND' OTHERCON '            ' INTO STR_LINE SEPARATED BY SPACE.
            ENDIF.
          APPEND STR_LINE TO STR_WHERE.
          SELECT * FROM  V_EKKO_EKPO INTO CORRESPONDING FIELDS OF TABLE VALUE WHERE (STR_WHERE).
    ENDFUNCTION.
    Now here is sample code of exact requirement.
    FUNCTION ZDYNSQL_TABLE_READ.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(TABNAMELIKE) TYPE  DD02L-TABNAME
    *"     VALUE(OTHERCON) TYPE  CHAR80 OPTIONAL
    *"  TABLES
    *"      VALUE STRUCTURE  DD02L
    DATA: STR_WHERE TYPE TABLE OF EDPLINE.
    DATA: STR_LINE TYPE STRING.
            CONCATENATE 'TABNAME LIKE ''' TABNAMELIKE '%' 'DD02L' 'TABNAME' INTO STR_LINE.
            IF OTHERCON <> '            '.
            CONCATENATE STR_LINE 'AND' OTHERCON '            ' INTO STR_LINE SEPARATED BY SPACE.
            ENDIF.
          APPEND STR_LINE TO STR_WHERE.
          SELECT * FROM DD02L INTO CORRESPONDING FIELDS OF TABLE VALUE WHERE (STR_WHERE).
    ENDFUNCTION.
    In this i put table name as EKKO and put sql query as bukrs_k = 3000 it provide a short dump.
    How can i solve this problem. Please provide some input or modification
    Thanks And Regards
    Ranjeet Singh

    Hi Kris,
    I tried to make sample using that link you provide to me. How can i declare Global Interface in FM and in import parameter references like "REFERENCE(I_INTERFACE_CHECK) DEFAULT SPACE".
    Also it uses a function-pool.
    Let me tell you about my exact requirement about FM.
    I want in import parameter input as any SAP Table name like
    TABNAME TYPE EKKO
    OPTIONS TYPE CHAR80
    I want my output to be stored in TABLES attributes as per the table name entered in import parameter. In import parameter Table name can be any one of SAP tables and Option based on that particular table. Like if i go with table EKKO and put OPTIONS as
    ebelp = 4 then TABLES attributes Tab  contains all the relevant data for input.
    Is there any way with the help of that i can put my data into internal tables. I tried to put in TABLES as VALUE LIKE ANY but it shows that generic are not allowed. Can you provide some sample on this.
    I also getting exceptions like CX_SY_DYNAMIC_OSQL_SEMANTICS, SAPSQL_INVALID_FIELDNAME.
    Waiting for your valuable reply.
    Thanks And Regards
    Ranjeet Singh

  • Cycle Count Entries Form not showing specific employee name in "Counted By" LOV List

    Cycle Count Entries Form not showing specific employee name in "Counted By" LOV List.But the Employee is active . Is there any setup for this activity?

    Hi,
    This is because the query is excluding the current site you are trying to modify since it is actually in the report.
    You can include in your query:
    or site_id = :Pxx_SITE_ID
    Where Pxx_SITE_ID is the item holding the site_id value and xx is your page number.
    Thank you,
    Erick

  • With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?

    With a PDF Dynamic form using show/hide actions, how to ensure that when the completed form is saved, closed and re-opened, the form still show the fields as before it was closed?
    I have developed a form with fields hidden by default, that become visible based on box ticked or radio button selections.
    My problem is that, when I close the form and re-open it, it comes back to it's default presentation, regardless of the information already recorded in the form (including in the now hidden fields.
    How to correct that
    Thanks in advance for any hint you can provide.

    I've had the same problem. This solved it...
    Go to the "Form properties..." in the File-menu. Select "Run-time" to the left and in the box "Scripting" Preserve scripting changes to form when saved: choose Automatically (Script-based state changes are saved locally in an insecure fashion. This option cannot be used for certified forms).
    Hope it works for you to...

  • Creating Dynamic Form based on table

    I have to create 7-8 Form on a Table with Report.
    Just wondering if there is a way, we can create this dynamically, so that I don't have to create this manually for each table.
    Exp - I will have a table list, once I will select table_name from the LOV, then this will display the Report/Form region for that table...and so on...
    thanks,
    deepak

    Hi Deepak,
    So, basically, you want to be able to create an application without actually having to create it manually?
    The nearest you could get, I think, is something like: Re: Creating Item dynamically and Automating tedious repetitive tasks / creating hundreds of different items (there may be other threads along these lines as well).
    The principle is that you do pretty much what an Application Export/Import would do. I have to stress, though, that this is totally unsupported by Oracle and also most forum users, myself included, would not be able to help you!
    Andy

  • SQL Developer 3.1.07 does not show a Tables entry under the Navigator

    Installed SQL Developer 3.1.07. Under my Connections window, I log into the SYSTEM account. There is NO tables entry. SYSTEM has access to all tables in the database. It's the same behavior for other database users as well.
    I re-installed SQL Developer 3.0.04 and a Tables entry DOES appear for the same SYSTEM user connected to the same database.

    Hi J,
    I was under the impression that regardless of the Java version that my environment variables are setup to use,
    the installation of SQL Developer (when you install with a JDK), that the JDK version installed with SQL Developer
    is the one that is used.Exactly correct, unless you decide to override it in the conf file. I needed to be certain you did not.
    Anyway, trying to resolve the problem, let's go back to a possibility that something went wrong with the migration of your preference settings. Here is an old thread discussing a missing Tables node in the Connection view (sometimes called the navigator tree):
    Table node missing from navigator tree in 3.0.04
    The poster had to rename the system directory containing these settings, then ignore the offer to migrate settings upon starting up SQL Developer again. If you never migrated settings in the first place, then I'm not sure what more to say -- probably would require additional research here in the forum. But if you did migrate settings, then try the following:
    1. Export your connections (Connections node | right-click | Export Connections...)
    2. Exit SQL Developer
    3. Rename the directory to something else
    4. Restart SQL Developer
    5. Import your connections
    That directory on my Windows 7 machine for the current production release is something like:
    C:\Users\<username>\AppData\Roaming\SQL Developer\system3.1.07.42
    Hope this helps,
    Gary

  • Issue while reflecting the data to ADF form from ADF Table

    Hi All,
    I have one scenario as follows:
    I have to open a form in entry mode. So I have used a Method Call activity in task flow to call "Create" in method call activity.
    Then form opens in a entry mode. I have a adf table in the page showing the entered data.
    When form opens in entry mode, instead of entering the values in the field User selects a record in ADF table, but due to the create mode of the form it will through me a error to fill mandatory fields.
    Please tell me the way so that if user selects the record(in adf table) instead of entering new record, the value would reflect in the Adf form.
    If I use a roll back on selecting the row of ADF table, then it is showing me this error "Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[null ]" because there will be no row key in the cache when form opens.
    Please suggest me the way to complete the task.
    I am using jdeveloper 11.1.2.1.0
    Thanks,
    Gobi
    Edited by: gobinkl on Oct 3, 2012 2:06 AM

    no no your are complicating yourself. :) better your should provide your usecase.
    first thing: go through the books & also adf blogs learn and understand the framework. as above person said.
    i hope that you had method call create as activity as default while page rendering it make your af: form empty(that is ready fir insertion format).
    so if your are doing like that.am sure it will throw some mandatory errors.
    error will not resolve unless without entering any data's.
    coming af:table why are using af:table - immediate = true / false(switching).
    immediate = true - skip over validation or by pass some validation in some phase - based on the component which you are using. (say as if you are using editable value holder,af:coomand button).
    grab the information here in an more legible manner.
    http://adfpractice-fedor.blogspot.in/2012/02/understanding-immediate-attribute.html
    let me know your usecase.
    this will assist you
    https://blogs.oracle.com/shay/entry/executing_an_action_on_jsf_pag
    http://tanveeroracle.blogspot.in/2009/09/adf-11g-createinsert-to-display-blank.html
    Edited by: user707 on Oct 5, 2012 9:02 AM

  • How to delete table entries with SE16 in debugging mode?

    We are trying to delete some table entries which cause our InfoPackage short dumps in BW system.  The problem is that we can only see the Display menu item with SE16 and the Delete menu item is dimmed that we are unable to conduct the deletion.  SAP Support suggest to use debug with SE16 to do the deletion, but we can't figure out how!
    Anyone's idea is greatly appreciated!

    Then you are not at the right place.   Lets start at the begining.
    Go to SE16.
    Enter table name.
    Hit F7.
    Enter selection criteria.
    hit F8.
    Double click the specific record that you want to delete.
    In the transaction code field at the top, enter  "/H" and hit enter.  Debug is switch on.
    Now hit enter again. 
    You should now be in debug and you should see this code..
    form set_status_val tables ntab structure x031l           
                        using code name next for_lines.       
      field-symbols: <field>.                                                                               
    refresh exclude_tab.                                    
      if code = 'SHOW'.                                       
        set titlebar 'TAB' with name 'anzeigen'(100).         
      elseif code = 'EDIT'.                                   
        set titlebar 'TAB' with name 'ändern'(101).           
      elseif code = 'INSR'.                                   
        set titlebar 'TAB' with name 'einfügen'(102).         
      elseif code = 'ANVO'.                                   
        set titlebar 'TAB' with name 'einfügen'(102).         
      elseif code = 'DELE'.                                   
        set titlebar 'TAB' with name 'löschen'(103).          
    Notice that there is a field called CODE in the IF statement.
    Now enter the word "CODE" in the field names list,  change the value to DELE and click the pencil.  Hit F8.  Now you can delete the entry.
    Regards,
    Rich Heilman

  • Creating Table entries

    Hi,
    While attempting to create a table entry I am getting a runtime error.
    Short text
        Syntx error or generation error in a screen.
    What happened?
        At the screen generation it was detected that a screen to be generated
        has a syntax error or could not be generated due to another error.
    Error analysis
        Screen "SAPLZSCMS_REGION" 0001 could not be generated.
    Trigger Location of Runtime Error
        Program                                 SAPLZSCMS_REGION
        Include                                 LSVIMF45
        Row                                     219
        Module type                             (FORM)
        Module Name                             INITIALISIEREN
    Please let me know why this occurs and how can I go about resolving it?
    Thanks
    Vineeta

    Hi all, Thanks for your replies.
    As Anil pointed out I was encountering this problem because, I added a fiels into the table and didnt recreate the maintenance generator.
    Thanks,
    Vineeta

  • Check who's deleted table entries without SCU3

    Hi,
    we need to find out which program or user deleted some table entries. The Where-used-list doesn't show anything, so it must be a dynamic call. The table has 'Log data changes' switched on, but we don't have the system logging set due to performance reasons. Is there nevertheless a chance to find out who deleted the entries?
    Regards
    Nicola

    Regarding where-used-list, maybe the table is part of a maintenance view, you should check this as well.
    If there is no table logging and the changes are not recorded in transport requests, then I'm afraid there is no way to find out.
    Thomas

  • Custom transactions execution from base on conifguration table entry.

    Hello,
    I have a reqiurement where I name of the custom Transaction programs are maintained in a configuration table.
    I am creating a custom report on whose execution, the selection screen should show the name name of all those transaction proigrams in form of radio button which I can execute.
    The problam is that the configuration table can have multiple custom transaction entries over there and it can get changed every day. How can I acieve this reuqirement ?
    Regards,
    Jainam.

    Thanks Narendra and Rob for your inputs.
    Narendra
    I liked the approach of using table control with the table control have a radio button and then control the number of radio buttons based on the config table entries..
    How can I achieve this table control approach because I have never used this approach before ? Can you send me a sample example ?
    Thanks.
    Regards,
    Jainam.

  • Data in the cube is showing multiple entries when compared with ODS

    Hello BW Gurus,
    We have a waste report in production planning on Cube and ODS separately. The same info package loads both targets (which means same infosource) but when we run a report on Cube, the records are showing multiple entries (i.e. Key Figures are not matching when compared to ODS) where as the ODS records are showing correctly as it was in R/3. There are totally 6 key figures out of which 4 pulled from R/3 and 2 are populated in BW.
    An Example:
    Waste report in PP run for plant 1000 for 12/2005 and process order 123456. The operational scrap should be 2.46% and the component scrap should be 3.00% for material 10000000. The report is showing 7.87% for planned operational waste % and 9.6% for planned component waste %. These values are not correct. The ODS values for order 123456 matched the data in R/3 for component and operational scrap.
    There is a Start routine to the ODS and also to the cube. I am not good at ABAP so requesting your Help.
    Here is the ODS Code:
    tables: /BI0/PPRODORDER.
    loop at data_package.
    select single COORD_TYPE
    PRODVERS
    into (/BI0/PPRODORDER-COORD_TYPE,
    /BI0/PPRODORDER-PRODVERS)
    from /BI0/PPRODORDER
    where PRODORDER = data_package-PRODORDER
    and OBJVERS = 'A'.
    if sy-subrc = 0.
    if /BI0/PPRODORDER-COORD_TYPE = 'XXXX'
    or /BI0/PPRODORDER-COORD_TYPE = 'YYYY'.
    data_package-PRODVERS = space.
    else.
    data_package-PRODVERS = /BI0/PPRODORDER-PRODVERS.
    endif.
    endif.
    if data_package-calday = space
    or data_package-calday = '00000000'.
    if data_package-TGTCONSQTY NE 0.
    data_package-calday = data_package-ACTRELDATE.
    endif.
    endif.
    modify data_package.
    endloop.
    Here is Cube Code:
    tables: /BI0/PPRODORDER,
    /BIC/ODS.
    TYPES:
    BEGIN OF ys_mat_unit,
    material TYPE /bi0/oimaterial,
    mat_unit TYPE /bi0/oimat_unit,
    numerator TYPE /bi0/oinumerator,
    denomintr TYPE /bi0/oidenomintr,
    END OF ys_mat_unit.
    DATA:
    l_s_mat_unit TYPE ys_mat_unit,
    e_factor type p decimals 5.
    loop at data_package.
    select single COORD_TYPE
    PRODVERS
    into (/BI0/PPRODORDER-COORD_TYPE,
    /BI0/PPRODORDER-PRODVERS)
    from /BI0/PPRODORDER
    where PRODORDER = data_package-PRODORDER
    and OBJVERS = 'A'.
    if sy-subrc = 0.
    if /BI0/PPRODORDER-COORD_TYPE = 'XXX'
    or /BI0/PPRODORDER-COORD_TYPE = 'YYY'.
    data_package-PRODVERS = space.
    else.
    data_package-PRODVERS = /BI0/PPRODORDER-PRODVERS.
    endif.
    endif.
    if data_package-calday = space
    or data_package-calday = '00000000'.
    if data_package-TGTCONSQTY NE 0.
    data_package-calday = data_package-ACTRELDATE.
    endif.
    endif.
    data_package-agsu = 'GSU'.
    data_package-agsu_qty = 0.
    select single gr_qty
    base_uom
    into (/BIC/ODS-gr_qty,
    /BIC/ODS-base_uom)
    from /BIC/ODS
    where prodorder = data_package-prodorder
    and material = data_package-material.
    if sy-subrc = 0.
    if /BIC/ODS-base_uom = 'GSU'.
    data_package-agsu_qty = /BIC/ODS-gr_qty.
    else.
    SELECT SINGLE * FROM /bi0/pmat_unit
    INTO CORRESPONDING FIELDS OF l_s_mat_unit
    WHERE material = data_package-material
    AND mat_unit = 'GSU'
    AND objvers = 'A'.
    IF sy-subrc = 0.
    IF l_s_mat_unit-denomintr <> 0.
    e_factor = l_s_mat_unit-denomintr /
    l_s_mat_unit-numerator.
    multiply /BIC/ODS-gr_qty by e_factor.
    data_package-agsu_qty = /BIC/ODS-gr_qty.
    ENDIF.
    else.
    CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
    EXPORTING
    INPUT = /BIC/ODS-gr_qty
    NO_TYPE_CHECK = 'X'
    ROUND_SIGN = ' '
    UNIT_IN = /BIC/ODS-base_uom
    UNIT_OUT = 'GSU'
    IMPORTING
    OUTPUT = DATA_PACKAGE-gsu_qty
    EXCEPTIONS
    CONVERSION_NOT_FOUND = 1
    DIVISION_BY_ZERO = 2
    INPUT_INVALID = 3
    OUTPUT_INVALID = 4
    OVERFLOW = 5
    TYPE_INVALID = 6
    UNITS_MISSING = 7
    UNIT_IN_NOT_FOUND = 8
    UNIT_OUT_NOT_FOUND = 9
    OTHERS = 10.
    endif.
    endif.
    endif.
    modify data_package.
    endloop.
    some how the AGSU qyt is not populating in the cube and when I dbug the code, I could see a clean record in the internal table but not in the cube.
    your suggestion and solutions would be highly appreciated.
    thanks,
    Swathi.

    Hi Swathi
    In ODs we have option of overwriting and addition however in Cube we have only adition.Thats why you are getting multiple enteries.
    If you are running daily full load on the cube then please delete the earlier requests.
    So at one point of time there should be only one full load request in cube. Hope this will solve your problem.
    Regards,
    Monika

  • Table entries not getting displayed in desired format

    Hi All,
    In my adobe layout I created a table . I used data format Align Right and align middle for the table entries. In the Output  some entries of the table are not displaying in align right and align middle.
    Output:In the below output the first row data is not in desired format .
    Thanks in Advance,
    Suneel.Uggina.

    That is pretty to much information to help you.
    You need to share your technical setting. How did you create the table? Subforms, Table-assistent... what are the values in? Format, what happens when you also pass more than 1 digit to the numbers in the first row, does it show up correct?
    So please share more details and explain exact what you have tried to fix the issue. The community is able to help you, but not meant to suggest enaything you could have done.
    ~Florian

Maybe you are looking for

  • How to login icloud in my iphone

    hello Apple This charan how to login in iclud ..? u can't log in to iclud

  • BoundsInScene property

    Referring to Re: How do I listen for change in the global position of a Node there is no "super easy" way to listen to a node's boundsInScene. I really hope that this is not true or that there is a reasonable workaround for this. Otherwise I'm afraid

  • Where are my libraries and projects ? update of Maverick in cause ??...

    Tonight all I have is problems with Final Cut Pro X... I read many similar things in the last few hours, and start to wonder if this could be the last OS X update in cause ??... Everything was fine 3 days ago... - As per my other post (few minutes ag

  • Hello everyone, I am experiencing an issue running xcode

    If anyone could help me i would be very grateful. I am running xcode 3.2.6 on a OS X 10.6.8.  I have been playing with codeblocks, and xcode was working just fine but as soon as i turn of my computer off and back on this error message appears.. Xcode

  • Why do email links open with firefox

    even when I have another browser already open, my email links automatically open with firefox