Email abap report as a html
Hi All
i have a requirement that , the interview call letter generated by report should be send to external email
id as a html , it is currently sending as a pdf which i dont want
can any body tell me how to convert that letter in html format and then send
letter is created in smartforms & called through driver
Hi
use ITF in place of OTF.
use CONVERT_ITF_TO_HTML function module
An example of how CONVERT_ITF_TO_HTML is used can be found in report RSTXHTML.
Regards
Rajnesh
Edited by: Rajnesh Dharmat on Mar 3, 2009 6:00 PM
Similar Messages
-
How to send an abap report to an HTML file?
hello this a two part question and This is the first question and I will post the next question after I am done with this.
So here goes.
My question is how do I send/download an abap report and convert it to an HTML file?
Thanks guys take care!Hi Chand,
This code will help.
Generate an HTML file from a Report in ABAP
data: begin of itab occurs 0,
matnr type mara-matnr,
mtart type mara-mtart,
matkl type mara-matkl,
groes type mara-groes,
end of itab.
data: ifields type table of w3fields with header line.
data: ihtml type table of w3html with header line.
select * into corresponding fields of table itab
from mara up to 100 rows.
call function 'WWW_ITAB_TO_HTML'
EXPORTING
* TABLE_ATTRIBUTES = 'BORDER=1'
* TABLE_HEADER =
ALL_FIELDS = 'X'
tables
html = ihtml
fields = ifields
* ROW_HEADER =
itable = itab
check sy-subrc = 0.
call function 'GUI_DOWNLOAD'
exporting filename = 'c:test.html'
tables data_tab = ihtml -
Hi,
I have read the very interesting posts about calling ABAP reports from BSP applications.
Nevertheless, I noticed 2 constraints in order for a Report to be called :
- the <b>sap/bc/report</b> must be active in Transaction SICF
- the report must have an <b>Authorization Group</b> defined
<b>Am i right, so far ?</b>
Besides, I tried to implement the solution given in the forum as follows :
DATA: html TYPE TABLE OF w3html. " occurs 10 with header line.
DATA: html_wa TYPE w3html.
DATA: listobject TYPE TABLE OF abaplist. " occurs 10.
DATA: report_name TYPE syrepid.
DATA: result TYPE string.
report_name = 'SHOWCOLO'.
SUBMIT (report_name) EXPORTING LIST TO MEMORY AND RETURN .
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = listobject.
CALL FUNCTION 'WWW_HTML_FROM_LISTOBJECT'
EXPORTING
report_name = 'WEBREPORTING_REPORT'
TABLES
html = html
listobject = listobject.
LOOP AT html INTO html_wa.
CONCATENATE result html_wa INTO result SEPARATED BY space.
ENDLOOP.
The problem is that the 'WWW_HTML_FROM_LISTOBJECT' is fauly. There is a call to the FM 'RECORDER_PLAY_BACK' which itself calls 'ABAPLIST_VERSION %_RFC' and the code stops !
<b>Any idea why this is happening ?
Am I missing a service in SICF ?</b>
Of course, when I do the same code in a classic ABAP Program everything works fine...
Thanks in advance.
Cheers,
Guillaume
Message was edited by: Guillaume Garcia<i> the sap/bc/report must be active in Transaction SICF
- the report must have an Authorization Group defined</i>
both the points above are correct, more than that, using sap/bc/report you cannot pass selection screen values or variants.
regarding
'WWW_HTML_FROM_LISTOBJECT'
i have been using this and no problem at all. where is your BSP you wrote the logic using 'WWW_HTML_FROM_LISTOBJECT'.
also dose it generate a dump? if so can you give us the gist of the dump analysis.
REgards
Raja -
Emailing Crystal Report in email body as HTML
I'm having a problem sending emails in CR 2008 when the report is displayed as HTML in the body of the email.
This code works in my development environment but it doesn't work in the testing environment when CR 2008 is installed using a .msi with CR merge modules:
ExportOptions crExportOptions = new ExportOptions();
crExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
crExportOptions.ExportFormatType = ExportFormatType.HTML40;
HTMLFormatOptions htmlOpts = ExportOptions.CreateHTMLFormatOptions();
htmlOpts.HTMLBaseFolderName = tempPath;
htmlOpts.HTMLFileName = fileName;
htmlOpts.HTMLEnableSeparatedPages = false;
htmlOpts.HTMLHasPageNavigator = false;
htmlOpts.UsePageRange = false;
crExportOptions.ExportFormatOptions = htmlOpts;
_reportDocument.Export(crExportOptions);
using (StreamReader r = File.OpenText(tempPath + "\\" + Path.GetFileNameWithoutExtension(_template.TemplateName) + "\\" + fileName))
html = r.ReadToEnd();
When _reportDocument.Export(crExportOptions) is called this error is thrown:
Invalid export options.
I'm I doing something wrong with code, or do I need to do change something in my testing environment to get this to work?
Testing Environment:
Windows 2003 Server
2008 CR SP1 Merge Modules
.Net 3.5 SP1
Thanks in advance,
DaveSince it works on your dev system then it is likely not a code issue. I suspect there is a runtime file difference between your dev and staging system. Use [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] to see if you can spot the difference. You'll need to run this on both systems while your app is running.
On your dev system, go through the procedure of exporting and emailing your report. Then run modules while the app is still running.
On your staging system, go through the same procedure until you get the error. Leave the error on the screen and run modules.
Finally, compare the two mdl log files using modules differences feature. -
Hello,
we have a couple of ABAP reports that generate a traditional list (with WRITE) and now I have to convert the output as HTML and display it (perhaps) in a new window of the browser. I´m not sure if function WWW_LIST_TO_HTML can be very helpful for that purpose.
Has any one experience in this field that can tell me a couple of tricks on how to do it the best way ?? The reports will be called from BSP pages, of course.
Thanks a lotif your report dosent have parameters or you dont need to supply any parameter simply call the following url
http://<wasserver>.xxx.com:<port>/sabp/bc/report?report=<your report>
else follow the following link for details
Re: Conversion ABAP Report to BSP Application
Regards
Raja -
Generate email from ABAP report.
Hi Folks,
I would like to know if it is possible to send email from to an external mail id from an ABAP report.
If it is possible then what are detailed steps that needs to be taken in order to achive it. Also let me know how to attach files to the created email.
Thanks,
ImranFAQ, please search the forums before posting, do not ask the same question once again.
Thread locked.
Thomas -
Mail a HTML atachment from ABAP report
Hi Experts,
I want to e-mail an HTML file( containing icons and gif images) as an attachment from an ABAP report. Could u provide assisteence on how this is to be done?
Kindy help..
Regards.Check the below links. I think, it may be useful.
http://help.sap.com/saphelp_nw04/helpdata/en/04/9d5a23c19f49f1a40761e603286602/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/04/9d5a23c19f49f1a40761e603286602/frameset.htm
http://www.geocities.com/rmtiwari/
Regards,
Maha -
Hi,
I would like to display a jpeg image in the initial screen of an abap report. I already have an image uploaded to SAP using the transaction SMW0 and I've also learnt from other threads in the SDN that I can refer to the sample program SAP_PICTURE_DEMO for reference.
However, I would like to have the picture to occupy the entire SAP window and would like the picture to resize automatically when the sap gui window is resized. Would anyone of you be kind enough to let me know if there are ways to do it.
Thanks,
FrancisHi,
Please follow the links below
Re: Bar Code Generation in ABAP Report
Create Barcode in ABAP : conversion to PDF
also chk the link below, It also gives info about barcodes..
http://www.mecsw.com/info/appnote/app_024.html
hope it helps
Regards,
Manish -
Reports 6i and html generation
I am rendering report output in html via the web from reports server 6i on the NT platform. When viewing the report in a browser there is a bold letter "t" in the upper left hand corner of the screen. I also get duplicate ")" and "-" characters in various places. This does not happen if I render the report in PDF format or if the report is run locally in Reports Designer. Any help would be greatly appreciated...
I've had the same symptom. Try uninstalling Adobe and reinstalling the latest version. This seems to reset the required setup items. Also, I have experienced trouble when using a reports parameter form-- the parameter form comes up fine but then the report doesn't open properly. Again, reinstalling the latest version of Adobe cures the problem. I have talked to some people who switched to Netscape to cure this. Be careful with Netscape 6 though, it seems quite slow.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Santanu Chaudhuri ([email protected]):
Is there a specific setting in IE 5.5 or Acrobat Reader. I am running reports using Reports 6i. When I am selecting pdf as the output, it doesn't work in some machines but work in others. I get messages like
" There is no viewer available for the type of object you are trying to open. Do you want to download a viewer for this type of object?" or "An error occured while trying to open the document". I do have Acrobat Reader in all the PCs I am testing in. This is really frustrating and I could not find a way to solve it. Anyone had the same problem??? Please let the forum know.
Thanks
Santanu Chaudhuri<HR></BLOCKQUOTE>
null -
Email a Report to Customer in AR
Hi,
I have a requirement to send an email of report to the customer while i run the concurrent program. It is not an XML report. Please advise me to do.
Thanks in Advance,
Pradeep
Edited by: user11165897 on Dec 7, 2012 1:27 AMSachin,
First of all, you need to create a spool request (click on the print option when the report gives a output, remove the tick from "print immediately" option.....alternatively you can also ask your abaper to create a new option as "Create PDF"...now take the spool number by using T.Code: SP01
now go to T.code: SE38/SA38...enter program RSTXPDFT4..and execute/F8...enter that spool number..system will ask you the destination..you can save the file on your local PC by your own nomenclature (inbuilt written in the program) .
You can explain this process to your ABAPer, he will be able to write the relevant program
Customer email address table is ADR6, just cross check on this one.
I hope the information if of help to you
Regards,
N -
Hello All,
I have done the z report in which i have called a function module so_new_send o send an email.
I am able to post an email from report to SOST transaction but from there a mail is not triggered.The status of the email is waiting for communication service.
it keeps waiting for communication service. do i need to enable some thing.
Please help on this issue.
Thanks in advanceHi Anu,
This code can help you.
*Convert the Spool into PDF and send to
*External Email ID
*Applies To:
*SAP 4.7/Above
*Article Summary
*This report program will execute the given program with the specified variant in background and
*convert the spool request into PDF and send it as attachment to the specified Email ID.
*By: Elini.P
*Title: ABAP
*Date: 29 Apr 2005
*This is the code:
REPORT zpp430_report_in_pdf NO STANDARD PAGE HEADING LINE-SIZE 255.
*& Report ZPP430_REPORT_IN_PDF
*& Converts spool request into PDF document and emails it to *
*& recipicant. *
*& Execution *
*& This program must be run as a background job in-order for the write *
*& commands to create a Spool request rather than be displayed on *
*& screen *
TABLES: tsp01.
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_sender LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_repid LIKE sy-repid, " Report to execute
p_linsz LIKE sy-linsz DEFAULT 132, " Line size
p_paart LIKE sy-paart DEFAULT 'X_65_132', " Paper Format
p_slset LIKE sy-slset, "Variant name
p_odescr LIKE sodocchgi1-obj_descr,
p_adescr TYPE so_obj_nam,
p_delspl AS CHECKBOX.
*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,
mc_valid(1) TYPE c.
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,
mi_rqident LIKE tsp01-rqident.
* Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
w_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
DATA:
mstr_print_parms LIKE pri_params.
* 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 SY-BATCH EQ 'X'.
* PERFORM GET_JOB_DETAILS.
* PERFORM OBTAIN_SPOOL_ID.
*** Alternative way could be to submit another program and store spool
*** id into memory.
*submit ZSPOOLTOPDF2
* to sap-spool
* spool parameters %_print
* archive parameters %_print
* without spool dynpro
* and return.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
authority = space
copies = '1'
cover_page = space
data_set = space
department = space
destination = space
expiration = '1'
immediately = space
* in_archive_parameters = space
* in_parameters = space
layout = space
mode = space
new_list_id = 'X'
no_dialog = 'X'
user = sy-uname
IMPORTING
out_parameters = mstr_print_parms
valid = mc_valid
EXCEPTIONS
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
OTHERS = 4.
IF mstr_print_parms-pdest = space.
mstr_print_parms-pdest = 'LOCL'.
ENDIF.
mstr_print_parms-linsz = p_linsz.
mstr_print_parms-paart = p_paart.
SUBMIT (p_repid) TO SAP-SPOOL WITHOUT SPOOL DYNPRO
SPOOL PARAMETERS mstr_print_parms
USING SELECTION-SET p_slset
AND RETURN.
* Get spool id from program called above
PERFORM get_spool_number USING sy-repid sy-uname CHANGING mi_rqident.
* IMPORT w_spool_nr FROM MEMORY ID SY-REPID.
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.
* ELSE.
* SKIP.
* WRITE:/ 'Program must be executed in background in-order for spool'
* 'request to be created.'.
* 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. "OBTAIN_SPOOL_ID
* 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. "GET_JOB_DETAILS
* FORM convert_spool_to_pdf *
FORM convert_spool_to_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = mi_rqident
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. "CONVERT_SPOOL_TO_PDF
* 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. "PROCESS_EMAIL
* 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 = p_odescr.
gd_attachment_desc = p_adescr.
* CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
it_mess_bod = 'This is an automated report from SAP.'.
APPEND it_mess_bod.
it_mess_bod = 'Please do not reply to this mail id.'.
APPEND it_mess_bod.
*IT_MESS_BOD = 'For any clarification on the details of this report'
* APPEND IT_MESS_BOD.
* IT_MESS_BOD = 'please contact Business Planning. Thank you'.
* 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
p_odescr
'PDF'
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
CHANGING gd_error
gd_reciever.
ENDFORM. "SEND_EMAIL
* 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. "DELETE_SPOOL
*& 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. "SEND_FILE_AS_EMAIL_ATTACHMENT
*& Form GET_SPOOL_NUMBER
* text
* -->P_SY_REPID text
* -->P_SY_UNAME text
* <--P_MI_RQIDENT text
FORM get_spool_number USING f_repid
f_uname
CHANGING f_rqident.
DATA:
lc_rq2name LIKE tsp01-rq2name.
CONCATENATE f_repid+0(9)
f_uname+0(3)
INTO lc_rq2name.
SELECT * FROM tsp01 WHERE rq2name = lc_rq2name
ORDER BY rqcretime DESCENDING.
f_rqident = tsp01-rqident.
EXIT.
ENDSELECT.
IF sy-subrc NE 0.
CLEAR f_rqident.
ENDIF.
ENDFORM. " GET_SPOOL_NUMBER
Regards,
Arun Sambargi. -
How to display barcode in ABAP report
Hi Experts,
I want to display the barcode of process order number in ABAP report without using SAP script or smart form. Please let me know how is it possible to display and print the barcode in the ABAP report.
Thanks in advance.Hi,
Please follow the links below
Re: Bar Code Generation in ABAP Report
Create Barcode in ABAP : conversion to PDF
also chk the link below, It also gives info about barcodes..
http://www.mecsw.com/info/appnote/app_024.html
hope it helps
Regards,
Manish -
Use abap report program to print bar code instead of smartforms
Do anyone know how to use abap report program to print bar code?
Hi Celina,
http://searchsap.techtarget.com/tip/1,289483,sid21_gci839063,00.html
I hope this will help, also it depends on the barcode type like ARTNR-code 128...
Regards,
Sudhi -
Solution Manager Installation Fails at step Run ABAP Reports
I'm trying to install Solution Manager 4.0 on Windows 2003 using SQL 2005. The installation fails at the Run ABAP Reports step: Executing ABAP report RADDBDIF
I have logged in manually and run the RADDBDIF job in SE38 but I receive the same error message. My SAPTRANHOST is properly defined and so are the shares. Can anyone help? Thank!
Here's the sapinst_dev.log:
Calling function module: INST_RFC_GET_INTERFACE
INFO 2008-10-21 14:00:34.842 [iaxxrfcimp.cpp:1065]
CAbRfcImpl::performFunctionCall
Function call was successful.
TRACE 2008-10-21 14:00:34.842 [iaxxrfcimp.cpp:1066]
CAbRfcImpl::performFunctionCall
Function module call succesful: INST_RFC_GET_INTERFACE
INFO 2008-10-21 14:00:34.842 [iaxxrfcimp.cpp:924]
CAbRfcImpl::getRfcInterfaceSAP
Function interface generated successfully.
INFO 2008-10-21 14:00:34.842 [iaxxrfcimp.cpp:926]
CAbRfcImpl::getRfcInterfaceSAP
Technical properties of function set successfully.
INFO 2008-10-21 14:00:34.842 [iaxxrfcfls.cpp:107]
CRfcFuncRep::insFuncIf
Information for application function INST_EXECUTE_REPORT copied to local repository.
TRACE 2008-10-21 14:00:34.842 [iaxxrfcfls.cpp:108]
CRfcFuncRep::insFuncIf
Function interface entered into repository for INST_EXECUTE_REPORT
INFO 2008-10-21 14:00:34.842 [iaxxrfcimp.cpp:622]
CAbRfcImpl::setFunction
Function module INST_EXECUTE_REPORT set successfully.
TRACE 2008-10-21 14:00:34.842
2008-10-21 14:00:34.842 JSCo.setFunction() done: true
TRACE 2008-10-21 14:00:34.842
2008-10-21 14:00:34.842 JSCo.setParameter(PARA, [])
TRACE 2008-10-21 14:00:34.842
2008-10-21 14:00:34.842 JSCo.setParameter() done: true
TRACE 2008-10-21 14:00:34.842
2008-10-21 14:00:34.842 JSCo.setParameter(PROGRAM, RADDBDIF)
TRACE 2008-10-21 14:00:34.842
2008-10-21 14:00:34.842 JSCo.setParameter() done: true
TRACE 2008-10-21 14:00:34.842
2008-10-21 14:00:34.842 JSCo.execute()
INFO 2008-10-21 14:00:34.842 [iaxxrfcimp.cpp:1032]
CAbRfcImpl::callFunction
Executing function call INST_EXECUTE_REPORT.
TRACE 2008-10-21 14:00:34.842 [iaxxrfcimp.cpp:1056]
CAbRfcImpl::performFunctionCall
Calling function module: INST_EXECUTE_REPORT
ERROR 2008-10-21 14:00:35.045 [iaxxrfcimp.cpp:1089]
CAbRfcImpl::performFunctionCall
FRF-00025 Unable to call function. Error message: Exception condition "WRITE_FAILED" raised. .
TRACE 2008-10-21 14:00:35.045 [iaxxrfcimp.cpp:1090]
CAbRfcImpl::performFunctionCall
RFC failure or system exception raised
TRACE 2008-10-21 14:00:35.045 [iaxxrfcimp.cpp:1091]
CAbRfcImpl::performFunctionCall
Exception condition "WRITE_FAILED" raised.
INFO 2008-10-21 14:00:35.045 [iaxxbjsco.cpp:561]
CIaJSCo::disconnect_nothrow(000:DDIC:EN:nath02:00::SOL:)
RFC connection closed.
TRACE 2008-10-21 14:00:35.45 [iaxxejsbas.hpp:408]
handleException<ERfcExcept>()
Converting exception into JS Exception ERfcException.
TRACE 2008-10-21 14:00:35.045
Function setMessageIdOfExceptionMessage: modlib.jslib.caughtException
ERROR 2008-10-21 14:00:35.045
CJSlibModule::writeError_impl()
MUT-03025 Caught ERfcExcept in Modulecall: Exception condition "WRITE_FAILED" raised..
TRACE 2008-10-21 14:00:35.45 [iaxxejsbas.hpp:483]
EJS_Base::dispatchFunctionCall()
JS Callback has thrown unknown exception. Rethrowing.
ERROR 2008-10-21 14:00:35.45 [sixxcstepexecute.cpp:951]
FCO-00011 The step runRADDBDIF with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|2|0|NW_CI_Instance|ind|ind|ind|ind|11|0|NW_CI_Instance_ABAP_Reports|ind|ind|ind|ind|2|0|runRADDBDIF was executed with status ERROR ( Last error reported by the step :Caught ERfcExcept in Modulecall: Exception condition "WRITE_FAILED" raised..).
TRACE 2008-10-21 14:00:35.61 [iaxxgenimp.cpp:752]
CGuiEngineImp::showMessageBox
<html> <head> </head> <body> <p> An error occurred while processing service SAP Solution Manager 4.0 Support Release 4 > SAP Systems > MS SQL Server > Central System > Central System( Last error reported by the step :Caught ERfcExcept in Modulecall: Exception condition "WRITE_FAILED" raised..). You may now </p> <ul> <li> choose <i>Retry</i> to repeat the current step. </li> <li> choose <i>View Log</i> to get more information about the error. </li> <li> stop the task and continue with it later. </li> </ul> <p> Log files are written to C:\Program Files/sapinst_instdir/SOLMAN/SYSTEM/MSS/CENTRAL/AS. </p> </body></html>
TRACE 2008-10-21 14:00:35.61 [iaxxgenimp.cpp:1255]
CGuiEngineImp::acceptAnswerForBlockingRequest
Waiting for an answer from GUIHello Amélie,
Check the file systems if you're not ran out of disk space.
Second, check the database if you've enough storage space left.
Hope it helps.
Cheers,
Satish. -
Hi All,
I want add image in ABAP Report.
Please let me know how it can be done?
Regards,
Jagdish MoreHi Jagdish,
to upload the image follow these steps.
1. Upload image in web repository.
Go to Transaction SMW0 to upload the image in SAP web Repository. elect second radiobutton u201DBinary data for WebRFC applicationsu201D and click on find.
2. Click on Execute.
3. Click on Create and give the obj.name and description and click on import.
once the image gets uploaded.in your program do the following
1. Create a Screen.Go to Layout and create Custom Control.I have named it as u2018CONTAINERu2019.
2. Declare container(Custom Control name),picture(child of Container) and url in Top of the program.
data container type ref to cl_gui_custom_container.
data picture type ref to cl_gui_picture.
data url(256).
3. Now create the object Container and Picture.
create object container
exporting container_name = 'CONTAINER'.//name of the custom control
create object picture
exporting parent = container
exceptions error = 1.
4. Now we have to load the picture from the database which we have uploaded. For this we need to declare the following:-
data query_table like w3query occurs 1 with header line.
data html_table like w3html occurs 1.
data return_code like w3param-ret_code.
data content_type like w3param-cont_type.
data content_length like w3param-cont_len.
data pic_data like w3mime occurs 0.
data pic_size type i.
5. Refresh the Query table and give the name of Query table as u2018_OBJECT_ID_u2019 and value as the name of logo/Image which u have uploaded.Append the value in the Query Table.
refresh query_table.
query_table-name = '_OBJECT_ID'.
query_table-value = 'ZLOGO.GIF'."name of logo
append query_table.
6. Now call the function WWW_GET_MIME_OBJECT to get the logo/image which u have uploaded and call the function DP_CREATE_URL to create the url where the image is present.
call function 'WWW_GET_MIME_OBJECT'
tables
query_string = query_table
html = html_table
mime = pic_data
changing
return_code = return_code
content_type = content_type
content_length = content_length
exceptions
object_not_found = 1
parameter_not_found = 2
others = 3.
if sy-subrc = 0.
pic_size = content_length.
endif.
call function 'DP_CREATE_URL'
exporting
type = 'image'
subtype = cndp_sap_tab_unknown
size = pic_size
lifetime = cndp_lifetime_transaction
tables
data = pic_data
changing
url = url
exceptions
others = 1.
7. Finally we have to upload the image from the URL, this can be done by calling the method: picture->load_picture_from_url
call method picture->load_picture_from_url
exporting
url = url.
Now Save,Activate and Execute the Program , Image/Logo got successfully uploaded.
I have already done this program and uploaded the image...
this will surely help you
Thanks and regards,
Tanmaya
Maybe you are looking for
-
Why my friend's iphone 5s is always busy on a first call and is ok on redial?
A friend of mine has an iphone 5s. Since a week back, all incoming calls to that phone on a first dial go busy ( "number busy" appears on the caller's phone) and on an immediate redial, the call is normal. We have tried this from a few different numb
-
Help with computer setup and PP settings for faster/better previews
I have been using Cyberlink PowerDirector software for video editing. It is very easy to use and can do quite a bit. It was also accelerated by Intel HD graphics built into my system, so I could see a lot of my work at a pretty high resolution in r
-
5.1 speaker mapping problem with X
I recently created a dual-boot configuration with XP and Vista , and at the same time upgraded to an X-Fi Xtremegamer card. I am using Klipsh 5. ultimate speakers, which worked perfectly with my previous Audigy 2. In Vist, 5. surround does not map pr
-
"select an object" tool is grayed out in acrobat X Pro
"select an object" tool is grayed out in acrobat X Pro
-
What is the email address to report a problem with purchases?
I need to contact billing dept to dispute charges, can't seem to find how and where I do that.