CL_EXM_IM_EHSRC_CUST_LIST - Example Impl.: Output of Customer List Data

rdisp/max_wprun_time - Maximum work process run time   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Functionality

This is an example implementation for the BAdI BADI_EHSRC_CUST_LIST.

This example implementation reads the data from the database tables CCRCT_CU and CCRCT_CUPOS and displays this in a hierarchical, sequential list.

The following methods are implemented:

  • IF_EX_BADI_EHSRC_CUST_LIST~DATA_READ
    Reads the data from the database table CCRCT_CU and CCRCT_CUPOS. The address data in the table KNA1is determined for each customer number. The method continues to read the identifiers and the registrationnumber of the substance, the tracked quantities, and the quantity limit of the respective substance.In addition, the system determines the company code descriptions and the internal or external only representatives.
    In this method, the function module CBRC_CU_LIST_DATA_OUT_READ is called to determine the relevant data.
  • IF_EX_BADI_EHSRC_CUST_LIST~DATA_ARCHIVE
    Saves the data in a CSV (Comma-Separated Values) document in the document management system and links the document with the value assignment instance of the value assignment Sold Quantities(SAP_EHS_1026_005).
    In this method, the function module CBRC_OR_CUSTOMER_LIST_SAVE is called to archive the data.

Prerequisite

To use the implementation of method IF_EX_BADI_EHSRC_CUST_LIST~DATA_ARCHIVE, you have made the following settings in Customizing:

  1. Choose SAP Customizing -> Cross-ApplicationComponents -> Document Management -> General Data -> Define Workstation Application.
  • Application: CSV

  • Description: Comma-Separated Values

  • Archive identification: *

  • File suffix for appl. CSV

  • File format *.*

  • MIME type: text/csv

  • Appl. icon: @0P@

  • Indicator Start Authorization: Checkbox is set

  • Indicator No Renaming of Temporary File: Checkbox is set

  • Indicator Data Check Off: Checkbox is set

  1. Choose SAP Customizing -> Environment,Health & Safety -> Basic Data and Tools -> SpecificationManagement -> Additional Information for Value Assignment -> Specify User-Defined Text Types.
  • User-defined text type: OR_LIST

  • Description: Only Representative Customer List

  • Indicator Document Assignment: Checkbox is set

  1. Choose SAP Customizing -> Environment,Health & Safety -> Basic Data and Tools -> Report Definition -> Settings for Document Management -> Check Document Types and Document Statuses.
  • Document type: SVT

  • Document type description: Substance Volume Tracking

  • Indicator Use KPro: Checkbox is not selected

  • Indicator Status Switch: Checkbox is not selected

  • Indicator Revision Level Assignment: Checkbox is not selected

  • Indicator Version Assignment: Checkbox is not selected

  • Indicator Archiving Authorization: Checkbox is not selected

  • Indicator Change Documents: Checkbox is not selected

  • Number assignment: 5

  • External number range: 01

  • Number exit: MCDOKZNR

  • Version No. Increment: 1

  • File size: 2000000

  • Default Appl.: CSV

  1. Select the document type SVT in the view DefineDocument Type and change to the view Describe Language-Dependent Document Type.
  • Translate the text Substance Volume Tracking into the languages that you require.

  1. Select the document type SVT in the view DefineDocument Type and change to the view Determine Object Links.
  • Document type: SVT

  • Object: ESTRH

  • Screen number: 500

Relationships

You can use the example implementation CL_EXM_IM_EHSRC_TRACK_PROC_2 for the BAdI BADI_EHSRC_TRACK_PROC to fill the database table CCRCT_CU or CCRCT_CUPOS.

Example

Notes

Further information



rdisp/max_wprun_time - Maximum work process run time   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.


Length: 8996 Date: 20120526 Time: 121046     triton ( 163 ms )