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,
Sandeep
Hi 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
Similar Messages
-
Background processing for ABAP report with selection screen
Hi ABAP Gurus,
I m facing a strange problem in scheduling a background job for my report with a selection screen. I have a variant for the report.
I scheduled a job, but it seems to be not doing anything though all the system resources are available. The job overview shows "Acive" for the job. The job is neither stopping anything, it is just sitting there In SM50, the status shows "On Hold".
Any ideas/comments on the problem and how this can be overcome?
Qucik replies and solutions will be highly appreciated as this is a crucial part for a go-live project.
Thanks in advance.
Shivani.Yes. My report has a selection-screen which requires user input. But I have created a variant for the report and trying to run it in background using this variant. But facing this problem.
Strange thing is, instead of the usual SM36/SM37 option where we schedule and monitor background jobs, this option does not work for my report.
But I tried through SE38, and from my selection screen I selected "Schedule background job" and "run immediately" option, and this works. Though I still use SM37 to monitor this background job.
I have never faced such a situation before.
Any hints/tips why this happens and how this can be overcome in the future?
Thanks in advance.
Shivani. -
Scheduling a report with output (excel) to file location
Able to schedule a webi report and output format to excel and destination to file location.
Report is running at scheduled time/interval and writing the output excel file onto file location on BO server. The issue is, its creating the file extension in uppercase (ex: testfile.XLS). Is there a way to control the file extension to be lowercase.
Also tried to force "testfile.xls" (with extension in lowercase) in the instance title of report scheduler but still creating extension with uppercase (ex: testfile.XLS).
Any pointers ??
Environment - BO XIR3.1Hi,
I believe you can do this by switching the view to Excel and turning off the use job server defaults. You can then enter the name and extension as well as the destination folder.
Regards
Alan -
How to convert Oracle reports previewer output into delimited file.
How to convert Oracle reports previewer output into delimited file if the report has more than 1000 pages.
I tried with previewer option File --> Generate to file --> Delimited file, but the report engine is crashing.Not generating .TXT file.
I observed that this option is not working for more than 400 pages.
I am using Oracle reports 6i version.
Plz suggest me to generate .TXT file from Report previewer.You can specify a delimiter (a character or string of characters) to separate the data (boilerplate or field objects) in your report output in either of the following ways:
On the command line using the DELIMITER keyword.
In the Delimited Output dialog box or DelimitedData Output dialog box (displayed with File > Generate to File > Delimited or File > Generate to File > DelimitedData) in Reports Builder.
for further information goto this link
http://download.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_concepts2.htm#sthref760 -
Crystal Report with text(csv) data file, can we set it as input parameter?
Hi,
I am a new user of Crystal Reports 2008.
I have created a report with charts in it. The input data comes from a csv text file.
Can I set the name of this text file as an input parameter?
as I need to generate 44 similar reports with different text filenames(and data)?
Thank you.
RegardsBrian,
Thanks much.
I did exactly what you said.
Just to see any change, I first gave a bad report file name just to see if I am accidentally pointing to a different file,
but I got an error saying report not found.
Then I renamed my original datafile name and generated a report and it still generated one without giving an error.
Then I also gave a junk name to the logoninfo and printed that name, the new name was assigned to logoninfo, but the code did not error out.
It ended up generating the report.
Now here is what I think is happening,
1) The save data in report option seems to be still on even though I have turned it off in 2 locations
a) file -> Report Options
b) file -> Options -> Reporting tab.
2) For some reason the logoninfo is getting ignored as well.
Since I did not see any answers yesterday I posted a link to this thread on the .Net forum
Crystal Report with text(csv) data file, can we set it as input param? C#
and Ludek Uher says that I am connecting to the text file via a DAO database engine and so need to use the same code for changing the text file as for changing an Access database.
But the link he gave me tells me to try the same thing that we have been trying..
Here is my plan,
1) I will first try and find out why my save data with report option is still on ( but it shows off in Crystal ).
2) why is LogonInfo getting ignored.
Meanwhile any suggestions from anyone are welcome. -
Crystal Report with text(csv) data file, can we set it as input param? C#
Hi,
I am new to the forums and posted a question which belonged to the .net - SAP Crystal reports group.
Can someone help me with my problem? following is the thread that I have started.
Crystal Report with text(csv) data file, can we set it as input parameter?
Thank you in advance.Looking at the original thread, you are connecting to the text file via the DAO database engine:
"I added the text file as follow, new connection -> Access/Excell (DAO) -> select the file and the database type as text"
Thus I would use the same code for changing the text file as for changing an Access database. See Kbase [1218178 - Error: "Logon failed" when connecting to Access database in .NET application|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333133373338%7D.do] for more information. If that does not work, you may want to consider connecting via ODBC or feeding the data from the text file to and ADO .NET dataset and pointing the report at the dataset.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
File with list of .txt files in a specific directory
Hi,
I need to create a file with list of .txt files in a specific directory (actually the command will be used by a java application).
I am using the below command,
ls home/apptmt/park/*.txt > home/apptmt/park/reportgen.txt
but this command prints output as
home/apptmt/park/report1.txt
home/apptmt/park/report2.txt
home/apptmt/park/report3.txt
I need only the files in reportgen.txt file, like
report1.txt
report2.txt
report3.txt
any one help me on the command I should use to get this output?
Thanks
MTThank you Dude!
I just found out that
cd /home/apptmt/park;ls *.txt > reportgen.lst works for me...
I will try this one as well... thank you very much...
MT -
Background Processing Option in Report
Hi Fellow Abapers,
I need to edit a report whereby there is an option to display further fields. Now if they select this option, the report NEEDS to run in the background and output to the file. This will later be retrieved byt the SAP Output Controller (Which there is already a program). It is a must.
Does anybody have any links, codes, tips? Helpful posters will be awarded.Hi You can do that programatically, no need to say execute it in background from se38. Make sure you are not using file download but use open dataset. here is the sample program. Just copy and paste this in test program and check it. hope this will be helpfull. this report reads only materials for plant and there is an option on the selection screen to print or email or you can write it to spool. ofcourse it does automatically and then you can retrieve or print from SP01 but in your case you have to write to application server.
REPORT ysam_test5 MESSAGE-ID zsummit.
DATA: marc TYPE marc.
TYPES: BEGIN OF t_marc,
matnr TYPE matnr,
werks TYPE werks_d,
mmsta TYPE mmsta,
maabc TYPE maabc,
END OF t_marc.
DATA: it_marc TYPE TABLE OF t_marc,
wa_marc TYPE t_marc.
DATA : gr_table TYPE REF TO cl_salv_table.
DATA : gr_functions TYPE REF TO cl_salv_functions_list.
*fields used for variant create
DATA: wa_var_desc TYPE varid,
it_var_contents TYPE TABLE OF rsparams,
it_var_text TYPE TABLE OF varit,
wa_var_text TYPE varit,
w_var_varname TYPE variant.
*printer information
DATA: wa_print_options TYPE fpm_parcon,
wa_arc_options TYPE fpm_parcon,
w_print_options TYPE pri_params.
*email information
INCLUDE <cntn01>.
DATA: w_recipient TYPE swc_object,
w_recipient_obj TYPE swotobjid.
*container macro
swc_container w_swc_container.
*batch job information
INCLUDE lbtchdef.
DATA: w_job TYPE tbtcjob.
*constants
CONSTANTS: c_on VALUE 'X',
c_off VALUE space,
c_int(11) VALUE ' 0123456789'.
SELECTION-SCREEN BEGIN OF BLOCK main with frame.
SELECT-OPTIONS: s_matnr FOR marc-matnr,
s_werks FOR marc-werks.
SELECTION-SCREEN BEGIN OF BLOCK back WITH FRAME TITLE text-ss2.
PARAMETERS: p_fore RADIOBUTTON GROUP proc DEFAULT 'X', "foreground
p_ball radiobutton group proc,
p_berr radiobutton group proc.
SELECTION-SCREEN END OF BLOCK back.
SELECTION-SCREEN BEGIN OF BLOCK mail WITH FRAME TITLE text-ss3.
PARAMETERS: p_print RADIOBUTTON GROUP mail DEFAULT 'X',
p_email RADIOBUTTON GROUP mail.
SELECTION-SCREEN END OF BLOCK mail.
SELECTION-SCREEN END OF BLOCK main.
START-OF-SELECTION.
IF sy-batch = c_off AND p_fore = c_off.
PERFORM create_variant.
PERFORM build_print_parameters.
IF p_email = c_on.
PERFORM build_email_container.
ENDIF.
PERFORM open_job.
PERFORM submit_job.
PERFORM close_job.
MESSAGE i000 WITH 'Job' w_job-jobname
'has been submitted'.
perform delete_variant.
EXIT.
ENDIF.
perform select_data.
END-OF-SELECTION.
PERFORM salv_grid.
*& Form salv_grid
text
FORM salv_grid .
DATA: lref TYPE REF TO cx_root .
DATA: lr_layout TYPE REF TO cl_salv_layout,
ls_key TYPE salv_s_layout_key.
TRY.
cl_salv_table=>factory(
IMPORTING
r_salv_table = gr_table
CHANGING
t_table = it_marc ).
CATCH cx_salv_msg INTO lref.
ENDTRY.
***Sub Total
PERFORM sub_total.
***Layout
lr_layout = gr_table->get_layout( ).
ls_key-report = sy-cprog.
lr_layout->set_key( ls_key ).
lr_layout->set_default( 'X' ).
lr_layout->set_save_restriction( if_salv_c_layout=>restrict_none ).
***toolbar
gr_functions = gr_table->get_functions( ).
gr_functions->set_all( 'X' ).
*final display
gr_table->display( ).
ENDFORM. " salv
*& Form sub_total
FORM sub_total .
DATA: lr_aggregations TYPE REF TO cl_salv_aggregations.
lr_aggregations = gr_table->get_aggregations( ).
lr_aggregations->clear( ).
TRY.
lr_aggregations->add_aggregation( columnname = 'Z_BALANCE_REM' ).
CATCH cx_salv_not_found cx_salv_data_error cx_salv_existing.
ENDTRY.
TRY.
lr_aggregations->add_aggregation( columnname = 'Z_PAY_AMT' ).
CATCH cx_salv_not_found cx_salv_data_error cx_salv_existing.
ENDTRY.
ENDFORM. " sub_total
*& Form select_data
form select_data .
select matnr werks mmsta maabc into table it_marc
from marc
where matnr in s_matnr
and werks in s_werks.
endform. " select_data
*& Form create_variant
form create_variant .
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = sy-cprog
TABLES
selection_table = it_var_contents
EXCEPTIONS
not_found = 1
no_report = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CONCATENATE sy-datum sy-timlo INTO w_var_varname.
wa_var_desc-mandt = sy-mandt.
wa_var_desc-report = sy-cprog.
wa_var_desc-variant = w_var_varname.
wa_var_desc-transport = 'F'.
wa_var_desc-environmnt = 'A'.
wa_var_desc-version = '1'.
wa_var_text-mandt = sy-mandt.
wa_var_text-langu = sy-langu.
wa_var_text-report = sy-cprog.
wa_var_text-variant = w_var_varname.
CONCATENATE 'Batch Job Variant -' sy-uname INTO wa_var_text-vtext.
APPEND wa_var_text TO it_var_text.
CALL FUNCTION 'RS_CREATE_VARIANT'
EXPORTING
curr_report = sy-cprog
curr_variant = w_var_varname
vari_desc = wa_var_desc
TABLES
vari_contents = it_var_contents
vari_text = it_var_text
EXCEPTIONS
illegal_report_or_variant = 1
illegal_variantname = 2
not_authorized = 3
not_executed = 4
report_not_existent = 5
report_not_supplied = 6
variant_exists = 7
variant_locked = 8
OTHERS = 9
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
endform. " create_variant
*& Form build_print_parameters
form build_print_parameters .
IF p_print = c_on.
CALL FUNCTION 'MAINTAIN_PRINT_PARAMETERS'
EXPORTING
i_title_text = 'Select your printer'
CHANGING
c_pri_params = wa_print_options
c_arc_params = wa_arc_options
EXCEPTIONS
parameters_not_valid = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE e000 WITH 'Print parameters could not be gathered'.
ENDIF.
ENDIF.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION 'CHECK_PRINT_PARAMETERS'
EXPORTING
i_title_text = 'Select your printer'
i_pri_params = wa_print_options
i_arc_params = wa_arc_options
IMPORTING
e_pri_params = w_print_options
EXCEPTIONS
parameters_not_valid = 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.
IF sy-subrc <> 0.
MESSAGE e000 WITH 'Print parameters could not be assigned'.
ENDIF.
IF p_print = c_on.
w_print_options-primm = c_on.
ELSE.
w_print_options-primm = c_off.
ENDIF.
endform. " build_print_parameters
*& Form build_email_container
form build_email_container .
swc_create_object w_recipient 'RECIPIENT' space.
swc_clear_container w_swc_container.
swc_set_element w_swc_container 'AddressString' sy-uname.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
swc_set_element w_swc_container 'TypeId' 'B'.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
swc_call_method w_recipient 'CreateAddress' w_swc_container.
IF sy-subrc <> 0.
MESSAGE e000 WITH 'Could not determine email address'.
ENDIF.
swc_set_element w_swc_container 'SendExpress' 'X'.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
swc_call_method w_recipient 'SetExpress' w_swc_container.
swc_call_method w_recipient 'Save' w_swc_container.
swc_object_to_persistent w_recipient w_recipient_obj.
endform. " build_email_container
*& Form open_job
form open_job .
CONCATENATE sy-cprog '-' sy-uname INTO w_job-jobname.
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = w_job-jobname
jobclass = 'A'
IMPORTING
jobcount = w_job-jobcount
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
endform. " open_job
*& Form submit_job
form submit_job .
CALL FUNCTION 'JOB_SUBMIT'
EXPORTING
authcknam = sy-uname
jobcount = w_job-jobcount
jobname = w_job-jobname
priparams = w_print_options
report = 'YSAM_TEST5'
variant = w_var_varname
EXCEPTIONS
bad_priparams = 1
bad_xpgflags = 2
invalid_jobdata = 3
jobname_missing = 4
job_notex = 5
job_submit_failed = 6
lock_failed = 7
program_missing = 8
prog_abap_and_extpg_set = 9
OTHERS = 10.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
endform. " submit_job
*& Form close_job
form close_job .
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = w_job-jobcount
jobname = w_job-jobname
strtimmed = c_on
recipient_obj = w_recipient_obj
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
invalid_target = 8
OTHERS = 9.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
endform. " close_job
*& Form delete_variant
form delete_variant .
CALL FUNCTION 'RS_VARIANT_DELETE'
EXPORTING
report = sy-cprog
variant = w_var_varname
FLAG_CONFIRMSCREEN = 'X'
FLAG_DELALLCLIENT = 'X'
IMPORTING
VARIANT =
EXCEPTIONS
NOT_AUTHORIZED = 1
NOT_EXECUTED = 2
NO_REPORT = 3
REPORT_NOT_EXISTENT = 4
REPORT_NOT_SUPPLIED = 5
VARIANT_LOCKED = 6
VARIANT_NOT_EXISTENT = 7
NO_CORR_INSERT = 8
VARIANT_PROTECTED = 9
OTHERS = 10
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endform. " delete_variant -
Problem in background processing of a report
Hey,
I am facing a problem while executing a report in background. In foreground its running absolutely fine but in background the job get cancelled every time .
can any body tell me how to find the cause of the problem and how can we debug the report in background
thanks
bobbyHi Amole,
following error is encountered in background processing
ABAP/4 processor: GETWA_NOT_ASSIGNED
job cancelled
thanks
bobby -
Reports with output to excel - special characters not displayed correctly.
Hi,
I have a portal with data from 5 continents. In many places special or national characters are used in names. My portal can show most of these characters correctly and so can my version of Microsoft Office Excel. When text with these characters are copy/pasted from the screen to an excel sheet, they are also shown correctly in excel. The problem arises in portal reports, where output is set to Excel, then special characters are often displayed as strange double characters, for example á is shown as á . Does anybody have a solution to that?
Thanks
ArneNo answers have been posted yet and now I have found a solution myself. The portal report is run and output set to Excel. The resulting file is opened, and a new row is inserted in the top of the sheet. In the first field in this row is written the characters *\xEF\xBB\xBF*. It is called a UTF-8 BOM, and when written in the start of a text file, it will tell the program that opens it, that UTF-8 encoding is used.<br><br>
The file is saved with the file type CSV (semicolon separated) (*.csv) and excel is closed. When you click on the CSV-file, it is opened by excel, and now all characters with accents, circumflexes and umlauts are shown correctly.<br><br>
The solution was found here: http://www.roosmaa.net/importing-utf-8-csvs-in-excel/ -
Saving a CSV report output as TXT file
Hi,
We are generating reports on the web using Intenet Explorer. The report is a CSV report, i.e. the data displayed is comma separated. After generating the report, we need to save it as TXT file.
If the length of a line is long (let us say more than 80 chars) while saving it as TXT file, it is saving as 2 lines. If the length of a line is less, then it is saving in a single line.
How can I avoid this 2 line problem?
I am not facing this problem if I generate report with Netscape browser and save as TXT file.
We are using Reports 6i.
Thanks in Advance,
SrinivasHello,
I had the same problem. And I think what I did to fix it is I made the mode=charcter, batch=yes, and background=yes. Hope this helps.
Martin -
Output to .txt file overwriting.
Hi
I am trying to output to a .txt file with the below method that's called from a for loop that loops through a String array. Unfortunately it only writes to the first line over and over again so my .txt final ends up with the final element of the array and nothing else. Could anyone please suggest how this could be fixed.
static void writeArray (String combinedFileNameAndNumber){
try{
File destfile = new File(pathName, destFileName);
FileWriter fileWriter = new FileWriter(destfile);
BufferedWriter fileOutput = new BufferedWriter(fileWriter);
fileOutput.write(combinedFileNameAndNumber,0,combinedFileNameAndNumber.length());
fileOutput.write("\n");
fileOutput.flush();
fileWriter.close();
}catch(IOException e){
System.out.println("IO Error in write method");
}Thanks in advance.THe line separator is different on different platforms, on unix systems it's "\n" but on windows it's "\r\n". You can use System.getProperty("line.separator") to find the correct separator string.
But you don't need that because you are using BufferedWriter, there's a method called newLine that does exactly what you want. Just instead of fileOutput.write("\n");write fileOutput.newLine(); -
How to initialize Object Array Data Provider (OADP)with data from txt file
Hi,
I want to show in a table some columnar data from a txt file. I ran the creator demo application on OADP successfully. http://blogs.sun.com/divas/entry/using_the_object_array_data
I created a javabean class to read a txt file.However, I am stuck at how I can fill the data into an OADP array:
I am familiar with C extensively but not much at java. can anyone help??
thanks..
dr.am.mohan raoThanks for that. I changed it a little bit, but when i ran this script, got ORA-06532: Subscript outside of limit.
declare
O_voucher_comment SYSADM.AP_COMMENT_COLL := sysadm.ap_comment_coll(null);
begin
FAS_AP_EXCEPTIONS.GET_VOUCHER_COMMENTS('FCCAN', '20494753', 0, 'KEHE', O_voucher_comment);
end;
PROCEDURE get_voucher_comments (
v_bu_in IN VARCHAR2,
v_voucher_in IN VARCHAR2,
v_line_in IN NUMBER,
v_userid IN VARCHAR2,
voucher_comment OUT sysadm.ap_comment_coll
IS
i NUMBER := 1;
v_comments VARCHAR2 (254) := ' ';
comment_type sysadm.ap_comment_type;
v_line_num NUMBER := 0;
CURSOR get_all_comment
IS
SELECT voucher_line_num, descr254_mixed FROM ps_fas_ap_comment
WHERE business_unit = v_bu_in AND voucher_id = v_voucher_in;
CURSOR get_line_comment
IS
SELECT descr254_mixed FROM ps_fas_ap_comment
WHERE business_unit = v_bu_in AND voucher_id = v_voucher_in
AND voucher_line_num = v_line_in;
BEGIN
--voucher_comment() := SYSADM.ap_comment_type (NULL, NULL, NULL, NULL, NULL, NULL);
--' ', ' ', 0, ' ', '', ' ' sysadm.ap_comment_coll
voucher_comment := sysadm.ap_comment_coll(null);
IF v_line_in = 0
THEN
OPEN get_all_comment;
LOOP
FETCH get_all_comment
INTO v_line_num, v_comments;
if i > 1
then
voucher_comment.EXTEND;
end if;
voucher_comment (i) := ap_comment_type (v_bu_in,
v_voucher_in, v_line_num, v_userid,
TO_DATE (TO_CHAR (SYSDATE, 'DD-MON-YYYY HH24:MI:SS'), 'DD-MON-YYYY HH24:MI:SS'), v_comments );
i := i + 1;
END LOOP;
ELSE
OPEN get_line_comment;
LOOP
FETCH get_line_comment
INTO v_comments;
voucher_comment.extend(6);
voucher_comment (i) := ap_comment_type (v_bu_in, v_voucher_in, v_line_num, v_userid, TO_DATE (TO_CHAR (SYSDATE, 'DD-MON-YYYY HH24:MI:SS' ), 'DD-MON-YYYY HH24:MI:SS'), v_comments);
i := i + 1;
END LOOP;
END IF;
END get_voucher_comments; -
Copying console output into *.txt files
Basically, I am having trouble creating *.txt files and copying System.out.println(" data "); into these *.txt files. I've tried FileInputStream and FileOutputStream, but these haven't worked. I've also tried doing this on both Unix and Windows environments.
Can anyone help?Hi,
If you want to do this from within your program you'll need to redirect the system output:
System.setOut (new PrintStream((OutputStream) new FileOutputStream ("C:/test.txt")));
System.out.println ("test ok");
Kurt. -
Report with checkbox to PDF-File with BI Publisher
Hello,
I am able to create reports in APEX to create PDF-Files. We are using the BI Publisher.
Now we have to design a rft-Template with a checkbox. In BI Publisher it works with the checkbox greate, but if I create in APEX report and a layout the checkbox is not display in the PDF-File.
Does anyone has a solution for that?
Regards,
MarkI have a same issue ...
How you are calling a bi report from apex....?
Please help me...
ty
Maybe you are looking for
-
I'm ready to go back to Comcast just because of this lousy FIOS remote
This FIOS remote for my HD box is driving me up a wall. I replaced the batteries with Duracells three times in the last month. The remote is so sluggish it's pathetic.Once I'm in a menu screen I find it almost impossible to get back to my tv screen.I
-
My PowerPC 65 running 10.4.6 and iLife 06 all of a sudden won't burn a DVD. Have burned several in the last 2 weeks with no issues. Today, in iDVD during the multiplexing and burning process, the computer would spit the DVD out with a general message
-
I called Apple Support and they said that the CPU is preforming high on a very simple task. Also, that it didn't seem to be affecting the memory. Any suggestions?
-
How to write the GUI in another language
Hi all how can i write the GUI value in another language i.e the JTextField, JComboBox and other in another language for example arabic becuase when i write it it gave me strange charecters??? how can i support this in java???
-
BW 3.x upgrading to Oracle 9.x
Hi, All. Has anyone completed (or is anyone planning to) upgrade Oracle from 8.1.7 t0 9.2 of an existing SAP BW 3.0B or 3.1C system?