SAP Function Modules

SUSR_READ_PROF_STD_TEXTS SAP Function module







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

Associated Function Group: SUSC
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM SUSR_READ_PROF_STD_TEXTS - SUSR READ PROF STD TEXTS





CALL FUNCTION 'SUSR_READ_PROF_STD_TEXTS' "
* EXPORTING
*   bypassing_buffer =          " char01
*   aktpas = 'A'                " usr10-aktps
*   exist_check = 'X'           " char01
* TABLES
*   return =                    " bapiret2
  CHANGING
    profiles =                  " susr_t_prof_txt
    .  "  SUSR_READ_PROF_STD_TEXTS

ABAP code example for Function Module SUSR_READ_PROF_STD_TEXTS





The ABAP code below is a full code listing to execute function module SUSR_READ_PROF_STD_TEXTS 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_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return .

DATA(ld_profiles) = 'Check type of data required'.
DATA(ld_bypassing_buffer) = 'Check type of data required'.

SELECT single AKTPS
FROM USR10
INTO @DATA(ld_aktpas).

DATA(ld_exist_check) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'SUSR_READ_PROF_STD_TEXTS' * EXPORTING * bypassing_buffer = ld_bypassing_buffer * aktpas = ld_aktpas * exist_check = ld_exist_check * TABLES * return = it_return CHANGING profiles = ld_profiles . " SUSR_READ_PROF_STD_TEXTS
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_profiles  TYPE SUSR_T_PROF_TXT ,
ld_bypassing_buffer  TYPE CHAR01 ,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
ld_aktpas  TYPE USR10-AKTPS ,
ld_exist_check  TYPE CHAR01 .

ld_profiles = 'Check type of data required'.
ld_bypassing_buffer = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_return to it_return.

SELECT single AKTPS
FROM USR10
INTO ld_aktpas.

ld_exist_check = 'Check type of data required'.

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