Dynamic mapping of function_elements in ALV.

Hi Experts,
    I need to do a dynamic external mapping of function_elements node in my code. How we can achieve this?
Any specific method can be used to do the mapping for the function_elements in ALV.
Thanks & Regards,
Arun

I have created a node that has a attribute (check the cardinaltiy what functional elements is expecting use the same cardinaltiy)
Now, go to the functional elements node map this node to that node.
I have used this attribute for dropdown.
to fill that attribute, get node info-> use valuset to fill that.
For ALV->
DATA:
    lo_function  TYPE REF TO cl_salv_wd_function,
    lo_drk_year TYPE REF TO cl_salv_wd_fe_dropdown_by_key,
    lo_fe_year   TYPE REF TO cl_salv_wd_fe.
    CREATE OBJECT lo_drk_year
      EXPORTING
        selected_key_elementname = 'YEAR'.  "ATTRIBUTE NAME
    IF lo_drk_year IS BOUND.
      CALL METHOD lo_drk_year->set_label_text
        EXPORTING
          value = 'Select a Year'.
      lo_fe_year ?= lo_drk_year.
    ENDIF.
    CALL METHOD _o_ref_alv_emp_model->if_salv_wd_function_settings~create_function
      EXPORTING
        id    = 'FUNCTION2'
      RECEIVING
        value = lo_fun_year.
    IF lo_fun_year IS BOUND.
      CALL METHOD lo_fun_year->set_editor
        EXPORTING
          value = lo_fe_year.
    ENDIF.
Edited by: Lekha on Feb 21, 2012 12:26 AM

