Array of variables in reports

Hello:
I am beggining with reports 6i. I am doing a report and I need an array of number to hold ten different imports. I have a select with an import in every row, depending of the import (euro, usd, yen, etc) I need sum the import and finally to print the total import of euro, usd, yen, etc. I don't know how to define this variable.
Thank you.

Sorry for my english. Suppose I have the records:
invoice import coin
120 33.45 EUR
121 98.34 EUR
122 14.21 USD
123 4.1 USD
124 7.35 YEN
I need this report:
Invoice ... Import in Euros Import in coin
120 ... 33.45 33.45 EUR
121 ... 98.34 98.34 EUR
122 ... 17.46 14.21 USD
123 ... 5.04 4.1 USD
124 ... 7.35 5.15 YEN
131.79 EUR
18.31 USD
5.15 YEN
Thank you.

Similar Messages

  • Assigning value to array type variable in a loop

    Hi
    I have a scenario in which i am assigning value from a array type variable(x) to the invoke variable of a database adapter. The variable x is exact replica of the invoke variable.
    My copy operation in assign activity looks like this-
    <copy>
    <from variable="Var" part="InputParameters"
    query="/ns7:InputParameters"/>
    <to variable="Invoke_call_XXDPI_EDI_852_PKG_InputVariable"
    part="InputParameters"
    query="/ns7:InputParameters *(* bpws:getVariableData('iterator') *)* "/>
    </copy>
    It is inside a while loop activity.
    PS *()* are square brackets
    But it is erroring out at run time.
    Does anybody has an alternate idea to assign value to an array type?.
    i have seen that while extracting value from an array type variable it works fine
    A similar kind of operation is shown below.
    <copy>
    <from variable="Var" part="InputParameters"
    query="/ns7:InputParameters *(* bpws:getVariableData('iterator') *)* "/>
    <to variable="Invoke_call_XXDPI_EDI_852_PKG_InputVariable"
    part="InputParameters"
    query="/ns7:InputParameters"/>
    </copy>
    Thanks
    Ayush
    Edited by: Ayush fujitsu on Aug 14, 2009 4:36 AM

    Hi Ayush
    I suppose you are getting some error like "source node returns multiple elements".
    In second case there is no problem because you are assigning *InputParameters[bpws:getVariableData('iterator')]* (+suppose InputParameters[1]+) to target. Here it works fine because you are fetching oonly 1 value from source and assigning it to the target.
    Now in first case you are saying copy InputParameters to target[1] suppose. You know that source is an array which contains multiple index so which index field from the source will be assigned to the target.
    Try your process with only 1 source value it will work but when multiple values will be there it will fail. You have to merge both the cases and it will look like
    *<copy>*
    *<from variable="Var" part="InputParameters"*
    query="/ns7:InputParameters ( bpws:getVariableData('iterator') ) "/>
    *<to variable="Invoke_call_XXDPI_EDI_852_PKG_InputVariable"*
    part="InputParameters"
    query="/ns7:InputParameters ( bpws:getVariableData('iterator') ) "/>
    *</copy>*
    And the easiest way to do this is by the transform activity as said above.
    Regards
    Suryaveer
    Edited by: Suryaveer on Aug 15, 2009 11:19 PM

  • How to use Value Variable in Report Painter Column defined as Formula

    Hi Gurus,
    In report painter, how can I add one field (exchange rate) in selection screen, so that user can provide the exchange rate to be used, then execute the report, the exchange rate will used to multiple local currency amount.
    The reason for this is we want use provided exchange rate to convert the amount from once currency to the other currency.
    Alternatively I am studying the functionality of "Value Variable" and found that I can perform the task from this. I have created the value variable but when I am using the variable in Report Painter columns as "&ZVALVAR", system is giving me error. I read the help and it states that use the variable with "&" and do it as it is mentioned.
    Can anybody suggest what I need to do to make it workable.
    Thanks

    I did try using the presentation variable, but that does not work too. I am setting session variable in the dashboard prompt (select 'request variable'). When I use presentation variable, it hard codes the value of the variable name.
    sql is
    select date from work_order where facility = @{p_facility}
    the physical log sql is
    select date from work_order where facility = 'p_facility'

  • Internal variables of report painter shouldn't be selectable

    Dear collegues,
    I have created two new internal variables in report writer in order to use them in planning layout of TA KP67:
    - previous year: marked as internal variable: calculated as: &1CGJAHE-1 (2008)
    and
    - future year: marked as internal variable: calcualted as: &1CGJAHE+1 (2010).
    In report painter these variables are assigned to key figures and are not shown on the selection screen again as they are calculated internally.
    But in planning layout of TA KP67 cost activity planning these variables are also assigned to key figures like actual costs or fixed planned costs and are indicated as acceptable for input on the selection screen but shouldn't - so how it is possible to define internal variables in co planning layouts as really internal which do not come up if the planning layout is executed via TA KP06?
    Thanks and regards,
    Christian

    Hello Christian,
    when I understand your request correctly, you want to plan for several years like 2008, 2009 and 2010 but you just want to enter one year. Right?
    For the column with the current fiscal year you can use a standard variable like GJAHR. For the other columns you define the year in the column as variable with value "GJAHR-1" (last year) and with value "GJAHR+1" (following year). On the selection screen of the planning transaction you will only have one field for the current year and the fiscal year for the other columns is calculated accordingly when you run the planning.
    Hope this helps.
    Cheers,
    Daniela

  • Variable in report script

    Is it possible to create create user defined variables in report script?

    You can't use an Essbase report script to set a substitution variable.
    You can set it in EAS or use MaxL (or Esscmd) to do so.
    See: http://download.oracle.com/docs/cd/E12825_01/epm.111/esb_techref/maxl_variable.htm
    MaxL/Esscmd can be used to set a substitution variable and run a report script that references the variable.
    Regards,
    Cameron Lackpour

  • Variable in report painter

    Hi,
    I have a customized variable in report painter which pulls data from standard table, profit centre (GLPCT).  The data is included dummy profit centre. 
    How can block or should not allow dummy profit centre data to flow to the report?
    Please advice.

    Hi,
    Easier option is to create a profit center group excluding the dummy profit center and assign it in the report painter instead of the variable.
    Other option is at the time of executing the report, exclude the dummy profit center with out making any changes in the report.
    Regards
    Sudhakar Reddy

  • Use global variable in reports which is declared in forms

    Hi All,
    I have declared and used a global variable in Forms and after that I'm running a report and I want to use the same variable in reports.
    How can I use that.
    Regards
    Praveen Kr. Arora

    Hi Rizwan,
    Thanks for prompt reply.
    Can you explain in more detail with example.
    Though I'm calling report from menu item and I have created report file with three parameters.
    In menu item I have created a parameter list with same three parameters but whenever I tried to run then it gives Invalid ID error for all three parameters.
    Regards
    Praveen Kr. Arora

  • How to create a array with variables dimensions?

    I try to create a array like that:
    Object[][] data;
    data = new Object[] [];
    But that's doesn't work!
    Apparently I must specify the dimension of my array
    So I have done like that :
    Object[][] data;
    data = new Object[3] [3];
    And that work!
    But the problem is when I need to add extra elements to my array.
    If I write :
    data[4][1] = "123";
    I have the error message :
    java.lang.ArrayIndexOutOfBoundsException
    So, how can I defined a array with variables dimensions OR how can I add a dimension to a array?

    if you have:
    Object[][] data;
    data = new Object[3] [3];you end yo getting ArrayIndexOutOfBoundException if you try to point to some other Indexes. You can increase the size by doing new:
    Object[][] data;
    data = new Object[4] [3];and then copy the old Arrays to this one... this is heavy.
    Other thing to consider then is using some other datastructure, such as Vector, which grows along you add elements to it.
    P_trg

  • Syntax for declaring global variable in report

    Hello all,
    Kindly let me know syntax for declaring global variable in report?
    Thnks,
    SUnny

    Hi Sunny,
    All data declaration in the main program is global.
    Only if you do some data declaration withtin the subroutines then the scope of the variable is limited to that FORM ....ENDFORM.
    As you read in the above reply for a global variable in FM you need to declare in the top include.
    This means that you want this variable to be made available to all the Function Modules in that Function Group.
    If you want to make the variabe be available only within that FM then do the declaration in the source code itself.
    hope this explaination helps,
    Taher.

  • Local variable in report writer

    how to declare local variable in report writer?

    HI Oscar,
    what is "local" for you? Local in the report?
    Did you check the documentation?
    My result in SAP Help Portal is:
    [Variables|http://help.sap.com/saphelp_nw04s/helpdata/en/fc/eb3034358411d1829f0000e829fbfe/frameset.htm]
    Regards, Boris

  • How to create characterstic formula variable in reporting

    how to create characterstic formula variable in reporting
    tell me any one in steps
    thanks

    HI
    Query Designer -- Select your Char -- Create Char Variable -- Processing type should be Replacment path =In the Replace Variable with drop down box, choose Attribute Value. In the Attribute drop down, select Characteristic Reference
    http://help.sap.com/saphelp_nw70/helpdata/EN/03/6ba03cc24efd1de10000000a114084/frameset.htm
    Hope it helps

  • How to copy bytes to an array byte variable....??

    Hi everyone....can anyone help me out...i want to store byte into an array-byte variable,(byte by byte), which are returning from the readByte() function of DataInputStream.
    Thank you

    int filesize = request.getContentLength();
    byte dataBytes[] = new byte[filesize];
    int read=0;
    while( read <filesize)
    bytesRead[read++] =  in.readByte();  // *in* is object of DataInputStream
    }Change all that to this:
    int count;
    byte[] buffer = newbyte[8192];
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    while ((count = in.read(buffer)) > 0)
      baos.write(buffer, 0, count);
    byte[] data = baos.toByteArray();Of course, like your code, this assumes that the data will fit into memory. It is preferable to process the data read each time as you go rather than accumulating it all first and then processing. This saves both time and space.

  • Presentation variables in report

    Hi all,
    I wold like to show representation variables in report and then dashboard
    It runs fine in answer but it failed in dashboard
    @{pvar_promptChannel}{'Agency'}
    Unresolved column: "Agency"
    what is wrong?
    THnak you.

    Hi MuRam,
    I tried @{pvar_promptChannel}{Agency}, it shows the same error Unresolved column: "Agency" in both analysis and dashboard
    for @{pvar_promptChannel}{'Agency'}, actually, it works very well in analysis, but failed in dashboard.

  • Question about shared variables and report generator

    I have a project with about 200-250 shared variables and at every 12 hours i want to make a report containing information about some boolean and double front panel variables linked to the shared variables... Now, i've tried with both the "Write Trace to SpreadSheet File" function from DSC->History and with different functions from NI Report Generation Toolkit. My problem is this: i would like to get my xls file to contain just the timestamps when my shared variable changed value. As it is, the number of rows in the file depends, obviously, on the sampling interval given as input. As an example, in 12 hours, my shared variable would change value maybe 5-6 times. Thus i would like my xls file to contain just 5-6 rows with those 5-6 changes. If i set the sampling interval to say, a matter of seconds, that would mean too much unneeded information in my xls file. Instead, if i set it to let's say 15 minutes, i would probably lose the moment the shared variable changed value. Is there a way for me to achieve my desired functionality with functions from DSC or Report Generation Toolkit? Thanks in advance, Sabin 

    Hi Mike and thanks for the reply. Actually, my first idea was exactly this: in an event case structure, whenever my variable changed value, i would retain the relevant data in an array and then at the 12 hour period write all of it in a report. However, my boss deeemed it memory unefficient and compelled me to use only one function. Thus my predicament... If you have more advice on this new info, i would be grateful... Cheers, sabin

  • Adding variable in Report painter

    Hi Gurus,
    I am creating a new report using Report painter. Though, it is working fine, I want to bring one of the field for selection. How to add variable ? I created a variable but I am trying to insert this variable in the report painter... I am unable to find any way.
    Awaiting your help.
    thanks in advance.

    Hi,
    Go to Global Parameters Definitaion in report painter, variable will be used only along with the field, just in global paramerters enter your desired field and click in next column, system will show you a pop up select your variable for that field...
    now its just done run the report and test it!
    If you still not make it refer to standard report of such kind, you will surely get it....
    Regards,
    Sayujya

