Example: Connection of an Object and Implementation 

Connection of an Object

The function group CV130 (Object Link Document -> Object) contains the screen 1501. This screen contains all functions; exceptions are the object text and the value assignment display. You can use this screen as a template for its own object connection (for example, DMS_TEST Test Object).

Prerequisites

You need to do the following in Customizing for Document Management:

  • Maintain Key Fields

In the field Table enter the object DMS_TEST. You do not need to make any other settings.

  • Maintain Screen for Object Link

 

For this example you need to enter the following data:

Object DMS_TEST

Object desc. Test Object

Screen (Screen number) 500

  • Define Object Links for Document Type

Enter the object link for the document type that you want to link with the object DMS_TEST.
You make these settings under Control Data Define Document Types Maintain Object Link Descriptions and Define Object Links.

Implementation

Implement the program to process the subscreen with reference to BAdI definition DOCUMENT_OBJ. Use the following function: Tools ABAP Workbench Utilities Business Add-Ins Implementation (Transaction SE19).

  • Enter the Filter Value DMS_TEST.
  • Enter the following data on the Subscreen tab page:

Program SAPLCV100; Screen 1501 (Find Document)

Program SAPLCV130; Screen 1501 (Edit Object Link)

  • Enter the following data on the Interface tab page:

GET_DATA

TABLE_DRAD_WORK[] = IF_EX_DOCUMENT_OBJ~TABLE_DRAD_WORK[].
activity = IF_EX_DOCUMENT_OBJ~activity.

PUT_DATA

IF_EX_DOCUMENT_OBJ~TABLE_DRAD_WORK[] = TABLE_DRAD_WORK[].
IF_EX_DOCUMENT_OBJ~TABLE_DRAD_DB[] = TABLE_DRAD_DB[].
IF_EX_DOCUMENT_OBJ~ACTIVITY = ACTIVITY.
IF_EX_DOCUMENT_OBJ~DRAW = DRAW.

OBJECT_CHECK

RUN_NO_ACTION = X.

JUMP_TO_SCREEN

call transaction MM02.
run_no_action = X.

You can find further information on BAdI implementation under: Implementation Interface.