Spool to Unix directory
Hi Experts,
At the moment we generating spool from a report and manually we import and save into local directory..
for the same report what ever the spool genarated have to save into one unix directory,,,
Could you please help me how to achieve this..
Thanks in advance,
Regards
Rao
Hi!
Check out these fm-s, they might help you, if you need the output in PDF format.
CONVERT_ABAPSPOOLJOB_2_PDF
CONVERT_OTFSPOOLJOB_2_PDF
Else try out this one (or check out the similar names)
RSPO_DOWNLOAD_SPOOLJOB
Regards
Tamá
Similar Messages
-
How to check whether a file is present in the UNIX directory of app. server
Hi,
I am creating files in the UNIX directory in the application server using :
CONCATENATE '/sapmnt/RD1/interfaces/client670/'
p_fname '.CSV' INTO w_filename.
OPEN DATASET w_filename FOR OUTPUT IN TEXT MODE.
LOOP AT t_output1.
TRANSFER t_output1 TO w_filename.
ENDLOOP.
CLOSE DATASET w_filename.
I am unable to check whether a file with the same name exists or not. How to check the duplicate state of the file.You can use the following fm
RZL_READ_FILE
or
use OPEN DATASET FOR INPUT. -
How to add a folder in unix directory?
how to add a folder in unix directory?
/usr/zz00/zz/mm/..
i need one more folder
/usr/zz00/zz/mm/addfolder/text.txt..No way with pure ABAP. Either contact your unix adminstration or create a logical system command in SM69/SM49 which can be called via call function 'SXPG_CALL_SYSTEM'
-
How to setup a print spool in UNIX
Hi support, i am new to basis and to sdn..
could you please help me with how to setup a print spool in UNIX.
Thank you
MartinMessage 1 :
On UNIX:
1. Login as sidadm
2. Su - root
3. Execute "jetadmin" (or use u201Csamu201D if you are familiar with it).
4. Select option 1
5. Select option 3
6. Enter the IP address of the printer
7. Select option 1 again and assign an appropriate queue name
8. Follow the instructions to complete
9. "lpstat -t" to confirm the printer is enabled
10. Setup on R3
Message 2:
On SAP
1. Transaction u201CSPADu201D
2. Switch to change mode
3. Chose Output Device
4. Select Printer you want to create/copy/change
5. To use or by pass DAZEL:
1. use Dazel:
a. Host Spool Access Method: E
b. Host Printer: 1_usbprint03_xxxxxx
c. Logical OMS: R3 SID Dazel LOMS
2. by pass Dazel:
a. Host Spool Access Method: L
b. Host Printer: (queue name on UNIX Spool)
To test printing, try to print something (i.e. spool server list) and go to Transaction u201CSP01u201D to change the result. -
Create XML file on application server (unix directory) from internal table
Hallo everybody,
I have got the following problem:
I am working with <u><b>release 4.6C</b></u> and have got to create XML files from HR master data and organizational data respectively.
This takes place in 3 steps:
1. Collect the data in an internal table
2. Convert the data to XML format using the function module 'SAP_CONVERT_TO_XML_FORMAT'
3. Download the data
If I download the converted data, which are in an internal table, to the presentation server via the function module WS_DOWNLOAD and open it with the Internet Explorer, everything is ok.
If I download the converted data to the application server, i.e. into a unix directory via
open dataset, loop at internal table, transfer working area to file, close dataset
and then try to open it, this is not possible, because after the last tag some unreadable characters, e.g. a square, appear that arent supposed to be there. Thats what my colleagues told me, for I havent got access to the server.
I have no idea where these characters come from and how I can get rid of them. I guess that either I have to modify (how?) the table with the converted data before the download or I have to use another way to convert the data. For the second way I would probably have to work with an XML class or an XML interface. Unfortunately II am not an expert in working with classes so sample coding would have to be rather detailed.
Heres some more information about how I work with the conversion function module:
call function 'SAP_CONVERT_TO_XML_FORMAT'
exporting
i_field_seperator = lv_field_seperator
i_line_header = lv_line_header
i_filename = lv_xml_file
i_appl_keep = ' '
i_xml_doc_name = lv_xml_doc_name
importing
pe_bin_filesize = lv_result
tables
i_tab_sap_data = gt_data
changing
i_tab_converted_data = lt_tab_converted_data
exceptions
conversion_failed = 1
others = 2.
lv_field_seperator = X.
lv_xml_doc_name = Personalstammdaten Publikation
lv_result: type i
gt_data: fields: PERNR, PERSG, PERSK etc.
types:
begin of truxs_xml_line,
data(256) type x,
end of truxs_xml_line.
types:
truxs_xml_table type table of truxs_xml_line.
data:
lv_tab_converted_data type truxs_xml_line,
lt_tab_converted_data type truxs_xml_table
open dataset lv_xml_file for output in binary mode.
loop at lt_tab_converted_data into lv_tab_converted_data.
transfer lv_tab_converted_data to lv_xml_file.
endloop.
close dataset lv_xml_file
lv_xml_file: /usr/users/.../.../Personendaten_2004-11-02.xml
Hope the information is detailed enough! Otherwise let me know. Thank you in advance.
Message was edited by: Johannes SchwehmHi Raja,
tried the "TEXT" mode, but that didn't help.
There are still characters after the last tag, that are not supposed to be there including a date that is not
the creation date of the file.
Thank you for your help.
Regards
Johannes -
Get_file_list to list content of UNIX directory
Hi all
I am trying to list the files in a UNIX directory using the get_file_list action. Not getting anything back, but action is not reporting error.
In the folder configuration box i have used all combinations of \ and / but none do anything. I can list files on our Mii server using
server\share but this is a windows machine.
I think i have a couple of options
1. get FTP set up on UNIX server and use the FTP_get_file_list action and move files to Mii server for processing.
2. get something like SAMBA set up on UNIX to allow windows style file sharing.
Any other ideas out there?Hi Les,
Set the "Get_File_List_0" with the following parameters:
Folder: "web://PROJECT"
Mask: "*" for list all files
http://wbhelp.sap.com/manufacturing/xmii_120/en/44/7108DF9EA03ABEE10000000A155369/content.htm (for more details)
Or use a XMLQuery
server://XMII/Catalog?Mode=ListFolders&Folder=[Param.1]&Content-type=text/xml
[Param.1] = PROJECT
Hope this help.
Danilo Santos -
Getting list of files from Unix directory inclding files frm sub-directries
Hi All,
I am trying to use Fm 'SUBST_GET_FILE_LIST' and
'RZL_READ_DIR_LOCAL' for getting a list of all files in a Unix directory including files from sub-directories.
In the first case I am getting an Exception called 'Access Error'
and when I use the 2nd FM, I am not getting any output.
Is there a special way to use these FMs.
Kindly help.
Regds,
Shweta[url http://java.sun.com/developer/JDCTechTips/2003/tt0122.html#1]READING FILES FROM JAVA ARCHIVES (JARS)
-
FM to GET file listing of a UNIX directory.
Hello everyone,
Please can anyone provide me a function module that can return to me ALL the files found inside a UNIX directory. I have tried FM EPS_GET_DIRECTORY_LISTING but I can't seem to provide the correct parameter.Ryan,
check this program,
REPORT ZFTPSAP LINE-SIZE 132.
DATA: BEGIN OF MTAB_DATA OCCURS 0,
LINE(132) TYPE C,
END OF MTAB_DATA.
DATA: MC_PASSWORD(20) TYPE C,
MI_KEY TYPE I VALUE 26101957,
MI_PWD_LEN TYPE I,
MI_HANDLE TYPE I.
START-OF-SELECTION.
*-- Your SAP-UNIX FTP password (case sensitive)
MC_PASSWORD = 'password'.
DESCRIBE FIELD MC_PASSWORD LENGTH MI_PWD_LEN.
*-- FTP_CONNECT requires an encrypted password to work
CALL 'AB_RFC_X_SCRAMBLE_STRING'
ID 'SOURCE' FIELD MC_PASSWORD ID 'KEY' FIELD MI_KEY
ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD MC_PASSWORD
ID 'DSTLEN' FIELD MI_PWD_LEN.
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
*-- Your SAP-UNIX FTP user name (case sensitive)
USER = 'userid'
PASSWORD = MC_PASSWORD
*-- Your SAP-UNIX server host name (case sensitive)
HOST = 'unix-host'
RFC_DESTINATION = 'SAPFTP'
IMPORTING
HANDLE = MI_HANDLE
EXCEPTIONS
NOT_CONNECTED = 1
OTHERS = 2.
CHECK SY-SUBRC = 0.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
HANDLE = MI_HANDLE
COMMAND = 'dir'
TABLES
DATA = MTAB_DATA
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3
OTHERS = 4.
IF SY-SUBRC = 0.
LOOP AT MTAB_DATA.
WRITE: / MTAB_DATA.
ENDLOOP.
ELSE.
do some error checking.
WRITE: / 'Error in FTP Command'.
ENDIF.
CALL FUNCTION 'FTP_DISCONNECT'
EXPORTING
HANDLE = MI_HANDLE
EXCEPTIONS
OTHERS = 1.
DATA:
l_pcfile LIKE sapb-sappfad, "Desktop file & path
l_serfil LIKE sapb-sappfad. "Server File & path
l_pcfile = 'D:\Data\temp\input.txt'.
l_serfil = '/tmp/output.txt' .
CALL FUNCTION 'ARCHIVFILE_CLIENT_TO_SERVER'
EXPORTING
path = l_pcfile
targetpath = l_serfil
EXCEPTIONS
error_file = 1
OTHERS = 2.
Don't forget to reward if useful..... -
How to store the File Name from a Unix Directory into a ODI variable?
Hi,
I have built a ODI package with the following steps:
1. ODI is polling for a flat file in a Unix directory. I have used OdiFileWait tool for this purpose. Here the file name is not fixed, so I am using wild character (*) to poll for file. Example: DF*ABC1*.DAT where the first wild character denotes 1 letter and the second wild character denotes 2 digits.
2. In the second step, if the file is found, I am moving the file to ODI file server path (../oracledi/demo/file). Here I have used ODIFileMove tool.
3. Then I am using an ODI Interface to Load the file data into a Oracle database table.
4. I am using a Process log table to keep the log for each step I am executing in ODI that is ODIFileWait, ODIFileMove, Interface etc. for each file. In this table a row needs to be inserted after ODIFileWait tool gets the file, with the File Name and File Date. Later on this row will be updated as the consequent steps are executed.
Here is my concern, I need to get the exact File Name of the file after ODIFileWait gets the file and I need to insert that in the Process Log table after the ODIFileWait step gets a file. So if I can store the File Name in a ODI Variable, I can insert it into the Process log table at this point. This I am not able to do.
The files are coming in a different directory (not in ODI file server path), So after getting the file it is moved to ODI file server path (../oracledi/demo/file)
The Files which I am processing are fixed length format. Also, the File name and File Date is stored in the 1st Record(Header record) of the files.
Kindly provide me suggestions to implement this in my code.
Thanks and Regards,
Anik
Edited by: 809820 on Nov 10, 2010 11:36 PMLook at this link -http://odiexperts.com/getting-one-or-several-unknown-files-from-a-directory
change the command to fetch the ls command and write into File and then using either java or jython break the data and fetch the file name and date and insert into log table.
(or)
you can use the os.system command and get the complete ls command into string and then process and insert it.
Let us know if you need any other help. -
Information Broadcast Email File - Where is the file in Unix directory?
Hi,
I am using Information Broadcasting to email the BI report. We use Unix as the application server.
In transaction SOSV, I can get detailed information on the file (attachment) and the send status. There is a requirement to encrypt the file in Unix server. Does anyone know where the file resides in Unix when the report is generated from Information Broadcasting? What's the Unix directory?
Any information would be appreciated.
Thank you.
RebeccaI added the path of the servlet.jar to the CLASSPATH. Now my modified
file content is as follows:
WINDOWS 2000 Environmental variable changes:(CLASSPATH)
C:\Program Files\PhotoDeluxe BE 1.1\AdobeConnectables;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;C:\jakarta-tomcat-4.1.12\common\lib\servlet.jar
AUTOEXEC.BAT:
set path=%path%;c:\onnet32
SET PATH=C:\jdk1.3.1\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
SET JAVA_HOME=C:\jdk1.3.1
SET CATALINA_HOME=C:\jakarta-tomcat-4.1.12
SET CLASSPATH=.;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;C:\jakarta-tomcat-4.1.12\common\lib\servlet.jar
With this I am executing the command: javac test.java. However, it is still giving lot of error messages
All the messages are 'cannot resolve symbol' associated with the Servlet class, Servlet Request, Server Exception etc. In the very first error message it states that: 'package javax.servlet does not exist'.
I would appreciate any help. Thanks in advance. -
How to create pdf files in UNIX directory from oracle reports
I would like to know how to create pdf files in UNIX directory from oracle reports.
Thanks,Please make your question more clear . Also mention the reports version.
1) If you are runnning reports in Unix, you can give
.... destype=file desformat=pdf desname=<filename>
in command line
Please refer docs below.
2) If by your question you mean
"My reports server is running in Windows but I want to ftp my files to Unix after creating it"
then the answer is that you can use pluggable destination "ftp"
.... destype=ftp desformat=pdf desname=<ftp url>
Pluggable destinations download
http://otn.oracle.com/products/reports/pluginxchange/index.html
Thanks
Ratheesh
[ All Docs ]
http://otn.oracle.com/documentation/reports.html
[ Publishing reports to web - 10G ]
http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
[ Building reports - 10G ]
http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
[ Forms Reports Integration whitepaper 9i ]
http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf -
Fax the output type and convert to PDF and then to save in UNIX Directory
Hi,
I wan to Fax the my sales order acknowldement and at the same time I want to convert that output into PDF and save in the UNIX Directory .
I also need the code for faxing the sales order acknowledgement.
Thanks in Advance
Moderator message: please search for available information/documentation before asking, also see Brad's remarks below.
Edited by: Thomas Zloch on Dec 20, 2010 9:51 PMThese are standard processes which are covered in the help files and have been discussed many times here. This is NOT a training forum for newbies where experts just give you the solution for your requirement. Once you have proven that you've actually made an effort to solve the issue yourself and have a SPECIFIC technical question, you'll get some help...
-
Moving one file in unix directory path into another unix directory path
Hi All,
I have issue regarding moving one file in one unix directory into another unix directory.
Actual requirement is as below:
I have two unix directories 1. /var/opt/working 2. /var/opt/error
Now i have a file [ FILE1 ] in [/var/opt/working] working directory.
In code checking i found it is error file now in my abap i want to move/send this file [FILE1] to another unix directory [/var/opt/error].
How can solve this issue in ABAP code.
Can anybody solve this issue!
Thanks,
Deep.1. Open the 1st file using Open dataset for input /var/opt/working
2. Get the data into internal table
3. Open the 2nd file using Open dataset for output /var/opt/error
4. TRANSFER the data from the internal table to 2nd file
5. CLOSE 2nd file
6. Close 1st file
7. Delete 1st file using DELETE DATASET dsn. -
File Adapter cannot read from Unix Directory
Hello Everyone,
I have created a Bpel process that should read txt files from a Unix directory, but its not doing its job.
I have tried this process on windows and it works fine.
I got the following error from the process log in my bpel console.
my process compiles fine but I am getting this error: The value specified for the input (Physical/Logical)Directory activation parameter has an invalid value "/temp/test"
Also if there is something wrong with my path, please let me know.
Thanks in advanced,
AJHi,
The path /temp/test might be wrong. Suppose you have installed SOA at /home/oracle/product/soa/10.1.3.1/<> , where /home is the root folder, and if you have your test folder at /home/temp/test, give the location in file adapter as /home/temp/test.
Let me know if you still get this error.
Thanks
Ramana. -
Download Excel file in the Unix directory of Application server
Hi Friends,
I have a requirement of downloading the Excel file in the Unix directory path of the application server,i just need your inputs,it would be great help if you can send any sample coding for downlading the file in the Unix directory?
Regards
DineshYou can use the following fm
RZL_READ_FILE
or
use OPEN DATASET FOR INPUT.
Maybe you are looking for
-
I purchased a video from iTunes but it will not sync to my iPod. I get a message stating that the video "was not loaded to the iPod because iyt cannot be played on this iPod." I tried to use the "create an iPod version" but the command is grayed ou
-
my skype number is [Mod edit: Please do not include personal/private information when making a public post. Thanks!], and email address is [Mod edit: Please do not include personal/private information when making a public post. Thanks!]. the day befo
-
After working perfectly for months, I now am getting audio MIDI Sync error messages. The result is no audio output either from audio instruments or recorded audio. I am using a MOTU 896HD and audio thru itunes works as long as Logic is not running at
-
Hi everyone, I am currently working on a Java application based on OSGi (http://www.osgi.org), the dynamic modules framework for Java applications. For this application, I have to create an OSGi bundle embedding VTK, the Visualization ToolKit (http:/
-
Can you use an iphone to take photos without a sim card
Was thinking of buying new iphone on overseas trip, not taking current phone/sim with me, is it possible to use the new phone to take photos only