Ansicht
Dokumentation

/TDAG/CP_API2_COMPL_REPORTING - CP: Compl. data for reporting and labeling

/TDAG/CP_API2_COMPL_REPORTING - CP: Compl. data for reporting and labeling

ABAP Short Reference   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module provides you the compliance declaration data for a specified product and its composition dependent on a regulation.

There is also the posibility to get the China-RoHS reporting (X and O) table.

Which objects are read?

In order to determine the product for which the SAP System reads data, one of the following parameters has to be filled

  • Substance ID (parameter I_SUBID)
  • Material Number (parameter I_MATNR)

If both parameters contain values, the specification id is used for the selection. If none of those are filled a message will be created and the function will end.

The function provides the data for one regulation (EU-RoHS or China-RoHS or .) per execution. For this reason the regulation (I_REGLIST) is an obligatory parameter.

The reporting level parameter (I_REPLEVEL) defines at which level the reporting is done. Only the compliance data for this level and the top level will be provided.

  • "ALL",,,,all levels are reported (default)
  • "PP",,,,,,purchasing part level
  • "",,specific level e.g. = 2 to report the

,,,,,,,,,,second level

Which data is read?

If the function is processed, the compliance declaration data, the declarable substance data and some additional regulation dependent data is read

The data is mapped into the exporting tables (top level data and reporting level data is separated):

  • ES_TOPLEVEL_DATA,,,,,,structure with compliance declaration data of

,,,,,,,,,,,,,,,,the product

  • ET_TOPLEVEL_DECL,,,,,,declarable substance data of the product
  • ET_TOPLEVEL_GENERICS,,,,regulation dependent additional data of

,,,,,,,,,,,,,,,,the product

  • ET_REPLEVEL_DATA,,,,,,table with compliance declaration

,,,,,,,,,,,,,,,,and composition data of

,,,,,,,,,,,,,,,,the reporting level objects

  • ET_REPLEVEL_DECL,,,,,,declarable substance data of the reporting

,,,,,,,,,,,,,,,,level objects

  • ET_REPLEVEL_GENERICS,,,,regulation dependent additional data of the

,,,,,,,,,,,,,,,,reporting level objects

Relationship between the exporting tables:

  • Table ...LEVEL_DATA: Is the object table. The field RECN is the key for the objects.
  • Table ...LEVEL_DECL: Includes the declarable substance data. The data is linked to the object table by the field RECNROOT

,,,,-> ...LEVEL_DATA-RECN = ...LEVEL_DECL-RECNROOT.

  • Table .LEVEL_GENERICS: Includes the regulation dependent additional data. The data is linked to the object table by the field RECN.

,,,,-> ...LEVEL_DATA-RECN = ...LEVEL_GENERICS-RECN

  • If the regulation China-RoHS is requested, the China-RoHS reporting (X and O) table will be filled. The data is mapped into the exporting table:

,,,,ET_CHINA_ROHS

,,,,The entry is linked to the object table by the field RECN.

,,,,-> ..LEVEL_DATA-RECN = ET_CHINA_ROHS-RECN

Will the data be locked?

The EH&S data is read in the information mode. That means that no lock will be set by the function.

Language support

For the China-RoHS reporting (X and O) table and the .LEVEL_DATA table and structure some EH&S identifiers are read. With the parameter I_LANGU the language can be defined with which the identifieres will be read. If the parameter is not filled, the logon language (SY-LANGU) will be used as default.

To evaluate the identifiers the identifier listing CP_OUTPUT is used.

Example

Additional regulation dependent data for China-RoHS:

  • Manufacturer site
  • ESP

Notes

Additional data (gerneric tables):

Some regulations (like China-RoHS) have additional data which are relevant for this regulation.

Those data will be provided in the gerneric exporting tables -> one table for the top level object (ET_TOPLEVEL_GENERICS) and one table for the reporting level objects (ET_REPLEVEL_GENERICS).

The both tables have the same structure and provides the following data:

  • RECN,,,,,,,,key (link) to the corresponding object
  • ESTCAT,,,,,,property (where the data comes from)
  • ATNAM,,,,,,characteristic (which was requested)
  • VALUATION,,,,valuation ("Default" if no specific valuation

,,,,,,,,,,,,was requested otherwise the value of

,,,,,,,,,,,,the requested valuation)

  • ATWRT,,,,,,value

China-RoHS reporting (X and O) table:

The China-RoHS exporting table (ET_CHINA_ROHS) will be filled, if it is requested and the regulation is China-RoHS.

The reporting level defines which objects are used.

All objects of the reporting level are filled, not only those with a regulated substance which exceeds the threshold (only O values for the regulated substances).

The tables structure:

  • RECN,,,,,,link to the object of the reporting level table
  • PART_IDENT,,language dependent identifier for the object
  • PB,,,,,,lead above threshold (X) below or absence (O)
  • HG,,,,,,mercury above threshold (X) below or absence (O)
  • CD,,,,,,cadmium above threshold (X) below or absence (O)
  • CR,,,,,,hexavalent chromium above threshold (X) below or

,,,,,,,,,,absence (O)

  • PBB,,,,,,PBB above threshold (X) below or absence (O)
  • PBDE,,,,,,PBDE above threshold (X) below or absence (O)

Message and error handling:

If an error occurs during the execution, the exporting field E_FLG_ERROR will have the value 'X' (true). Messages will be returned in the table ET_MESSAGE. If the field E_FLG_ERROR is set to true, an error message does exist. Otherwise only info and warning messages are reported.

Further information





Parameters

ES_TOPLEVEL_DATA
ET_CHINA_ROHS
ET_MESSAGE
ET_REPLEVEL_DATA
ET_REPLEVEL_DECL
ET_REPLEVEL_GENERICS
ET_TOPLEVEL_DECL
ET_TOPLEVEL_GENERICS
E_FLG_ERROR
IS_ADDINF
I_CHECK
I_LANGU
I_MATNR
I_REGLIST
I_REPLEVEL
I_SBGV
I_SUBID

Exceptions

Function Group

G/SAPLCP_API2

TXBHW - Original Tax Base Amount in Local Currency   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 7255 Date: 20240523 Time: 060528     sap01-206 ( 82 ms )