SAP Function Modules

PLM_DMS_GET_PROPERTIES SAP Function module - Hole für Attribute die Propperties







PLM_DMS_GET_PROPERTIES is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name PLM_DMS_GET_PROPERTIES into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: PLM_DMS_46_KM_INTERFACE
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM PLM_DMS_GET_PROPERTIES - PLM DMS GET PROPERTIES





CALL FUNCTION 'PLM_DMS_GET_PROPERTIES' "Hole für Attribute die Propperties
* EXPORTING
*   pfx_id =                    " objky         Objektkey Dokumentenverwaltung
*   pfx_links =                 " xfeld         Feld zum Ankreuzen
*   pfx_class =                 " xfeld         Feld zum Ankreuzen
*   pfx_get_content = 'X'       " xfeld
  IMPORTING
    return =                    " bapiret2      Nachrichtenzeile für CAD-Dialog-Schnittstelle
    psx_dms_phio =              " dms_phio      DVS: Auxiliary structure for PHIOS of main originals
  TABLES
    ptx_dms_props =             " plm_master_data  Übergabe Werte
    ptx_content =               " drao          Originale für Dokumente
*   ptx_drad_content =          " plm_dms_doc_drad  BAPIS-DVS: Objektverknüpfungen eines Dokuments
*   classallocations =          " bapi1003_alloc_list  BAPI Klasse: Liste der Zuordnungen
*   characteristicvalues =      " bapi1003_alloc_values_char  BAPI Klassifizierung - Bewertungen Typ CHAR, BOOLEAN
    .  "  PLM_DMS_GET_PROPERTIES

ABAP code example for Function Module PLM_DMS_GET_PROPERTIES





The ABAP code below is a full code listing to execute function module PLM_DMS_GET_PROPERTIES including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_return  TYPE BAPIRET2 ,
ld_psx_dms_phio  TYPE DMS_PHIO ,
it_ptx_dms_props  TYPE STANDARD TABLE OF PLM_MASTER_DATA,"TABLES PARAM
wa_ptx_dms_props  LIKE LINE OF it_ptx_dms_props ,
it_ptx_content  TYPE STANDARD TABLE OF DRAO,"TABLES PARAM
wa_ptx_content  LIKE LINE OF it_ptx_content ,
it_ptx_drad_content  TYPE STANDARD TABLE OF PLM_DMS_DOC_DRAD,"TABLES PARAM
wa_ptx_drad_content  LIKE LINE OF it_ptx_drad_content ,
it_classallocations  TYPE STANDARD TABLE OF BAPI1003_ALLOC_LIST,"TABLES PARAM
wa_classallocations  LIKE LINE OF it_classallocations ,
it_characteristicvalues  TYPE STANDARD TABLE OF BAPI1003_ALLOC_VALUES_CHAR,"TABLES PARAM
wa_characteristicvalues  LIKE LINE OF it_characteristicvalues .

DATA(ld_pfx_id) = 'Check type of data required'.
DATA(ld_pfx_links) = 'Check type of data required'.
DATA(ld_pfx_class) = 'Check type of data required'.
DATA(ld_pfx_get_content) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ptx_dms_props to it_ptx_dms_props.

"populate fields of struture and append to itab
append wa_ptx_content to it_ptx_content.

"populate fields of struture and append to itab
append wa_ptx_drad_content to it_ptx_drad_content.

"populate fields of struture and append to itab
append wa_classallocations to it_classallocations.

"populate fields of struture and append to itab
append wa_characteristicvalues to it_characteristicvalues. . CALL FUNCTION 'PLM_DMS_GET_PROPERTIES' * EXPORTING * pfx_id = ld_pfx_id * pfx_links = ld_pfx_links * pfx_class = ld_pfx_class * pfx_get_content = ld_pfx_get_content IMPORTING return = ld_return psx_dms_phio = ld_psx_dms_phio TABLES ptx_dms_props = it_ptx_dms_props ptx_content = it_ptx_content * ptx_drad_content = it_ptx_drad_content * classallocations = it_classallocations * characteristicvalues = it_characteristicvalues . " PLM_DMS_GET_PROPERTIES
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_return  TYPE BAPIRET2 ,
ld_pfx_id  TYPE OBJKY ,
it_ptx_dms_props  TYPE STANDARD TABLE OF PLM_MASTER_DATA ,
wa_ptx_dms_props  LIKE LINE OF it_ptx_dms_props,
ld_psx_dms_phio  TYPE DMS_PHIO ,
ld_pfx_links  TYPE XFELD ,
it_ptx_content  TYPE STANDARD TABLE OF DRAO ,
wa_ptx_content  LIKE LINE OF it_ptx_content,
ld_pfx_class  TYPE XFELD ,
it_ptx_drad_content  TYPE STANDARD TABLE OF PLM_DMS_DOC_DRAD ,
wa_ptx_drad_content  LIKE LINE OF it_ptx_drad_content,
ld_pfx_get_content  TYPE XFELD ,
it_classallocations  TYPE STANDARD TABLE OF BAPI1003_ALLOC_LIST ,
wa_classallocations  LIKE LINE OF it_classallocations,
it_characteristicvalues  TYPE STANDARD TABLE OF BAPI1003_ALLOC_VALUES_CHAR ,
wa_characteristicvalues  LIKE LINE OF it_characteristicvalues.

ld_pfx_id = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ptx_dms_props to it_ptx_dms_props.
ld_pfx_links = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ptx_content to it_ptx_content.
ld_pfx_class = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ptx_drad_content to it_ptx_drad_content.
ld_pfx_get_content = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_classallocations to it_classallocations.

"populate fields of struture and append to itab
append wa_characteristicvalues to it_characteristicvalues.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name PLM_DMS_GET_PROPERTIES or its description.