Ansicht
Dokumentation

BADI_REEX_ACTIONS_VE - Define BADI_REEX_ACTIONS_VE

BADI_REEX_ACTIONS_VE - Define BADI_REEX_ACTIONS_VE

Vendor Master (General Section)   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

Implement this BAdI if you want to display and synchronize CAD plans from SAP 3D Visual Enterprise in RE-FX. The methods are used to control interaction for specific objects in RE-FX with objects in SAP 3D Visual Enterprise.

For more information about the settings required, see here.

Implement the following methods:

  • Method CREATE_ID_FROM_METADATA
Import parameter: IO_OBJECT (any object with the object linked to the CAD plan), IT_METADATA (metadata of the CAD plan)
Changing parameter: CD_OBJECT_TYPE (object type), CD_OBJECT_ID (object ID)
Using the import parameter of the object linked with the CAD plan and the corresponding metadata, the changing parameter must return the object type (IO for architecture or IM for usage view) and the object ID, such as the AOID.
  • Method GET_METADATA_IDENTIFIER
Changing parameter: RF_IDENTIFIER (ID field in the viewer)
This returns the ID of the metadata table in SAP 3D Visual Enterprise (such as '\ID'). This field must be centrally defined within the CAD plan and is used for communication between the plan and the application.
  • Method GET_ACTION_TABLE
Import parameter: IO_OBJECT (any object with the object linked to the CAD plan)
Changing parameter: RT_ACTION (table for interaction)
This method returns the table of interaction for the context menu (accessed by right-clicking the mouse). To be able to control the context menu for specific objects, the object linked to the CAD plan is transferred as the import parameter. The entries from table RT_ACTION have the following fields: ACTID (action ID), DESCRIPTION (description), RETURN_DATA (return data values for action in SAP 3D Visual Enterprise Viewer)
The value of ACTID can be any number. The description (DESCRIPTION) is displayed as an entry in the context menu. Select '02' as the value for RETURN_DATA.
  • Method GET_MARKTYPE_TABLE
Import parameter: ID_QUERYID (ID of report)
Changing parameter: CT_LEGEND (legend with marking types for graphic), CT_MARKTYPE_MAP (table of marking types)
For the query function (thematic report), the colors to be used for each thematic report are specified here. The table of marking types has the following fields:
MARKTYPE (value from the legend), STYLE (such as 'background-color:#D02434'), COLOR (such as '#D02434'), OPACITY (such as '0.7')
STYLE is the color for the legend and the color for the CAD plan must also be specified in COLOR in a similar way. OPACITY indicates the level of transparency.
  • Method GET_TITLEINFO_FROM_METADATA
Import parameter: IT_METADATA (metadata)
Changing parameter: CD_OBJECT_TYPE (business object type of the object), CD_OBJECT_ID (ID of object), CD_KEYDATE (key date)
For the purposes of the upload function on the CAD tab page, whether the corresponding plan header information from the CAD plan is read and is to be used for further processing is specified here. If the object (CD_OBJECT_TYPE and CD_OBJECT_ID) is returned, for example, this is checked in the standard logic against the object for which a CAD plan is currently being uploaded. If these do not match, an error message is displayed. If the CD_KEYDATE field is returned, the CAD plan is created automatically as a DMS document for the key date. If the value is not read from the plan header information, this is to be entered manually by the user.
  • Method GET_LABELLING_PARAM
Changing parameter: CD_FONT (font), CD_FONT_SIZE (font size), CD_TEXT_COLOR (text color), CD_BG_COLOR (background color), CD_FRAME_COLOR (frame color), CD_OPACITY (opacity value for color rule), CD_DL_SIZE (scaling factor), CD_LABEL_POSITION (offset of dynamic label), CD_PIVOT_POINT (coordinate for dynamic label), CD_MARGIN (text filling), CD_ALIGNMENT (alignment)
This method returns the parameters for the label function that is called for thematic reporting. If the first four parameters are not filled, a label is not written to the fields for the thematic report. For information about how the individual parameters are to be filled, see the documentation for class CL_GUI_VIEWER_CONTROL (method SET_DYNAMIC_LABEL).
  • Method CHANGE_METADATA
Import parameter: ID_KEYDATE
Changing parameter: CT_METADATA
This method allows the metadata read from the CAD plan to be adjusted individually to reflect customer needs.
  • Method GET_DMS_UPLOAD_INFO
Changing parameter: CD_DOCTYPE (document type), CD_FILEEXTENSION_SOURCE (file extension of source file), CD_FILEEXTENSION_TARGET (file extension of target file), CD_DOCSTATUS (document status), CD_STORAGE_CAT (storage category for original files), CD_ADDITIONAL_XML (should an additional XML file be generated?), CD_CONVERSION_SECONDS (waiting time until the conversion is completed)
This method returns the parameters required for the upload function on the CAD tab page. For information about setting the document type, see . Parameter CD_ADDITIONAL_XML allows you to create an additional XML file in the document management system. Parameter CD_CONVERSION_SECONDS specifies how long (in seconds) the system is to wait for the conversion to be completed in the background for the files using the SAP 3D Visual Enterprise Link tool. If a value is not provided, a default waiting time of 60 seconds applies.
  • Method DO_ACTION
Import parameter: IS_ACTION (structure for interaction), IO_OBJECT (business object)
In this method, the interaction specified in the GET_ACTION_TABLE method is executed. The objects selected in the CAD plan are provided in structure IS_ACTION for this purpose.
  • Method GET_TOOLTIP_IDENTIFIER
Changing parameter: RF_IDENTIFIER
The initial tooltip can be provided in this method.






General Data in Customer Master   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.

Length: 6944 Date: 20240524 Time: 002640     sap01-206 ( 120 ms )