SAP ABAP IMG Activity /TDAG/CP_REPFORMAT (Specify XML Format)
Hierarchy
TDAGBCA (Software Component) TechniData Basic Components
   EHS (Application Component) Environment, Health and Safety
     /TDAG/CP_EX (Package) CP: Report generation and export
IMG Activity
ID /TDAG/CP_REPFORMAT Specify XML Format  
Transaction Code /TDAG/80000073   IMG activity: /TDAG/CP_REPFORMAT 
Created on 20070122    
Customizing Attributes /TDAG/CP_REPFORMAT   Specify CfP XML Format 
Customizing Activity /TDAG/CP_REPFORMAT   Specify CfP XML Format 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name /TDAG/CP_REPFORMAT    

Use

In this Customizing activity, you can control all aspects of outbound XML generation. You can specify the following:

  • Report formats (schema definition of an XML file)
  • This format can be used to create XML files during report generation or ad hoc report generation. You can create completely different XML files using the specification data maintained in the system since all the settings (XML structure, elements used, and attributes) are specified for each report format.
  • Sets of elements and attributes for each report format
  • Structure of the output XML file for an export format
  • Definition of data sources for each of the elements/attributes, including data determination functions
  • Data conversion functions for the pre-specified data sources
  • Mapping between internal (SAP) units of measure and external (ISO) units of measure

Standard settings

The standard system is delivered with examples.

Note: Changes to the standard settings may affect newly generated XML files. Ensure that all new XML files are compliant with the XML schema for SAP Product and REACH Compliance. If they are not compliant, you cannot import the files into tools used in SAP Product and REACH Compliance.

Activities

Before adapting the standard settings, generate an example report from the standard settings using the default report format XML. Run the generation from the compliance workbench.

To provide new elements:

In the Specify Elements for Report Format maintenance view, you can specify the set of elements for the resulting XML file.

  1. Add the element details under Specify Elements for Report Format.
  2. Add the required data mapping under Specify Attributes for Elements.
  3. Add the element to the correct place in the hierarchy by modifying the records under Specify Hierarchy for Report Format.

To specify new attributes for an element:

  • Select the report format and the required element, and then maintain the data source information under Specify Attributes for Elements. You can specify the following:
    • System reaction if an attribute or element value is empty
    • If an element is to be generated even when it is empty
    • Data source for each attribute or element value (mapping). To provide a different data source, select the relevant element/attribute and adapt the field entries.

Element/attribute handling that is not provided in the standard system:

(For example, reading data, or the generation or representation in the XML)

  • Conversion functions
  • If you need to provide different conversion/formatting of values that are to be represented differently in the output XML, implement a function module with an interface similar to /TDAG/CP_CV01_TEMPLATE. You can copy this function module and provide your own implementation.
  • Data determination functions
  • If you need to use a different data source to the default data source, or you need part of the XML to be generated statically (for example, the Document Information section), implement a function module with an interface similar to /TDAG/CP_DD01_TEMPLATE. You can copy this function module and provide your own implementation.

To define a new report format:

  • Specify a new XML report format under Specify Report Format.
  • Execute the steps described in the previous sections, as required, for each of the elements that you want to include in the report format.

Business Attributes
ASAP Roadmap ID 207   Establish Reporting 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 1   Critical 
Country-Dependency A   Valid for all countries 
Assigned Application Components
Documentation Object Class Documentation Object Name Current line number Application Component Application Component Name
SIMG /TDAG/CP_REPFORMAT 0 HLA0100681 Product Safety 
Maintenance Objects
Maintenance object type C   Customizing Object 
Assigned objects
Customizing Object Object Type Transaction Code Sub-object Do not Summarize Skip Subset Dialog Box Description for multiple selections
/TDAG/CPVC_REP001 C - View cluster SM34  
History
Last changed by/on HAU  20090305 
SAP Release Created in 0207B0406C