Extraction of Essbase Metadata into a Text File
When extracting metadata from Essbase into a txt file, the file lists the child members before the parents. We want it vice versa-just like it looks in Essbase. LKM Hyperion Essbase METADATA to SQL Is used for extraction.
Unfortunately that is the way the API extracts the hierarchy.
There are a couple of options extract the hierarchy with an incremental id, then order by the ID, this will need to be done in an rdbms staging area such as Oracle or SQL Server.
If you are using Oracle you can always load to table and then using the connect by prior command to sort in the correct parent/child format, I am sure there is something equivalent in sql server.
Cheers
John
http://john-goodwin.blogspot.com/
Similar Messages
-
How to extract the Html content of a UI Map into a text file or html file?
Hi,
Is there any possibility in OUAF or Java or from the Database, to retrieve the Html Content of a given a UI Map ?
If UI Map name is the input, then it should fetch the entire html portion of it into a text file. How to acheive this?
This needs to be done programatically either by writing some Java code or some SQL at the DB level?
Edited by: OATS Explorer on Dec 29, 2012 9:10 AMF1_MAP.HTML_DEFN would give the html contents and F1_SCHEMA.SCHEMA_DEFN would give you the UI Map's Schema.
SELECT map.map_cd
, map.html_defn
, sch.schema_defn
FROM f1_map map
, f1_schema sch
WHERE map.map_cd = sch.schema_name
AND sch.schema_type_flg = 'F1MP' -
How to convert a HTML files into a text file using Java
Hi guys...!
I was wondering if there is a way to convert a HTML file into a text file using java programing language. Likewise I would also like to know if there is a way to convert any type of file (excel, power point, and word) into text using java.
By the way, I really appreciated the help that you guys gave me on my previous topic on how to extract tests from a pdf file.
Thank you....HTML files are already text files. What do you mean you want to convert them?
I think if you search the web, you can find things for converting those MS Office files to text (or extracting text from them, as I assume you mean). -
Download Internal Table into a Text File in BSP?
I have an internal table which i need to download into my local pc. I know i can not use FM gui_download. Could some one please post code on how to download the internal table into a text file in BSP. Also i am not sure if i can use save dialog FM. Also need suggestion on which FM to use for save dialog which tells where to save the file.
Any help will be appreciated.
Thanks
NahmanThis might be a good starting point.
<a href="/people/thomas.jung3/blog/2004/09/02/creating-a-bsp-extension-for-downloading-a-table">/people/thomas.jung3/blog/2004/09/02/creating-a-bsp-extension-for-downloading-a-table</a> -
Write arrays into a text file in different columns at different times
Hi,
I have a problem write data into a text file. I want to write 4 1D arrays into a text file. The problem is that I need to write it at different time and in different column (in other word, not only append the arrays).
Do you have an idea to solve my problem?
Thank youA file is long a linear string of data (text). In order ro insert columns, you need to rewrite the entire file, because colums are interlaced over the entire lenght of the file.
So:
read file into 2D array
insert columns using array operations
write resulting 2D array to file again.
(Only if your colums are guaranteed to be fixed width AND you know the final number of colums, you could write the missing columns as spaces and then overwrite later. Still, it will be painful and inefficient, because column data are not adjacent in the file.)
LabVIEW Champion . Do more with less code and in less time . -
ORA-06521: PL/SQL: Error mapping function while writting into a text file
Hi,
I'm getting an errror ORA-06521: PL/SQL: Error mapping function while trying to write data into a text file.
I'm using the following code:
--To create a new directory
create or replace directory temp as 'C:/temp';
declare
l_str varchar2(1000);
output_file utl_file.file_type;
cursor test_write_cur is
select EMPNO,ENAME,JOB,SAL,HIREDATE
from EMP
where DEPTNO=30;
begin
output_file := utl_file.fopen('TEMP','TESTFILE.txt','w');
for test_write_rec IN test_write_cur
loop
l_str := test_write_rec.EMPNO||'^'||test_write_rec.ENAME||'^'||test_write_rec.JOB||'^'||
test_write_rec.HIREDATE||'^'||test_write_rec.SAL||chr(10);
utl_file.put_line(output_file,l_str);
end loop;
utl_file.fclose(output_file);
end;Please suggest me if i'm wrong.
Thanks & Regards,
Sanket MishraDear Sanket,
I think you are need use TO_CHAR() function
to_char(test_write_rec.EMPNO) ,
to_char(test_write_rec.HIREDATE,'DD.MM.YYYY')
to_char(test_write_rec.SAL) -
How to output a query results into a text file
How to output a query results into a text file instead of outputing it to the screen..
is there a way for us to write a SQL query which specifies to output the query results to a text file.
Pls let me know how to do it
Thanking u in advance
regards
MuralyMuraly,
If you are using SQL*Plus 8.1.6 or later, you can also spool output to a file in HTML format, eg
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON
SPOOL c:\temp\report.html
SELECT DEPARTMENT_NAME, CITY
FROM EMP_DETAILS_VIEW
WHERE SALARY>12000;
SPOOL OFF
SET MARKUP HTML ENTMAP OFF
In iSQL*Plus 9.0.1 (the browser-based interface to SQL*Plus) onwards, you can also send the HTML output to a new web browser window, or an html file -- much easier than the command line method.
Alison -
Grabbing numbers from an array of type double and outputting them into a text file
In a program im creating i need to save some coordinates of a micropositioner i have into a text file,
I have the coordinates saved into an array that has 6 digits of precision (6 places after the decimal point).
I use the number to string conversion and wire that into the write to text file function in labview. When i open the file
the numbers that are only displayed are the ones to the left of the decimal point. I know the number to decimal string function
rounds the values so if i were to input 3.111111 it would only output the string "3" instead of "3.111111" .
So to get all the digits onto the file without rounding i multiplied the number by 10^6 but the decimal point will be lost at that point.
Is there anyway i can convert numbers into strings without labview rounding to the nearest whole number also without having to multiply by 10^6 and without having to expect the user to know that the coordinates saved in a file are multiplied by an order of magnitude of a million ?ed oh i guess i just missed that function on the pallete after i saw that the function went from number to hex, octal, etc. i assumed that the rest on that row would be some sort of conversion to a different base number, haha thanks.
-
Write Query Results into a text file
Hello All,
In SAP B1 Query Generator I'm trying to write the results of a query into a text file (.txt). I've tryed with queryout but it doesn't work.
What I want is something like this:
SELECT * FROM TABLE queryout "C:/textfile.txt"
Any sugestions?
Thanks in advance,
Miguel BarbosaHello All,
Since yesterday and due to your help, I've found how to solve my problem.
This post is only to share with you and with the others users of Expert Forums how to Write the results of an SQL Query in SAP Business One to a Text File without making it by exportation.
Requested Text File by customer:
Document type in R/3 If Invoice -- 'Z100' - Position 1 to 4 - 4 characters
Supplier Code -- dbo.Table.CardCode -- Position 5 to 15 - 10 characters
Item Code -- dbo.Table.ItemCode -- Position 11 to 25 - 14 characters
Client Code -- dbo.Table.CardCode -- Position 26 to 36 - 10 characters
Client Name -- dbo.Table.CardName -- Posiiton 37 to 100 - 63 characters
Fixed Blank Field -- ' ' -- Position 101 to 120 - 19 blank spaces
Quantity -- dbo.Table.Quantity -- Position 121 to 140 -- 19 characters
Unit Price -- dbo.Table.PriceBefDi -- Position 141 to 160 -- 19 characters
If Invoice Fixed identifier -- 'Z01' -- Position 161 to 163 -- 3 characters
Fixed Blank Field -- ' ' -- Position 164 to 220 -- 56 characters
Document Date -- dbo.Table.DocDate -- Position 221 to 229 - 8 characters
Delivery Date -- dbo.Table.ActDelDate -- Position 230 to 238 - 8 characters
Sales Order Number - dbo.Table.DocNum -- Position 239 to 260 - 21 characters
Delivery Number - dbo.Table.DocNum -- Position 261 to 282 - 21 characters
Follows the code:
EXEC master..xp_cmdshell'bcp
SELECT DISTINCT
''Z100''
+ ''ZP00002091''
+ IsNull(Convert(nVarChar(44), Cast(T0.DocNum As Numeric(38, 0))), '''')
+ ''PTAP''
+ '' ''
+ ((LTRIM(RTRIM(T1.U_NumConc)))) + SPACE(10-LEN(LTRIM(RTRIM(T1.U_NumConc)))) + ((LTRIM(RTRIM(T3.BaseRef)))) + SPACE(10-LEN(LTRIM(RTRIM(T3.BaseRef))))
+ '' ''
+ ''Z02''
+ CONVERT(varchar(10), T1.ActDelDate, 112)
+ CONVERT(varchar(10), T0.DocDate, 112)
+ '' ''
+ IsNull(Convert(nVarChar(44), Cast(T1.BaseRef As Numeric(38, 0))), '''')
+ ((LTRIM(RTRIM(T1.ItemCode)))) + SPACE(18-LEN(LTRIM(RTRIM(T1.ItemCode))))
+ ''0'' + REPLACE(SPACE(12-LEN(CONVERT(varchar(12), CAST(T1.Quantity AS NUMERIC (38,3))))),'' '',''0'') + REPLACE(((LTRIM(RTRIM(CONVERT(NUMERIC(38,3),T1.Quantity))))),''.'','''')
+ ''0'' + REPLACE(SPACE(12-LEN(CONVERT(varchar(12), CAST(T1.PriceBefDi AS NUMERIC (38,2))))),'' '', ''0'') + REPLACE(((LTRIM(RTRIM(CONVERT(NUMERIC(38,2),T1.PriceBefDi))))) ,''.'','''')
+ ''ZPHA''
+ '' ''
+ '' ''
+ '' ''
+ ((LTRIM(RTRIM(T4.CardName)))) + SPACE(69-LEN(LTRIM(RTRIM(T4.CardName))))
+ '' ''
+ CONVERT(varchar(10), T0.DocDate, 112)
+ '' ''
FROM
JFOTST.dbo.OINV T0
INNER JOIN JFOTST.dbo.INV1 T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN JFOTST.dbo.ODLN T2 ON T2.DocNum=T1.BaseRef
INNER JOIN JFOTST.dbo.DLN1 T3 ON T3.DocEntry=T2.DocEntry
INNER JOIN JFOTST.dbo.OCRD T4 ON T1.U_NumConc=T4.AddId
WHERE T0.CardCode=''C52''
queryout "c:\text1.txt" -c -T -x'
Note that in this code everytime you need to use the symbol ' you have to doble it like ''Fixed Text''.
Be aware that there is one UDF so if you try to make this query run in your SB1 you will have to create a UDF called U_NumConc in the document lines.
Database usage:
JFOTST.dbo.OINV T0
JFOTST.dbo - Database Name.
OINV - Table
T0 - Alias
For any doubts I'll be available to help.
Once again thank you very much for all your help.
Together we are stronger!
Kind Regards,
Miguel Barbosa
Edited by: Miguel Barbosa on Aug 18, 2009 12:09 PM
Edited by: Miguel Barbosa on Aug 18, 2009 12:10 PM -
How to effect changes made in a jTable into a text file
i have created a jTable in netbeans6. The table model is DefaultTableModel.
i'm not understanding the concept of firecellupdate and other events listeners.
i want the changes i make to the table during runtime to be written into a Text file.
any help would be greatly appreciated.rishi_86 wrote:
i have created a jTable in netbeans6. The table model is DefaultTableModel.
i'm not understanding the concept of firecellupdate and other events listeners.
i want the changes i make to the table during runtime to be written into a Text file.
any help would be greatly appreciated.you need to add the TableModelListener to your table model.
for example:
model.addTableModelListener(new TableModelListener() {
public void tableChanged(TableModelEvent e) {
// TODO Auto-generated method stub
});then, you need to put your custom business logic(saving data to a text file, etc) into the tableChanged method.
From TableModelEvent you can get all information about the model changes. -
Sender Idoc needs to be translated into 4 text files
Hi,
Could you please guide me how can i achieve this.
Within XI this Idoc message needs to be translated into 4 text files:
Could you pls. confirm as...can i use MultiMapping or shall i go for BPM?
Thanks & Regards,
Y.Raj.Should also work in your case:
1. Create your mapping program that will map the information from the source file
into the destination idoc. This has to be a 1:N split. Just make sure that the destination message type and message interface are are of occurrence N.
2. Also, you will have 2 destination interfaces and 2 interface mapping, one for the IDOC and one for the mail.
Now, there are a few essential steps in your configuration,
1. In the receiver determination, specify the 2 receiver systems, one for your IDOC and the other for your MAIL.
2. Now, you will have a condition window. Just type the condition on the basis of which the receiver has to be determined for the mail and the idoc business system. Just remember that the condition can be specified only for the source message.
3. In the Interface Determination, you have an option called RB CLASSIC and RB SPLIT. To do a 1:N split, you will have to do a RB_SPLIT.
You can even use xslt mapping to split source message type into multiple target messages types.for more information on the same check this link:
http://help.sap.com/saphelp_erp2005/helpdata/en/83/2200cb50d345c793336d9a1683163e/frameset.htm -
Hello Experts,
There is a situation where i need ur help.My query is :
Can I export the output of more than one queries into a * Single Text File * ?
Also can it be possible to automate these Queries Output to export into the Text File ??
I also want this Text File Output to mail the end users by using the Process Chain. So is this possible to create a process chain for sending this Text File to the Users via mail ??
Thanks In Advance
NehaHello Neha,
Though i have been working with APDs since some time. But havent actually been involved in designing one. But you could find many documents for the APD on web. And as far as i know, you will need a program to save file from APD.
I have a document which explains how you can use APD in process chain. can forward you the same if you want.
I am sorry as i wasnt of much help for you, as i havent worked on similar requirement before, but this thing just striked in my mind.
Regards,
Anuj -
Downloading into a text file with comma seperation
hey experts,
well i want to download various fields of an internal table into a text file.but the hitch is that all the columns should be seperated by a comma.something like csv.
could you please help me with this.?
i have tried using gui download but the seperator field was not working.
thanks in advance...
regards,
sandra.hey sandra,
for comma seperation and downloading ,you can use the following fm.
here the i_field seperator should be given as "," as in ur case.
i_tab3 is the table from which the values are being fetched.
and i_tab2 is the table conatining the comma seperated values.
CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'
EXPORTING
I_FIELD_SEPERATOR = ','
I_LINE_HEADER =
I_FILENAME =
I_APPL_KEEP = ' '
TABLES
I_TAB_SAP_DATA = I_TAB3
CHANGING
I_TAB_CONVERTED_DATA = I_TAB2
EXCEPTIONS
CONVERSION_FAILED = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
after this u can use the gui download fm as required.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = TESTFILNA
FILETYPE = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = 'x'
HEADER = '123'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = I_TAB2
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
hope this helps u.
do reward points if useful.....:-) -
Wirte the content of an internal table into a text file
Hello Experts,
how can I wirte the content of an internal table into a text file and putit on my local
desktop ?
Regards
ertasHi,
You can use the FM GUI_DOWNLOAD for this purpose.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = 'c:\testmmv.txt'
FILETYPE = 'ASC'
APPEND = ' '
WRITE_FIELD_SEPARATOR = ' '
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
SHOW_TRANSFER_STATUS = ABAP_TRUE
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = LT_STR
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF SY-SUBRC <> 0.
Implement suitable error handling here
ENDIF.
With regards,
Vamsi -
OMB Plus : how to get all the generated messages into a text file ?
Hello,
I wrote an OMB TCL script and I would like to know how to get all the messages generated during the exécution into a text file.
I tried this, but it works only for a puts command :
set DesProjet ACT_1
set filename [ open "c:\\temp\\INFDE_010_IMPORT_REPOSITORY_$DesProjet.log" w]
puts "test"
Thank you for your helpHello Alain, you should try the OMBLOG variable. If you set it inside OMBPlus:
set OMBLOG c:/temp/mylog.txtthen all the OWB specific commands are logged with their output. By OWB specific I mean all those that start with OMB.
This is more than what you see in the interface, because:
- messages inside procedures are logged; you wouldn't see them on std.output when you call a proc
- variables are resolved, so if you issue the command
set my_var VERY_IMPORTANT_TABLE
OMBDROP TABLE '$v_myvar'the log will show:
OMBDROP TABLE 'VERY_IMPORTANT_TABLE'
Table dropped
and you know something is wrong... so OMBLOG is very useful to intercept all manipulations on you repository.
If what you want instead is a dump of the screen output when you execute a script, I suggest you redirect standard output from the operating system command line. Unfortunately OMBPlus doesn't support all advanced redirection and tracing features of the TCL language.
Hope this helps, Antonio
Maybe you are looking for
-
Jog forward one Field at a time?
Is it possible to jog forward one field at a time in iMovie? With FCP X, I think it's Option-Right Arrow. Thanks.
-
This exact same text has been posted in the "iTunes" forum. This question is probably not in the right place. Fact of the matter is, there ISN'T a right place here for this question. I see I am signed in here as "Mudsharkbytes". Even THAT surprises
-
Hello everybody, I did some development using the NWDS (JDI installed). After i have checked in my application / activated it and released it it was shown in the import queue at the Consolidation Tab of the CMS application. So far everything worked g
-
How do I migrate iMovie project data/pointers from iPhoto to Aperture?
This may be a rather tricky question but here is what I want to do. I have 22GB of Photo's/Video's in iPhoto that I originally used at some point in the past to create some travel home movies. I currently have about 44GB of Photo's/Vid in Aperture. I
-
Standard Edition - Single Web Site/Application?
Hi, I hope I am posting at the right section of the forum... I'm considering using Coldfusion for our company intranet. However, reading the difference editions availabe, I notice that the standard edition is only allowed for "a single web site/singl