SAP SPDA_GET_PATCHABLE_COMPONENTS Function Module for









SPDA_GET_PATCHABLE_COMPONENTS is a standard spda get patchable components SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for spda get patchable components FM, simply by entering the name SPDA_GET_PATCHABLE_COMPONENTS into the relevant SAP transaction such as SE37 or SE38.

Function Group: SPDA
Program Name: SAPLSPDA
Main Program: SAPLSPDA
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function SPDA_GET_PATCHABLE_COMPONENTS pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'SPDA_GET_PATCHABLE_COMPONENTS'"
EXPORTING
* IV_LOGFILE = "Char255
* IV_SELECTION_MODE = 'A' "

IMPORTING
EV_RC = "Natural Number
EV_MESSAGE = "Char 80

TABLES
IT_ALL_COMPS = "
ET_PATCHABLE_COMPS = "
.



IMPORTING Parameters details for SPDA_GET_PATCHABLE_COMPONENTS

IV_LOGFILE - Char255

Data type: GSUGI_PA-LOGFILE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_SELECTION_MODE -

Data type: GSUGI_PA-W_ISTATUS
Default: 'A'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SPDA_GET_PATCHABLE_COMPONENTS

EV_RC - Natural Number

Data type: GSUGI_PA-NR_CONV
Optional: No
Call by Reference: No ( called with pass by value option)

EV_MESSAGE - Char 80

Data type: GSUGI_PA-RCMESSAGE
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for SPDA_GET_PATCHABLE_COMPONENTS

IT_ALL_COMPS -

Data type: NCVERS_I
Optional: No
Call by Reference: Yes

ET_PATCHABLE_COMPS -

Data type: NCVERS_I
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SPDA_GET_PATCHABLE_COMPONENTS Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_ev_rc  TYPE GSUGI_PA-NR_CONV, "   
lv_iv_logfile  TYPE GSUGI_PA-LOGFILE, "   
lt_it_all_comps  TYPE STANDARD TABLE OF NCVERS_I, "   
lv_ev_message  TYPE GSUGI_PA-RCMESSAGE, "   
lv_iv_selection_mode  TYPE GSUGI_PA-W_ISTATUS, "   'A'
lt_et_patchable_comps  TYPE STANDARD TABLE OF NCVERS_I. "   

  CALL FUNCTION 'SPDA_GET_PATCHABLE_COMPONENTS'  "
    EXPORTING
         IV_LOGFILE = lv_iv_logfile
         IV_SELECTION_MODE = lv_iv_selection_mode
    IMPORTING
         EV_RC = lv_ev_rc
         EV_MESSAGE = lv_ev_message
    TABLES
         IT_ALL_COMPS = lt_it_all_comps
         ET_PATCHABLE_COMPS = lt_et_patchable_comps
. " SPDA_GET_PATCHABLE_COMPONENTS




ABAP code using 7.40 inline data declarations to call FM SPDA_GET_PATCHABLE_COMPONENTS

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single NR_CONV FROM GSUGI_PA INTO @DATA(ld_ev_rc).
 
"SELECT single LOGFILE FROM GSUGI_PA INTO @DATA(ld_iv_logfile).
 
 
"SELECT single RCMESSAGE FROM GSUGI_PA INTO @DATA(ld_ev_message).
 
"SELECT single W_ISTATUS FROM GSUGI_PA INTO @DATA(ld_iv_selection_mode).
DATA(ld_iv_selection_mode) = 'A'.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!