After preparing the SAP script.what is the procedure to send
that script to e-mail?
Answers were Sorted based on User's Feedback
Answer / vrushali
In close_form function module there is option of getting
output in OTF form. Go to se37 and in table tab convert
that table to hex (BIN) format and pass it to objbin and
send normal mail.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / k.nagalakshmi
Hi,
better option is to convert your spool request to PDF and
send it
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.
then call FM after populating attachment data
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
Is This Answer Correct ? | 2 Yes | 2 No |
write a program for creation of customer quotation using BAPI 'BAPI_QUOTATION_CREATEFROMDATA'.
how to create a button in selection screen?
Hi Friends, I want to learn sap sd module as it has to be learn to get job in sap platform. I have seen many institution not imparting training as it has to be impart. I want to learn SD Module with running Business Scenario CIN (Country Version India) Realtime Projects (implementation & Support) I want sap realtime data for reference, practice Please help me out
15) What is a Normal,Constant and Variable Window?
How many primary keys can be created for a table?
What is schema and transaction code
HOW DO YOU CONFIGURE ALE BETWEEN TWO DIFFERENT VERSIONS OF SAP ?
Difference between MACRO and SUBROUTINE ?
What is the structure of CTU PARAMS ?
VVVV.Urgent- How can i develop more than 30 interactive lists in reports.
What are the different types of parameters? : abap modularization
What is sequence of event triggered in report?