Maybe you are looking for

  • Error Message on attempting to delete a Number Range in CO82--Msg No-NR019

    While deleting the Number range groups in CO82, initially I was able to delete them, but later, I was not able to do so. The error message is as below. "The number range number 18 does not exist Message no. NR019" What is the implication and how to s

  • Can I use my phone in Turkey

    I'm moving to Turkey and want to use my iphone 3Gs.  Can anyone tell me if my phone will work in Turkey.  I've heard I need to unlock it and purchase a new sims card when I arrive in Turkey.  Does the MHz on my phone matter?  Any help would be wonder

  • Scroll Bar on Dashboard

    Hi Gurus, We have two or three requests on one page of dashboard .Is it possible to horizantal scroll bar on each request Because when i use scroll bar at page two requests are scrolling down Can this possible please suggest me how this can be done T

  • 10.4.6 AFP issues?

    Here's something that came across my desk a few days ago. . . Sort of "The Nail of Truth". HELIOS TechInfo #099 ==================== Wed, 06 Apr 2006 Mac OS X to 10.4.6 Upgrade Warning The Apple Mac OS X client upgrade to 10.4.6 introduces several pr

  • I lost my IPad on a plane, but the Airline did not find it.

    I lost my IPad on a plane, but the Airline did not find it. The unit was in Airplane mode with a simple pass code. Is the unit secure? I've searched for the unit with Find IPhone and it shows the unit as offline. I'm assuming the Find Iphone feature