SAP Function Modules

PDRT_RELATION_TEXT_GET SAP Function module - Read relationship name







PDRT_RELATION_TEXT_GET 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 PDRT_RELATION_TEXT_GET into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: PDRT
Released Date: 22.06.1995
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM PDRT_RELATION_TEXT_GET - PDRT RELATION TEXT GET





CALL FUNCTION 'PDRT_RELATION_TEXT_GET' "Read relationship name
* EXPORTING
*   relation =                  " hrp1001-subty
*   pad =                       "
*   entry =                     " struc
*   field =                     "
*   begda =                     " objec-begda
*   endda =                     " objec-endda
  TABLES
    texts =                     " gsudisp
    .  "  PDRT_RELATION_TEXT_GET

ABAP code example for Function Module PDRT_RELATION_TEXT_GET





The ABAP code below is a full code listing to execute function module PDRT_RELATION_TEXT_GET 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:
it_texts  TYPE STANDARD TABLE OF GSUDISP,"TABLES PARAM
wa_texts  LIKE LINE OF it_texts .


SELECT single SUBTY
FROM HRP1001
INTO @DATA(ld_relation).

DATA(ld_pad) = 'some text here'.
DATA(ld_entry) = 'Check type of data required'.
DATA(ld_field) = 'some text here'.

DATA(ld_begda) = 20210129

DATA(ld_endda) = 20210129

"populate fields of struture and append to itab
append wa_texts to it_texts. . CALL FUNCTION 'PDRT_RELATION_TEXT_GET' * EXPORTING * relation = ld_relation * pad = ld_pad * entry = ld_entry * field = ld_field * begda = ld_begda * endda = ld_endda TABLES texts = it_texts . " PDRT_RELATION_TEXT_GET
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_relation  TYPE HRP1001-SUBTY ,
it_texts  TYPE STANDARD TABLE OF GSUDISP ,
wa_texts  LIKE LINE OF it_texts,
ld_pad  TYPE STRING ,
ld_entry  TYPE STRUC ,
ld_field  TYPE STRING ,
ld_begda  TYPE OBJEC-BEGDA ,
ld_endda  TYPE OBJEC-ENDDA .


SELECT single SUBTY
FROM HRP1001
INTO ld_relation.


"populate fields of struture and append to itab
append wa_texts to it_texts.
ld_pad = 'some text here'.
ld_entry = 'Check type of data required'.
ld_field = 'some text here'.

ld_begda = 20210129

ld_endda = 20210129

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 PDRT_RELATION_TEXT_GET or its description.