Can we generate Dynamic fields in HANA

Hi Frzz,
I have a requirement, in which i need to generate the fieds based on the value set dynamically. Is it possible in HANA with scripted Calculation view??
Please guide.
Best Regards,
Krishna.

Hello Krishna,
If i understood your problem
Your data looks like this
ActualField
SuperiorField
1
2
1
3
1
4
2
5
2
6
2
7
3
8
3
9
3
your output needs to look like this:
Level 1
Level 2
Level 3
1
2
4
3
5
6
7
8
9
if so, dynamic sql might seem a good option.
My experience suggest there may be a better way...
For Starters ... check out
Window Functions - SQL Reference - SAP Library
Let me know if you see a way forward...or any problems as i am sure there is more to your use case that you cannot reveal on an open forum...So tell me the problem you face if you try it using Window functions.
Warm regards
aadi

Similar Messages

  • Generate Dynamic fields in an Interactive Form

    Hello,
    I would like to know if it is possible to generate dynamic fields in an Interactive Forms ?
    Best regards,
    A.Henry

    Hi,
    Yes it can be implemented by using scripts.
    Here you can do the hide and visible things and once the field is binded in the interactive form that do not change.
    We can utilize the context node elements only once we can put into interactiveform only . we can not use as dynamically as Context attributes.
    What you are exactly looking for?
    Thanks,
    Lohi.
    Message was edited by:
            Lohitha M

  • How can we display dynamic fields from a XML CLOB?

    Jdeveloper Version : 11.1.1.4.0 (11g)
    We are calling a database package.procedure from a page VO and it returns a result set. The result set is mainly a XML CLOB. Within XML CLOB, we have various sections which we need to parse and display those on JSF page. Couple of sections within XML are having dynamic fields which means the number of fields returned under that section may change depending upon data conditions. We need to find technical way of displaying those dynamic fields (field name and its data – both are part of XML).
    Please suggest how can this be achieved.
    Thanks

    <?xml version="1.0" encoding="UTF-8" ?>
    <nodes>
    <node>
    <category_id>3</category_id>
    <parent_id>2</parent_id>
    <name>Mobile</name>
    <is_active>1</is_active>
    <position>1</position>
    <level>2</level>
    <children>
    <node name="Nokia" category_id="6" parent_id="3" is_active="1" position="1" level="3">
    <node name="Nokia N79" category_id="7" parent_id="3" is_active="1" position="2" level="3" />
    <node name="Nokia N95" category_id="7" parent_id="3" is_active="1" position="2" level="3" />
    <node name="Nokia N97" category_id="7" parent_id="3" is_active="1" position="2" level="3" />
    </node>
    <node name="Samsung" category_id="7" parent_id="3" is_active="1" position="2" level="3">
    </node>
    </children>
    </node>
    <node>
    <category_id>4</category_id>
    <parent_id>2</parent_id>
    <name>Laptop</name>
    <is_active>1</is_active>
    <position>2</position>
    <level>2</level>
    <children></children>
    </node>
    <node>
    <category_id>5</category_id>
    <parent_id>2</parent_id>
    <name>Monitor</name>
    <is_active>1</is_active>
    <position>3</position>
    <level>2</level>
    <children></children>
    </node>
    <node>
    <category_id>8</category_id>
    <parent_id>2</parent_id>
    <name>Camera</name>
    <is_active>1</is_active>
    <position>4</position>
    <level>2</level>
    <children></children>
    </node>
    </nodes>
    Is this correct format to create dynamic menu?

  • Can i generate dynamic variables

    hi guys
    can we generate varibles in a plsql block dynamically ..viz i have some varibles in the data base that are entered by the user and the values are to be calculated at the run time based on some of those varible eg
    in database
    code formula (varchar2)
    a --
    b a/2
    c b-a*6
    etc..
    so the problem is to calculate them at run time say based on a (in the above eg).
    so scract ur head a little and ....enjoy

    You cannot create a table inside a trigger (unless you use an autonomous transaction) since that invloves DDL. Are you certain that you cannot use something like a global temporary table?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • While generating a crystal report can we edit database fiels in field explorer (at middle can we edit database fields)

    while generating a crystal report can we edit database fiels in field explorer (at middle can we edit database fields)

    Wrong forum to post the question, try to post the question in crystal reports community.
    Its not possible to edit the database fields while creating the reports, its only used to call the rows of values in it. Can you explain me in detail what are you actually looking for .
    --SumanT

  • File name field not generating dynamic file name for report printing

    Hello Folks,
    I have a report region on a page and have enabled report printing. I would like to have the file name generated dynamically. So, I add the substitution string, say "&P1_CUSTOMER_NAME." (no quotes). The output file I get is literally named "&P1_CUSTOMER_NAME..pdf" (no quotes).
    I have seen several posts suggesting the file name field should accept this syntax but, I cannot get it to work.
    We are running Application Express 3.2.0.00.27 and BI Publisher.
    Any suggestions?
    Thanks for your help.
    -Markus B.

    I was finally able to make it work using a page process and the APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT with a submit button.
    -Markus B.

  • How we can generate dynamic menu in jsp page

    Hi all,
    how we can generate dynamic menu in jsp page.
    Thanks
    Manjinder

    by reading more about them on the web or in a good book, OR BY HIRING SOMEBODY TO DO SO. ;)

  • Validate Dynamically Generated Form Fields

    Hello, I am having difficulty in validating some text boxes I dynamically generated using javascript.
    I have done the below which is not working..... giving errors of undefined or is null
    var i=rowNum;//value of the integer giving the form field a unique name
    var thefield =(eval(document.getElementById('xxxx_'+i).value));
    if (thefield =="")
    alert("xxxxxxxxxxxxx");
    This is not working. Any one has example of validating dynamically generated form fields?

    Check out jquery and the validation plug-in by Jörn Zaefferer: http://plugins.jquery.com/project/validate
    It'll simplify your life!

  • Unable to generate Dynamic PDF

    Hi,
    I created a xdp file from xml and xsl files and then used Form Server to generate dynamic pdf file. The xdp file has lot of javascript. The pdf file generated by form server does not change colors of labels of the fields, when incorrect values are entered into the fields (accomplished using javascript). But the xdp file used to generate this pdf when run within Adobe Form Designer shows changes of colors of labels. I observed few differences between the two approaches. One being dynamicRenderer tag. How can I accomplish the changes of colors in the pdf generated using form server?
    Thanks a lot in advance

    To force the generated PDF to be a dynamic PDF add the following option to the option string passed into the renderForm() method:
    RenderAtClient=true
    Chris
    Adobe Enterprise Developer Support

  • Generating dynamic columns for a report

    Hi all,
          Can anybody pls. tell me how to output dynamic columns in a report. my req. is that i've to generate so many columns as there are no. of unique(a particular field value) rows in my internal table. for e.g say suppose i've 5 rows in my internal table which has 2 fields, one short text & it's corresponding value. so now my report output shud have 5 columns with the short text as the column heading & the their corresponding values below each column heading. i heard it can be done thru field-symbols. can anyone pls. guide me.

    Hi Sushma,
    This piece of code might be useful.
    The following sections will help you to understand the steps required to define a Dynamic ALV.
    Following symbol signifies:
    Þ                    Important
    Main Steps Required
    The following are the main steps that are to be performed for defining a dynamic Alv
    1.       Defining a field catalog
    2.       Defining the dynamic table
    3.       Filling data into the table
    4.       Displaying ALV list
    Defining a field catalog
    The purpose of defining a field catalog first in case of Dynamic ALV is somewhat different than in case of normal ALV. In case of Dynamic ALV the field catalog is used to define the final internal table that will hold the data, and would be used to display the final output.
    Þ It is very important to remember that the field catalog table be refreshed first, else it might give an error.
    For example:
    DATA: T_FIELDCAT TYPE LVC_T_FCAT,
    L_FIELDCAT TYPE LVC_S_FCAT.
       Refresh T_FIELDCAT.
      CLEAR L_FIELDCAT.
      L_FIELDCAT-FIELDNAME = 'LIFNR'.
      L_FIELDCAT-INTTYPE = ''.
      L_FIELDCAT-OUTPUTLEN  = 10.
      L_FIELDCAT-COLTEXT  = TEXT-002.
      APPEND L_FIELDCAT TO T_FIELDCAT.
    Defining the dynamic table.
    This table will hold the final data that needs to be displayed. To declare the table the following things need to be done.
    Declare a field symbol
    Displaying Alv List
    This is done in the same way as we do for normal Alv. Call function “REUSE_ALV_GRID_DISPLAY” and pass the field catalog table in the export parameters and the dynamic table in Tables.
    Reward Points if it is helpful.
    Reagrds,
    Kiran I

  • How to generate dynamic param file

    Hi, Can anyone please tell me how to generate dynamic parameter file from a table. Table has following structure: create table parameter_temp{Folder_name ,Workflow_name,session_name,parameter_name,parameter value} This table stores all the parameters for all the workflows. How can I generate parameter file for specific session or workflow. Thanks,

    Hi All, I have a scenario to implement.Need urgent help. I have relational source which has below fields. ID,Account,AccountType,Balance1,1001,GL,46567.901,1002,SL,56889.971,1003,Equity,45543.9081,1004,GL,89.541,1005,SL,-56889.971,1006,Equity,-45543.9081,1007,SL,-42777.45  Here my first requiremnt is to check if the balance value for entire file is 0 and if balance amount for each AccoutType is 0 , if both condtionn satifies the flow will go , else load will fail. I tried in below approach. SQ >> Expression >> Aggregator  In aggregaor i have first calculated sum(balance) for entire file by group by on ID column in an aggregator , and keep actual data in expression transformation. Then i took an expression to connect actual data with the sum(balance) , since i need to perform further calculation.I tried connecting expression and aggregator , but it is not allowing me to connect the posrts. And if i am using a joiner , then wrong data is loading to target. It is joining each result of aggregator with actual ports in expression.   I am not sure how to handle this scenario, so that we can just calculate sum of entire file and sum on basis of account type , is both sum are 0 then load the target , else fail.

  • Generating dynamic search query for search formular

    Hallo guys,
    a theoretical question I have there for you.
    I have a search form in HTML with several input fields, so the user can search for particular features in a db.
    My queiston: How can I generate a dynamic query, depending on which fields the user had filled in?
    It should look like this:
    > look at the input fields:
    > if request.getParameter("art) !=null : Query "+" age
    > if request.getParameter("experience") !=0 : Query "+" experience
    > if request.getParameter("instrument") != null : Query "+" instrument
    > .... and so on
    final query = SELECT art, experience,instrument FROM x, y, z WHERE x.art = art AND y.experience > experience AND z.instrument LIKE '%instrumen%' ;I hope I have explained it somehow understandable.
    Any help is deeply appreciated! Thank you in advance...
    fankoff
    Edited by: fankoff on Jun 21, 2010 9:55 AM

    for every ? in your preparedQuery, you need a preparedQuery.set...
    why do you use reflection to get the length of an array? why not use:
    int[] ar = {1,2,3,4};
    System.out.println(ar.length);you might want to consider using "... WHERE title IN (title1, title2, ..) OR content IN (content1, content2,...)"
    now unfortunatly jdbc seems to be not properly specified with the #setArray, oracle uses it in above mentioned context(e.g. "... WHERE title IN ?" and you set a string-array) mysql doesn't.(you would need something like "...WHERE title IN (?,?,?,?,?)"
    but in either of this case, or yours, its usually better to create a prepared query once, and than just insert the values with each fetch. just use enough ?'s and set the not-needed ones to NULL. it will still be more efficient than creating a query everytime.

  • Customize Proposal Dynamic Fields

    Hi
    I have a requirement like,
    When we include Quote Line Dynamic Fields in RTF Components, While generating the proposal i have to customize only the Quantity of Quote Lines.
    Example Like :
    <@PRPSTR001: Start Quote@>
    **QTY     Model #     Item Description     Unit Price     Line Total**<@PRPSTR003: Begin Quote Line@>
    *<@PRPQOT046:Line Quantity@>* <@PRPQOT043:Item Number@> <@PRPQOT044: Product Description@> $<@PRPQOT048:Line Unit List Price@> $<@PRPQOT052:LineTotal Selling Price@>
    <@PRPSTR004:End Quote Line@>
    Quote Sub Total (USD):      $<@PRPQOT027: Total Selling Price@>
    <@PRPSTR002: End Quote@>
    My Requirement is to only customize *<@PRPQOT046:Line Quantity@>*
    How can i achieve this?
    Can any body give idea on this..
    Awaiting for your response.
    Regards,
    Hari K

    You can add whatever you like to whatever field, although some have format restrictions. I have a set of tracks where I use year to store a serial number. I just have to remember that its a serial number in the year field. I also have coded data in the BPM field. I put album identifiers in "Grouping".
    Track tags are stored with most files and are intended to be compatible between platforms and hardware. I think if one were to allow renaming of all the track fields it would likely result in a big mess and probably iTunes would get flooded with more comments from people who couldn't get their track information to appear in the correct field (because they had completely messed things up, including all the tags with music downloaded from iTunes Store) than the one or two comments a week from people wishing customizable tags.

  • Dynamic Fields and Images

    Hi Folks,
    I have to prepare some PDFs using indesign that will be used for Invoices. Our developers want to be able to add the logo and certain fields dynamically. I wanted to find out is there anything special i need to know to do to make the fields and logo updateable dynamically in the output PDF. What is this topic even under? Would it be a scripting thing? I tried Googling around to find answers but had no luck.
    Just to give you an example of what I mean by dynamic fields.... i might have a field title "Surname" with text box alongside. My developers should be able to insert the correct surname into that text box when displaying the PDF
    Thanks for your help community!

    is the PDF generated in indesign going be used as a graphic for the Management Information System (MIS) to put data over the top of, or are "the developers" attempting to use indesign as a database query tool?
    indesign's data merge has limited capabilities and using it as a "back end" to generate invoices is something that IMHO is beyond its scope.
    can the OP please give more information so that a more properly formed answer can be given?

  • Download dynamic fields (based on changed layout) from ALV

    Hello All,
    Currently i am displaying 28 firelds in my ALV output.
    I have created my own button for downloading the contents displayed using GUI_DOWNLOAD.
    Say if user changes the layout and say now we have 35 fields in the layout.
    Now when we click the DOWNLOAD button, i want to download these 35 fields instead of 28 fields.
    Can anyone please help me on this...
    Thanks in advance....
    Regards,
    Tarun

    Hi Tarun,
    As the frontend layout is directly connected to this output table, standard excel download would work here (because it already knows which column to display and download).
    But as you want custom solution I think the following might work:
    - get fieldcatalog using GET_FRONTEND_FIELDCATALOG
    - loop through it and check if field is in displayed mode ( NO_OUT ne 'X' ).
    - create (or just copy above entries) to new fieldcatalog table
    - use class CL_ALV_TABLE_CREATE to generate dynamic table with structure of displayed fields only (based on that new fieldcatalog)
    - loop through output table and copy corresponding fields to your dynamic table appending to it
    - download dynamic table using GUI_DOWNLOAD (parameter DATA_TAB here is generic so you can pass any table structure).
    Regards
    Marcin

Maybe you are looking for