SAP ABAP IMG Activity /TDAG/CP_VIEWER_01 (Specify Viewer for Generated Documents)
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_VIEWER_01 Specify Viewer for Generated Documents  
Transaction Code /TDAG/80000082   IMG activity: /TDAG/CP_VIEWER_01 
Created on 20070813    
Customizing Attributes /TDAG/CP_VIEWER_01   Specify viewer for generated documents 
Customizing Activity /TDAG/CP_VIEWER_01   Specify viewer for generated documents 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name /TDAG/CP_VIEWER_01    

In this Customizing activity, you can define and implement a viewer for generated or external documents within SAP Product and REACH Compliance. This could be required to display technical documents, such as XML files, in a form that can be read by humans. This Customizing activity is optional.

Requirements

  • For documents with a specified report generation variant:
  • You have made the required settings in Customizing for Product and REACH Compliance in the Specify Exits for Report Generation Variants Customizing activity.
  • For documents used within a specified export type:
  • You have made the required settings in Customizing for Product and REACH Compliance in the Specify Outgoing Templates Customizing activity.

Standard settings

The following viewers are defined in the standard system:

  • Standard Viewer: Standard viewer for all documents in SAP Product and REACH Compliance. Providing you do not explicitly change anything, the system always uses this viewer. The system downloads the document to the presentation server and starts the viewer application that is registered for the file extension. The standard viewer ' ' is encapsulated within function module/TDAG/CP_LB13F_FILE_DISPLAY
  • Viewer for XML documents: Translates generated XML documents into an output that can be read by humans. The viewer '01' is encapsulated within function module /TDAG/CP_XVWR_FILE_DISPLAY

Recommendation

Activities

To implement and use your own viewer:

  1. Copy the standard template function module /TDAG/CP_XVWR_FILE_DISPLAY_T of a document viewer into your own namespace.
  2. Implement the document viewer and activate the function module.
  3. Specify a new viewer by specifying an internal key, a name, and the viewer function module.
  4. Enhance the viewer by activating a BAdI implementation for the Enhancement of the Viewer for XML Data Files BAdI, if necessary.
  5. Assign this viewer to the relevant generation variants or export types.

Example

External or generated documents, such as XML files, are used in several areas in SAP Product and REACH Compliance, for example, to view a document in the report management system, in the export process, or during ad hoc report generation.

Further notes

You can enhance the document viewer by creating and activating a customer-specific BAdI implementation for theEnhancement of the Viewer for XML Data Files BAdI.

Business Attributes
ASAP Roadmap ID 204   Establish Functions and Processes 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-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_VIEWER_01 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_VWR C - View cluster SM34  
History
Last changed by/on HAU  20090304 
SAP Release Created in 222_46C