SAP Function Modules

SPDA_GET_PATCH_NAMES_SDA SAP Function module







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

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


Pattern for FM SPDA_GET_PATCH_NAMES_SDA - SPDA GET PATCH NAMES SDA





CALL FUNCTION 'SPDA_GET_PATCH_NAMES_SDA' "
  EXPORTING
    iv_component =              " pat03_sda-component  Software Component
    iv_comp_rel =               " pat03_sda-comp_rel  Component release
    iv_from_level =             " pat03_sda-to_rel  R/3 System, system release
    iv_to_level =               " pat03_sda-to_rel  R/3 System, system release
  IMPORTING
    ev_missing_level =          " pat03_sda-to_rel  R/3 System, system release
  TABLES
    et_patch_names =            " pat_q_sda     Line Structure for PAT_QTAB
  EXCEPTIONS
    UNKNOWN_COMPONENT = 1       "
    MISSING_PATCH_DESCRIPT = 2  "
    INCOMPLETE_QUEUE = 3        "
    .  "  SPDA_GET_PATCH_NAMES_SDA

ABAP code example for Function Module SPDA_GET_PATCH_NAMES_SDA





The ABAP code below is a full code listing to execute function module SPDA_GET_PATCH_NAMES_SDA 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_ev_missing_level  TYPE PAT03_SDA-TO_REL ,
it_et_patch_names  TYPE STANDARD TABLE OF PAT_Q_SDA,"TABLES PARAM
wa_et_patch_names  LIKE LINE OF it_et_patch_names .


SELECT single COMPONENT
FROM PAT03_SDA
INTO @DATA(ld_iv_component).


SELECT single COMP_REL
FROM PAT03_SDA
INTO @DATA(ld_iv_comp_rel).


SELECT single TO_REL
FROM PAT03_SDA
INTO @DATA(ld_iv_from_level).


SELECT single TO_REL
FROM PAT03_SDA
INTO @DATA(ld_iv_to_level).


"populate fields of struture and append to itab
append wa_et_patch_names to it_et_patch_names. . CALL FUNCTION 'SPDA_GET_PATCH_NAMES_SDA' EXPORTING iv_component = ld_iv_component iv_comp_rel = ld_iv_comp_rel iv_from_level = ld_iv_from_level iv_to_level = ld_iv_to_level IMPORTING ev_missing_level = ld_ev_missing_level TABLES et_patch_names = it_et_patch_names EXCEPTIONS UNKNOWN_COMPONENT = 1 MISSING_PATCH_DESCRIPT = 2 INCOMPLETE_QUEUE = 3 . " SPDA_GET_PATCH_NAMES_SDA
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:
ld_ev_missing_level  TYPE PAT03_SDA-TO_REL ,
ld_iv_component  TYPE PAT03_SDA-COMPONENT ,
it_et_patch_names  TYPE STANDARD TABLE OF PAT_Q_SDA ,
wa_et_patch_names  LIKE LINE OF it_et_patch_names,
ld_iv_comp_rel  TYPE PAT03_SDA-COMP_REL ,
ld_iv_from_level  TYPE PAT03_SDA-TO_REL ,
ld_iv_to_level  TYPE PAT03_SDA-TO_REL .


SELECT single COMPONENT
FROM PAT03_SDA
INTO ld_iv_component.


"populate fields of struture and append to itab
append wa_et_patch_names to it_et_patch_names.

SELECT single COMP_REL
FROM PAT03_SDA
INTO ld_iv_comp_rel.


SELECT single TO_REL
FROM PAT03_SDA
INTO ld_iv_from_level.


SELECT single TO_REL
FROM PAT03_SDA
INTO ld_iv_to_level.

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