How to send a smartform attached as PDF in mail?

How to send a smartform attached as PDF in mail?

  1. Call the smart form and get the output data (ls_job_info)-
  2. Convert the smartform output data (ls_job_info) to OTF(XSTRING) format (lv_otf) –
  3. Convert the XSTRING (lv_otf) to SOLIX_TAB format (lt_pdf_data) –
  4. Add the email body content (it_email_content – BCSY_TEXT type) to document.

How to send PDF attachment through email in sap abap?

Steps

  1. Create a Smartform with any Z/Y name.
  2. Create an executable program in SE38.
  3. DATA DECLARATIONS.
  4. Import the function module name of the SMARTFORM .
  5. Convert the OTF data to XSTRING “lv_bin_xstr”.
  6. Convert the XSTRING to a binary table “lt_binary_content”.

How do you send a smartform email?

Send Smartform as an email directly during the call to smartform’s function module. During the call to smartform’s function module, you can send the output of smartform as an email to the recipient. The recipient will get the smartform output as an attachment in the email.

How do I show a smartform in PDF?

Download Smartform Output as PDF File

  1. Suppress the print dialog box by setting the NO_DIALOG flag of CONTROL_PARAMETERS.
  2. Get the OTF data by setting the GETOTF flag of CONTROL_PARAMETERS.
  3. Use function module CONVERT_OTF to convert OTF to PDF.
  4. Use function module GUI_DOWNLOAD to download the PDF file to presentation server.

How do you send ALV email in ABAP?

The code covers the following SAP ABAP report functionality:

  1. Email address input selection screen fields.
  2. Display ALV report using Objects cl_salv_table.
  3. Add custom ALV column header.
  4. Change colour of ALV rows based on user start year.
  5. Get ALV Spool from background execution.
  6. Convert Spool to PDF and send as Email.

How do I send an email with attachment in ABAP?

Sending email with attachment in SAP ABAP

  1. Step1 : Requirement Send email with attachment in SAP ABAP.
  2. Step2 : Design selection-screen for email id and material type input.
  3. Step3 : Set email document for class CL_BCS.
  4. Step4 : Convert data to binary and create attachment.
  5. Step5 : Set Sender and Recipient to send request.

How do you send an email in SAP ABAP?

The following steps are necessary the Creation.

  1. Log to Transaction Code SE37.
  2. Create a Function Module.
  3. Declare the input variables for external email id and SAP user id.
  4. Write the coding as shown below.
  5. Save and Active it.
  6. Execute the Function Module.
  7. Enter the Input i.e. External email id and SAP User id.

How do you convert a smartform output to PDF output?

Summary: Converting the smartform to PDF is process of 3 simple steps.

  1. Calling the Smart form, then it returns the OTF data in Return.
  2. Converting the OTF data into required format using the Function Module CONVERT_OTF_2_PDF.
  3. Download the File.

How do you preview a smartform in SAP?

SAP Business Technology Platform Learning Journeys. Join the new Coffee Corner Discussion Group….

  1. activate smartform and execute .
  2. The function module genearte and execute.
  3. Select the printer like local.
  4. Then select printpreview.

How do I send ALV email output?

How do you send an Excel file as an attachment in ABAP?

Requirement 3 – How to Send Email with Excel as Attachment using…

  1. Go to SE38,
  2. Add a button in application toolbar to send mail.
  3. Now navigate to SE38,
  4. Method GET_DATA.
  5. Handle event on click of button to send a mail.
  6. Method ON_USER_COMMAND.
  7. Complete Code:

How do I email a document from SAP?

Under the section “When Adding Document:”, select the “E-Mail Document” checkbox. In the E-Mail Subject and E-Mail Body sections you can enter a text that will be populated automatically in the e-mail when the document is sent. and the pre-configured subject and body text.

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top