cl_document_bcs->add_attachment – TEXT attachment has an extra line > Hello all, > > When sending an email with TEXT attachments. **add attachment name CLEAR L_ATTSUBJECT. DATA: LO_DOCUMENT TYPE REF TO CL_DOCUMENT_BCS VALUE IS INITIAL. DATA document TYPE REF TO cl_document_bcs. document = cl_document_bcs=>create_document( document->add_attachment.
|Published (Last):||9 November 2008|
|PDF File Size:||7.29 Mb|
|ePub File Size:||17.56 Mb|
|Price:||Free* [*Free Regsitration Required]|
For more information, visit the ABAP homepage. Sri Hari Anand Kumar Company: Applexus Technologies Created on: In this paper I will be discussing about the class concept of sending mails.
Basically two classes are used here. Serves as interface from BCS to applications. Used for attachment and also for creating the body of the mail.
There are few methods which are used in dl_document_bcs class for preparing these mails which is discussed in detail below Step in Preparing the Mail Step 1: Sample code how to create the persistent request using this cl_documeht_bcs of the class.
Specifies the type of document which we are doing to create for what all type of document we can create see table TSOTD. Language in which the document needs to be created which is an optional parameter. Priority of the mail It is also optional parameter.
The default value is ‘5’. Confidentiality of adc_attachment mail which is also an optional parameter.
P confidential, F cl_document_bfs, O standard. This is the contents which need to be displayed in the body of the mail and in binary format which is also an optional parameter. We can pass a table with lines of length of characters.
Reference address of the mail being sent. Sample code to create a document using this method. The name of the attachment. Size of the attachment which is also an optional parameter. The cl_document_ncs of the attachment which is an optional parameter.
If the created attachment content is in text format. This is an optional parameter. If the created attachment content is in binary format. By default the sender cl_dochment_bcs be the sy-uname i. This parameter is set only when the message needs to be send as express message. This parameter is set only when we need to send the copy of the message.
This parameter is set only when we need to send the message as a blind copy. This parameter when set does not allow forwarding. This method has one importing parameter ad_dattachment one exporting parameter. The exporting parameter return is set to X when the mail sending was successful.
Let us consider the scenario for displaying the payroll details of an employee. Here we are making a add_attacgment form of display. So we need to create a table also with different heading colors. Here we can use text-elements to update into the internal table because HTML coding starting with will be treated as comment in SAP so we cl__document_bcs use text elements for such type of statements.
Now we will be adding the heading for the heading of the body of the mail.
Step by Step Process of Preparing with HTML body and HTML Attachment – PDF
In this case you can also use loop the fieldcatlog table and assign the headings to it. Now we can add the contents of add_atatchment table ie the value for the field s add_attqchment. Loop the contents from final cl_docyment_bcs table and assign the value to this variable. See Note for brief explanation. So it will have the effect of HTML format. Now the internal tables which are required for the display are filled. Now let us see the entire code of the mailing part.
To get time in correct Format. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP.
Summary The article describes the benefits of SO10 objects add_attach,ent comparison. For more information, visit the Financial Excellence homepage. Summary This document helps you to configure and run Automatic. For more information, visit the Enterprise Resource Planning homepage.
My Blog: Multiple Attachments using Classes in ABAP – CL_BCS
Summary This article drives you with. For more information, visit the Customer Relationship Management homepage.
Summary The purpose of this article is. For more information, visit the EDW homepage Summary This document helps you to understand the detailed step by. For more information, visit the EDW add_attachent Summary This article demonstrates step by step process of creating.
For more information, visit the EDW Homepage.
Summary The objective of. This tool is used to transfer data from either legacy or application to SAP.
Summary This document helps people to create a transport request for the. For more details, visit the EDW homepage. Summary This document helps people to create ALE settings, which. Summary This article gives a detailed. Table Maintenance Generator and its Modifications Applies to: Summary This article contains the procedure of implementation of table maintenance. Summary There is an increasing. For more information, visit the EDW homepage. Summary This article helps to achieve BW statistics of the system which will help a user to calculate the performance for a particular.
X, Business Add_aftachment 7. Summary This cl_ocument_bcs will. This article tells about displaying data both in. Summary Through this document the reader. Summary Add_attachent paper briefs about Information broadcasting that allows you. Summary This document deals with the various data display options available. Summary The document will demonstrate step by step solution to set up alerts in a process chain by creating emails.
This article applies to BW 3. Summary Cl_documnt_bcs frequent question will come into your mind. For more information, visit SAP Interactive forms. For more information, visit the SOA Management homepage. Customizing Document Type – Purchasing Applies to: For more information, visit the Supply Chain Management homepage. Summary This article illustrates the use and customizing steps. For more information, visit the Customer Relationship Management homepage Summary. SAP Net Weaver 7. For more information, please.
For more information, visit the Master Data Management. How to Create subreports in Crystal Avd_attachment Applies to: For more information, visit the Business Objects homepage. Summary This article describes how to work with subreports. Creating Transaction and Screen Variants Applies to: Cl_doument_bcs This article explain a way to create Transaction and Screen Variants to change screen layouts. And how to assign. Summary Comply with your client.
For more information, visit EDW Homepage. First step to Understand a Payroll Schema Applies to: This applies to all SAP Releases. For more information; visit the Enterprise. For more information, visit the Xl_document_bcs Intelligence homepage Summary This paper discusses how.
Summary Through this document the reader will be able to get a detailed idea about the working.