SAP Function Modules

SCPR_BCSETS_INFOS_GET SAP Function module







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

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


Pattern for FM SCPR_BCSETS_INFOS_GET - SCPR BCSETS INFOS GET





CALL FUNCTION 'SCPR_BCSETS_INFOS_GET' "
  TABLES
    bcsets_ids =                " scpr_bcsets   BC Sets: BC Set Names to Pass From/To External Interface
*   bcsets_attr =               " scprattr      BC Set: Attributes
*   bcsets_texte =              " scprtext      BC Set: Short texts
*   bcsets_dokus =              " scprdocext
  EXCEPTIONS
    NO_AUTHORITY = 1            "
    WRONG_PARAMETERS = 2        "
    INTERNAL_ERROR = 3          "               Internal Error
    .  "  SCPR_BCSETS_INFOS_GET

ABAP code example for Function Module SCPR_BCSETS_INFOS_GET





The ABAP code below is a full code listing to execute function module SCPR_BCSETS_INFOS_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_bcsets_ids  TYPE STANDARD TABLE OF SCPR_BCSETS,"TABLES PARAM
wa_bcsets_ids  LIKE LINE OF it_bcsets_ids ,
it_bcsets_attr  TYPE STANDARD TABLE OF SCPRATTR,"TABLES PARAM
wa_bcsets_attr  LIKE LINE OF it_bcsets_attr ,
it_bcsets_texte  TYPE STANDARD TABLE OF SCPRTEXT,"TABLES PARAM
wa_bcsets_texte  LIKE LINE OF it_bcsets_texte ,
it_bcsets_dokus  TYPE STANDARD TABLE OF SCPRDOCEXT,"TABLES PARAM
wa_bcsets_dokus  LIKE LINE OF it_bcsets_dokus .


"populate fields of struture and append to itab
append wa_bcsets_ids to it_bcsets_ids.

"populate fields of struture and append to itab
append wa_bcsets_attr to it_bcsets_attr.

"populate fields of struture and append to itab
append wa_bcsets_texte to it_bcsets_texte.

"populate fields of struture and append to itab
append wa_bcsets_dokus to it_bcsets_dokus. . CALL FUNCTION 'SCPR_BCSETS_INFOS_GET' TABLES bcsets_ids = it_bcsets_ids * bcsets_attr = it_bcsets_attr * bcsets_texte = it_bcsets_texte * bcsets_dokus = it_bcsets_dokus EXCEPTIONS NO_AUTHORITY = 1 WRONG_PARAMETERS = 2 INTERNAL_ERROR = 3 . " SCPR_BCSETS_INFOS_GET
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here 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:
it_bcsets_ids  TYPE STANDARD TABLE OF SCPR_BCSETS ,
wa_bcsets_ids  LIKE LINE OF it_bcsets_ids,
it_bcsets_attr  TYPE STANDARD TABLE OF SCPRATTR ,
wa_bcsets_attr  LIKE LINE OF it_bcsets_attr,
it_bcsets_texte  TYPE STANDARD TABLE OF SCPRTEXT ,
wa_bcsets_texte  LIKE LINE OF it_bcsets_texte,
it_bcsets_dokus  TYPE STANDARD TABLE OF SCPRDOCEXT ,
wa_bcsets_dokus  LIKE LINE OF it_bcsets_dokus.


"populate fields of struture and append to itab
append wa_bcsets_ids to it_bcsets_ids.

"populate fields of struture and append to itab
append wa_bcsets_attr to it_bcsets_attr.

"populate fields of struture and append to itab
append wa_bcsets_texte to it_bcsets_texte.

"populate fields of struture and append to itab
append wa_bcsets_dokus to it_bcsets_dokus.

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