SAP PM_CHANGE_SELOPT Function Module for NOTRANSL: Customizing Select-Options
PM_CHANGE_SELOPT is a standard pm change selopt SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Customizing Select-Options processing and below is the pattern details for this FM, 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 pm change selopt FM, simply by entering the name PM_CHANGE_SELOPT into the relevant SAP transaction such as SE37 or SE38.
Function Group: IHIE
Program Name: SAPLIHIE
Main Program: SAPLIHIE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function PM_CHANGE_SELOPT 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 'PM_CHANGE_SELOPT'"NOTRANSL: Customizing Select-Options.
EXPORTING
REPNAME = "Report name
* TCODE = ' ' "Report name of the main program
* UNAME = SY-UNAME "User
* CCLASS = 'PMC ' "Authorization object
* TCODE_COPY = SY-TCODE "
* PRAEFIX = 'U_' "Prefix for Selection Variant
IMPORTING Parameters details for PM_CHANGE_SELOPT
REPNAME - Report name
Data type: SY-REPIDOptional: No
Call by Reference: No ( called with pass by value option)
TCODE - Report name of the main program
Data type: SY-TCODEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
UNAME - User
Data type: SY-UNAMEDefault: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)
CCLASS - Authorization object
Data type: CHAR4Default: 'PMC '
Optional: Yes
Call by Reference: No ( called with pass by value option)
TCODE_COPY -
Data type: SY-TCODEDefault: SY-TCODE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PRAEFIX - Prefix for Selection Variant
Data type: SEL_VARIANT_PRAEFIXDefault: 'U_'
Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PM_CHANGE_SELOPT 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_repname | TYPE SY-REPID, " | |||
| lv_tcode | TYPE SY-TCODE, " SPACE | |||
| lv_uname | TYPE SY-UNAME, " SY-UNAME | |||
| lv_cclass | TYPE CHAR4, " 'PMC ' | |||
| lv_tcode_copy | TYPE SY-TCODE, " SY-TCODE | |||
| lv_praefix | TYPE SEL_VARIANT_PRAEFIX. " 'U_' |
|   CALL FUNCTION 'PM_CHANGE_SELOPT' "NOTRANSL: Customizing Select-Options |
| EXPORTING | ||
| REPNAME | = lv_repname | |
| TCODE | = lv_tcode | |
| UNAME | = lv_uname | |
| CCLASS | = lv_cclass | |
| TCODE_COPY | = lv_tcode_copy | |
| PRAEFIX | = lv_praefix | |
| . " PM_CHANGE_SELOPT | ||
ABAP code using 7.40 inline data declarations to call FM PM_CHANGE_SELOPT
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 REPID FROM SY INTO @DATA(ld_repname). | ||||
| "SELECT single TCODE FROM SY INTO @DATA(ld_tcode). | ||||
| DATA(ld_tcode) | = ' '. | |||
| "SELECT single UNAME FROM SY INTO @DATA(ld_uname). | ||||
| DATA(ld_uname) | = SY-UNAME. | |||
| DATA(ld_cclass) | = 'PMC '. | |||
| "SELECT single TCODE FROM SY INTO @DATA(ld_tcode_copy). | ||||
| DATA(ld_tcode_copy) | = SY-TCODE. | |||
| DATA(ld_praefix) | = 'U_'. | |||
Search for further information about these or an SAP related objects