Mass print report
Hello Guru:
We have a requirement to print reports according to master data hierarchy.
For example, we have a query for profit center balance sheet, the requirement would be print the profit center balance sheet by hierarchy, if there are 1000 profit center in the hierarchy, the BI should pass the value to the balance sheet 1 by 1 and print 1000 reports automatically.
Actually the requirement is even more, the BI should send each node to the balance sheet report, if it is a profit center group, print the report for profit center group, otherwise print the profit center report.
I have an idea is define a BEx broadcasting wich will print the query, and develop a program to loop the master data hierarchy, set the variable dynamically and trigger the broadcasting.
Is there any better way to do that?
Thanks.
Eric
Hello Eric,
Please see this thread about the MPE (Mass Printing Engine). I'm not sure whether it will help you or not.
[BW Mass printing engine : How to configure ?|BW Mass printing engine : How to configure ?;
See this doc also [Publishing Reports in SAP NetWeaver BI 2004s|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70e18305-2356-2910-4bbe-9c1ebd751032]
Thanks
Chandran
Similar Messages
-
Custom Report for CO04n Mass Printing
Hi,
In CO04n for a given order number, production plant and order type when we click from main menu mass printing->execute. We get a list of outputs together for the order number.
Object List.
Job Ticket
Pick List
Goods Issue
Goods receipt
Confirmation slip.
I want to create a custom report with order number as input and according to radio button selected the layout should be displayed. Is it possible.
I know the driver program and form name. How can I develop this custom report.Hi ,
You can develop Custome Report , but for that
you will require help from your Functional Team , which will guide you thorug data selection and processing
i.e from which table data to be taken what to process .
in that Report you can display all details which you reqired and also add one check box in alv grid in order to select order no .
also take one button on display Grid menu using PF-status .
You have to go through it step by step .
Regards
Deepak. -
Mass printing of excise invoices
hi sap gurus,
i want to go for mass printing of excise invoice in the order of 40-50 invoices.
is there any report or any transaction code which can help me do mass printing of excise invoices on fortnight basis.
please do help me on this issue.
j1ip only enables me to print one excise invoice at a time.
wat i want is multiple printing of excise invoices.
regards,
Siddharth.Dear Siddharth
For information, in j1ip itself, you have the option of giving multiple excise invoices. Assume you have some 30 excise invoices to be printed out from sl.no.1 to 30, in j1ip, against the field "Excise Invoice", in the first box enter 1 next to "to" tab, enter 30. If you execute now, you will get bulk print outs.
Alternatively, you can also select the "Excise Invoice Date" field where also you define "From - To" date.
thanks
G. Lakshmipathi -
Mass Printing Sequence with Broadcasting with SN 2004s
Hi,
We are currently running on BW 3.5 and our customer has specific requirements in terms of printing. the printed layout off course must be good, which will be improved with the latest version of broadcasting. But on top of this, they have requirements in terms of mass printing and sequence.
The central controlling department will need, each month, to print specific reports for all individual cost centers (more than one hundred), plus the nodes to which they are assigned within the hierarchy. And possibly, the print out must follow the sequence of the position of the cost centers within the hierarchy.
So, I would like to know whether the 2004S broadcasting would enable to schedule & print "in one go" these 100 reports in the specific sequence of the hierarchy.
I have read carefully the blog of Katie Beavers on this respect and raised the question but she does not seem to be able to answer.
Thx very much for your input.
StéphaneHi Stephane,
you can realize your requirement by using a control query.
In the definition of the control query you can use a hierachry as a presentation hierachy, and hence this hierarchy will be used to distribute the resulting queries in the Information Broadcasting of your original query.
Best regards
SAP NetWeaver 2004s BI Back Office Team -
AR customer invoice mass printing
Hi
I am trying to test mass printing for the AR invoice and credit memo.
I am trying to use t-code f.62 to achieve that, the transaction works fine (besides asking enter the printer name for every document to print), but when i look at the spool, there are more than 1 documents per company code on each spool (5 docs) and it looks as if the first form pastes the same amount for all the other documents on that same spool.
How do i fix this?
2nd questions: is there any other t-code for mass printing your invoices and credit memos for AR?
Thanks in advance
AdmireHi,
Try with the standard report S_ALR_87012174 and give List->Print. This will print all the open items.
Regards,
B. Radhika -
Mass printing of spool requests
Hi,
Is it possible to program the triggering of the printing of a PDF document contained in a spool request ? ( the goal is to have the possibility for mass printing )
thanks,
RolfHi rolf here is the program to convert to PDF and mail it .
*& Report ZSPOOLTOPDFT *
*& Converts spool request into PDF document and emails it to *
*& recipicant. *
*& Execution *
*& This program can be run in background or online and a spool request *
*& will still be created *
report zspooltopdft .
parameter: p_email1 like somlreci1-receiver
default 'sandeep2jinnagmailcom',
p_delspl as checkbox,
p_online no-display.
*DATA DECLARATION
data: gd_recsize type i.
Spool IDs
types: begin of t_tbtcp.
include structure tbtcp.
types: end of t_tbtcp.
data: it_tbtcp type standard table of t_tbtcp initial size 0,
wa_tbtcp type t_tbtcp.
Job Runtime Parameters
data: gd_eventid like tbtcm-eventid,
gd_eventparm like tbtcm-eventparm,
gd_external_program_active like tbtcm-xpgactive,
gd_jobcount like tbtcm-jobcount,
gd_jobname like tbtcm-jobname,
gd_stepcount like tbtcm-stepcount,
gd_error type sy-subrc,
gd_reciever type sy-subrc.
data: w_recsize type i,
w_spool_nr like sy-spono.
%_print LIKE pri_params.
data: gd_subject like sodocchgi1-obj_descr,
it_mess_bod like solisti1 occurs 0 with header line,
it_mess_att like solisti1 occurs 0 with header line,
gd_sender_type like soextreci1-adr_typ,
gd_attachment_desc type so_obj_nam,
gd_attachment_name type so_obj_des.
Spool to PDF conversions
data: gd_spool_nr like tsp01-rqident,
gd_destination like rlgrap-filename,
gd_bytecount like tst01-dsize,
gd_buffer type string.
Binary store for PDF
data: begin of it_pdf_output occurs 0.
include structure tline.
data: end of it_pdf_output.
constants: c_dev like sy-sysid value 'DEV',
c_no(1) type c value ' ',
c_device(4) type c value 'LOCL'.
*START-OF-SELECTION.
start-of-selection.
Write statement to represent report output. Spool request is created
if write statement is executed in background. This could also be an
ALV grid which would be converted to PDF without any extra effort
write 'Hello World'.
new-page.
commit work.
new-page print off.
if p_online = 'X'.
Processing performed when program calls itself when run online
gd_spool_nr = sy-spono.
export gd_spool_nr to memory id 'SPOOLTOPDF'.
exit.
endif.
if sy-batch eq 'X'.
perform get_job_details.
perform obtain_spool_id.
else.
gd_spool_nr = sy-spono.
If executed online, it submits a program to perform the write statements
instructing it to create a spool request, this could be another program
which just performs the write statements and then exports sy-spono
to memory. But in this example it calls itself passing X to parameter
p_online, which takes it down an alternative procesing path.
submit zspooltopdf2
with p_online = 'X'
to sap-spool
spool parameters %_print
archive parameters %_print
without spool dynpro
and return.
endif.
Get spool id from program called above
import gd_spool_nr from memory id 'SPOOLTOPDF'.
perform convert_spool_to_pdf.
perform process_email.
if p_delspl eq 'X'.
perform delete_spool.
endif.
if sy-sysid = c_dev.
wait up to 5 seconds.
submit rsconn01 with mode = 'INT'
with output = 'X'
and return.
endif.
FORM obtain_spool_id *
form obtain_spool_id.
check not ( gd_jobname is initial ).
check not ( gd_jobcount is initial ).
select * from tbtcp
into table it_tbtcp
where jobname = gd_jobname
and jobcount = gd_jobcount
and stepcount = gd_stepcount
and listident <> '0000000000'
order by jobname
jobcount
stepcount.
read table it_tbtcp into wa_tbtcp index 1.
if sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
message s004(zdd) with gd_spool_nr.
else.
message s005(zdd).
endif.
endform.
FORM get_job_details *
form get_job_details.
Get current job details
call function 'GET_JOB_RUNTIME_INFO'
importing
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
exceptions
no_runtime_info = 1
others = 2.
endform.
FORM convert_spool_to_pdf *
form convert_spool_to_pdf.
call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
exporting
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
importing
pdf_bytecount = gd_bytecount
tables
pdf = it_pdf_output
exceptions
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
others = 12.
check sy-subrc = 0.
Transfer the 132-long strings to 255-long strings
loop at it_pdf_output.
translate it_pdf_output using ' ~'.
concatenate gd_buffer it_pdf_output into gd_buffer.
endloop.
translate gd_buffer using '~ '.
do.
it_mess_att = gd_buffer.
append it_mess_att.
shift gd_buffer left by 255 places.
if gd_buffer is initial.
exit.
endif.
enddo.
endform.
FORM process_email *
form process_email.
describe table it_mess_att lines gd_recsize.
check gd_recsize > 0.
perform send_email using p_email1.
perform send_email using p_email2.
endform.
FORM send_email *
--> p_email *
form send_email using p_email.
check not ( p_email is initial ).
refresh it_mess_bod.
Default subject matter
gd_subject = 'Subject'.
gd_attachment_desc = 'Attachname'.
CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
it_mess_bod = 'Message Body text, line 1'.
append it_mess_bod.
it_mess_bod = 'Message Body text, line 2...'.
append it_mess_bod.
If no sender specified - default blank
if p_sender eq space.
gd_sender_type = space.
else.
gd_sender_type = 'INT'.
endif.
Send file by email as .xls speadsheet
perform send_file_as_email_attachment
tables it_mess_bod
it_mess_att
using p_email
'Example .xls documnet attachment'
'PDF'
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
changing gd_error
gd_reciever.
endform.
FORM delete_spool *
form delete_spool.
data: ld_spool_nr type tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
check p_delspl <> c_no.
call function 'RSPO_R_RDELETE_SPOOLREQ'
exporting
spoolid = ld_spool_nr.
endform.
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
form send_file_as_email_attachment tables it_message
it_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
data: ld_error type sy-subrc,
ld_reciever type sy-subrc,
ld_mtitle like sodocchgi1-obj_descr,
ld_email like somlreci1-receiver,
ld_format type so_obj_tp ,
ld_attdescription type so_obj_nam ,
ld_attfilename type so_obj_des ,
ld_sender_address like soextreci1-receiver,
ld_sender_address_type like soextreci1-adr_typ,
ld_receiver like sy-subrc.
data: t_packing_list like sopcklsti1 occurs 0 with header line,
t_contents like solisti1 occurs 0 with header line,
t_receivers like somlreci1 occurs 0 with header line,
t_attachment like solisti1 occurs 0 with header line,
t_object_header like solisti1 occurs 0 with header line,
w_cnt type i,
w_sent_all(1) type c,
w_doc_data like sodocchgi1.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
clear w_doc_data.
read table it_attach index w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + strlen( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
clear t_attachment.
refresh t_attachment.
t_attachment[] = it_attach[].
Describe the body of the message
clear t_packing_list.
refresh t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
describe table it_message lines t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
append t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
describe table t_attachment lines t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
append t_packing_list.
Add the recipients email address
clear t_receivers.
refresh t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
append t_receivers.
call function 'SO_DOCUMENT_SEND_API1'
exporting
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
importing
sent_to_all = w_sent_all
tables
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
exceptions
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
others = 8.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
loop at t_receivers.
ld_receiver = t_receivers-retrn_code.
endloop.
endform. -
Hello,
I need to mass print sales orders.
Upon trying to use program SD70AV1A using the following settings:
Output Type Z***
Transmission Medium 1
Sort order 01
Processing mode 1 (I have tried 2 and 3 also)
Sales Document *****
Sales Organization ***
I receive a status saying that there are no messages to be printed.
I have read that this method will not work if the output type is not already defined in the sales order.
How can I mass populate the output type in the sales order so I can use this program?
I have also read that the program RSNAST00 may be used in this instance using output application 'V1' (for sales).
In trying to use this program I also receive a status saying that there are 0 outputs processed.
I have tried variations on the object key (Sales order number, Sales order number with leading zeros, sales order number concatenated with item number, sales order number concatenated with item number with leading zeroes) all to no avail.
What am I doing wrong? How can I mass print sales orders?
Thanks.
N.B. Processing them one by one in VA02 works as it should.The trouble with using LSMW is that I need the process to be as simple as possible for end users who won't have access to LSMW.
If it is a standard SAP report that can be used to mass print sales orders, we can always create a custom tcode for it, which would satisfy the requirement for an end user to be able to use it.
I'd also like to point out that I realise there have been a fair few discussions started and closed on the same topic in this forum but I have not been able to find a solution in any of them that works.
Message was edited by: Benjamin Allsopp -
Cancelled POs not appearing in isupplier PO Print Report
Hi All,
I am using oracle apps 11.5.10 version.My problem is that PO print report is not printing all the cancelled Purchase Orders.Its printing only the last Purchase Order which is cancelled.
Steps to reproduce-
1. create a multi line req in iproc..submit and on approval PO gets created.
2.from isupplier run Printed PO report.You will see all the lines.
3. Cancel 1st line in iproc-let it revision.run report from isupplier.You'll see all the lines along with one line that is cancelled.
4.Cancel 2nd lines in iproc.let it revision.run report from isupplier.You will see all the lines and the new cancelled line as well.But the Cancelled line1 will not be seen.
5.Again cancel 3rd line.When you print PO in isupplier.You will see all lines+3rd cancelled line.But the above two cancelled Lines 1 and 2 will b missing.
Note- we have modifed the xslfo and po_lines_xml for some other changes.I have reverted the changes made in po_lines_xml but still facing the same issue.
Please help.Hi,
Please check in transaction SXMB_MONI can found related information why it not transfer to SRM.
Also check the purchasing data of the PO.
Thanks,
prasad.s -
Report Generation Toolkit V9.0.0 : Print Report.vi doesnt print
Hi,
i have migrated my Labview 8.5 Project with Report Generation Toolkit V1.1.2 to a Labview 2009 System with Report Generation Toolkit V9.0.0.
In this Project I use the Report Generation Toolkit for printing out a Standard Report with e few Tables and Graphs.
Now the VI Print Report.vi delivers the Error -41002 with the Text "Invalide Printer Name". I have, of course installed the propper Printer on the machine.
I don´t connect a string to the "Printer name" input of the VI, because i want to use the default printer.
In my oppinion, there´s a bug in the Print Report.vi: if you don´t wire the "Printer name" input, the vi should use the default printer, but in this case the vi connects the empty input string to the input of the method node it calls.
I fixed this bug, but the method node still returns the same error.
any ideas?
Thanks!
Solved!
Go to Solution.Thank you for the link!
For some reasons i can´t find this specific article in the knowledge base (my browser is always rerouted to the german version of ni.com, because i am in Austria). I tried to search with the exact title of this article, and the error message string, but no results...
I have also installed Labview 8.5 and the "old" Toolkits on my new computer in addition to Labview 2009 and the "new" Toolkits and tested my program in 8.5. Here i got an error mentioning the margins and i had to change the margin settings for printing out, then in worked.
After reading the article, i have applied the same changes for the margins in the 2009-version of my program and it works too!
Problem solved!
Thank you very much!
PS:
I first wrote, that there´s maybe a bug in the new version of the Print Report.vi, but i´ve compared it with the old version and it seems to be no bug, sorry!
After all I decided to stay with Labview 8.5 for now, because of another problem:
it´s not possible to "save for previous version" from LV2009 to LV8.5 directly.
Laview crashes, when a VI contains an event structure as i found out by searching through the "known issues", and i have a lot of VIs with event structures!
I have to have the possibility to save my Labview projects for 8.0 and 8.5. The only way is to save for 8.6 and then save from 8.6 to 8.5.
That´s nasty and time-consuming!
Maybe a future update will solve this problem (without producing new ones) -
Printing report that has a parameter with multiple values crashes jvm
I am using BOE XI 4.0 as an unmanaged RAS.
I am able to preview a report that has a string discrete parameter that can have multiple values. If I give it a single value. It previews fine. If I give it an empty string it prints all values which is fine. If I give it two discrete values, it displays just those two.
However, if I try printing the report to a printer:
1 parameter value - prints fine.
2 parameter values - crashes jvm
empty string parameter value - crashes jvm
I would appreciate some direction on how to do this. It works in crystal reports for eclipse.
The test jsp I am using is based off of the samples. The print test jsp is the same as the preview test with the exception of the following code differences.:
preview report.jsp code
// Create a Viewer object
CrystalReportViewer viewer = new CrystalReportViewer();
// Set the report source for the viewer to the ReportClientDocument's report source
viewer.setReportSource(clientDoc.getReportSource());
// Process the http request to view the report
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
// Dispose of the viewer object
viewer.dispose();
print report jsp code
PrintReportOptions printOptions = new PrintReportOptions();
printOptions.setPrinterName("DELL");
try {
clientDoc.getPrintOutputController().printReport(printOptions);
} catch (ReportSDKException ex1) {
System.out.println("Message - " + ex1.getLocalizedMessage());
} catch (Exception ex2) {
System.out.println("Message - " + ex2.getLocalizedMessage());
clientDoc.close();I am using BOE XI 4.0 as an unmanaged RAS.
I am able to preview a report that has a string discrete parameter that can have multiple values. If I give it a single value. It previews fine. If I give it an empty string it prints all values which is fine. If I give it two discrete values, it displays just those two.
However, if I try printing the report to a printer:
1 parameter value - prints fine.
2 parameter values - crashes jvm
empty string parameter value - crashes jvm
I would appreciate some direction on how to do this. It works in crystal reports for eclipse.
The test jsp I am using is based off of the samples. The print test jsp is the same as the preview test with the exception of the following code differences.:
preview report.jsp code
// Create a Viewer object
CrystalReportViewer viewer = new CrystalReportViewer();
// Set the report source for the viewer to the ReportClientDocument's report source
viewer.setReportSource(clientDoc.getReportSource());
// Process the http request to view the report
viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), out);
// Dispose of the viewer object
viewer.dispose();
print report jsp code
PrintReportOptions printOptions = new PrintReportOptions();
printOptions.setPrinterName("DELL");
try {
clientDoc.getPrintOutputController().printReport(printOptions);
} catch (ReportSDKException ex1) {
System.out.println("Message - " + ex1.getLocalizedMessage());
} catch (Exception ex2) {
System.out.println("Message - " + ex2.getLocalizedMessage());
clientDoc.close(); -
VS2005 Crystal Report Print Report Button is not working on Windows 7 x64
Hi There,
My application is written in VS2005 C# on x86 machine. It runs smoothly on XP pro and Vista x86 machine.
I deployed the same to windows 7 x64 machine with CRRedist2005_x64.msi and found that the Print Report button is not working.
So, I re-compiled my application to x64 target platform, and reinstall the application to the same machine. But nothing changed. I have surf for answer over the web but nothing found.
Please help urgently. Any helps is much appreciated. Thks in advance.
Edited by: chanpyvivian on Mar 26, 2010 11:14 AMI follow your instruction as below:
1) download the sample app vbnet_win_printtoprinter.zip to dev computer and compile it to .NET 2005.
- Run from my dev computer
- Click "Print Report" button
- Error message display - please see below
The error was due to the default printer name hard coded in the program was not found. I have edited to my printer name and it can be printed out with no error.
2) Use a "saved data" report so that you do not have to worry about database logon.
can't find the "saved data", please elaborate
3) Then copy the exe to the 64 bit box and try to print using this sample app.
-do you mean copy the exe to the 64 bit computer for testing ?
ERROR Message
CrystalDecisions.CrystalReports.Engine.InvalidArgumentException:
Invalid printer specified. ---> System.Runtime.InteropServices.COMException (0x80000201):
Invalid printer specified.
at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrinterName(String newVal)
at CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterName(String value)
at CrystalDecisions.CrystalReports.Engine.PrintOptions.Copy(PrintOptions src)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.get_FormatEngine()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
at PrintToPrinter.Form1.Button1_Click(Object sender, EventArgs e) in C:\Crystal\CRNET\vbnet_win_printtoprinter\vbnet_win_printtoprinter\Form1.vb:line 91
OK
Edited by: chanpyvivian on Mar 30, 2010 6:18 PM -
Hi All,
Can anybody help me out to do the AP cheque printing report using XML Publisher.
Followings are the steps I did.
1. Create rdf and register in APPS.
Executable is defined in Customization AP application
Concurrent Program is in Payables application.
2. Create Data Definition and Template in XML Publisher administrator in Payables.
3. Attached the Concurrent program in AP Format set up.
4. Make the Payment, The report is calling and showing completed normal but the output is not coming.
5. Then I run the XML report Publisher and pass the request id then the output is coming as PDF.
But the requirement is when we make the payment , The output should come and it will go to the printer for printing..
Please help me where I made the mistake.
or please guide me what approach I should follow.
Thanks in Advance.
PradiptaHere is my code:
function AfterReport return boolean is
vrequest_id number;
v_success BOOLEAN;
v_printer fnd_concurrent_requests.printer%TYPE;
v_print_style fnd_concurrent_requests.print_style%TYPE;
begin
-- Set up printer for the following reports
-- Get the printer and style for this report for use with the following reports select printer, print_style
into v_printer, v_print_style
from fnd_concurrent_requests
where request_id = :P_CONC_REQUEST_ID;
srw.message(999, 'Print options: ' || v_printer || '/' || v_print_style);
v_success := fnd_request.set_print_options (v_printer
,v_print_style
,1
,TRUE
,'N'
,'SKIP'); IF NOT v_success THEN
srw.message(999, 'Failure to set print options'); ELSE
srw.message(999, 'Print options set'); end if;
-- Submit the XML Report Publisher request to complete the printed Dunning Letters
vrequest_id := FND_REQUEST.SUBMIT_REQUEST('XDO',
'XDOREPPB',
NULL,
NULL,
FALSE,
:P_CONC_REQUEST_ID,
222, -- Receivables
'XX_ARDLPPRT_RPT',
'en', 'N', 'RTF', 'PDF', NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-- commit to submit request
commit;
IF vrequest_id = 0 THEN -- if request id
srw.message(999, 'Failure to submit Concurrent Request to Print Dunning Letters');
ELSE
srw.message(999, 'request id ' || to_char(vrequest_id) || ' submitted');
end if;
-- Original Afterreport trigger stuff
SRW.DO_SQL('alter session set sql_trace false');
return (TRUE);
end; -
Purchase Order Print Report Compilation Error
Hi,
While compiling the report in Reports Builder Purchase Order Print Report , we get the following error:
identifier GET_PRECISION must be declared.
Where as this is a seeded function inbuild in the Program Units.
Also while compiling on server we get the error.
Cannot convert rdf to rep.
Thanks,
Angelica.Couldn't find how to copy the PO layout over using copy express.
I did compare the RDOC fields for POR20002 in both databases and they are Identical.
In Crystal Reports, I did a formula search for N_Decimal_Places and it found nothing. Then I did a search for 'length' in all formulas and it finds length in N_Decimal_Places. When I double click on N_Decimal_Places it clears the screen and never shows the formula. This happens in both layouts for my test database and SBODemoUS.
Again, SBODemoUS works correctly and AAA_TEST give the error. -
Printing report to direct print 9i
Hi,
I am able to direct print the reports on web using normal parameters...i.e. desname, destype and desformat.
When it prints successfully, it gives us a message in a separate browser window "The report has been successfully printed out"
And we don't want this message. Can anybody tell me to suppress this window and message ?
Command:
WEB.SHOW_DOCUMENT('/reports/rwservlet?
report=REPORT.rdf&userid=scott/tiger@ora&
P_DEPTNO='||:EMP.DEPTNO||'&
desformat=htmlcss&destype=printer', '_blank');
Thanks,
Martonio.Martonio,
if you use RUN_REPORT_OBJECT() built-in in Forms to print Reports then you don't have this problem.
If you request the Report directly from a Web browser, not using Forms at all, please ask the same question on teh reports forum here on OTN.
Frank -
Print report on network/local printer(plz help)
Plz Forms gurus, help me to solve this problem it's very very importante for me
We have at a lot application witch work in client/server mode using forms/Reports 6i.With these applications we haven't problem to print report on printer using RUN_PRODUCT.Now we want to migrate on Forms/Reports 9i.When we use Run_Report_Object to print report on network print, we are encountring problems, the following errors occurs:
REP-713: Printer name '\DT_C2_0_8102\LaserJet1100' is wrong in the parameter DESNAME.
LaserJet1100 is a network printer install on the machine witch have DT_C2_0_8102 in the network.
I would like to know, if there an other way for naming printer? Secondly, i would like to if i add a network printer on my machin and define it as my default printer. Am i obliged to define the parameter DESNAME in the call off RUN_REPORT_OBJECT. If someone have a sample code about how to print on printer, it'll be helpfull.
Plz forms gurus help me to solve my problem.
Thanks in advance.
TYAGDuplicate?
Print report on network/local printer
Maybe you are looking for
-
7.01 IS THIS THE PROBLEM?
This update still crashes for no known reason. I ran the application 'Main Menu' on it and here is what it came up with when it repaired disk permissions: :for architecture i386 object: .Applications/iTunes.app/Contents/MacOS/iTunes malformed object
-
Why are the values for x and y different on the Properties toolbar vs. getProperty(object, _x)? I'm using AS to get the position of a tweened movie clip, and when I compare the values at the start and end of the tween with the values from the Propert
-
I have a report region with drilldown to another report region. I generate the drilldown link by selecting the f?p= URL within the first region's SELECT and setting request to DRILL_DOWN and a hidden item to the PK of the drilldown's query. Then in t
-
Iphone 5 goes direct to voicemail
Why does my Iphone 5 goes direct to voicemail?
-
I cannot get my Adobe Pro11 to work in Safari. It does work in Fiorefox. Prior to Pro 11 install never had any PDF issues in Safari. After install, now get black screen and a note that says the adobe pdf veiwer cannot be found. This is poor software