SAP PF_CHANGE_PARAMETER Function Module for









PF_CHANGE_PARAMETER is a standard pf change parameter 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 pf change parameter FM, simply by entering the name PF_CHANGE_PARAMETER into the relevant SAP transaction such as SE37 or SE38.

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



Function PF_CHANGE_PARAMETER 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 'PF_CHANGE_PARAMETER'"
EXPORTING
* CHANGE_MODE = 01 "
* TCODE1 = "
* TCODE2 = "
* TCODE3 = "
* TCODE4 = "
* TCODE5 = "
* HTTPRECNO = -1 "Loops, Current Loop Pass
* SMTPRECNO = -1 "
* VMCRECNO = -1 "
* DBCONRECNO = -1 "
* ESIRECNO = -1 "
* BTCRECNO = -1 "
* EPPITEMNO = -1 "
* WEBSERVICERECNO = -1 "
* TREXRECNO = -1 "
* TABRECNO = -1 "
* RFCRECNO = -1 "
* SPORECNO = -1 "
* TIINTRECNO = -1 "
* ADRECNO = -1 "
* DBPROCRECNO = -1 "
* CLIRECNO = -1 "Loops, Current Loop Pass
.



IMPORTING Parameters details for PF_CHANGE_PARAMETER

CHANGE_MODE -

Data type: TSKH_DUMMY-RESET_MODE
Default: 01
Optional: Yes
Call by Reference: No ( called with pass by value option)

TCODE1 -

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

TCODE2 -

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

TCODE3 -

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

TCODE4 -

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

TCODE5 -

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

HTTPRECNO - Loops, Current Loop Pass

Data type: SY-INDEX
Default: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)

SMTPRECNO -

Data type: INT4
Default: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)

VMCRECNO -

Data type: INT4
Default: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)

DBCONRECNO -

Data type: INT4
Default: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)

ESIRECNO -

Data type: INT4
Default: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)

BTCRECNO -

Data type: SY-INDEX
Default: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)

EPPITEMNO -

Data type: INT4
Default: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)

WEBSERVICERECNO -

Data type: INT4
Default: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)

TREXRECNO -

Data type: INT4
Default: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABRECNO -

Data type: SY-INDEX
Default: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)

RFCRECNO -

Data type: SY-INDEX
Default: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)

SPORECNO -

Data type: SY-INDEX
Default: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)

TIINTRECNO -

Data type: SY-INDEX
Default: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)

ADRECNO -

Data type: SY-INDEX
Default: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)

DBPROCRECNO -

Data type: SY-INDEX
Default: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)

CLIRECNO - Loops, Current Loop Pass

Data type: SY-INDEX
Default: -1
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for PF_CHANGE_PARAMETER 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_change_mode  TYPE TSKH_DUMMY-RESET_MODE, "   01
lv_tcode1  TYPE SY-TCODE, "   
lv_tcode2  TYPE SY-TCODE, "   
lv_tcode3  TYPE SY-TCODE, "   
lv_tcode4  TYPE SY-TCODE, "   
lv_tcode5  TYPE SY-TCODE, "   
lv_httprecno  TYPE SY-INDEX, "   -1
lv_smtprecno  TYPE INT4, "   -1
lv_vmcrecno  TYPE INT4, "   -1
lv_dbconrecno  TYPE INT4, "   -1
lv_esirecno  TYPE INT4, "   -1
lv_btcrecno  TYPE SY-INDEX, "   -1
lv_eppitemno  TYPE INT4, "   -1
lv_webservicerecno  TYPE INT4, "   -1
lv_trexrecno  TYPE INT4, "   -1
lv_tabrecno  TYPE SY-INDEX, "   -1
lv_rfcrecno  TYPE SY-INDEX, "   -1
lv_sporecno  TYPE SY-INDEX, "   -1
lv_tiintrecno  TYPE SY-INDEX, "   -1
lv_adrecno  TYPE SY-INDEX, "   -1
lv_dbprocrecno  TYPE SY-INDEX, "   -1
lv_clirecno  TYPE SY-INDEX. "   -1

  CALL FUNCTION 'PF_CHANGE_PARAMETER'  "
    EXPORTING
         CHANGE_MODE = lv_change_mode
         TCODE1 = lv_tcode1
         TCODE2 = lv_tcode2
         TCODE3 = lv_tcode3
         TCODE4 = lv_tcode4
         TCODE5 = lv_tcode5
         HTTPRECNO = lv_httprecno
         SMTPRECNO = lv_smtprecno
         VMCRECNO = lv_vmcrecno
         DBCONRECNO = lv_dbconrecno
         ESIRECNO = lv_esirecno
         BTCRECNO = lv_btcrecno
         EPPITEMNO = lv_eppitemno
         WEBSERVICERECNO = lv_webservicerecno
         TREXRECNO = lv_trexrecno
         TABRECNO = lv_tabrecno
         RFCRECNO = lv_rfcrecno
         SPORECNO = lv_sporecno
         TIINTRECNO = lv_tiintrecno
         ADRECNO = lv_adrecno
         DBPROCRECNO = lv_dbprocrecno
         CLIRECNO = lv_clirecno
. " PF_CHANGE_PARAMETER




ABAP code using 7.40 inline data declarations to call FM PF_CHANGE_PARAMETER

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 RESET_MODE FROM TSKH_DUMMY INTO @DATA(ld_change_mode).
DATA(ld_change_mode) = 01.
 
"SELECT single TCODE FROM SY INTO @DATA(ld_tcode1).
 
"SELECT single TCODE FROM SY INTO @DATA(ld_tcode2).
 
"SELECT single TCODE FROM SY INTO @DATA(ld_tcode3).
 
"SELECT single TCODE FROM SY INTO @DATA(ld_tcode4).
 
"SELECT single TCODE FROM SY INTO @DATA(ld_tcode5).
 
"SELECT single INDEX FROM SY INTO @DATA(ld_httprecno).
DATA(ld_httprecno) = -1.
 
DATA(ld_smtprecno) = -1.
 
DATA(ld_vmcrecno) = -1.
 
DATA(ld_dbconrecno) = -1.
 
DATA(ld_esirecno) = -1.
 
"SELECT single INDEX FROM SY INTO @DATA(ld_btcrecno).
DATA(ld_btcrecno) = -1.
 
DATA(ld_eppitemno) = -1.
 
DATA(ld_webservicerecno) = -1.
 
DATA(ld_trexrecno) = -1.
 
"SELECT single INDEX FROM SY INTO @DATA(ld_tabrecno).
DATA(ld_tabrecno) = -1.
 
"SELECT single INDEX FROM SY INTO @DATA(ld_rfcrecno).
DATA(ld_rfcrecno) = -1.
 
"SELECT single INDEX FROM SY INTO @DATA(ld_sporecno).
DATA(ld_sporecno) = -1.
 
"SELECT single INDEX FROM SY INTO @DATA(ld_tiintrecno).
DATA(ld_tiintrecno) = -1.
 
"SELECT single INDEX FROM SY INTO @DATA(ld_adrecno).
DATA(ld_adrecno) = -1.
 
"SELECT single INDEX FROM SY INTO @DATA(ld_dbprocrecno).
DATA(ld_dbprocrecno) = -1.
 
"SELECT single INDEX FROM SY INTO @DATA(ld_clirecno).
DATA(ld_clirecno) = -1.
 


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!