How to send the output into separate file..(from spool)
Hi friends,
i was create a executable program .. it was executing fine.. imagine.. my program is just fetching the data from MARA table based on some conditions.. every thing is fine.. and i'm getting the output also..
but i want to save this output in a separate file.. that means.. what can i do.. my program is executing background... so, i want to save this out put in a file... so, can any one plz provide me the coding steps...
i dont know coding.. I'm learning ABAP... so, can you plz provide the exact coding..for storing these data into separate file from spool..
help ful answers will be rewarded
Thanks
Babu
hi
if you want the o/p data in the seperate file in-addition to the spool
call FM : 'GUI_DOWNLOAD'
pass file name as
w_localfile = 'C:\fite.txt'
itab
= the final o/p table
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = w_localfile
filetype = 'ASC'
write_field_separator = 'X'
TABLES
data_tab = itab
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.
thanks & regards
vinsee
Similar Messages
-
How to send the output to PDF format in reports 6i?
Hi,
How to send the output to PDF format in reports 6i? I given Mode = BITMAP.
DESTYPE = File, DESFORMAT = PDF, DESNAME = C:\x.pdf.
Report is running fine. But PDF file not generated. I don't know what i missed. Any one can help this?
Thanks
KavithaHello,
Do you get this problem only for DESFORMAT=PDF ?
Test with :
DESFORMAT = RTF, DESNAME = C:\x.rtf
or
DESFORMAT = HTMLCSS, DESNAME = C:\x.html
does it work ?
Check if DESNAME is modified in the reports itself.
Regards -
How to send the output of one step as input to next step
Hello All,
I have a question that how to send the output of the first step as the input to the next step.
for e.g
consider a test sequence as below,
1.battery ON.
2. read Voltage
3. Check battery voltage.
as initially the battery gets ON when ever the test starts. in the second step it reads the voltage. let us assume that the voltage is 11.5V,
in the third step we r checking/validating that battery voltage in the range 11V to 12 V. . I mean if the vloltage value is less than 11V or greater than 12V te test has to FAIL.
so in order to check that voltage we need to send the voltage read from the second step.
so how can I send the voltage read from the second step to the third step so that I can check the battery voltage test.
kindly suggest me this using LabVIEW/Test stand.Hi,
Why do you need the third step, if the second step is a Numeric Limit Test step type, you can setup the limits of this step for your required limits of 11V and 12V. Your result is returned from your VI to Step.Results.Numeric which will be evaluated in the Status Expression giving you a Pass / Fail status.
Look at the example TestStand\examples\demo\..\Computer Motherboard Test\computer.seq
But to answer your reoriginal question, some additional information is required.
What are your inputs and outputs assigned to in TestStand, do you use the Step properties, Locals, FileGlobals?
Regards
Ray Farmer
Regards
Ray Farmer -
How to migrate the RPD and catalog file from siebel analitics to obiee
hi all
How to migrate the RPD and catalog file from siebel analitics to obiee and obiee to obiee 11g
Thanks
Sreedharhi sreedhar,
you can migrate from siebel to obiee 10g...check this out http://debaatobiee.wordpress.com/tag/migration-siebel-analytics-obiee/
Next install OBIEE 11g and migrate obiee 10g to 11g using this http://prolynxuk.com/blog/?p=424
hope answers your questions.
Cheers,
KK -
How to send the output of a standard report
Hi Friends,
I came across an issue where I need to send the output list of the SAP standard report to an email ID .
Please, let me the the right way for doing this . or any useful information regarding this will be regarded.
Thanks
Prasead Kuse submit <program name>
convert data to tab delimited or excell file and use some email FM's and email it. -
How to send the output of the 1st BPEL process as a input to 2nd BPEL Proce
Hi,
I am working on OBPM 11G and my requirement is like below,
From Mediator we need to call two different BPEL process. 1st one is Synchronous one and second one will be a one way interface. We need to call a java call out from Mediator and then give the output to the first BPEL process. The output from the first BPEL process has to be given to the second BPEL process with a filter condition.
However we have achieved to call Java callout as well as call to two different BPEL process but facing issues in sending the output of the first BPEL process as a part of input to the second BPEL process.
Any help on this would be appreciated.
BibhuHi,
Why do you need the third step, if the second step is a Numeric Limit Test step type, you can setup the limits of this step for your required limits of 11V and 12V. Your result is returned from your VI to Step.Results.Numeric which will be evaluated in the Status Expression giving you a Pass / Fail status.
Look at the example TestStand\examples\demo\..\Computer Motherboard Test\computer.seq
But to answer your reoriginal question, some additional information is required.
What are your inputs and outputs assigned to in TestStand, do you use the Step properties, Locals, FileGlobals?
Regards
Ray Farmer
Regards
Ray Farmer -
How to extract the data into Excel / PDF from SAP
Hi,
We have spool number of a report output.
We want to extract the data into Excel / PDF from SAP directly...
Plz guide...Hi ,
Please check this [Thread|HOW TO DOWNLOAD SAP OUTPUT TO EXCEL FILE;. Hope your problem will be solved.
You can check [this also.|http://wiki.sdn.sap.com/wiki/display/sandbox/ToConvertSpoolDataintoPDFandExcelFormatandSenditinto+Mail]
Thanks,
Abhijit -
How to start the Toshiba Ghost image files from the HDD
Hello
Ok this is a tough one but hopefully some tech/wizz can help me out.
I have all the necessary CD Recovery disc but my Toshiba laptop CDRom has died and i'm looking for replacement at the moment.
I have managed to copy the image files and all the other info from these CD's onto the laptop hard drive via a network from my desktop cdrom. I did try to use the desktop cdrom to boot the 2.5" laptop drive but it knew it wasnt a toshiba laptop so wouldn't let me recovery.
However now I have manage to copy all the ghost image files onto the laptop hdd I'm stuck on how to run installation via dos.
The laptop hdd is formatted and all i have are the following files
span.bmp
setenv.bat --------> batch file contains following lines
@ECHO OFF
SET GHOSTPAR=
SET SWN=01237000
SET EXT=GHO
SET VOLLABEL=%SWN%
SET FILENAME=%SWN%.%EXT%
01237001.GHS------> PART 2 OF IMAGE
01237000.GHO -----> GHOST IMAGE MAIN
01237000.CRC
A folder called G_INST
which contains 3 extra folders BMP, DOS and TOOLS and span.bmp
I cant figure out how i can run ghost to extract and recovery my HDD can someone help me :)
Thanks in advance
SimonIm really skeptical if you will be start the Toshiba ghost image files from the second partition without using the Symantec Norton Ghost software.
I have created a ghost image of the C partition and placed it on the D partition.
To recover the C partition I have to start the Ghost Utility and have to use the image file .gho from D partition
I have googled a little bit and found the useful instruction how to recover the Portege M3500 without using an CD/DVD drive. Maybe this will run also on the Sat A30.
http://mobilepcwiki.com/mpc/index.php?title=Toshiba/Portege_M3500/FAQ
By the way: the internal, compatible ODD can be ordered from the ASP in your country! -
Concept:
Every month i need to find the list of .rar files from the
E:/TempBackup directory from the different environments (remote desktop servers) and i need to delete the current month
.rar files alone from the respective (E:/TempBackup) directory. below is example files structure inside the
E:/TempBackup.
example:
zDROP_2014_08_31_Backups.rar
zDROP_2014_09_31_Backups.rar
zDROP_2014_10_31_Backups.rar
from the above list i need to delete the zDROP_2014_08_31_Backups.rar(current month) file alone and also logs should be capture for this deletion.
key words for this are zDROP and Current month and date.
i need a stored procedure for this concept. could you please help on this.Hello,
You can schedule an operating system task (Control Panel -> Schedule task) to either call a batch file or a PowerShell script.
Please read the following resources for examples:
http://social.technet.microsoft.com/Forums/windowsserver/en-US/61373719-fffb-4d94-bdbe-7d8ed8620b44/delete-filesfolders-on-remote-servers-using-powershell?forum=winserverpowershell
http://www.networknet.nl/apps/wp/archives/943
http://jeffwouters.nl/index.php/2011/10/powershell-script-to-delete-files-older-that-a-week/
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
ALV ( How to save the output as Excel file whenever we runs the Report )
Hi,
Can any one please let me know , how we can automatically save a ALV Grid Display report in Excel Format in presentation server whenever we execute the Report.
Regards
Avi.Hi,
This report demonstrates how to send some ABAP data to an
EXCEL sheet using OLE automation.
INCLUDE OLE2INCL.
handles for OLE objects
DATA: H_EXCEL TYPE OLE2_OBJECT, " Excel object
H_MAPL TYPE OLE2_OBJECT, " list of workbooks
H_MAP TYPE OLE2_OBJECT, " workbook
H_ZL TYPE OLE2_OBJECT, " cell
H_F TYPE OLE2_OBJECT. " font
TABLES: SPFLI.
DATA H TYPE I.
table of flights
DATA: IT_SPFLI LIKE SPFLI OCCURS 10 WITH HEADER LINE.
*& Event START-OF-SELECTION
START-OF-SELECTION.
read flights
SELECT * FROM SPFLI INTO TABLE IT_SPFLI UP TO 10 ROWS.
display header
ULINE (61).
WRITE: / SY-VLINE NO-GAP,
(3) 'Flg'(001) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(4) 'Nr'(002) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(20) 'Von'(003) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(20) 'Nach'(004) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP,
(8) 'Zeit'(005) COLOR COL_HEADING NO-GAP, SY-VLINE NO-GAP.
ULINE /(61).
display flights
LOOP AT IT_SPFLI.
WRITE: / SY-VLINE NO-GAP,
IT_SPFLI-CARRID COLOR COL_KEY NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-CONNID COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-CITYFROM COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-CITYTO COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP,
IT_SPFLI-DEPTIME COLOR COL_NORMAL NO-GAP, SY-VLINE NO-GAP.
ENDLOOP.
ULINE /(61).
tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = TEXT-007
EXCEPTIONS
OTHERS = 1.
start Excel
CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
PERFORM ERR_HDL.
SET PROPERTY OF H_EXCEL 'Visible' = 1.
CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'c:\kis_excel.xls'
PERFORM ERR_HDL.
tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = TEXT-008
EXCEPTIONS
OTHERS = 1.
get list of workbooks, initially empty
CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
PERFORM ERR_HDL.
add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP.
PERFORM ERR_HDL.
tell user what is going on
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = TEXT-009
EXCEPTIONS
OTHERS = 1.
output column headings to active Excel sheet
PERFORM FILL_CELL USING 1 1 1 'Flug'(001).
PERFORM FILL_CELL USING 1 2 0 'Nr'(002).
PERFORM FILL_CELL USING 1 3 1 'Von'(003).
PERFORM FILL_CELL USING 1 4 1 'Nach'(004).
PERFORM FILL_CELL USING 1 5 1 'Zeit'(005).
LOOP AT IT_SPFLI.
copy flights to active EXCEL sheet
H = SY-TABIX + 1.
PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
ENDLOOP.
changes by Kishore - start
CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
CALL METHOD OF H_EXCEL 'Worksheets' = H_MAPL." EXPORTING #1 = 2.
PERFORM ERR_HDL.
add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP EXPORTING #1 = 2.
PERFORM ERR_HDL.
tell user what is going on
SET PROPERTY OF H_MAP 'NAME' = 'COPY'.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
PERCENTAGE = 0
TEXT = TEXT-009
EXCEPTIONS
OTHERS = 1.
output column headings to active Excel sheet
PERFORM FILL_CELL USING 1 1 1 'Flug'(001).
PERFORM FILL_CELL USING 1 2 0 'Nr'(002).
PERFORM FILL_CELL USING 1 3 1 'Von'(003).
PERFORM FILL_CELL USING 1 4 1 'Nach'(004).
PERFORM FILL_CELL USING 1 5 1 'Zeit'(005).
LOOP AT IT_SPFLI.
copy flights to active EXCEL sheet
H = SY-TABIX + 1.
PERFORM FILL_CELL USING H 1 0 IT_SPFLI-CARRID.
PERFORM FILL_CELL USING H 2 0 IT_SPFLI-CONNID.
PERFORM FILL_CELL USING H 3 0 IT_SPFLI-CITYFROM.
PERFORM FILL_CELL USING H 4 0 IT_SPFLI-CITYTO.
PERFORM FILL_CELL USING H 5 0 IT_SPFLI-DEPTIME.
ENDLOOP.
changes by Kishore - end
disconnect from Excel
CALL METHOD OF H_EXCEL 'FILESAVEAS' EXPORTING #1 = 'C:\SKV.XLS'.
FREE OBJECT H_EXCEL.
PERFORM ERR_HDL.
FORM FILL_CELL *
sets cell at coordinates i,j to value val boldtype bold *
FORM FILL_CELL USING I J BOLD VAL.
CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
PERFORM ERR_HDL.
SET PROPERTY OF H_ZL 'Value' = VAL .
PERFORM ERR_HDL.
GET PROPERTY OF H_ZL 'Font' = H_F.
PERFORM ERR_HDL.
SET PROPERTY OF H_F 'Bold' = BOLD .
PERFORM ERR_HDL.
ENDFORM.
*& Form ERR_HDL
outputs OLE error if any *
--> p1 text
<-- p2 text
FORM ERR_HDL.
IF SY-SUBRC <> 0.
WRITE: / 'Fehler bei OLE-Automation:'(010), SY-SUBRC.
STOP.
ENDIF.
ENDFORM. " ERR_HDL
Please note that this example maybe slow at filling the excel table
(perhaps four fields per second on a 900 MHz machine - almost 30 seconds
for a short example).
To get the data on properties and methods - there is a bit of smoke and mirrors
going on here; they are EXCEL properties and methods, not sap ones - so you need
to look at excel help to determine how a particular function is structured. then
build the block in sap, as shown in the example.
If you only want to transfer the data to Excel like when you transfer the data from
ALV to Excel simply use the Function Modules:
XXL_SIMPLE_API
If you want more modifications when you transfer it to Excel use:
XXL_FULL_API
Hope this helps.
Reward if helpful.
Regards,
Sipra -
How to export report output into excel file
hi friends,
i would like to get the solution from you for how to export the report output into a .xls file. i know how to convert it into .rtf and .txt files but i think it's difficult to do this .xls way, could you help me to comeover this problem?
thankyou very much.The official answer is "delimited", which
generates adequate comma or other delimited
text. No formatting, and without extra
effort no support for non-ASCII characters.
Might be sufficient for you.
Note that Excel can read html files - we
built programs to generate html files with
name of "blah.xls" and some Excel-ish
extensions, so Excel is automatically opened
and the document is all nice and pretty.
(Oracle html output has some odd logic about
choosing number of columns, we didn't use
it.)
-- Allan Plum -
How to send the dynamically generated XML file to other site for further processing?
I have a question regarding exchanging data between two systems
using XSQL servlet. The situation is descrbed as the follows:
Assume that we have a simple XSQL page named "emp.xsql"
<?xml version="1.0"?>
<?-- XSQL page file "emp.xsql" -->
<xsql:query xmlns:xsql="urn:oracle-xsql" connection="demo" >
SELECT * FROM EMP
</xsql:query>
and we can access it through the HTTP request likes
http://web_server_name/xsql/emp.xsql.
Usually we will the returned dynamic XML file and show it on the
screen. Now the problem is that we don't want to show the
generated XML file on the calling screen. Instead, we want to
send the generated XML file to other website for further
processing, say, using JSP or ASP likes
http://other_web_server_name/XMLProcessing.jsp?.....
How can it be implemented using XSQL servlet?
Any hint and outline of the solution is appreciated.
ThanksIke,
Do you have a sample. I am searched so much in this forum for samples. I looked on SAX Parser. I did not find any samples.
Please help me.
Thank you for your posting.
Padma. -
How to align the output in a file?
Hello Experts,
The following code snippet:
CONCATENATE 'Material Number '
'Created By'
'Changed By'
'Material Type'
'Material Status'
'Material description'
cl_abap_char_utilities=>cr_lf
INTO g_data SEPARATED BY g_c_tab.
TRANSFER g_data TO p_pth_as.
LOOP AT g_t_output INTO g_r_output.
MOVE-CORRESPONDING g_r_output TO g_r_transfer.
CLEAR: g_data, g_r_output.
CONCATENATE g_r_transfer-matnr
g_r_transfer-ernam
g_r_transfer-aenam
g_r_transfer-mtart
g_r_transfer-mstae
g_r_transfer-maktx
cl_abap_char_utilities=>cr_lf
INTO g_data SEPARATED BY g_c_tab.
TRANSFER g_data TO p_pth_as.
produced output like this:
Material Number Created By Changed By Material Type Material Status Material description
000000000000000001 FRE8OT MES2KOR FERT Test
000000000000000002 FRE8OT RI78OT FERT Test
000000000000000011 JA72KOR JMR1KOR PROD new product group
000000000000000023 LAP8OT RI78OT FERT test mmam
000000000000000031 RI78OT RI78OT FERT Test-Test
000000000000000032 RI78OT RI78OT FERT Test-Test-Test
000000000000000037 RI78OT RI78OT FERT Testtest
000000000000000038 RI78OT RI78OT FERT Teeest
000000000000000061 PIM8OT ERSA test
000000000000000072 PIM8OT STK2KOR HAWA Test
000000000000010001 FRE8OT MES2KOR FERT
STNL HT88OT NNR3KOR HALB STNL
TESTMAT RI78OT RI78OT FERT Test-Material
TESTMATERIAL RI78OT RI78OT FERT Testmaterial
ZJA_TEST JMR1KOR SAB2KOR FERT Test
ZJA_TEST1 JMR1KOR SAB2KOR FERT test
ZJA_TEST2 JMR1KOR FERT test
ZJA_TEST23 JMR1KOR FERT test
But the output produced in the file should be formatted, so that every field values appear under the appropriate column heading.
Expecting suitable solution to produce formatted output.
Thanks and best regards,
Suresh
Edited by: Suresh S on Jan 19, 2009 10:54 AMHi,
Try using the psotioning .
For e.g.
write :/ 2 Material Number, 15 Material desc.
Hope this helps u.
Thanks & Regards -
How to read the contents of XML file from my java code
All,
I created an rtf report for one of my EBS reports. Now I want to email this report to several people. Using Tim's blog I implemented the email part. I am sending emails to myself based on the USERID logic.
However I want to email to different people other then me. My email addresses are in the XML file.
From the java program which sends the email, how can I read the fields from XML file. If any one has done this, Please point me to the right examples.
Please let me know if there are any exmaples/BLOG's which explain how to do this(basically read the contents of XML file in the Java program).
Thank You,
PadmaIke,
Do you have a sample. I am searched so much in this forum for samples. I looked on SAX Parser. I did not find any samples.
Please help me.
Thank you for your posting.
Padma. -
How To Fetch the Content of a File from Client's PC?
In my JSP I have this:
<input type="file" name="filename">for visitors of the web page to browse their PCs' directories to select a file to upload (when the Submit button is clicked).
What appears in the text field will be a file name. How do I get both the file name and the content of that file to be saved in the database?From http://www.htmlhelp.com/reference/html40/forms/input.html:
A form that includes a file INPUT must specify METHOD=post and ENCTYPE="multipart/form-data" in the <FORM> tag. CGI libraries such as CGI.pm allow simple handling of such forms.
Form-based file upload is unsupported by many currently deployed browsers. Authors should provide alternative methods of input where possible.
The following example allows the user to upload an HTML document for validation:
<FORM METHOD=post ACTION="/cgi-bin/validate.cgi" ENCTYPE="multipart/form-data">
<P>Select an HTML document to upload and validate. If your browser does not support form-based file upload, use one of our alternate methods of validation.</P>
<P><INPUT TYPE=file NAME="html_file" ACCEPT="text/html"></P>
<P><INPUT TYPE=submit VALUE="Validate it!"></P>
</FORM>
Your servlet would then have to process whatever data is put into that parameter. You can look at O'Reilly's servlet utilities, or one of the other other links here:
http://www.google.com/search?q=java+servlet+file+upload&sourceid=opera&num=0&ie=utf-8&oe=utf-8
Maybe you are looking for
-
Since uploading OS 4.3.2, I can no longer sync my Outlook Calendar to my 3GS iPhone. Any suggestions?
-
How do normal maps work in photoshop? Can I create them?
Hi i am new to photoshop! I am using photoshop to make textures for my pinball simulator. I've learned how to add color with the lasso select but I want the textures to look better so I wanted to add in more, so I was wondering if I could create a bi
-
Seit After Effects 13.2 Installation lassen sich viele meiner Projekte nicht mehr öffnen. Zum Glück habe ich einen Tag vor der Installation zwei wichtige Projekte abschließen können. Wenn ich nun die Dateien öffne kommen diese Meldungen: die 7508 ist
-
Trial edition of Adobe Premier Elements
I want to make my video on Adobe Premier Elements 11 but im using the trial version. Everytime i put a picture, in the background, it says "created with adobe premier elements trail version". How do i delete that from my movie? Please someone help me
-
2 Client of ECC pointing to one BI Client
Hi, I have a requirement at BMW Inc to test the unconsolidated FI data from ONE ECC CLIENT in QA System and then I have a Consolidated FI Data from another ECC Client in Quality system. Can I HAVE ONE BI system to receive the data from both ecc clien