Problem solve Get help with specific problems with your technologies, process and projects.

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...

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

Dig Deeper on SAP development and programming languages

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchContentManagement

SearchHRSoftware

Close