Storing Sapscript data in Tab delimited format
Hi All,
Can anyone please advise me how can I store my Sapcript data in Application server in a Tab delimited format?
Is there any FM for that or should I use Open dataset?
Please send sample code, if anyone have.
Moreover, please let me know where to write the code in application form of print wrokbench?
Thanks & Regards,
Anshumita.
Hi Baski ,
1.First u have to get the OTF data of the Scripts ,after calling Close_form.
2.Write that data into Application Server by using Commaands <b>Open data set</b>.
Regards
Prabhu
Similar Messages
-
Hi all,
we have noticed unproper value modification during export in tab delimited format.
Please find example below:
The proper value is 24150170000011615 (it is state register number of enterprise).
The wrong value is 24150170000011600.
Correct value:
http://s12.postimg.org/v2gpqqzgd/obiee_1.png
How do we export data from obiee:
http://s23.postimg.org/6k7dwiezf/obiee_2.png
Wrong value after export:
http://s22.postimg.org/qdgqgogn5/obiee_3.png
What should we do to fix it?The bigger picture is as follows:
I have a button on my report that essentially should download the output of report to tab delimited text file. This button is integrated with a custom built class which has a main method. When I click on the button, the logic written in the main method gets executed.
In this method I generate my internal table and pass to cl_gui_frontend_services=>gui_download method with parameters mention above.
I try debugging but every thing seems to be working correct when sy-subrc = 0 through executable program and it does not enter into the download method logic when i do it through main method, instead sy-subrc is straight set to 6 (unknown error).
Regards,
Pankaj. -
Can we save our BEX queries in tab-delimitted format ?
Hi ALL
Can we save our BEX queries in tab-delimitted format (instead of comma-delimited)?
Please let me know for further clarifications
Regards
Bhageshhi bhagesh:
You mentioned:
For eg. We can save .CSV file of BEx query extracts with the help of reporting agent with the help of background schduling.
Can u tell me procedure for this ? how can i get query output in .csv format using reporting agent and with and without option of schedule it in background.
I will come back and assign the points to the answer.
thank you,
K Smith -
Importing data from tab delimited file
Hi everyone,
This is my first question on here so I hope I am doing the right thing.
I've searched online as much as I can to find an answer or a way to fix my problem but I have not been able to find a resolution.
My issue is I'm trying to import name and contact information from a excel file, that I have saved as a tab delimited file, into a fillable PDF file. I'm able select the text file through the import option and it shows the correct information as different rows that I can import but when I select one and click on to finish the import of the data I get an error message advising that some of the text could not be imported. The issue is nothing is being imported at all.
I've made sure that all the relevant fields are the same name as what the form has but still cannot get anything to import.
Does anyone have any ideas why this may not be working? Also I basically have no ability to write JavaScript to import the information otherwise I would look at travelling down that path.
Please let me know if I need to be any more specific.
Regards,
AdamOk I can share the form itself and will need to quickly create some data itself to go along with it
PDF Form Shared Files - Acrobat.com
Here is the tab delimited file I am trying to use (well the format anyway).
Test Data File Shared Files - Acrobat.com
Adam
Thanks Pat Willener -
Efficent method to sort data from tab delimited text file
I am currently writing a program to sort through data that was acquired and display it on a graph and some other indicators. The file is a tab delimited text file with possibly 100,000s of data points. the current method that I have tried using was that if I wanted all of the data from Oct, I would parse out the month from the timestamp, compare that to the desired month, and add it to the array if it is the same. Other possible options of sorting are yearly and daily, possibly even hourly.
The method does work, however it does take some time (up to a minute on a P4 3.6 GHz with 2 gb ram), and most of the other computers are not nearly as fast or with as much memory. Is there a more efficent method to sorting the data??
I attached my sorting vi as well as a sample data file.
thanks for the advice. It is saved in LV8.0.1
Kenny
Kenny
Attachments:
data sort.zip 84 KB
oven1.txt 21 KBFirst of all, "sorting" has usually a different meaning (Sorting and numeric array ascending or descending, a string array aphabetically, etc.). Your data already seems sorted by date and time, you just want to pick a subset having certain characteristics.
The main problem that is slowing you down is your constant growing of large arrays. This causes constant memory reallocations.
Since your data is already sorted by date and time, all you need is to place your data in a sutable data structure, find the start and end point of your selection, then use "array subset" for example.
Your code also seems to have a lot of unecessary complexity. See for example your "test for sort data" (see image below).
the four cases only differ by filename --> only the file name belongs into the case and the file operation outside the inner case. Even better, just use autoindexing.
that shift register does not do anything, because it always contains the same data. Using "index array" with index wired to [i] is equivalent to an autoindexing tunnel.
You have a case structure to select which files to read, skipped files give you an empty array. Do you really need to do all these operations on an empty array. Why not place all code inside the TRUE case??
Below is an image of one possible code alternative that addresses some of these points.
Message Edited by altenbach on 10-26-2006 09:32 AM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
testForSortData.png 33 KB -
Exporting Data in Tab Deliminated format
Does anyone know if it is possible to export a report from ZAM 7.5 using Tab Deliminated format rather than CSV?
I need to create an automated export in TAB delinated format for comparison to other systems, all I can find is options for CSV output.
Thanks
MarkMarkg,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://support.novell.com/forums/ -
How to export "tab delimited" format via local file
hi experts
i executed a query (bseg-bkpf) but in background.
in sm37 i viewed my report
but i coudnt get this report in alv format. is there any option for get this report ( backgrond run) in alv format?query the data in se16n and then export to excel
-
Column Mapping while loading data via tab delimited text file
While attempting to load data I get an error message at the "Define Column Mapping" step. It reads as follows:
1 error has occurred
There are NOT NULL columns in SYSTEM.BASICINFO. Select to upload the data without an error
The drop down box has the names of the columns, but I don't know how to map them to the existing field names, I guess.
By the way, where can I learn what goes in "format" at this same juncture.
Thanks!You can use Insert Into Array and wire the column index input instead of the row index as shown in the following pic:
Just be sure that the number of elements in Array2 is the same as the number of rows in Array1.
Message Edited by tbob on 03-07-2006 11:32 AM
- tbob
Inventor of the WORM Global
Attachments:
Add Column.png 2 KB -
Downlaod file in Application server in tab delimited format
Hello,
Any sample code on the above Mentioned topic or any help plz....
Thanks in AdvanceDear Raja,
first get your data in one internal table. Also you need to have path to your application server. then use below code to download same.
*p_file - File name with path to application server.
*itab - internal table with your data.
OPEN DATASET: P_FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT .
LOOP AT ITAB.
TRANSFER ITAB TO P_FILE.
ENDLOOP.
CLOSE DATASET: P_FILE.
If any more clarification needed do mail me.
Raj -
Hello,
I have a requirement where i have to write a file in tab de-limited format into an application server. Request you to share your inputs for the same. The challenge is to write it in the Tab Delimited format.
Thanks,
Rahul.Hi,
Save the file as .txt file.
use gui_upload to upload file from presentation server to internal table and then use open dataset to transfer contents to app server.
Refer below code
*& Report Z_CLFO_APP
REPORT Z_CLFO_APP.
DATA:BEGIN OF I_TAB OCCURS 0,
CUST_ID TYPE BU_ID_NUMBER, "Customer ID
IDNUMBER TYPE BU_ID_NUMBER, "Investor ID
LOB(3) TYPE C, "Line of business
BP TYPE BU_PARTNER, "Business partner number
RECNO(5) TYPE C, "Record Number
MSG TYPE BAPI_MSG, "Error Message
END OF I_TAB.
data:l_file type string,
L_FILE1 TYPE STRING VALUE 'CLFO_1.TXT'.
insert
parameters:p_file like rlgrap-filename DEFAULT 'E:/CLFO'.
CLASS cl_abap_char_utilities DEFINITION LOAD.
CONSTANTS: con_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
start-of-selection.
move p_file to l_file.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = l_file
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
TABLES
DATA_TAB = I_TAB.
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
clear l_file.
OPEN DATASET L_FILE1 FOR OUTPUT in TEXT MODE ENCODING DEFAULT.
if sy-subrc = 0.
loop at i_tab.
concatenate i_tab-cust_id i_tab-idnumber i_tab-lob
into l_file separated by con_tab.
transfer l_file to l_file1.
clear l_file.
endloop.
close dataset l_file1.
endif.
Message was edited by:
Raghu Devagiri
Message was edited by:
Raghu Devagiri -
Transfer data in unix with tab-delimited
Hi,
How can we transfer data to unix with tab-delimited? I have incoming file with tab-delimited and want to copy as backup file in another folder in unix. When I read the incoming file, tab separator is translated into '#' so when I do transfer data to the backup folder, the file contains '#'.
Is there a way to transfer data in tab-delimited?
thank you
aliatry to use delimiter cl_abap_char_utilities=>HORIZONTAL_TAB.
here is a piece of code:
REPORT ztestfile .
DATA: BEGIN OF gt_file_out OCCURS 0,
filed(2000),
END OF gt_file_out.
START-OF-SELECTION.
DATA: lv_file_out LIKE filename-fileextern.
CONCATENATE 'Hello' 'World' INTO gt_file_out SEPARATED
BY cl_abap_char_utilities=>horizontal_tab.
APPEND gt_file_out.
lv_file_out = '
XXXX\XXXX\mytest1.txt'.
OPEN DATASET lv_file_out FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
LOOP AT gt_file_out.
TRANSFER gt_file_out TO lv_file_out.
ENDLOOP.
CLOSE DATASET lv_file_out.
Message was edited by: joseph fryda -
Download Tab Delimited file from spool!
Hi Experts,
Is there any way to download tab delimited txt file from spool?
Spool is created for Statements and Invoices from Sap Script and Smartform which is in OTF format.
I am able to download this in Text file but I need this file in tab delimited format.I don't understand what you want to do as it seems impossible : the spool contains miscellaneous data, not compatible with tab delimited files which are used to store 2-dimensional tables (columns, rows).
-
How do you import multiple sets of tab delimited text into your form?
Is there an easy way to bring in form data from a text file of data values(tab delimited) with multiple instances of each variable? In my current project, I would like to bring name, address, phone, etc data from the text file for a couple hundred people into a PDF form which I create and format to my given specs. I know I can import the text and select which instance of the variable I want to populate the similarly named fields, but I was wondering if I could appropriately name or create the various fields in the form so that it would auto populate each subsequent instance of the variables with the next line of data?. In this case, I want to end up with a nicely formatted address book.
Thanks!It is possible but not just a simple import of data.
Each form field in the multiple page PDF would need a unique name not repeated on another page of the PDF. Fortunately the Acrobat form standard includes the "template" object and this object can be spawned or used to add a new page with the form fields automatically renamed with a prefix string of the page number and template added to each form field on the new page. So if one were to import a row from your tab delimited file into the template, one could then spawn a new page from the template with the data and rename the fields so there would be no conflict of like named fields.
A Lesson in Templates for Adobe Acrobat by Dave Wraight
With newer versions of Acrobat there is a mail merge feature.
Create PDFs from Word mail merges -
Help needed saving text members to TAB delimited txt file
I have 7 text memebrs each containing several lines of text
that were pulled in and sorted from a TAB delimited text file.
What I'd like to know is, is there any way to convert those
text members back into the TAB delimited format from which they
came? I'd like to be able to pull in the data, let it be edited to
some extent, then saved back out..... and I'm not too sure how to
go about it.
Example of txt file:
ID_No Name Age
1 Phil 26
2 Sam 34
3 Mary 21
They're then sorted in to text files of ID_No, Name, and Age,
with the lists of the relevent items in each.
Like.....
ID_No
1
2
3
Name
Phil
Sam
Mary
Age
26
34
21
Certain lines of these text members change, depending on what
the user selects. I'd like to put these sections back in their
original TAB delimited format, but with any changed data replacing
the old, so next ime the app is opened the new data is pulled in
from the txt file.
I know I'm probably going about this the wrong way, but it's
the only way I know so far lol
Any ideas?global filex, idlst, namelst, agelst
on readtabline (str)
tmpstr = ""
y = 1
repeat with x = 1 to the number of chars in str do
if str.char[x] = tab then
case y of
1 : idlst.add (tmpstr)
2 : namelst.add (tmpstr)
3 : agelst.add (tmpstr)
end case
tmpstr = ""
y = y + 1
else
tmpstr = tmpstr & str.char[x]
end if
end repeat
agelst.add (tmpstr)
end
on exitFrame me
idlst = [] --set up some lists to hold that data we read in
namelst = []
agelst = []
filex = new (xtra "fileio")
filex.openfile ("t.txt", 1)
indata = filex.readfile() -- read the data in
filex.closefile()
filex = void
repeat with x = 1 to the number of lines in indata do
readtabline(indata.line[x]) --seprate it into its diffrent
elements
end repeat
-- you now have your data sorted in to three list of id, age
and name
-- so you would now do what ever editing you wanted to do
--now to write it out to a new file
filex = new (xtra "fileio")
filex.createfile (the moviepath & "tout.txt")
filex.openfile (the moviepath & "tout.txt", 2)
repeat with x = 1 to idlst.count() do
filex.writestring (idlst[x] & tab & namelst[x] &
tab & agelst[x] & return)
end repeat
filex.closefile()
end
I tested this on your exact scenario and it worked a brezze
hope it helps
Regards
David -
HI Experts,
I have a problem.
I have uploaded the file in csv format using Open dataset.
But they want in csv tab delimited format. I really dont understand how to do in this format.
I know only csv (the file will be separated by ',') and if tab delimited means ( file separated by '#').
How to achieve the csv tab delimited format.
Also, in file, if the field contains - no value, it comes as space. But that space while concatenating, it is not added. How to acheive a space while concatenating the fields.
Awaiting for your replies.
Thans in Advance,
Regards,
Sakthi Sri.hi,
DATA : FILENAME(128) DEFAULT '/usr/......../file.csv'. "" Your path in app server
DATA : lv_str type string.
data: l_seperator TYPE c.
CLASS cl_abap_char_utilities DEFINITION LOAD.
l_seperator = cl_abap_char_utilities=>horizontal_tab.
OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE.
CHECK sy-subrc EQ 0.
loop at i_item.
CONCATENATE
i_item-FIELD_1
i_item-FIELD_2
i_item-FIELD_3
i_item-FIELD_4
i_item-FIELD_5
into lv_str
SEPARATED BY l_separator.
transfer lv_str to filename.
endloop.
* Close File
CLOSE DATASET FILENAME.
regards,
Siva Prasad
Maybe you are looking for
-
Can you play blu ray on MacBook Pro
I have a MacBook Pro and I am wondering if I can play Blu ray movies on my MacBook?
-
Adobe Connect 9 offline recording
Is there any supported procedure or extension that allows connect 9 recordings to be in any format besides .flv either by post production processing procedures or via recommended 3rd party externsions.
-
Use multiple partitions on a table in query
Hi All, Overview:- I have a table - TRACK which is partitioned on weekly basis. Im using this table in one of my SQL queries in which I require to find a monthly count of some column data. The query looks like:- Select count(*) from Barcode B inner
-
FileInputStream FileNotFoundException
OK, for some reason I keep getting a FileNotFoundException in a function that is supposed to load a BufferedImage from file. Take a look at the function and tell me what you think could be the problem. public static BufferedImage LoadImage(String Fil
-
I recently tried to view the iPhone keynote address. However, no sound but video was fine. When opening A/V controls, I can adjust hue and brightness, but the audio sliders are "gray" and disabled. volume is completly down but I cannot adjust.