SAP ABAP IMG Activity CPR_DVS_DOKLINKSBADI (BAdI: SAP DMS Document Links in cProjects)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   PS-DOC-DMS (Application Component) Document Processing
     DEVELOPMENT_PROJECT_R3_DMS (Package) Object Link cProjects and DMS
IMG Activity
ID CPR_DVS_DOKLINKSBADI BAdI: SAP DMS Document Links in cProjects  
Transaction Code S_AXA_22000095   (empty) 
Created on 20040213    
Customizing Attributes CPR_DVS_DOKLINKSBADI   BAdI: SAP DMS Document Links in cProjects 
Customizing Activity CPR_DVS_DOKLINKSBADI   BAdI: SAP DMS Document Links in cProjects 
Document
Document Class SIMG   Hypertext: Object Class - Class to which a document belongs.
Document Name OLR3_DMS    

Use

This Business Add-In (BAdI) is used in the Collaboration Projects (PLM-CPR) component.

The BAdI runs if document info records and document structures are created or changed for a cProjects document link in the SAP Document Management System (SAP DMS).

Requirements

Document management in SAP DMS is permitted for the project type of the project (see Customizing for Collaboration Projects, IMG activity Define Project Types).

Standard settings

This BAdI is not active in the standard system. It is not dependent on a filter and cannot be used more than once.

Default code and sample code are supplied for all methods apart from the ASYNCHRONOUS_UPDATE_MODE method. The sample code is identical to the default code.

For the function to work, the sample code must first be transferred in its entirety to all methods of your own BAdI implementation. Therefore, in the methods of your own BAdI implementation, only additional processing steps, such as obtaining classification data or specifying change numbers are allowed.

Activities

Create a BAdI implementation:

After you have called the IMG activity, a dialog box appears. You enter a name for the implementation here and then choose Continue. Then proceed as follows:

  1. The Change Implementation screen appears.
  2. Enter a short text for the implementation in the Implementation Short Text field.
  3. Choose the Interface tab page.

    The system fills the Name of Implementing Class field automatically on the tab page because the system assigns a class name based on the name of the implementation.

  4. Save your entries and assign a package.

As of SAP Release 4.70:

  1. In the Goto menu, choose the Sample Code -> Copy function.
  2. Save and activate your code. Navigate back to the Change Implementation screen.
  3. Save your entries on the Change Implementation screen.

In SAP Release 4.6C:

  1. Copy the sample code to all methods of your implementation as follows:
    1. Navigate via the menu Goto -> Sample Code to the sample implementing class.
    2. Position the cursor on a method and double-click to branch to the method itself.
    3. Select and copy the entire content of the method to the clipboard.
    4. Go back to the Interface tab page.
    5. Position the cursor on a method with the same name as your implementing class and double-click to branch to method processing.
    6. Insert the contents of the clipboard to replace the whole content (including the statements method <Interface Name>~<Name of Method>. and endmethod.) with the code from the sample implementing class.
    7. Save the new contents when you leave the method.
    8. Repeat these steps for all methods that contain sample code.
  2. Save and activate your code. Navigate back to the Change Implementation screen.
  3. Save your entries on the Change Implementation screen.

    Note: It is also possible to create an implementation for a Business Add-In and activate it later. In this case, stop processing at this point.

  4. Choose Activate.

When your application program is executed, the system runs through the code you added in the method.

Example

To display default code, choose Goto --> Default Code --> Display.

To display sample code, choose Goto --> Sample Code --> Display.

See also:

Methods

Determine cFolders Name from Customizing

Read Application Log

Document Category Is Valid for New cProjects Folders

Copy Document Info Record Including Document Structure

Create, Change, and Delete DMS Object Link DPR_OBJLNK

Template Document Structure Used in Other Templates

Special Consistency Check for SAP DMS Document Links

Create and Delete SAP DMS Document Structure Items

Status Change for a Document

Switch off Asynchronous Updating for Object Links

Enter Errors from Update in Application Log

Create Document Info Record as Folder

Create Document Info Record as Document

Create Original in Document Info Record

Create New Version for Document Info Record of Document

Overwrite (Update) Original in Document Info Record

Business Attributes
ASAP Roadmap ID 257   Create User Exits 
Mandatory / Optional 2   Optional activity 
Critical / Non-Critical 2   Non-critical 
Country-Dependency A   Valid for all countries 
Maintenance Objects
Maintenance object type E   Business Add-In - Definition 
History
Last changed by/on SAP  20050211 
SAP Release Created in