Report Scripts Output
Hi,<BR><BR>Is there any way to display the output membernames with double quotes using Report Script in Essbase.<BR><BR><BR>ie: <BR>"Actual" "Sales" "Market"<BR>"Qtr 1" "Qtr 3" "Qtr 3" "Qtr 4" #Missing<BR><BR>Thanks<BR><BR>Osvaldo
Hi,<BR><QUOTEMBRNAMES option will help you.
Similar Messages
-
Report Script output in UTF-8 code with Non-Unicode Application
Essbase Nation,
Report Script output (.txt) file is being coded as UTF-8 when the application is set to Non-unicode. This coding creates a signature character in the first line of the text file, which in turn shows up when we import the file into Microsoft Access. Does anyone know how to change the coding of the output file or know who to remove the UTF-8 signature character.
Any adive is greatly appreciated.
Thank you.
Concerned AdminYou may be able to find a text editor that can do the conversion. Alternatively, I have converted from one encoding to the another programmatically using Java as well.
Tim Tow
Applied OLAP, Inc -
Report script issue - showing comma in numbers
Good Morning,
I have a report script that runs on one Essbase cube and produces a datafile to load into a Planning cube via a load rule. The issue is that when I load the datafile into Planning, it says it is loaded successfully but not all of the data loads. I also do not recieve an error log. I have checked the datafile and all of the relevant data is stored. I believe that the issue is that the report script has commas in the numbers. The load rule replaces the comma with a space, but I believe this is causing an issue with the load. Perhaps there is an extra comma somewhere in the file and when the load rule loads the file, it thinks it has finished.
My question is, how do I remove the commas within the numbers in the report script? Below is a portion of the report script.
// This portion of the script captures data at level 2 and generation 9 within the four operating divisions to get all field level data
<LINK (( <DESCENDANTS ("RC_P1301008017","Lev2,Entity") or <DESCENDANTS ("RC_P1301008019","Lev2,Entity") or <DESCENDANTS ("RC_P1301008021","Lev2,Entity")
or <DESCENDANTS ("RC_P1301008029","Lev2,Entity")) and <DESCENDANTS ("RC_P1201008065","Gen9,Entity"))Do you use a { SUPCOMMAS } in your report script? That should suppress all commas in data values.
http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/rw_supcommas.html
You might also think about SUPALL:
http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/rw_supall.html
FWIW, I had a Planning app like this last year. The importing of the report script output into Access (oh, the horror) to do moderately intensive mapping and aggregating was...painful. The only cool part was that I was "not allowed to source data from the app" but I could "run any retrieve I wanted so long as security allowed it". Hmm, how is that different? Okay then, report scripts are it. ;)
Regards,
Cameron Lackpour -
How to output the outline parent-child relationship using a report script?
I'd like to extract the outline's dimension members with it's parent-child relationship using a report script. Anybody can provide a sample script? Thanks.
Example:
DimensionX
-----MemberX
----------ChildX
Output:
Dimension X MemberX
MemberX ChildX
Edited by: obelisk on Jan 11, 2010 5:16 PMSorry a report script won't do it. You have two options
1. Use at Essbase Outline API to walk the outline and get it for you
2. Use the Outline extractor available from Applied Olap (it is a free download). It can be run interactively of as a bat file.
Frankly, I would rather use 2 since I don't have to code it myself -
How to output the member UDA as a column in Report Script?
I tagged my account dimension members according to its classification instead of using an attribute dimension.
I wanted to use the assigned UDA for data loading purpose (select/reject records in rule file.
Please let me know the syntax to show UDA as a column in the report script.
Thanks.It sounds like what you need is an alias table for loading purposes, rather than a UDA tied to the members.
Like Glenn said, you can't output the UDA in a report, but you can either output an alias or use the alias in the destination database. In this case, I'd use a new alias table rather than the default alias, something specific for the purpose. -
Report Script - size of the output file
I created a report script using the Hyperion Essbase Report Edit and saves the text in ASCII file. There is no error or warning message. If I checked the "Window" box under the "Report Output Options", the following warning message is displayed:
I created a report script using the Hyperion Essbase Report Edit and saves the text in ASCII file. There is no error or warning message, even the "Show Warnings" box is checked.If I checked the "Window" and "File" boxes, the following warning message is displayed: "Output File is too large; truncating file"It looks like the warning is only for the report displayed on the screen. The data in the ASCII file is not truncated. Is this correct?
-
Group Membership report script - Modify to change format of output
Hi all,
Slowly getting to grips with Powershell. Such a powerful tool.
I've been tasked to develop a reporting script that will output a list of members of a set of groups and have found one of the scripts here to be a great starting point.
So this is the script:
"Import-Module ActiveDirectory
cd AD:
$MemberList = New-Item -Type file -Force “C:\Scripts\GroupMembers.csv”
Import-Csv “C:\scripts\grps.csv” | ForEach-Object {
$GName = $_.Samaccountname
$group = Get-ADGroup $GName
$group.Name | Out-File $MemberList -Encoding Unicode -Append
foreach ($member in Get-ADGroupMember $group) {$member.SamaccountName | Out-File $MemberList -Encoding Unicode -Append}
$nl = [Environment]::NewLine | Out-File $MemberList -Encoding ASCII -Append
The output lists the group name and the members of said group using Sam account name.
Ideally I would like that the email address of the user be in the output instead of SAMACCOUNTNAME however I realise that this may not easily be achievable due to the output of get-adgroupmember.
I'd also like if the output contained each of the email addresseses of the group members to be on the same line seperated by a semicolon in one cell directly under the group name.
EG:
GROUPNAME1
[email protected];[email protected];[email protected]
GROUPNAME2
user15:mail.com
Etc
Can either of these requirements be achieved from modifying the script above and any help would be much appreciated.
Thanks for any assistance.You're welcome, glad I could help out.
Here's the same code with some comments and syntax links:
# Import the CSV file and process each record
Import-Csv .\grps.csv | ForEach {
# Set the group name as a variable for easy use later
# This really isn't necessary, but I do it for easy reading
$groupName = $_.SamAccountName
# Get the group members of the current group and process each user
# The output of this loop will be stored in a single variable
$groupMembers = Get-ADGroupMember -Identity $groupName -Recursive | ForEach {
# Get the user account and select only the EmailAddress property
Get-ADUser -Identity $_.SamAccountName -Properties EmailAddress |
Select -ExpandProperty EmailAddress
# Create a hashtable from the data above
# The group members are sorted and then joined using ; as a delimiter
$props = @{
GroupName = $groupName
Members = ($groupMembers | Sort) -join ';'
# Create a new object based on the hashtable above
New-Object PsObject -Property $props
} | Select GroupName,Members | Export-Csv .\groupMemberships.csv -NoTypeInformation
# Select is used to ensure the correct column order and then an output CSV is created
http://ss64.com/ps/import-csv.html
http://ss64.com/ps/foreach-object.html
http://ss64.com/ps/get-adgroupmember.html
http://ss64.com/ps/get-aduser.html
http://ss64.com/ps/select-object.html
http://ss64.com/ps/syntax-hash-tables.html
http://ss64.com/ps/new-object.html
http://ss64.com/ps/export-csv.html
Don't retire TechNet! -
(Don't give up yet - 13,085+ strong and growing) -
Hello,
I try to write the report script but cannot find out how to avoide this space-"movement". Is it possible to adjust this with some command? In the manual all the scripts look fine, properly aligned and centered. Cant get that in console. WIDTH, NAMESCOL could not help me. TABDELIMIT supresses many other formatting properties.
Example is below, with a row value 615, which travels from the center of each column.
Thank you
Ole
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
615 615 615 615 615
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0Hi
it didn't really helped. Let us take a look at the sample.basic. I have the same problems:
Script:
//ESS_LOCALE English_UnitedStates.Latin1@Binary
<PAGE (Product, Measures)
<COLUMN (Scenario, Year)
Actual
<ICHILDREN Qtr1
<ROW (Market)
<IDESCENDANTS East
Output:
Product Measures Actual
Jan Feb Mar Qtr1
======== ======== ======== ========
New York 512 601 543 1,656
Massachusetts 519 498 515 1,532
Florida 336 361 373 1,070
Connecticut 321 309 290 920
New Hampshire 44 74 84 202
East 1,732 1,843 1,805 5,380
I think this script language is some tricky...cant understand well in short time. But we need this script to generate an output for a matrix printer.
Ole
Edited by: Ole on 14.09.2011 18:28 -
Report script with attribute members
<BR>In a report script, is there a way to output the attribute members associated with a base mbr. For example, the base member I'm interested in is item codes which is in a sparse dimension with 500k members. Each code has been tagged with 5 attribute members of buyer, warehouse, vendor, product line, and date of last receipt. Desired output is:<BR><BR>Item Code, Buyer, warehouse, vendor, product, and date of last receipt. <BR><BR>Right now I don't care about data at any intersections, rather I just want to output the various attributes associated with each item code. I tried doing dimbottom on items, buyers, warehouse, vendor, etc, but as expected the report would not run. <BR><BR>Thanks in advance for any suggestions.
<p>Maybe you can use the Outline Extractor, you can download itsomewhere on this website...</p>
-
Creating a MaxLStatement to call a report script
I created a MAxl statement to call a report script to create a text file ouput.
here's the syntax I am using
export database appname.databasename using report file '\\\\servername\\dir\\Reportsc.rep' to data_file 'D:\\Hyperion\Essbase\\report.txt'
When I execute in EAS , get a message that the statement executed successfully, but the file was not created in the directory.
Any ideas of why the output file is not created?A couple things of note.
1. There is a single backslash in the path, that could affect where it was sent.
2. Did it go to the D: drive of the EAS server?
Robert -
Set file path in report scripts
Hi All,
Is it possible to set the file path to save the extracted data in report scripts, if so please let me know how to do it.
We can choose the path when executing the script in script editor but how to set the file path in the script itself.
Thanks in AdvanceYou cannot set in in the report script itself.
But rather you can set the output file and path where the output should be extracted.
1. When you manually run from EASS console, you can specify the path and the file name
2. When you use Maxl to run a report script, you can specify.
Have a look at the Export Data
Hope it helps
Regards
Amarnath
ORACLE | Essbase -
We have the following report script. Its taking 2 hrs to run .... but if we hard code the 70 accounts we get output in 1 min...we used these 3 functions to extract the level 0 accounts //<DIMBOTTOM "Account" //<LINK(<LEV("Account",0)) //<LINK(<LEV("Account",0) AND <IDESC("Account")).........................for these 3 functions its taking more time...but if we hard code the 70 accounts we get output in 1 min
// DATA FORMATTING
<SPARSE
<SUPSHARE
<QUOTEMBRNAMES
<SORTNONE
<ACCON
<SYM
{TABDELIMIT}
{ROWREPEAT}
{SUPFEED}
{SUPHEADING}
{SUPEMPTYROWS}
{SUPMISSINGROWS}
{SUPBRACKETS}
{SUPCOMMAS}
{SUPPAGEHEADING}
{MISSINGTEXT "#MISSING"}
{ZEROTEXT "0.00"}
{UNDERSCORECHAR " "}
{DECIMAL 2}
{NOINDENTGEN}
// DATA LAYOUT
//<PAGE ("Project","ProjectYear")
<ROW("Scenario","Year","Project","Entity","FundingSource","CostCenter","Campus","ProjectYear","Fund","Account")
<COLUMN("Period")
// DATA SELECTION
"Budget"
"FY09"
"Project"
"Draft"
"Input"
"PY09"
<LINK((<LEV("Entity",0)) AND (<IDESC("Entity")))
<LINK((<LEV("FundingSource",0)) AND (<IDESC("FundingSource")))
<LINK((<LEV("CostCenter",0)) AND (<IDESC("CostCenter")))
<LINK((<LEV("Campus",0)) AND (<IDESC("Campus")))
<LINK((<LEV("Fund",0)) AND (<IDESC("Fund")))
//<DIMBOTTOM "Account"
//<LINK(<LEV("Account",0))
//<LINK(<LEV("Account",0) AND <IDESC("Account"))
<LINK((<LEV("Period",0)) AND (<IDESC("YearTotal")))
//&BudgetYear
//&ProjBudgetYear
// This substitution variable needs to be updated every Fiscal Year at the start of
// the Budget Formulation process using the Essbase Administration Services client
// EXECUTE THE REPORT
!hi, i just read your post. i'm not sure youre optimizing the order of the dimensions. try doing a level 0 export. then, use that order of dimensions in your report script for the Row command. if you need a different order of the fields use the ORDER command. see my example. i found that my needed order of fields took 6x longer than when i used the export order...also, my link command took longer when i put the dimbottom part last. you really just have to play around alot : \
{SUPEMPTYROWS}
{SUPMISSINGROWS}
{SUPZEROROWS}
//suppresses the automatic insertion of a page break
{SUPFEED}
{SUPCOMMAS}
{SUPBRACKETS}
{SUPPAGEHEADING}
{SUPHEADING}
{MISSINGTEXT "0.00"}
{ ROWREPEAT }
//{TABDELIMIT}
{DECIMAL 2}
{NOINDENTGEN}
//suppresses the display of duplicate shared members when you use generation or level names to extract data for your report.
<SUPSHARE
//forces a symmetric report, regardless of the data selection. Use SYM to change the symmetry of a report that Hyperion Essbase would create as an asymmetric report.
//<SYM
// 0 1 2 3 4 5 6
//export order
<ROW ("Business Units", VERSIONS, Products,TIME,ACCOUNTS,Departments)
<SORTASC
//col 7
{CALCULATE COLUMN "DATA 2" = 6 }
{ORDER 0 1 4 5 2 3 6 7 fixcolumns 8}
{width 18 6 7}
//COL0
//<DIMBOTTOM "BUSINESS UNITS"
{RENAME "B33000"} "BU 33000"
{RENAME "B33009"} "BU 33009"
{RENAME "B33010"} "BU 33010"
{RENAME "B33030"} "BU 33030"
{RENAME "B33050"}"BU 33050"
{width 7 0}
//COL1
{RENAME "BUDGET BUDGET "} "2012 PLAN"
{WIDTH 21 1}
//COL2
// "600000"
<LINK (<DIMBOTTOM (Accounts) and not <MATCH (Accounts, 6?????) and not <MATCH (Accounts, 9?????) )
{width 7 4}
//COL3
<DIMBOTTOM DEPARTMENTS
{width 11 5}
//COL4
<DIMBOTTOM PRODUCTS
{RENAME ""} "BLANK PRODUCT"
{width 40 2}
//COL5
<SORTNONE
{RENAME "USD 2012 001"}"PER01"
{RENAME "USD 2012 002"}"PER02"
{RENAME "USD 2012 003"}"PER03"
{RENAME "USD 2012 004"}"PER04"
{RENAME "USD 2012 005"}"PER05"
{RENAME "USD 2012 006"}"PER06"
{RENAME "USD 2012 007"}"PER07"
{RENAME "USD 2012 008"}"PER08"
{RENAME "USD 2012 009"}"PER09"
{RENAME "USD 2012 010"}"PER10"
{RENAME "USD 2012 011"}"PER11"
{RENAME "USD 2012 012"}"PER12"
{width 17 3}
! -
To convert Sap Script output to PDF format and send it via email.
Hi Friends,
Could any one please tell me, how to convert the Sap Script output to PDF format and send it via email. If any one have the code, kindly mail me to [email protected]
Thanks & Regards,
JohnPlese check this sample code from other thread.
REPORT zzz_jaytest .
Types Declaration
TYPES : BEGIN OF ty_pa0001,
pernr TYPE pa0001-pernr,
bukrs TYPE pa0001-bukrs,
werks TYPE pa0001-werks,
END OF ty_pa0001.
Internal Table Declaration
DATA : i_pa0001 TYPE STANDARD TABLE OF ty_pa0001, "For pa0001 Details
i_otf TYPE STANDARD TABLE OF itcoo, "For OTF data
i_content_txt TYPE soli_tab, "Content
i_content_bin TYPE solix_tab, "Content
i_objhead TYPE soli_tab,
Work Area Declaration
w_pa0001 TYPE ty_pa0001, "For pa0001 Details
w_res TYPE itcpp, "SAPscript output
"parameters
w_otf TYPE itcoo, "For OTF
w_pdf TYPE solisti1, "For PDF
w_transfer_bin TYPE sx_boolean, "Content
w_options TYPE itcpo, "SAPscript output
"interface
Variable Declaration
v_len_in TYPE so_obj_len,
v_size TYPE i.
Constants Declaration
CONSTANTS : c_x TYPE c VALUE 'X', "X
c_locl(4) TYPE c VALUE 'LOCL', "Local Printer
c_otf TYPE sx_format VALUE 'OTF', "OTF
c_pdf TYPE sx_format VALUE 'PDF', "PDF
c_printer TYPE sx_devtype VALUE 'PRINTER', "PRINTER
c_bin TYPE char10 VALUE 'BIN', "BIN
c_name TYPE string VALUE 'C:\ZZZ_JAYTEST.PDF',"Downloading
"File Name
c_form(11) TYPE c VALUE 'ZZZ_JAYTEST'. "Form Name
START-OF-SELECTION.
Selecting the records from pa0001
SELECT pernr bukrs werks FROM pa0001
INTO TABLE i_pa0001 UP TO 10 ROWS.
Setting the options
w_options-tdcopies = 1 ."Number of copies
w_options-tdnoprev = c_x."No print preview
w_options-tdgetotf = c_x."Return of OTF table
w_options-tddest = c_locl."Spool: Output device
Opening the form
CALL FUNCTION 'OPEN_FORM'
EXPORTING
form = c_form
device = c_printer
language = sy-langu
OPTIONS = w_options
IMPORTING
RESULT = w_res.
LOOP AT i_pa0001 INTO w_pa0001.
Writting into the form
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'MAIN'
window = 'MAIN'.
ENDLOOP.
Closing the form
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = w_res
TABLES
otfdata = i_otf
EXCEPTIONS
unopened = 1
bad_pageformat_for_print = 2
send_error = 3
spool_error = 4
codepage = 5
OTHERS = 6.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Converting OTF data to single line
LOOP AT i_otf INTO w_otf.
CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
INTO w_pdf.
APPEND w_pdf TO i_content_txt.
ENDLOOP.
Converting to PDF Format
CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
EXPORTING
format_src = c_otf
format_dst = c_pdf
devtype = c_printer
CHANGING
transfer_bin = w_transfer_bin
content_txt = i_content_txt
content_bin = i_content_bin
objhead = i_objhead
len = v_len_in
EXCEPTIONS
err_conv_failed = 1
OTHERS = 2.
v_size = v_len_in.
Downloading the PDF File
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = v_size
filename = c_name
filetype = c_bin
TABLES
data_tab = i_content_bin.
The extension is put the it_mailpack-obj_name parameter of 'SO_NEW_DOCUMENT_ATT_SEND_API1'. -
Error executing essbase report script using maxl
Hi,
V 11.1.2.1 (64 bit) on windows
An essbase report script errors when it is run from maxl. When I run it directly in maxl the error is
Error - 1030205 - Client directory does not exisit: ...EssbaserServer\<instance>\client
When I run it within EAS the error is
Client directory does not exisit: EPMSystem11R1/common/EssbaseRTC-64/11.1.2.0client
Unexpected essbase error 1030205
The client is installed but the folder locations do not exist. There is a calc script which does a data export which works fine. The essbase report can be manually executed without a problem. This worked fine in 9.3.1.
Here is the script (without actual names)
export database 'app'.'database' using report_file 'AReport' to data_file 'c:\\Output.txt';
I would appreciate any help. I have looked at the knowledge base and can't find anything relevant.
Thanks in advance,
Nathan
I would appreciateHi,
The issue is now resolved.
The client folder must be created where the EAS service is, not Essbase. Once this was done the report script could not be found. In discussion over the phone with Oracle we did some testing, as they use a non distributed environment. If you use 'using report file' you need to specify the path to the report file i.e.
D:\Oracle\Middleware\user_projects\epmsystem\EssbaseServer\<instance>\app\<app name>\<database>\report.rep'
The .rep must also be included.
If you use 'using server report file' you only need to specify the report name, without the extension, and the data file path. You specify the path as normal i.e. D:\nathan.txt but you can get away with simply a file name such as 'nathan.txt'. In a distributed environment this exports to the server where the EAS service is to
<drive>:\Oracle\Middleware\user_projects\domains\EPMSystem
When Oracle support did this it went to the Essbase bin folder as it was a non distributable environment.
The subtle differences between 9.3.1 and 11.1.2.1......
Thanks to all those who contributed.
Nathan -
EA1 - Script output loses focus
Hello out there,
when starting a query in script mode and then trying to copy a word into the clipboard via doubleclick and CTRL-C, not the word I clicked on is copied but something form the worksheet above.
When I just left click into the script output, the focus jumps back into the worksheet.
Marking some text with the mouse lets stay the focus in the script output though...
I'm using SQL Developer 4.0.0.12.27 with JDK 1.7.0_25 64bit on Windows 7 64bit. (With german localization for both SQLD and Windows, if that matters)
Regards,
dhalekIt's a bug! Thanks for reporting this.
Maybe you are looking for
-
Microsoft TechNet Wiki SSRS Guru - Winners for November!!
The results for November's TechNet Guru competition have been posted! Sorry for the delay copying over to the forums, busy times indeed! http://blogs.technet.com/b/wikininjas/archive/2013/12/16/technet-guru-awards-november-2013.aspx Congratulations t
-
Is there away to put a border on one side of a cell only? If not, how do you put a verticle box in at the edge of a cell? I want to seperate some buttons the way that most programs have on the tool bar to indicate groups such as text group or main fu
-
Unable to set environment due to space in Directory name
I have java classes and other executables under E:\Oracle\JDeveloper 3.1\.. JDeveloper 3.1(with space) is default during installation. In some cases, if I exacute files under that hirarchy from DOS prompt(due to Tomcat), it fails to execute due to th
-
Set reference point for multiple objects in the middle of the document
Hello Community, I want to mirror a layout. So I: 1. Select all the objekts 2. Set the reference point to the middle 3. Mirror the objects BUT The reference point is the middle of all the OBJECTS. That leads to several objects crossing the border of
-
How to control my hp dm4 audio keys OUTSIDE of itunes?
i love the fact that my keyboard has actual buttons to control the audio, but i cant press pause or next or last song, unless im in the music program which i think really holds these keys back. is there a way to change this setting? thank you