Report download to system as txt FILE.
Hi All,
My Requirement is to download the report output as .txt file in the local PC. As of now i am using fm WS_DOWNLOAD to download. But what is the problem is that the formatting and the positioning is diffrent from the report and the txt file. I heared that there is an option like write the report to spool & then we need to read the spool as report wil gives the proper output. Does any one has that type of pgm ?? if so please send it to me its bit urgent. And please write comments also..
Points awarded..??
Thanks
Raghu
Hi,
Use GUI_DOWLOAD FM instead. This should work fine.
Else refer following program:
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
Best regards,
Prashant
Similar Messages
-
Report with Access Database or TXT file
Dear All,
I was wondering if someone can help me with the following issue.
We have created a Crystal Reports XI report which has a Access MDB or Plain Text file as source data (2 different reports; one with MDB connection only and the other one with a Lotus Notes ODBC connection and TXT file).
The report runs correctly locally and it also runs correctly on the server but as soon as I post the report via the repository folder to the server, it does not work anymore.
Viewing the report via InfoView gives me a password request while both, the MDB and TXT file are not password protected.
We have tried to make system DSN and file DSN connections to both the MDB and TXT file but also this ends with a password request which is not defined.
Did anyone came across this as well? Any idea about a solution?
Thank you in advance,
Annique.Hi Annique,
Since this works in CR Designer I'm moving your post to the Business Objects forum.
It's likely due to BOE servers not having access to the data sources. Make sure you put them in a folder that the WEB server and BOE Servers have access to. To prompt for log on is because we can't find the data files.
Thank you
Don -
Dowloading tab delimited .txt file
Hello friends,
I am downloading one tab delimited .txt file from internal table using OPEN dataset , READ dataset.
But output looks like...
4500603096 20081008[]4500603095 20081003[]4500603087 20080924[]4500603083 20080910[]4500603084 20080910[]
and I want output as follows in .TXT file
4500603096 20081008
4500603095 20081003
4500603087 20080924
4500603083 20080910
4500603084 20080910
While same file i open with excel it works correctly.
Why this is happening?
My code is below...
OPEN DATASET l_file FOR OUTPUT IN TEXT MODE.
IF sy-subrc = 0.
LOOP AT i_po_extarct INTO lw_po_extract.
CONCATENATE lw_po_extract-ebeln
lw_po_extract-aedat
INTO l_string
SEPARATED BY wc_tab.
* Get the logs to the file.
TRANSFER l_string TO l_file.
ENDLOOP.
* Close the dataset
CLOSE DATASET l_file.
ELSE.
MESSAGE e303(me) WITH 'File not found'.
ENDIF.
note : l_string and l_file are type STRING.
Edited by: Ronny Hanks on Oct 21, 2008 10:39 AM
Edited by: Ronny Hanks on Oct 21, 2008 10:40 AMOPEN DATASET a_plant FOR INPUT IN TEXT MODE ENCODING DEFAULT.
DO.
READ DATASET a_plant INTO w_string.
IF sy-subrc <> 0.
EXIT.
ENDIF.
SPLIT w_string AT cl_abap_char_utilities=>horizontal_tab
INTO w_txt1-werks w_txt1-name1 w_txt1-country .
MOVE w_txt1 TO it_plant.
APPEND it_plant.
CLEAR w_txt1.
CLEAR w_string.
ENDDO.
CLOSE DATASET a_plant.
hope it will useful to you -
Open txt file in CV02n for URL path
Hi
I stored atachment Text file in SAP content server for SRM SC document.
and i have below HTTP url.
http://1xxxxxxxx:1090/ContentServer/ContentServer.dll?get&pVersion=0046&contRep=BBPFILESYSTEM&docId=E03E3F4E929E9BF1B4100026B98BDDE2&compId=linknew.TXT
I want to open the file in notepad from CV02N without opening browser. How to do this.
I used data carrier INTERNET and TYPE as UR, In this case its opening browser and opening text file.
But i dont want to open browser, instead i want to open only text file.
I already did customizing in ERP system for TXT file and if i checkin text file in CV02N i am able to open it in notepad.
simmilarly i want to open URL path file also.
Pls sugges me how to do this
Regards
Chandra
Edited by: princeck on Feb 24, 2011 10:09 AMMake sure the filename has an absolute path. If the path is relative it will point to a different location depending on where you run the program from.
When you run it from within Xcode itself the binary is buried way inside the project hierarchy (you can see where it is by selecting the program in the Products folder and doing a Show in Finder).
The safest bet is to always specify a specific directory for any writes you do.
regards
As an example for this program in Xcode (assumoing you will be able to see the images)
The binary is located here -
Format probelm about the downloaded txt file
I encounter a problem. after the 4.7 system upgrade to ECC6.0 ..(sandbox)
Our report can't download the correct txt file.
I wrote a test program.
REPORT ZTEST NO STANDARD PAGE HEADING.
write: / '123',
/ 'abc'.
I download from menu :system->list->save_>local file: not converted.
but when opening the txt file , it shows:
2008.09.09 test 1----
123abc
everything is in one line. and add the current date ..and '----
Help.. what's the problem?
Many thanks
Edited by: hand consultant on Sep 9, 2008 8:13 AMHi,
Ganesh Modhave,
It is strange problem. Because in the same computer, I downloaded the txt file from 4.6c system. And the result is OK.
So I guess some upgrade issue result in the problem..
I path the gui 710 to level 2.,,........ It's okey now ,thanks. -
DOWNLOADING A REPORT PROGRAM CODE IN TO TEXT FILE
I HAVE ONE SIMPLE REPORT PROGRAM SAY,
*& Report ZTEST25
REPORT ZTEST25.
DATA : A(8) TYPE C.
A = 'ANDHRA'.
WRITE A.
THE ABOVE MENTIONED REPORT PROGRAM SHOULD BE DOWNLOADED TO A TEXT FILE USING ANOTHER REPORT PROGRAM BY USING PARAMETER.
THE OUTPUT IN THE FLAT FILE SHOULD BE:
REPORT ZTEST25.
DATA : A(8) TYPE C.
A = 'ANDHRA'.
WRITE A.here is complete code for that
report z11dpk_assign1
no standard page heading
message-id z11dpk
line-size 200 "page width
line-count 65(0). "page length.
T A B L E S D E C L A R A T I O N *
tables: trdir, " System Table TRDIR
trdirt. " Title texts for programs in
D A T A D E C L A R A T I O N *
Types
Structure declaration for system table
types: begin of struct_sys,
name(40) type c, " ABAP program name
clas(4) type c, " Program class
subc(1) type c, " Program type
cnam(12) type c, " Author
cdat type dats, " Created on
rstat(1) type c, " status
text type repti, " Report title
c_box(1) type c, " for check box
end of struct_sys.
Structure for internal table for report data
types: begin of struct_report,
line(500),
end of struct_report.
C O N S T A N T S D E C L A R A T I O N S
data : c_name(50) type c, " Program Name
c_filename like ibipparms-path, " File name
c_filename1 type string, " File name
c_ext(5) value '.TXT', " File extension
c_textline(150) type c, " downloading status
c_count type c, " no of pgm downlded
c_count_text(100) type c. " Text pgm downlded
The CONSTANTS statement defines global and local constants.
By using constants, you can read statically declared data objects,
constants: c_const(8) value 'UNTITLED'.
I N T E R N A L T A B L E D E C L A R A T I O N
data: it_sys type standard table of struct_sys, " Itab for sys data
it_report type standard table of struct_report with
non-unique default key initial size 1000. " Itab for rep data
W O R K A R E D E C L A R A T I O N S
data: wa_sys type struct_sys, " Work area for sys data
wa_report type struct_report. " Work area for report data
I N I T I A L I Z T I O N
initialization.
clear : wa_sys.
refresh: it_sys,
it_report.
c_count = 0.
S E L E C T I O N - S C R E E N
selection-screen : begin of block blk3 with frame title text-015.
selection-screen : begin of block blk1 with frame title text-001.
select-options : s_name for trdir-name. " Program name
selection-screen : end of block blk1.
selection-screen : begin of block blk2 with frame title text-002.
parameters : p_file type rlgrap-filename. " Path for loc folder
selection-screen : end of block blk2.
selection-screen : end of block blk3.
A T S E L E C T I O N - S C R E E N
*The possible entries pushbutton for F4 appears beside the appropriate
*fld (p_file) When the user activates this pushbutton or presses F4 for
*the fld, the event is executed You can thus implement a self-programmed
*possible entries routine for the input/output fields of the selection
*screen
at selection-screen on value-request for p_file.
Value of Local file for upload/download is obtained by using this FM
call function 'F4_FILENAME'
importing
file_name = p_file.
S T A R T - O F - S E L E C T I O N
start-of-selection.
CONCATENATE p_name '%' INTO z_name.
select name
clas
subc
cnam
cdat
rstat into table it_sys
from trdir
*Sorts the selected records in ascending order by the specified column
*references f1 ... fn (name)
where name in s_name order by name.
WHERE name LIKE 'Z11%'.
if sy-subrc = 0.
sort it_sys by name.
clear wa_sys.
loop at it_sys into wa_sys.
select single text
into wa_sys-text
from trdirt
where name = wa_sys-name and
sprsl = sy-langu.
modify it_sys from wa_sys index sy-tabix.
clear wa_sys.
endloop.
endif.
set pf-status 'MENU_ASSIGN1'.
uline.
write:/ sy-vline ,
8 sy-vline, text-009 color 4, " Name of the Program
55 sy-vline, text-003 color 4, " Class
62 sy-vline, text-004 color 4, " Type
68 sy-vline, text-005 color 4, " Created By
80 sy-vline, text-006 color 4, " Created On
92 sy-vline, text-007 color 4, " Status
100 sy-vline, text-008 color 4, " Program text
180 sy-vline.
clear wa_sys.
loop at it_sys into wa_sys.
uline.
write:/ sy-vline,
5 wa_sys-c_box as checkbox,
8 sy-vline, wa_sys-name,
55 sy-vline, wa_sys-clas,
62 sy-vline, wa_sys-subc,
68 sy-vline, wa_sys-cnam,
80 sy-vline, wa_sys-cdat,
92 sy-vline, wa_sys-rstat,
100 sy-vline, wa_sys-text,
180 sy-vline.
endloop.
at user-command.
case sy-ucomm.
when 'BACK'.
leave screen.
when 'EXIT'.
leave program.
when 'DOWN'.
clear wa_sys.
do.
clear wa_sys.
read line sy-index field value wa_sys-c_box wa_sys-name.
if sy-subrc <> 0.
exit.
endif.
*if check box is selected.....
if wa_sys-c_box = 'X'.
clear c_textline.
*Assigns the contents of the source field to the target field as a new
*value
write text-010 to c_textline. " Downloading
write wa_sys-name to c_textline+12.
write text-011 to c_textline+53. "to
write c_filename1 to c_textline+56. " file name
FM returns the Text to be displayed on screen
call function 'SAPGUI_PROGRESS_INDICATOR'
exporting
text = c_textline.
c_count = c_count + 1.
Reads the program prog from the database into the internal table itab.
The line length of table itab should be at least 72 characters
read report wa_sys-name into it_report.
if sy-subrc <> 0.
exit.
endif.
*p_file contains the character string untitiled
This comparison is not case sensitive
if p_file cs c_const. " Untitled
the string ''(space) replaces the untitled occurrence of the search
ignore case is used as this search is case sensitive
replace c_const in p_file with '' ignoring case.
endif.
Places the fields f1 to fn (n >= 2) after g (target field).
concatenate p_file wa_sys-name c_ext into c_filename1.
*Data transmission of an internal table from the server to a file on the
PC is done by this FM.
call function 'GUI_DOWNLOAD'
exporting
filename = c_filename1
filetype = 'ASC'
tables
data_tab = it_report.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endif.
enddo.
clear c_count_text.
write c_count to c_count_text+1.
write text-030 to c_count_text+4.
Nos Of Pgms downlded successfully
message i205 with c_count_text.
endcase.
T O P - O F - P A G E
top-of-page.
uline.
write:/ sy-vline,
10 text-020 color 2, " Fujitsu India Limited
70 text-021 color 2. " List of ABAP Programs
write:/ sy-vline,
10 text-022 color 3, sy-datum color 3, " Date
70 text-023 color 3, sy-pagno color 3. " Page No
plz reward if helpful
vivek -
Error while importing the .txt file for SAP script to another system.
Hi Gurus,
I'm trying to import the .txt file exported (using RSTXSCRP) from one system to another.But getting the following error on the destination system (4.6C).I'm able to import the same file on all other releases (Like 470 500,600,604).
"ERROR: Invalid start marker: SF instead of SFORM "
Kindly assist..
JasvirHi,
Usually when you download the file and open it with notepad, the first line is like
SFORMZINVOICE
ie SFORM followed by form name
Check this in your downloaded file
Regards -
Background processing of S_ALR_87013558 report with output in txt file
Dear Friend's,
Here I have a requirement of, to execute standard report S_ALR_87013558 (Budget/Actual/Commitment/Rem Plan/Assigned) in background processing mode. Here we have to run this report in background on daily basis at a particular given time.
Once this report gets executed in background, output of this report should get converted automatically into txt file and this converted txt file must be downloaded in a respective folder automatically by giving desired path.
After completion of this process, downloaded txt file they have to use for internal MIS reporting purpose.
Is this possible via standard PS or else I have to go for the development.Please suggest, what should be the approach?
Regards,
SandeepHi Sandeep,
Check if you can create batch job to run for S_ALR_87013558 using SM36
The Program name is GP8YTY7TBR1TYRPCIPKAC6X9GZG
Please check with ABAP.
Regards,
Nitin -
Conver a report in to txt file
Hi all,
I need to convert the report output into txt file .How can i do that?. can any one post some sample codes.
Regards,
Lisa.Here is a sample program which submits the report program, brings the output back from memory and downloads it to a text file.
report zrich_0003 .
data: begin of listout occurs 0,
line(1024) type c,
end of listout.
* Submit the report and export list to memory
submit your_report_program exporting list to memory
and return.
* Get list from memory and convert to ascii
perform retrieve_list_from_memory tables listout.
call function 'GUI_DOWNLOAD'
exporting
filename = 'C:Test.txt'
tables
data_tab = listout.
* RETRIEVE_LIST_FROM_MEMORY
form retrieve_list_from_memory tables reportlines.
data: list like abaplist occurs 0 with header line.
data: txtlines(1024) type c occurs 0 with header line.
clear list. refresh list.
clear reportlines. refresh reportlines.
call function 'LIST_FROM_MEMORY'
tables
listobject = list
exceptions
not_found = 1
others = 2.
check sy-subrc = 0.
call function 'LIST_TO_ASCI'
tables
listobject = list
listasci = txtlines
exceptions
empty_list = 1
list_index_invalid = 2
others = 3.
check sy-subrc = 0.
reportlines[] = txtlines[].
call function 'LIST_FREE_MEMORY'.
endform.
Regards,
Rich Heilman -
Hi,
The following Code downloads Files from a Server, but it has one Problem, if I want to download a txt-File there are 3 Line-Feeds too much at the End of the downloaded File
I think it is a Problem with the Part, where the header is created.
FileInputStream fips = new FileInputStream(strSourceFilename);
BufferedInputStream bips = new BufferedInputStream(fips);
response.setContentType("application/octet-stream");
response.setHeader("Content-Disposition","attachment; filename="+strFilename);
OutputStream ops = response.getOutputStream();
BufferedOutputStream bops = new BufferedOutputStream(ops);
int i=0;
byte [] ba = new byte[1000];
while((i=bips.read(ba))!=-1){
bops.write(ba,0,i);
ops.close();
fips.close();
bops.close();
bips.close();Thanks a lot for your helpTry this once
if any problem mail To me [email protected]
<%@ page import="java.io.*" %>
<%try {
String ROOT_PATH;
ROOT_PATH = getServletContext().getRealPath("/");
out.println(ROOT_PATH);
FileInputStream in = new FileInputStream(ROOT_PATH + "a.txt");
response.setContentType("text/html");
response.setHeader("Content-Disposition", "attachment; filename=a.txt");
int i;
while ((i=in.read()) != -1) {
out.write(i);
in.close();
out.close();
catch(Exception e)
System.out.println("...error while loading: "+e.toString());
%><html><head></head><body>Error: can't open file historic_flow_rates.csv</body></html><%
%> -
How to download a .txt file correctly. Please help as soon as possible!
Hi everybody,
I need to implement download that prompts the user to save a txt file.
If I use "attachment" in response.setHeader, my IE 5.50 crashes after downloading 4 to 6 files consecutively.
I tried to change the response.setHeader to "inline" and the response.setContentType to "application/zip" or "application/UNKNOWN", and although it works in IE 5.50, my IE 5.00 never prompts asking to save the file, it always opend the file into the browser window, and I need a prompt.
I saw many questions related with this problem in this forum, but none that answered accurately to this problem.
Please help as soon as possible, I dont have much time to do this.
Thank you very much.Thank you gypsy617 for your reply, but it still does not work!
I made all the changes to
1)res.setContentType("application/x-download");
2)res.setHeader("Content-Disposition", "attachment; filename=" + filename);
3)OutputStream out = res.getOutputStream();
4)returnFile(filename, out);
5) and i sent the file content as bytes
But the real problem is regarding the "attachment" option !!!
In my application, in the same page, there are a lot of links that users can download, each one a link that calls a action. It works well for the first downloaded file, for the second, ..., and then, when we try to download the file number 4 or 5, IE says that there is a problem and it must close (and it asks us to send a report - something like "Exception Information Code:0xc0000005 Flags:0x00000000 Record:0x0000000000000000 Address:0x0000000077a7710a").
I know that the problem is the "attachment" because if I choose "inline", IE never crashes. But i really need a Save As dialog, the txt files cannot be openned into the browser window, so i cant use inline.
Any idea?
Thank you. -
I am using SQL Server 2005. I run a report which runs and renders perfectly. But I am unable to export it into any format. It fails with the following error:
Server Error in '/Reports' Application.
The file exists.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.IOException: The file exists.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[IOException: The file exists.
Microsoft.Reporting.WebForms.ServerReport.ServerUrlRequest(Boolean isAbortable, String url, Stream outputStream, String& mimeType, String& fileNameExtension) +489
Microsoft.Reporting.WebForms.ServerReport.InternalRender(Boolean isAbortable, String format, String deviceInfo, NameValueCollection urlAccessParameters, Stream reportStream, String& mimeType, String& fileNameExtension) +924
Microsoft.Reporting.WebForms.ServerReportControlSource.RenderReport(String format, String deviceInfo, NameValueCollection additionalParams, String& mimeType, String& fileExtension) +84
Microsoft.Reporting.WebForms.ExportOperation.PerformOperation(NameValueCollection urlQuery, HttpResponse response) +153
Microsoft.Reporting.WebForms.HttpHandler.ProcessRequest(HttpContext context) +75
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +303
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64
I have seen this question asked several years ago, but have never seen a response that suggests what the issue may be.
I would really appreciate any help in resolving this problem.\
The application has been running from quite some time and this problem started just recently.
Thank You.
-RickHi Rick,
According to your description, the exception “System.IO.IOException: The file exists.” is thrown out when you export the report on report manager.
Generally, the exception is thrown out because there are more than 65535 files without deleting previous temporary files in our temporary directory. Based on my research, it has reported the same issue when exporting the report on report manager, and deleting all
temp files from C:\Windows\Temp could resolve the issue. I would also suggest you remove the temporary files from C:\Users\<username>\AppData\Local\Temp. Please refer to the first comment at this link:
System.IO.IOException: The file exists
Reference:
Path.GetTempFileName Method
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
Report to display PO details and download details in an excel fil
Hi,
I have been asked to develop a report for "Develop report to display PO details and download details in an excel file".
Could any one guide me technically what are the different tables i need to take to generate the report. Treat this is very urgent. Pls provide sample code too....
Thanks in advance....Purchase Order PO
Tcode for creation ME21,ME22,ME23. tables EKKO,EKPO.
refer this program
REPORT ZPOCHANGE.
This is a subroutine perform in the Purchase order Layout sets.
Description : To retreive the details of changed remarks in PO output and to capture the retrival date
Additional features with the previous changed appearing. e.g. from .... to
Note : If the latest modification details required
Please Uncomment the lines mentioned under 'Last Modified Remarks only'
Information
/: PERFORM CHDATE IN PROGRAM ZPOCHANGE
/: USING &EKKO-EBELN&
/: CHANGING &RVDATE2&
/: ENDPERFORM.
/: IF &RVDATE2& EQ ' '.
/ Revision Date: NIL
/: ELSE.
/ Revision Date: &RVDATE2&
/: ENDIF.
Main Window
/E CHANGE_REMARKS
/: PERFORM CHDET IN PROGRAM ZPOCHANGE
/: USING &EKPO-EBELP&
/: USING &EKKO-EBELN&
/: USING &T166T-CHTXT&
/: USING &T166T-CTXNR&
/: CHANGING &ITAB1-F_NEW&
/: CHANGING &ITAB1-F_OLD&
/:ENDPERFORM.
/:IF &ITAB1-F_NEW& NE ' '
= &ITAB1-F_OLD(C)& CHANGED TO &ITAB1-F_NEW(C)&
/:ENDIF
You might need to apply Note 373524 - Message determination and printing
TABLES : CDSHW , "Change documents, formatting table
CDHDR , "Change document header
EKPO , "Purchasing Document Item
EKKO , "Purchasing Document Header
T166C . "Print-Relevant Purchasing Document Changes
DATA : ITAB1 LIKE CDSHW OCCURS 100 WITH HEADER LINE.
DATA : ITAB2 LIKE EKPO OCCURS 100 WITH HEADER LINE.
DATA : DOCUM LIKE EKKO OCCURS 100 WITH HEADER LINE.
DATA : TABKEY LIKE CDSHW-TABKEY.
data : begin of ctab occurs 10,
tname like t166c-tname,
fname like t166c-fname,
TABKEY LIKE CDSHW-TABKEY,
FLAG(3),
end of ctab.
DATA : VAL1(15), VAL2(15).
DATA : M1(20), M2(10), M3(10),M4(5).
DATA : RVDATE(10),RVDATE2(10) , EBELN LIKE EKKO-EBELN, COUNT TYPE I.
Text number for change text(CTXNR), CHANGE TEXT(CHTXT), Purchase order
Number and item number are passed from Layoutset
FORM CHDET *
--> ITAB *
--> OTAB *
FORM CHDET TABLES ITAB STRUCTURE ITCSY
OTAB STRUCTURE ITCSY.
LOOP AT ITAB.
CASE ITAB-NAME.
WHEN 'T166T-CHTXT'.
MOVE ITAB-VALUE TO M1.
WHEN 'T166T-CTXNR'.
MOVE ITAB-VALUE TO M2.
WHEN 'EKKO-EBELN'.
MOVE ITAB-VALUE TO M3.
WHEN 'EKPO-EBELP'.
MOVE ITAB-VALUE TO M4.
ENDCASE.
ENDLOOP.
Throught this function change details are retrived into itab1.
CALL FUNCTION 'ME_CHANGES_READ'
EXPORTING
DOCUMENT_CATEGORY = 'F'
DOCUMENT_NUMBER = M3
TABLES
XCDSHW = itab1.
SELECT SINGLE * FROM T166C WHERE CTXNR = M2.
IF SY-SUBRC = 0.
CONCATENATE M3 M4 INTO TABKEY.
********Last Modified Remarks only**********************
read table ctab with key tname = T166C-TNAME
tabkey = tabkey
fname = T166C-FNAME.
if sy-subrc ne 0.
LOOP AT ITAB1 WHERE TABNAME = T166C-TNAME
AND TABKEY+3(15) = TABKEY
AND FNAME = T166C-FNAME.
*********Last Modified Remarks only**********************
ctab-tname = t166c-tname.
ctab-fname = t166c-fname.
ctab-tabkey = tabkey.
append ctab.
delete itab1.
exit.
endloop.
Captured details are exported to Layoutset
LOOP AT OTAB.
CASE OTAB-NAME.
WHEN 'ITAB1-F_OLD'.
OTAB-VALUE = ITAB1-F_OLD.
MODIFY OTAB.
CLEAR : ITAB1-F_OLD.
WHEN 'ITAB1-F_NEW'.
OTAB-VALUE = ITAB1-F_NEW.
MODIFY OTAB.
CLEAR : ITAB1-F_NEW.
ENDCASE.
endloop.
endif.
******Last Modified Remarks only****************
ENDIF.
clear ctab.
ENDFORM.
FORM CHDATE *
--> ITAB *
--> OTAB *
Form for revision date retrival. PO no. is passed from layoutset
and in the change document header latest modified date is captured
and passed to revision date field in Layoutset.
FORM CHDATE TABLES ITAB STRUCTURE ITCSY
OTAB STRUCTURE ITCSY.
CLEAR : RVDATE, EBELN.
LOOP AT ITAB.
CASE ITAB-NAME.
WHEN 'EKKO-EBELN'.
MOVE ITAB-VALUE TO EBELN.
ENDCASE.
ENDLOOP.
SELECT UDATE INTO CDHDR-UDATE FROM CDHDR WHERE OBJECTCLAS = 'EINKBELEG'
AND OBJECTID = EBELN.
IF RVDATE < CDHDR-UDATE.
RVDATE = CDHDR-UDATE.
ENDIF.
COUNT = COUNT + 1.
ENDSELECT.
LOOP AT OTAB.
CASE OTAB-NAME.
WHEN 'RVDATE2'.
CONCATENATE RVDATE6(2) '.' RVDATE4(2) '.' RVDATE(4) INTO RVDATE2.
IF COUNT = 1.
RVDATE2 = ''.
ENDIF.
MOVE RVDATE2 TO OTAB-VALUE.
MODIFY OTAB.
ENDCASE.
ENDLOOP.
CLEAR : COUNT.
ENDFORM.
Message was edited by:
Karthikeyan Pandurangan -
How can i put a system.out.println into txt file
i want to generate a txt file instead of system.out.println. for the output How can i do that and what code can i use for that??
Edited by: crystalarun on Oct 14, 2007 11:40 AMsuppose u ant output in "Output.txt"
then code can be
PrintStream out = new PrintStream(new FileOutputStream("Output.txt"));
System.setOut(out) -
Problem in saving report as .txt file through IE
We have a requirement to save the report generated as HTML as text file(.txt) in IE. The report generated shows properly on the page, but when saved as text file the records trucated or line feed is added into records and file is distored. If I open the report in Netscape and save it, no problem of line feed or truncatation. Can anyone tell me how to solve this.
We gave the following as query parameter to report server
desformat=html&destype=cache. If I use the other option desformat=delimited&CELLWRAPPER=,&destype=cache, the report is repeating the column name in all the records(rows).
Can anyone tell me urgently how to save the report (.CSV or delimited) in the text file.
Regards
Arun
[email protected]Hi Subraj,
Thanks for the answer.
We are moving to Oracle 9iAS Release 2, does this patch inbuilt or for that also we need to install the patch separetly.
Regards
Arun
Maybe you are looking for
-
My Ipod Touch won't let me download apps or log in
I just got it and it won't let me download apps. I even made another ID. It keeps saying "Password or Apple ID is incorrect" or it will say "cannot connect to ITunes" and if it doesn't say either one of these it says "An Unknown Error occured" I rest
-
IMovie 6.0.3 - White Screen in iMovieHD playback
MacBookPro Mac OS X (10.4.7) 1 GB Memory / 2.16 Ghz Intel Core Duo After a lot of trouble, I converted an iMovieHD file into a Quicktime file. When I returned to the original piece in iMovieHD the screen is completely white during playback and th
-
What CD brands will work with my iMac?
I've read everyone's nightmares here, related to the Superdrive, which I also have, and I share some of the same problems. What I'd like to know now is what is the best brand and speed of blank CD's to use to burn music to? I've been using Memorex CD
-
Dear Sapients, I have created eight wage types in IT0014. In IMG Payroll International - Reporting for Posting Payroll Results to Accounting - Activities in HR System - Maintain Wage Types - Define Posting Characteristics of Wage Types I could see on
-
Can't find my registration key for quicktime pro?
I have to go through a lot of searching in finding it under 2 accounts. It's just a lot easier getting it sent to me again rather trying to find it here where it should be easy to find, but not. It sure is not under my account history? Been like 5 or