Sending SAPscript through e-mail
How to modify the standard print program RFKORD11, enabling script output send as e-mail.
A user asked me to modify the standard print program RFKORD11, enabling the action of sending script output as...
Continue Reading This Article
Enjoy this article as well as all of our content, including E-Guides, news, tips and more.
e-mail to the customers. Here is how I made it happen using the 'OPEN_FORM' and its options. I must admit I don't know exactly how to pass the parameters to this function module, but I hope this can be of help to someone. This code was written in v.4.6B
DATA: LINES LIKE TLINE OCCURS 0 WITH HEADER LINE. CALL FUNCTION 'OPEN_FORM' EXPORTING DEVICE = 'OTF_MEM'........ DIALOG = 'X' FORM = 'ZTEST' LANGUAGE = SY-LANGU EXCEPTIONS CANCELED = 1 DEVICE = 2 FORM = 3 OPTIONS = 4 UNCLOSED = 5 OTHERS = 6. CALL FUNCTION 'CONVERT_OTF_MEMORY' EXPORTING FORMAT = 'ASCII' MAX_LINEWIDTH = 132 * IMPORTING * BIN_FILESIZE = TABLES LINES = LINES * EXCEPTIONS * MEMORY_EMPTY = 1 * ERR_MAX_LINEWIDTH = 2 * ERR_FORMAT = 3 * ERR_CONV_NOT_POSSIBLE = 4 * OTHERS = 5