Show TOC

Procedure documentationCreating Application Classes Locate this document in the navigation structure

Procedure

To create an application class for your BSP:

  1. Choose the Properties tab page in your BSP application.

  2. Enter the name of your new class in the Application Class field.

    Make sure you use a name for your new class that does not yet exist in the SAP System.

  3. Double-click on the new class.

  4. Choose Yes to the prompt "Do you want to create a new class?".

  5. In the following popup you can make further settings for your class. To confirm your entries, choose Save.

  6. Enter the details in the object catalog: Assign your class to a package and choose Save (Save).

    The system branches from your BSP application into the Class Builder.

  7. Now you are ready to work with your new class.

Result

The properties of your BSP application now look like:

This graphic is explained in the accompanying text.

The class you created generates objects, document, sender, receiver, possible attachments as well as a mail request (see the Overview page) and fills them with the data from the form.

Implement the following methods:

Method

Description

SET_ADDRESS

Specifies the address

SET_TIME

Specifies the time

SEND

Sends the mail

GET_TEXT

Fetches the mail text

Note Note

You can also combine SET_ADDRESS, SET_TIME and SEND in one method.

End of the note.

The mail text is generated online from the parameters. It looks like this:

Example Example

Address:

John Smith

20 Main Street

New York 10054

.........

We will be visiting you on 01.04.2001 at 6pm.

........

We look forward to hearing from you.

Yours faithfully,

Your Service Team

End of the example.