How to create variables at runtime

Hi,
I need to know how can i create variables at runtime.
or is their anything like array that we create in 'C' if yes . how can i define its size at runtime.
Thanks,
Dev.

In forms, either record groups or pl/sql tables of records give similar functionality to an array. You have full programatic control of either but with completely different syntax. Record groups integrate well with certain forms built-ins and features (eg LOVs and Tree items). PL/sql tables integrate well with other pl/sql such as stored procedures. Unlike an array, a pl/sql table may be SPARSE (index numbers need not be sequential), and UNBOUNDED (no need to declare the number of rows).

Similar Messages

  • How to create variables in payroll rules

    Hi Experts,
    Can you please let me know how to create variables in payroll rules and how to assign values to them.
    Please share some documentation on this topic.
    Thanks so much,
    Uttama

    Hi Vijay,
    Variables can be created for -
    Char Values
    Texts
    Formula elements
    hierarchy and its nodes
    For Characteristic Values -
    These are used to be filled by user in the query selection screen
    1.In the filter tab of QD, select the characteristic for which you want to create a variable,right click - >Restrict
    2.Select variabes from drop down
    3.Click Create new variable and then define its properties like "Processing By",Settings in Details tab etc and save it
    4.Move it to the right side and click ok
    Now you have created a variable and used it as a placeholder for that characteristic for which user can enter the value to act as dyanmic entry.
    Regards,
    Vineeth

  • How to create variable in areport

    Hi all ,
    I am using fr_studio for creating reports.Can anyone tell me how to create variable in the report?

    Hi,
    There is nothing as such creating variable for navigation attribute. You can only create variable directly on particular infoobject.
    In your case you are using transitivie attributes. So they can not be accesed directly in BEX query. You can only use 1st level nagivation attributes in bex query.
    [http://help.sap.com/saphelp_nw04/helpdata/en/6f/c7553bb1c0b562e10000000a11402f/content.htm]
    Regards,
    Durgesh.
    Edited by: Durgesh Gandewar on Feb 22, 2012 3:53 PM

  • How to create Variables for the Key Figures

    Hi All,
    How to create Variables for the Key Figures
    Thanks
    Bhaskar

    Hi,
    It is not possible to create the variables on Key figures directly. But we can create a formula variable with processing type 'User Entry' ,SO that the user entered value can be used in the calculations of the query.
    With rgds,
    Anil Kumar Sharma .P

  • How to create Variables(User Input Selections) in WEBI Report

    Hi Team,
                  My requirement is to create a WEBI Report on top of BEx query,I have created a Universe and WEBI Report on this Universe but my doubt is How to create Variables for the User to select.The Input selection should be
    User Iputs(All are drop downs)
    Distribution Channel :       ->drop down,user can select one
    Division:                          -> drop down,user can select one
    Department:
    Season:
    Collection:
    Date Format              Valid From:                                 Fiscal Week:
    When the user gives the above selections the output should be displayed as
    Material No   Description     Markdown Week     Reason code1(under this)        Reason code2(under this)   like that for all the
                                                                                valid from         Amount              Valid from          Amount            Reason code.
    I have designed the basic layout of the Report but wanted to know how to design like this,Please help me out in this Format.
    Thanks & Regards,
    Somu

    Hi, depending on the way you set this up (it is not entirely clear if you are talking bex variables or report drop down filters), use the following;
    For BEX variables, the choice will be in the
    UserResponse("prompt message")
    this you can display in the message format you want.
    For drop down filters the choice will be in the DrillFilters(), this one will show all selections in one string.
    However, if you want to format this to a certain message, you need to use the Formula
    DrillFilters([object from drill bar])
    This will give you the result of just that one selection. If the user did not select (yet), the value will be "".
    Hope this helps,
    Marianne

  • How to create variable in BEx on a Nav Attribute?

    Hi All,
    We are creating a report on Master data object 0MILESTONE. 0PROJECT is the navigational attribute of 0milestone.
    and ZSTATUS is the navigational attribute of 0PROJECT.
    Requirement is to create variable on ZSTATUS in BEx. How do I do that? I dont see option of creating variable on Nav attribute of a Nav attribute.
    Regards,
    Bob

    Hi,
    There is nothing as such creating variable for navigation attribute. You can only create variable directly on particular infoobject.
    In your case you are using transitivie attributes. So they can not be accesed directly in BEX query. You can only use 1st level nagivation attributes in bex query.
    [http://help.sap.com/saphelp_nw04/helpdata/en/6f/c7553bb1c0b562e10000000a11402f/content.htm]
    Regards,
    Durgesh.
    Edited by: Durgesh Gandewar on Feb 22, 2012 3:53 PM

  • How to create variables in Bex query

    Hi all,
    can anyone please explain how to create the variables and how many types of variables in Bex Query.
    Thanks in advance
    James

    Hi James,
    You can create variables in the BEx Query by right clicking on your characteristic and then selecting Restrict. A pop up window will appear. On the left side of the pop-up window, right click on a white space and then select New Variable. The Variable Wizard will then appear - you can now create your variable acording to your specifications. For more info on variables, please click on the link below:
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56a7e09411d2acb90000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/61/579b3c494d8e15e10000000a114084/content.htm
    Hope this helps,
    Juice

  • How to create variables in AWB

    Hi Experts,
    Can anyone tell me how to create Varibales ( the ones that are used in BEX) without logging into BEX. Is there any TCODES for that??
    Thanks,
    Arun

    I am not sure if you can create a variable through AWB ... inside the GUI you can only create variants...
    you could however check the same using RSRT.
    This is because there is no query editor available through the GUI - and anyway if you have access to the GUI then you must also be having access to BeX - why this approach ? just asking ?
    Arun

  • How to create Variables in Reporting

    Hi All,
    I want to create Variables and processing types how to create in BI 7.0.
    could u Please provide me solutions step-by-step.
    Please ASAP.
    Thanks & Regards,
    Vijaay.

    Hi Vijay,
    Variables can be created for -
    Char Values
    Texts
    Formula elements
    hierarchy and its nodes
    For Characteristic Values -
    These are used to be filled by user in the query selection screen
    1.In the filter tab of QD, select the characteristic for which you want to create a variable,right click - >Restrict
    2.Select variabes from drop down
    3.Click Create new variable and then define its properties like "Processing By",Settings in Details tab etc and save it
    4.Move it to the right side and click ok
    Now you have created a variable and used it as a placeholder for that characteristic for which user can enter the value to act as dyanmic entry.
    Regards,
    Vineeth

  • OWB 11g  Process Flow - How to see variables and how to create variables

    Dear All,
    I have recently migrated from 10g to 11g rel 2.
    In 10g when I open a proces flow I can see all the parameters and variables I created on each activities on "Explorer" window. this allows me to craete new parameters and variables as well.
    But ones after I migrated to 11g, I cant see explorer window and there is no place to enable it as well.
    How Can I create variables, parameters in processes flow on 11g?
    Thanks in advance.
    Alex

    Hi,
    In 11g "Explorer" window renamed as "Stucture" and same details as 10g shows in Structure window. This window can enable and dissable (Show and Hide) using Menu => View=> Stuture option.
    Thanks

  • How we create Variable for Previous year for COPA reports

    Hi Guruss,
    I am making a COPA report for Current year comparison with previous year from KE31. For 1st column I have created the Variable for current year (which works perfectly) now in 2nd column i need the actual data pertaining to previous. So can any one please guide me how to create the variable for previous year.
    Thanks

    Thanks Jagannadha,
    I have create the variable for current year on KE3E. but i am confuse how i create the variable for previous year on KE3E.
    Waiting for reply.

  • How to resolve variable at runtime in java

    I have problem in resolving variable at runtime. The value of hdstr is getting added into the v1 vector element whereas it should get resolve at runtime and value should get added into the vector.
    0===>(String)vector[0].get(i),(String)vector[1].get(i),(String)vector[2].get(i),(String)vector[3].get(i),(String)vector[4].get(i)
    0===>(String)vector[0].get(i),(String)vector[1].get(i),(String)vector[2].get(i),(String)vector[3].get(i),(String)vector[4].get(i)
    Following is the program code
    import java.util.*;
    public class test15
         public static void main(String[] args)
              Vector[] vector = new Vector[10];
              vector[0] = new Vector();
              vector[1] = new Vector();
              vector[2] = new Vector();
              vector[3] = new Vector();
              vector[4] = new Vector();
              vector[0].addElement("0Zero");
              vector[1].addElement("0First");
              vector[2].addElement("0Second");
              vector[3].addElement("0Third");
              vector[4].addElement("0Fourth");
              vector[0].addElement("1Zero");
              vector[1].addElement("1First");
              vector[2].addElement("1Second");
              vector[3].addElement("1Third");
              vector[4].addElement("1Fourth");
              Vector v1 = new Vector();
              String hdstr = new String();
              for(int i = 0; i < 5; i++)
                   hdstr = hdstr + "(String)vector[" + i +"].get(i),";
              hdstr = hdstr.substring(0, hdstr.lastIndexOf(","));
              for(int i = 0; i < vector[1].size(); i++)
    //               v1.addElement(new String[] {(String)vector[0].get(i),(String)vector[1].get(i),(String)vector[2].get(i)});
                   v1.addElement(new String[] { hdstr });
              for(int i = 0; i < vector[1].size(); i++)
                   vector.clear();
              Enumeration enum = v1.elements();
              while(enum.hasMoreElements())
                   String[] data = (String[]) enum.nextElement();
                   for (int i = 0; i < data.length; i++)
                        System.out.println(i + "===>" + data[i]);
                        vector[i].add(data[i]);
              System.out.println(vector[0].size());
    any help

    Do you mean to be doing this:
    String hdstr = "";
    for (int i = 0; i < vector[1].size(); i++) {
      hdstr += (String)vector.get(i) + ",";
    hdstr = hdstr.substring(0, hdstr.lastIndexOf(","));
    Cause the way you where doing it before, you where simply making
    a new String that read exactly like it displayed. Here you are
    concatenating the values stored in the vectors into a single String.

  • How to create variables for offsets?

    Hi BW Experts.
    I have a tricky one that has been posted before, but I couldn't get my head around a feasible answer just yet.
    My customer wants to be able to display his ageing AR report with different buckets, depending on the month.
    For example, if it's January he wants to see buckets for 1-30 days, 31-60 days, 61-90 days and 91 to 120 days.
    If it's February, he wants to see buckets for 1-28 days, 29-58 days, 59-88 days and 89-118 days.
    If it's March, he wants to see buckets for 1-30 days, 31-58 days, 59-88 days and 89-118 days,
    and so on.
    We have create a structure in the query, filtering the key figure 0DEB_CRE_LC by 0NETDUEDATE. We have a variable for 0NETDUEDATE as a starting date and use different offsets to get the buckets. However, the offsets need to be hard coded, preventing us the flexibility of choosing the days in the buckets.
    Is it possible to create variables for the offsets, so the user can choose the days for the buckets at the report run time?
    Thanks in advance.
    Kind regards,
    Aline Passos.

    Hi Aline,
    as user is entering 0NETDUEDATE & he needs different buket for different months, which are more or less decided well in advance, I believe it cane be handled by User Exit varaibles which will draw value from the variable value you have entered & go backward.
    you will need to write the ABAP code with your logic to drive the correct user exit values.
    hope it helps
    regards
    VC

  • How to create variables for Characteristic Info-objects in Rows / Columns

    I want to create variables in abovementioned manner for COPA retraction in BPS, as COPA retraction does not recognise variables created in "filter" section of Bex. Can sumone advise , as I have tried all the possibilities of creating but failed to do so?

    Hi Ravi/All,
    Actually my problem will be solved if I am able to create variables in either Rows/Columns area of BeX.
    Variables are getting created easily in Filter section of BeX (but in COPA , it will not serve any purpose COPA retraction does not recognise contents of Filter/variables contained in the filter).
    In fact variables are getting created in Rows/Colums of Bex, but they are in the form of structures. (Again multiple structures (more than 1)  are not recognised in COPA retraction.

  • How to create beans at runtime ?

    I have requirement to create beans at runtime.
    Please help me...

    Don't doublepost, it's rude. Please continue here: http://forum.java.sun.com/thread.jspa?threadID=5246338

Maybe you are looking for

  • Why I can't change my country?

    Why I can't change my country?

  • BW reporting for SRM upgrade

    HI, My quetion is, for upgrade fromn EBP2.0 to SRM 5.0, what will be the changes (structural and in tables) that will have to be considered in case of BW reporting? Will standard reports in the new version take over automatically (with minimal config

  • Remove or delete vi from memory

    I am running a vi which will run ok the first time I run it but doesn't execute correctly subsequent times.  If I close the vi (return to labview startup screen) and reopen it, then it works again.  The vi in question uses labpython to run some pytho

  • Incident Report at Puerto Rico Store # 1118

    Today, February 10, 2014 at approximately 2:05 pm the following incident took place at your PR store #1118: While at your store I selected a product (Samsung Micro USB Connector). In order to comply with your store regulations, I left the selected pr

  • Cannot find 'making one word hyper link'

    Didn't there used to be the option? Instead of posting a mile long link. I like to help when possible, and direct link using single word from topic would seem a bit more tidy. Thanks