Similar Messages

  • Dynamic mapping for alv

    Hi All,
    I need to display three tables  using alv.
    i have used one alv component  in my application.
    In my context  i have three nodes ( for three tables )
    when i am trying to map  one node of my component control to  'DATA' of alv component
    its working fine. i am getting the data of one table .
    Now , my problem is for the remainig two tables . how these two nodes are mapped for the same alv 'DATA' attribute of alv component.
    Whether i need to create  two more  alv components or Is there any possible to dynamic mapping ?
    Thanks and Regards,
    sravan.

    Hi Sravan,
    Now , my problem is for the remainig two tables . how these two nodes are mapped for the same alv 'DATA' attribute of alv component
    You cann't map the multiple context nodes to the DATA node of interface controller.You have to declare 3 component usages.
    or
    you want to set the map the dynamically then use this code.
    data:l_ref_interfacecontroller type ref to iwci_salv_wd_table.
    l_ref_interfacecontroller = wd_this->wd_cpifc_alv( ).
    l_ref_interfacecontroller->set_data( lo_node ).

  • RE: Dynamically mapping data to widgets

    One quick and dirty solution would be something like this (though not
    terribly efficient):
    newPanel : Panel;
    newPanel = <panelCreatedFromWindowWorkshop>.Clone(deep = TRUE);for childWidget in newPanel.children do
    -- check if the childWidget field name matches field name to be
    set
    if childWidget.name.isEqual(source=<..FieldNameToSet..>,
    ignoreCase=TRUE) then
    dataWidget : dataField = dataField(childWidget);
    if dataWidget.textvalue = NIL then
    dataWidget.textvalue = new;
    end if;
    -- set the textvalue of the childWidget to required
    value
    dataWidget.textvalue.setvalue('WORKS !');
    end if;
    end for;
    Your problem would have been directly solved if the Forte library class
    CompoundField provided a SetDataObject( ) method corresponding to the
    GetDataObject( ) method.
    According to Forte Help - "The GetDataObject method returns the object
    that the compound field is mapped to. If the compound field is not
    mapped to an object, this method returns NIL."
    Maybe Forte could consider providing this in a future release.
    Another option would have been to use the GetFieldByName( ) method on
    the newly created panel to get at the child widgets directly.
    According to Forte help - "GetFieldByName is designed for use in dynamic
    applications. For example, you can use GetFieldByName to retrieve the
    names of dynamically created fields for immediate use in dynamic
    applications."
    This works fine for compile-time named widgets, but I couldn't get it to
    work for the newPanel child widgets using the code below, or maybe I am
    missing something here.
    newPanel : Panel;
    newPanel = <panelCreatedFromWindowWorkshop>.Clone(deep = TRUE);newPanel.name.setvalue('newPanel');
    newPanel.parent = <aGridField>;
    dataWidget : dataField = dataField(newPanel.getFieldByName('age'));
    (OR)
    dataWidget : dataField =
    dataField(<aGridField>.getFieldByName('newPanel.age'));
    (OR)
    dataWidget : dataField =
    dataField(self.window.getFieldByName('newPanel.age'));
    In all cases the return value was NIL.
    Maybe someone from Forte could shed more light on this.
    Hope this helps.
    Prashant.
    From: Richard Finegan[SMTP:[email protected]]
    Reply To: Richard Finegan
    Sent: Thursday, August 13, 1998 2:27 PM
    To: 'Forte Users Mailing List'
    Subject: Dynamically mapping data to widgets
    Here's what I'm trying to do:
    I have a panel with a bunch of data fields that I've mapped to an
    object.
    I want to replicate the panel several times to programmatically
    populate a
    TabFolder (although the TabFolder bit isn't really relevant here, I
    think).
    But I can't figure out how to get at the mapped data in the replicas
    of my
    object...
    newPanel : Panel;
    newPanel = <panelCreatedFromWindowWorkshop>.Clone(deep = TRUE);
    panelCreatedFromWindowWorkshop.anAttributeOfObjMappedToPanel =
    something;
    // tada! "something" appears in a data field of the original panel
    newPanel.? = something; // how to do the same thing with the new
    panel?
    How do I map an object to the replicated panel? I've experimented
    with
    assigning "Widget.AppData" to a new object, but I can't seem to get it
    to
    do anything...
    Thanks in advance for your help.
    Richard Finegan
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi Michael,
    did you find any solution?
    I've the same problem.

  • Dynamic mapping: I have no Class. I want to get database columns into a map

    I want to practice dynamic mapping.
    I don't know the class in development time. I know the attributes only on runtime. Then I create the table, and want to practice OR Mapping to get and set data in this table while all I have is aa map of fields (Strings/int for direct-to-field mappings, Lists, Objects, etc.) - against this new table.
    I have no Class. Neither source nor Class object in hand.
    In Hibernate it is possible and very well documented. It's called "Dynamic Model". I have to get a special Hib session from a session i already have, and it starts to work with Maps and not real classes and objects.
    Here is the command in Hib: sess.getSession(EntityMode.MAP);
    Thanks in advance.
    Doron

    Doron,
    We have been working with dynamic models and byte code weaving for a while now. I took some work I did a few months back now and upgraded it to work with EclipseLink JPA. I have started creating an example within EclipseLink to both illustrate how EclipseLink can be extended to deliver this dynamic mapping and also to start consolidating our existing dynamic support in our SDO and DBWS components into a more general solution that be used out of the box with JPA.
    I have started a wiki page to illustrate how this functionality can be used. Take a look and let me know if this might address your requirements.
    http://wiki.eclipse.org/Eclipselink/Examples/JPA/Dynamic
    Doug

  • FDS and Hibernate dynamic mapping

    I am using FDS with hibernate
    (flex.data.assemblers.HibernateAssembler) to transfer data between
    the flex client and my JDBC database. This works really smooth, as
    long as I specify a server-side java class (POJO) in the
    <hibernate-mapping><class name="some.class"> attribute.
    As I dont really need these server-side java classes for
    anything else, I have tried to save some work by using the
    hibernate "dynamic-map" mode (<hibernate-mapping><class
    entity-name="some.entity">). But in this case, FDS does not map
    the result to the corresponding flex ActionScript class with the
    correct RemoteClass alias. The DataService "fill" method returns an
    ArrayCollection of "ManagedObjectProxy" items containing the field
    "$type$=some.entity" instead.
    Does FDS support hibernate dynamic mapping? Is there a
    workaround for this problem?
    Best,
    Per

    Hi Per,
    The Hibernate assembler doesn't currently support the
    dynamic-map mode, so for now you'll need your POJOs.
    Best,
    Seth

  • Dynamic mapping

    Hi,
    how to make dynamic mapping?
    Is it possible to make mapping at runtime?
    Thanks a lot.
    Regards,
    Jorge Luiz

    Hello,
    Please see these:
    [Dynamic Context Creation, Mapping, and Data Binding|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6fdae690-0201-0010-a580-d104b459cb44]
    [Web Dynpro ABAP: Dynamic Context Creation, Mapping, and Data Binding|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/201ddd3b-b4ce-2b10-8883-880ae8147f89]
    Regards

  • How to give dynamically mapping in interface

    Hi all,
    I have requirement for this requirement i am thinking various scenarios,
    could please tell me is there any way to we can give source,target data stores and mapping dynamically(execution time) to the interfaces ? if it is possible then i can re use job again and again ?
    please give your solutions for this post
    Thanks,
    Surya.

    Please let me know if I miss the mark here.
    If you are trying to build the 150 interfaces without spending the time to do so manually, use the ODI SDK. Check out David Allan's blog post for examples here https://blogs.oracle.com/warehousebuilder/entry/odi_11g_interface_builder. You can build your interfaces once - without need for dynamic mapping at execution time.
    I'm pretty sure there is no good way in ODI "out of the box" to dynamically map columns at execution time, but I imagine you could use the ODI SDK to write a Java program that does so. Then, use the Open Tools feature in ODI to run the Java program within your ODI processes. I'm not sure the value of this, but I do not have a full understanding of your requirement.
    I hope this helps. Enjoy!
    Michael R.

  • About how to build dynamic maps using jdeveloper 10g and mapviewer

    i follow the guidance (about how to build dynamic maps using jdeveloper 10g and oracle application server mapviewer) to write a jsp file,but error take palce ,i get information "Project: D:\jdev1012\jdev\mywork\WebMap\ViewController\ViewController.jpr
    D:\jdev1012\jdev\mywork\WebMap\ViewController\public_html\WebMap.jsp
    Error(12,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
    Error(12,190): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
    Error(12,102): cannot access class oracle.lbs.mapclient.taglib.MapViewerInitTag; file oracle\lbs\mapclient\taglib\MapViewerInitTag.class not found
    Error(12,28): cannot access class oracle.lbs.mapclient.MapViewer; file oracle\lbs\mapclient\MapViewer.class not found
    Error(12,40): cannot access class oracle.lbs.mapclient.MapViewer; file oracle\lbs\mapclient\MapViewer.class not found
    Error(13,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
    Error(13,198): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
    Error(13,106): cannot access class oracle.lbs.mapclient.taglib.MapViewerSetParamTag; file oracle\lbs\mapclient\taglib\MapViewerSetParamTag.class not found
    Error(14,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
    Error(14,188): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
    Error(14,101): cannot access class oracle.lbs.mapclient.taglib.MapViewerRunTag; file oracle\lbs\mapclient\taglib\MapViewerRunTag.class not found
    Error(15,37): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found
    Error(15,200): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found
    Error(15,107): cannot access class oracle.lbs.mapclient.taglib.MapViewerGetMapURLTag; file oracle\lbs\mapclient\taglib\MapViewerGetMapURLTag.class not found"
    can you help?
    greetings

    I found a lot of information in document 133682.1 on metalink.
    step by step example how to deploy a JSP business component application.

  • Dynamic Map

    Hi;
    I search a source code (C# or JS) to show the dynamic France MAP wiht a view which displays the name when a user selects with the mouse the  country ?
    Web part or WSP or any package.
    Regards,

    Hi,
    Per my understanding, you might want to display a dynamic map in a web part.
    A suggestion is that you can use the gmaps.js plugin which “allows you to use the potential of Google Maps in a simple way”:
    https://hpneo.github.io/gmaps/
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Ipsec Stateful Failover issue with Dynamic-Map

    Hi all, I have an issue with a couple of Cisco ISR 2921 in Ha Ipsec Stateful Failover configuration.
    With static crypto-map, stateful works good, Ipsec sessions are correctly trasmitted from Cisco Active router to Cisco Standby router.
    With dynamic-map and profile, stateful fails, Ipsec sessions are not correctly trasmitted from Cisco Active router to Cisco Standby router.
    I tried different IOS version:152-1.T3, 152-3.T2 and 153-1.T but I have the same behavior.
    Could you help me?
    Marco

    Yes it is supported. It is supprted on VAM, VMA2, VAM2+.

  • Dynamic-map use

    Hi,
    I've been tasked with cleaning up a 5510 running 8.2(4) that has been migrated from a PIX a long time ago. In looking over the config, I'm not sure how these dyn maps are used. How does these work and how can I tell if they are actually are being used? Thanks.
    access-list outside_cryptomap_dyn_20 extended permit ip any 10.x.9.0 255.255.255.128 access-list outside_cryptomap_dyn_80 extended permit ip any 10.x.11.0 255.255.255.252 access-list outside_cryptomap_dyn_100 extended permit ip any host 10.x.11.2 access-list outside_cryptomap_dyn_180 extended permit ip any host 10.x.11.22 access-list outside_cryptomap_dyn_200 extended permit ip any 10.x.12.0 255.255.255.0 access-list outside_cryptomap_dyn_160 extended permit ip any host 10.x.11.21 access-list outside_cryptomap_dyn_220 extended permit ip any host 10.x.11.23 access-list outside_cryptomap_dyn_240 extended permit ip any host 10.x.11.24 access-list outside_cryptomap_dyn_260 extended permit ip any host 10.x.11.25 access-list outside_cryptomap_dyn_320 extended permit ip any host 10.x.11.26 access-list outside_cryptomap_dyn_340 extended permit ip any host 10.x.11.27 access-list outside_cryptomap_dyn_360 extended permit ip any host 10.x.11.28 access-list outside_cryptomap_dyn_380 extended permit ip any host 10.x.11.29 access-list outside_cryptomap_dyn_400 extended permit ip any 10.x.9.0 255.255.255.128 access-list outside_cryptomap_dyn_420 extended permit ip any host 10.x.11.24 access-list outside_cryptomap_dyn_500 extended permit ip any host 10.x.11.34 access-list outside_cryptomap_dyn_520 extended permit ip any host 10.x.11.29 crypto dynamic-map outside_dyn_map 20 match address outside_cryptomap_dyn_20crypto dynamic-map outside_dyn_map 20 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 20 set security-association lifetime seconds 14400crypto dynamic-map outside_dyn_map 40 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 60 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 80 match address outside_cryptomap_dyn_80crypto dynamic-map outside_dyn_map 80 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 100 match address outside_cryptomap_dyn_100crypto dynamic-map outside_dyn_map 100 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 120 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 140 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 160 match address outside_cryptomap_dyn_160crypto dynamic-map outside_dyn_map 160 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 180 match address outside_cryptomap_dyn_180crypto dynamic-map outside_dyn_map 180 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 200 match address outside_cryptomap_dyn_200crypto dynamic-map outside_dyn_map 200 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 220 match address outside_cryptomap_dyn_220crypto dynamic-map outside_dyn_map 220 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 240 match address outside_cryptomap_dyn_240crypto dynamic-map outside_dyn_map 240 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 260 match address outside_cryptomap_dyn_260crypto dynamic-map outside_dyn_map 260 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 280 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 300 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 320 match address outside_cryptomap_dyn_320crypto dynamic-map outside_dyn_map 320 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 340 match address outside_cryptomap_dyn_340crypto dynamic-map outside_dyn_map 340 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 360 match address outside_cryptomap_dyn_360crypto dynamic-map outside_dyn_map 360 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 380 match address outside_cryptomap_dyn_380crypto dynamic-map outside_dyn_map 380 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 400 match address outside_cryptomap_dyn_400crypto dynamic-map outside_dyn_map 400 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 420 match address outside_cryptomap_dyn_420crypto dynamic-map outside_dyn_map 420 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 440 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 460 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 480 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 500 match address outside_cryptomap_dyn_500crypto dynamic-map outside_dyn_map 500 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 520 match address outside_cryptomap_dyn_520crypto dynamic-map outside_dyn_map 520 set transform-set ESP-3DES-SHAcrypto dynamic-map outside_dyn_map 540 set transform-set ESP-3DES-SHAcrypto map outside_map 65535 ipsec-isakmp dynamic outside_dyn_map

    Hi Icaruso,
    Dynamic Maps are used for remote access vpn connections from outside to your protected network. If you don't have any remote access user then you can unhesistatingly delete all the dynamic maps and corresponding crypto acl. The crypto acl in case of dynamic map don't make much sense as the default is "whole network access to remote vpn client" unless split-acl or vpn filter is defined. In any case I doubt if so many dynamic maps are being used in your network because in normal case it is only one.  Here is a link which you can refer for remote access client configuration
    http://www.cisco.com/en/US/partner/products/ps6120/products_configuration_example09186a00807f9a89.shtml#newra
    Regards,
    Rohan

  • Loading of Dynamic Maps

    Hi,
    I'm developing an occasionally connected application for handheld devices using NetWeaver Mobile 7.1.
    Here I need to load dynamic maps like Google Maps or Microsoft Live Maps within my application itself. Suggest me the solution to resolve the above issue.
    Thanks in advance.
    Regards,
    DVR.

    Hi Vinodh,
    There is no webbrowser kind of control provided with SAP NWMobile Client.
    To acheive this scenario what I suggest is developing a custom control which could be used to browse and open external web links.
    Client framework provides support for hosting customer custom controls inside the application. You can develop a eSWT based control and host it inside the application.
    Also you can use any third party applications/browser to achieve this and call it from the application using core java functionality on How to call external applications in normal java code.
    On writing a custom control please see to some of these blogs:
         /people/mike.brosseau/blog/2008/10/09/mobile-71-intro-to-custom-eswt-controls
         https://www.sdn.sap.com/irj/scn/wiki?path=/display/community/using%2bsignature%2bcapture%2beswt%2bcontrol%2bin%2bmobile%2bwebdynpro
    Regards,
    Nipun

  • Create Dynamic Structure at Runtime via ALV-Methods!

    Hi Experts,
    i try to create at the ABAP Runtime a new Structure.
    FOR EXAMPLE: I have a internal Table "database" and i dont know their Structure or Typ.
    MY Question: How can i get the structuretype for this internal Table "database" ??
                                    I thought that it is possible with ALV-Methods, but i dont find the right way.
    First Step:       I must get the structure of this internal Table.
    Second Step: I must create a workarea/ line of this internal Table, that i can work row for row with the table.
    Have someone an code example for me, because iám very confused about this Problem.
    With kind regards.
    Ersin Tosun

    Hello,
    For this specific requirement, SAP has provided RTTI class.
    Below is a code snippet for your ready reference. In this example we're trying to get the structure of the dynamic table <ITAB> whose structure is not defined till run-time.
    TYPE-POOLS: abap.
    PARAMETERS: p_table TYPE tabname.
    DATA: dref TYPE REF TO data.
    FIELD-SYMBOLS <itab> TYPE STANDARD TABLE.
    CREATE DATA dref TYPE STANDARD TABLE OF (p_table).
    ASSIGN dref->* TO <itab>.
    DATA: go_tab_descr TYPE REF TO cl_abap_tabledescr,
          go_struc_descr TYPE REF TO cl_abap_structdescr,
          wa_comp TYPE abap_compdescr.
    go_tab_descr ?= cl_abap_tabledescr=>describe_by_data( <itab> ).
    CHECK sy-subrc = 0.
    go_struc_descr ?= go_tab_descr->get_table_line_type( ).
    LOOP AT go_struc_descr->components INTO wa_comp.
      WRITE: / wa_comp-name.
    ENDLOOP.
    I must create a workarea/ line of this internal Table, that i can work row for row with the table.
    Sorry i missed the Step 2:
    FIELD-SYMBOLS: <itab> TYPE STANDARD TABLE,
                   <wa> TYPE ANY,
                   <val> TYPE ANY.
    LOOP AT <itab> ASSIGNING <wa>.
      LOOP AT go_struc_descr->components INTO wa_comp.
    *   To access the components of the structure dynamically
        ASSIGN COMPONENT wa_comp-name OF STRUCTURE <wa> TO <val>.
      ENDLOOP.
    ENDLOOP.
    BR,
    Suhas
    Edited by: Suhas Saha on Nov 18, 2010 7:26 PM

  • How to create a dynamic mapping of columnar at the Runtime using ADF or JSF

    How to create a dynamic GUI at the Runtime using ADF or JSF in JDeveloper 11g.
    What I am trying to build is to allow the user to map one column to another at the run time.
    Say the column A has rows 1 to 10, and column B has rows 1 to 15.
    1. Allow the user to map rows of the two tables
    2. An dhte rows of the two columns are dynamically generated at the run time.
    Any help wil be appreciated.....
    Thnaks

    Oracle supports feedback form metalink was; "What you exactly want to approach is not possible in Htmldb"
    I can guess that it is not
    exactly possible since I looked at the forums and documantation etc. but
    couldnt find anything similar than this link; "http://www.oracle.com/technology/products/database/htmldb/howtos/tabular_form.h
    t". But this is a very common need and I thought that there must be at least a workaround?
    How can I talk or write to Html Db development team about this since any ideas, this is very important item in a critial project?
    I will be able to satisfy the need in a functional way if I could make the
    select lists in the tabular form dynamic with the noz_id;
    SELECT vozellik "Özellik",
    htmldb_item.select_list_from_query(2, t2.nozellik_deger, 'select vdeger
    a,vdeger b from tozellik_deger where noz_id = 10') "Select List",
    htmldb_item.text(3, NULL, t2.vcihaz_oz_deger) "Free Text"
    FROM vcihaz_grup_ozellik t1, tcihaz_oz t2
    WHERE t1.noz_id = t2.noz_id
    AND t2.ncihaz_id = 191
    AND t1.ngrup_id = 5
    But what I exactly need i something like this dynamic query;
    SELECT
    vozellik "Özellik",
    CASE
    WHEN (t2.nozellik_deger IS NULL AND t2.vcihaz_oz_deger IS NOT NULL) THEN
    'HTMLDB_ITEM.freetext(' || rownum || ', NULL) ' || vozellik
    WHEN (t2.nozellik_deger IS NOT NULL AND t2.vcihaz_oz_deger IS NULL) THEN
    'HTMLDB_ITEM.select_list_from_query(' || rownum ||
    ', NULL, ''select vdeger a,vdeger b from tozellik_deger where noz_id = ' ||
    t1.noz_id || ''' ) ' || vozellik
    END AS "Değer"
    FROM vcihaz_grup_ozellik t1, tcihaz_oz t2
    WHERE t1.noz_id = t2.noz_id
    AND t2.ncihaz_id = 191
    AND t1.ngrup_id = 5
    Thank you very much,
    Best regards.
    H.Tonguc

  • Dynamic creation of variables and alv grid output/internal table

    Dear Experts
    I am stuck in an inventory ageing report which is to be done year wise. the scenario is as follow.
    selection screen i enter the year 2011 or 2010 or 2009.
    the output should show me 2011-2007 or 2010-2007 or 2009-2007. the alv grid should always start from 2007 and end at the year that is entered in the selection screen.
    Now how can i create a dynamic variables to store the values of the corresponding yr and also how can i create a dynamic internal table to store these values.
    Thanks & Regards
    Zamir Parkar

    Hi Zamir,
    if you are new to ABAP you may leave old and buggy techniques behind.
    If you want to create the table dynamically, please do not use l_alv_table_create=>create_dynamic_table because it is limited and always triggers a possibly unwanted database commit.
    You better use RTTS dynamic runtime type services, i.e. check the example for [Creating Flat and Complex Internal Tables Dynamically using RTTI|http://wiki.sdn.sap.com/wiki/display/Snippets/CreatingFlatandComplexInternalTablesDynamicallyusingRTTI].
    As done here, leave all outdated ALV technologies behind and start with CL_SALV_TABLE. It is following the object-oriented approach and does not need a field catalog.
    You will get used to field-symbols that can be compared to the data referenced by a pointer. For dynamic fields, you may build the field names dynamically, i.e.
    DATA:
          lo_structdescr         TYPE REF TO cl_abap_structdescr,
          lo_typedescr           TYPE REF TO cl_abap_typedescr,
          lo_tabledescr          TYPE REF TO cl_abap_tabledescr,
          lr_data                TYPE REF TO data,
          lt_comp_all            TYPE cl_abap_structdescr=>component_table,
          lv_index               TYPE numc2.
        FIELD-SYMBOLS:
          <any>                  TYPE ANY,
          <component>            TYPE LINE OF abap_component_tab,
           <table>                TYPE table.
        DO nnn TIMES.
          lv_index = sy-index.
          lo_typedescr   =  cl_abap_typedescr=>describe_by_name( <name of data element> ).
          APPEND INITIAL LINE TO lt_comp_all ASSIGNING <component>.
          <component>-type ?= lo_typedescr.
          CONCATENATE 'YEARVAL' lc_underscore lv_index INTO <component>-name.
          <component>-as_include  = abap_true.
          CONCATENATE lc_underscore lv_index INTO <component>-suffix.
        ENDDO.
    * create description object for structured type
        lo_structdescr = cl_abap_structdescr=>create( lt_comp_all ).
    *  create table description object for this
        lo_tabledescr = cl_abap_tabledescr=>create(
                        p_line_type  = lo_structdescr
                        p_table_kind = cl_abap_tabledescr=>tablekind_std
                        p_unique     = abap_false ).
    * create data object
        CREATE DATA lr_data TYPE HANDLE lo_tabledescr.
    ASSIGN lr_data->* to <table>.
    This is a fragment. Please adapt to your needs.
    Regards,
    Clemens

Maybe you are looking for

  • Acrobat 9 PRO windows help.. copy paste for dummy

    Help...please I open pdf documents, highlight the text, copy and paste into MS Word or other programs and the text spacing is all messed up. There are spaces between letters in words. How do I paste, copy or whatever? I want the copied pdf to look ex

  • SDK Schemas have moved - but where?

    Probably because of the recent OTN web site reorganization, the XSD files for XML extensions have moved. Would someone please update http://wiki.oracle.com/page/SQL+Dev+SDK+How+Tos to point to the new locations of navigator.xsd, query.xsd, editors.xs

  • DG4ODBC - MySQL in 11.2.0 or 11g XE

    Hi - I've been struggling on and off for weeks with this - so fed up with ODBC connectivity!!! 4 years ago I was finally able to get heterogeneous connectivity on 10g/Windows to SQL Server using HSOLEDB but that's apparently not an option anymore as

  • JMS receive in JTA doesn't return message

    Hi I am using Websphere Application server 6.1 (the one provided with RAD 7.0.0)and WebSphere MQ 6.0 as JMS provider. I have a problem receiving message from queue when JTA transaction is active. I configured Connection Factory as following: Scope ce

  • How to Create BO in BOPF as to hold 3 different Nodes as Transient and Data sharing between the 3 Nodes ?

    Hi All, My requirement : I have to create a FBI OVP Application, Displaying Search UIBB in the first Section .(Fetches Data from Standard Table) Below this search UIBB I have to create a List UIBB (Name it as LIST_1) in the Second Section to display