Order Package Shipping

Use

This function carries out the shipping method depending on the communication type for completed shipping packages. The function module is created as a user exit so that you can define your own function modules for shipping.

Prerequisites

  • The report shipping order has the status Packaged (PA) (see: Report Shipping Status Network).

  • Defining the output format

    In Customizing for Product Safety under Specify Communication, you have defined the format in which the report is to be output depending on the communication types.

  • Assigning the communication type for the shipping reason

    In Customizing for Product Safety under Assign Communication Types, you have defined the priority of the permitted communication types depending on the shipping reason. In the Customizing activity Assign Shipping Objects, you have assigned at least one shipping object to each communication type.

  • Assigning the communication type to the report recipient

    You have defined the permitted communication types and a default communication type for all report recipients.

  • Defining the shipping method

    In Customizing for Basic Data and Tools under Manage User Exits, for each communication type you can find a separate variant of the standard user exit EHS_SEND of user exit category SRE_DIST.

  • Assigning the shipping method

    In Customizing for Product Safety under Assign Names for User Exits, the user exit EHS_SEND_* is assigned to the exit category SEND in accordance with the communication type. The exit category SEND defines the point in the program at which the user exits are called.

Features

Selecting the Communication Type
  • Manual report shipping

    When triggering shipping manually, you can choose between:

    Customer (business partner, customer, company)

    Office user of the SAP system

    Report recipient

    You enter the recipient directly when you set up the report shipping order. The SAP system determines which communication types are specified for both the customer and in Customizing and allows you to choose from these. For shipping in the background, the communication type you specified as the default value for the recipient is taken into account in the same way as for automatic report shipping (see below).

  • Automatic report shipping

    For automatic report shipping, you can choose from customers only (business partner, customer, or company) as the recipient and not from office users or report recipients. You must have specified the permitted communication types for all customers and their contact persons in the SAP component Sales and Distribution. You can define a communication type as the default communication type.

    In Customizing, you define the priorities of the permitted communication types depending on the shipping reason. The default communication type always has the highest priority, but must also be present in Customizing so that it can be used for shipping.

    Example Example

    In the graphic, shipping as e-mail is not permitted because the communication type E-mail is not entered in Customizing.

    End of the example.

    Example Example

    In the same way, the communication type can be overridden by contact persons:

    The communication type Letter was defined for the three contact persons of a business partner, whereas the business partner has the communication type Fax. In Customizing, only the communication type Fax is defined for shipping material safety data sheets. As a fax cannot be sent to the contact persons, they will not receive a report. Instead, the business partner receives a total of three faxes, each of which contains the address data of one contact person.

    End of the example.

    Note Note

    The business address for the contact person is now also evaluated in the customer master as a possible ship-to address. The evaluation is performed by communication (for example, fax, letter). The following order of priority applies:

    1. Business address

    2. Personal data

    3. Company address

    End of the note.
Shipping Methods

The following shipping methods are possible in the standard system:

  • Printing via the SAP spool

    Reports printed via the SAP spool must be in PostScript format. Conversion in accordance with the formats defined for the communication type only takes place when the final report is generated.

  • E-mail

    Reports distributed via e-mail can be sent in *.DOC format.

    When sent via e-mail, the reports including the cover sheet and acknowledgement of receipt are sent as attachments to the e-mail. The e-mail itself contains only a standard text.

    You can use the following alternatives for shipping:

    Sending an e-mail within a client

    Sending an e-mail between SAP systems (RML: remote mail)

    Sending a mail via the Internet

  • Fax

    In the SAP Office, you use the communication server SAPcomm to send faxes. You can also use the communication interface SAPconnect. The reports that are to be sent may be in PostScript or PCL format. Conversion takes place when the final report is generated.

    Note Note

    For information on setting up SAPconnect, see the Basis component under BC_SAPconnect.

    If you want to use the communcation interface SAPconnect, you must assign the communication type FAX and the communication group CNT to the relevant shipping reason in the Customizing activity Assign Communication Types.

    End of the note.