A user asked me to modify the standard print program RFKORD11, enabling the action of sending script output as...
By submitting your personal information, you agree that TechTarget and its partners may contact you regarding relevant content, products and special offers.
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