Ansicht
Dokumentation

CPR_DVS_DOKLINKSBADI - BAdI: SAP DMS Document Links in Project Management

CPR_DVS_DOKLINKSBADI - BAdI: SAP DMS Document Links in Project Management

PERFORM Short Reference   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

Use

This Business Add-In (BAdI) is used in the Project Management component.

The BAdI runs if document info records and document structures are created or changed for a Project Management 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.

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.
  1. 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 ~. 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.
  1. 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.

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






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

Length: 6846 Date: 20240523 Time: 181041     sap01-206 ( 72 ms )