interactivebion.blogg.se

Tefview send as attachment
Tefview send as attachment







L_DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT( L_SEND_REQUEST = CL_BCS=>CREATE_PERSISTENT( ). * MOVE 'Please do not reply to this email' TO l_text. MOVE 'This is an automated report.' TO L_TEXT.

tefview send as attachment

MOVE ' Human Resources Information System (SAP).' TO L_TEXT.

tefview send as attachment

MOVE 'Attached is your HRIS report(s) generated from the Firm''s' TO L_TEXT. * MOVE 'SAP Material Master Records' TO L_TEXT. SELECT PERNR NACHN VORNA FROM PA0002 INTO CORRESPONDING FIELDS OF TABLE I_PERNR UP TO 20 ROWS. *Constants-*Ĭ_CR(1) TYPE C VALUE CL_ABAP_CHAR_UTILITIES=>CR_LF,Ĭ_EXT TYPE SOODK-OBJTP VALUE 'TXT'. L_SEND_EXCEPTION TYPE REF TO CX_SEND_REQ_BCS. L_ADDR_EXCEPTION TYPE REF TO CX_ADDRESS_BCS, L_BCS_EXCEPTION TYPE REF TO CX_DOCUMENT_BCS, L_RECIPIENT TYPE REF TO IF_RECIPIENT_BCS, " MARC EntriesĭATA: I_CONTENT TYPE SOLI_TAB, " Mail content *DATA: I_pernr TYPE STANDARD TABLE OF pa0002. ĭATA: I_GLT0 TYPE STANDARD TABLE OF GLT0. SELECT-OPTIONS:P_EADDR FOR ADR6-SMTP_ADDR NO INTERVALS.

tefview send as attachment

*P_MAIL1 TYPE AD_SMTPADR OBLIGATORY." G by sas *PARAMETERS: P_MAIL TYPE AD_SMTPADR OBLIGATORY, " G C by sas Where it should come in straight line as follows in my o/p code. So when i open the saved text file on my pc the output is appearing as follows. when i execute the report and see the output in sost i can see the attachment.i am downloading the attachment there only(Our server is not configured to get the mails directly). txt where i can see the output properly in sap but problem is that i am unable to get the proper alignment. But requirement is to send the mail in the format of txt.

Tefview send as attachment code#

I got a requirement to write code for sending mail in oops.







Tefview send as attachment