Modifying SAP Forms Using Smart Forms

PostalMethods provides email-to-post functionality for SAP R/3 and enables using SAP for sending postal letters. This is step 3.2 of our Postal Letter Delivery From SAP guide.

In order to send postal mail from SAP R/3 using PostalMethod, you will need to adapt your forms (template) and/or create a new form according to the guidelines appearing in the PostalMethods "How To Place Content In The Document" guide.

Download this SmartForms source code (XML) and upload it to SAP R/3 by using the Smartform Transaction. This ABAP sub-routine is an example of how to dynamically retrieve the SAP document, convert it to PDF and attach it to an email message. Use the included text file to test your SAP interface.

In SAP Standard Menu, navigate to the following path: SAP menu > Tools > Form Printout > SMARTFORMS - Smart Forms (or enter the transaction code Smartforms)

SAP R/3 Edit Forms for Postal Mail - SmartForms

Choose the Create option:

SAP R/3 Edit Forms for Postal Mail - SmartForms - Initial Screen

In Form Attributes: provide a short description for the form:

SAP R/3 Edit Forms for Postal Mail - SmartForms - Attributes

In Form Interface: enter your input parameters and associate them with the correct Associated Type (see example in the screen-shot below). P_REC parameters contain details of the "Recipient postal address". P_RET parameters contain details of your "Return postal address".

SAP R/3 Edit Forms for Postal Mail - SmartForms - From Interface

From them Output Options tab, choose the "Letter" page size:

SAP R/3 Edit Forms for Postal Mail - SmartForms - Output Option

Designing the form layout:

SAP R/3 Edit Forms for Postal Mail - SmartForms - Form Layout

The recipient and return address windows must be positioned accurately so the address will be visible through the envelope windows.

Create the "Return Address" text area:
Set Window: REC_ADRS and Description: Recipient Address

SAP R/3 Edit Forms for Postal Mail - SmartForms - Define Return Address Window

SAP R/3 Edit Forms for Postal Mail - SmartForms - Set Return Address Measurements

You may add restrictions and conditions in the Conditions tab.
SAP R/3 Edit Forms for Postal Mail - SmartForms - Conditions

Edit the text fields of the new window:

SAP R/3 Edit Forms for Postal Mail - SmartForms - Show Elements

Now create the "Recipient Address" window, just as you have created the "Return Address":
Set Window: RET_ADRS and Description: Return Address

SAP R/3 Edit Forms for Postal Mail - SmartForms - Recipient Address