SAP Function Modules

PC_FUNCTIONS_READ SAP Function module







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

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


Pattern for FM PC_FUNCTIONS_READ - PC FUNCTIONS READ





CALL FUNCTION 'PC_FUNCTIONS_READ' "
  EXPORTING
    i_procs =                   " tps01-procs   Process interface
*   i_land =                    " t005-land1
*   i_applk =                   " tps31-applk
*   i_no_xlbse =                " boole-boole
  IMPORTING
    e_empty =                   " boole-boole
  TABLES
    t_fmsap =                   " apsap         Table of SAP Modules to be Called
    t_fmprt =                   " apprt         Table of Partner Modules to be Called
    t_fmcus =                   " apcus         Table of Customer Modules to be Called
    .  "  PC_FUNCTIONS_READ

ABAP code example for Function Module PC_FUNCTIONS_READ





The ABAP code below is a full code listing to execute function module PC_FUNCTIONS_READ 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_e_empty  TYPE BOOLE-BOOLE ,
it_t_fmsap  TYPE STANDARD TABLE OF APSAP,"TABLES PARAM
wa_t_fmsap  LIKE LINE OF it_t_fmsap ,
it_t_fmprt  TYPE STANDARD TABLE OF APPRT,"TABLES PARAM
wa_t_fmprt  LIKE LINE OF it_t_fmprt ,
it_t_fmcus  TYPE STANDARD TABLE OF APCUS,"TABLES PARAM
wa_t_fmcus  LIKE LINE OF it_t_fmcus .


SELECT single PROCS
FROM TPS01
INTO @DATA(ld_i_procs).


SELECT single LAND1
FROM T005
INTO @DATA(ld_i_land).


SELECT single APPLK
FROM TPS31
INTO @DATA(ld_i_applk).


DATA(ld_i_no_xlbse) = some text here

"populate fields of struture and append to itab
append wa_t_fmsap to it_t_fmsap.

"populate fields of struture and append to itab
append wa_t_fmprt to it_t_fmprt.

"populate fields of struture and append to itab
append wa_t_fmcus to it_t_fmcus. . CALL FUNCTION 'PC_FUNCTIONS_READ' EXPORTING i_procs = ld_i_procs * i_land = ld_i_land * i_applk = ld_i_applk * i_no_xlbse = ld_i_no_xlbse IMPORTING e_empty = ld_e_empty TABLES t_fmsap = it_t_fmsap t_fmprt = it_t_fmprt t_fmcus = it_t_fmcus . " PC_FUNCTIONS_READ
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_e_empty  TYPE BOOLE-BOOLE ,
ld_i_procs  TYPE TPS01-PROCS ,
it_t_fmsap  TYPE STANDARD TABLE OF APSAP ,
wa_t_fmsap  LIKE LINE OF it_t_fmsap,
ld_i_land  TYPE T005-LAND1 ,
it_t_fmprt  TYPE STANDARD TABLE OF APPRT ,
wa_t_fmprt  LIKE LINE OF it_t_fmprt,
ld_i_applk  TYPE TPS31-APPLK ,
it_t_fmcus  TYPE STANDARD TABLE OF APCUS ,
wa_t_fmcus  LIKE LINE OF it_t_fmcus,
ld_i_no_xlbse  TYPE BOOLE-BOOLE .


SELECT single PROCS
FROM TPS01
INTO ld_i_procs.


"populate fields of struture and append to itab
append wa_t_fmsap to it_t_fmsap.

SELECT single LAND1
FROM T005
INTO ld_i_land.


"populate fields of struture and append to itab
append wa_t_fmprt to it_t_fmprt.

SELECT single APPLK
FROM TPS31
INTO ld_i_applk.


"populate fields of struture and append to itab
append wa_t_fmcus to it_t_fmcus.

ld_i_no_xlbse = some text here

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