Ansicht
Dokumentation

CRM_IU_DSM_SMRTFRM - Create Confirmation or Rejection Letters

CRM_IU_DSM_SMRTFRM - Create Confirmation or Rejection Letters

Addresses (Business Address Services)   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

In this Customizing activity, you create customized letters in the form of Smart Forms objects to confirm or reject a customer's participation in a program.

For more information, see the documentation for confirmation of program acceptance or rejection in SAP Library Application Help on SAP Help Portal at http://help.sap.com/crm under SAP Customer Relationship Management > SAP CRM for Industries > Utilities > Functions for the Utilities Industry > Demand Side Management.

An example confirmation letter (CRM_IU_DSM_AGR_CONFIRM_LETTER) is available in actions AUTO_PRINT_CONFIRMATION_LETTER (automatic printing) and MANU_PRINT_CONFIRMATION_LETTER (manual printing) within action profile IUDSM_AGREEMENT. This confirmation letter applies to agreements.

The method GET_DATA_FOR_CONFIRM_LETTER of print data provider class CL_CRM_IU_DSM_PRNT_DATA_PROVDR exports the parameters containing the most relevant data for confirmation letters. These are described in the table below:

Parameter Description Retrieved by Method Attributes Retrieved
ES_APPLICATION Application header data GET_APPLICATION_HEADER Object_id (Application ID)
  Addr_line1 (Premise address line 1)
  Addr_line2 (Premise address line 2)
  Buag_id (Business agreement ID)
  Act_status (Application status code)
ES_PROGRAM Program header data GET_PROGRAM_HEADER Object_id (Program ID)
  Prog_desc_text(Program description)
ES_AGREEMENT Agreement header data GET_AGREEMENT_HEADER Object_id (Agreement ID)
  Addr_line1 (Premise address line 1)
  Addr_line2 (Premise address line 2)
  Buag_id (Business agreement ID)
  Act_status (Agreement status code)
ET_MEASURES All measures of the agreement (table) GET_MEASURE_DATA Measure_desc(measure description)
ET_INCENTIVES All incentives of the agreement (table) GET_INCENTIVE_DATA Incentive_desc (Incentive description)
  Amount(Incentive amount)
  Currency(Incentive currency)

  1. If necessary, extend print data provider class CL_CRM_IU_DSM_PRNT_DATA_PROVDR and the override methods to retrieve the data you need to include in your letter.

    EXAMPLE:
    You want to include the program description in your letter. You extend the method GET_APPLICATION_HEADER to retrieve the attribute prog_desc_text.
  2. Based on the example confirmation letter (CRM_IU_DSM_AGR_CONFIRMATION_LETTER), create a letter based on your needs.
  3. In Customizing activity Define Action Profiles and Actions, make the following settings:
  • Use one of the standard actions and action profiles available for DSM or create your own as required. For information, see Actions in DSM Processing.

  • Set the processing type to Smart Forms Print and assign the smart form you created.

  • If you wish to use batch printing, on the Action Definition tab page, set the Processing Time to Processing using selection report.

  • If you wish to use automatic printing, on the Action Definition tab page, select the Schedule Automatically checkbox.

  1. If necessary, in Customizing activity Define Conditions, adjust the action conditions. For example, you can specify that the system executes an automatic print job when an agreement is released.






CPI1466 during Backup   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 8076 Date: 20240523 Time: 172702     sap01-206 ( 68 ms )