SAP Function Modules

PF_CHANGE_PARAMETER SAP Function module







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

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


Pattern for FM PF_CHANGE_PARAMETER - PF CHANGE PARAMETER





CALL FUNCTION 'PF_CHANGE_PARAMETER' "
* EXPORTING
*   change_mode = 01            " tskh_dummy-reset_mode
*   btcrecno = -1               " sy-index
*   tabrecno = -1               " sy-index
*   rfcrecno = -1               " sy-index
*   sporecno = -1               " sy-index
*   tiintrecno = -1             " sy-index
*   adrecno = -1                " sy-index
*   dbprocrecno = -1            " sy-index
*   clirecno = -1               " sy-index      Loops, Current Loop Pass
*   tcode1 =                    " sy-tcode
*   tcode2 =                    " sy-tcode
*   tcode3 =                    " sy-tcode
*   tcode4 =                    " sy-tcode
*   tcode5 =                    " sy-tcode
*   httprecno = -1              " sy-index      Loops, Current Loop Pass
*   smtprecno = -1              " int4
*   vmcrecno = -1               " int4
*   dbconrecno = -1             " int4
*   esirecno = -1               " int4
*   eppitemno = -1              " int4
*   webservicerecno = -1        " int4
*   trexrecno = -1              " int4
    .  "  PF_CHANGE_PARAMETER

ABAP code example for Function Module PF_CHANGE_PARAMETER





The ABAP code below is a full code listing to execute function module PF_CHANGE_PARAMETER 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_change_mode) = Check type of data required
DATA(ld_btcrecno) = '123 '.
DATA(ld_tabrecno) = '123 '.
DATA(ld_rfcrecno) = '123 '.
DATA(ld_sporecno) = '123 '.
DATA(ld_tiintrecno) = '123 '.
DATA(ld_adrecno) = '123 '.
DATA(ld_dbprocrecno) = '123 '.
DATA(ld_clirecno) = '123 '.
DATA(ld_tcode1) = 'some text here'.
DATA(ld_tcode2) = 'some text here'.
DATA(ld_tcode3) = 'some text here'.
DATA(ld_tcode4) = 'some text here'.
DATA(ld_tcode5) = 'some text here'.
DATA(ld_httprecno) = '123 '.
DATA(ld_smtprecno) = '123 '.
DATA(ld_vmcrecno) = '123 '.
DATA(ld_dbconrecno) = '123 '.
DATA(ld_esirecno) = '123 '.
DATA(ld_eppitemno) = '123 '.
DATA(ld_webservicerecno) = '123 '.
DATA(ld_trexrecno) = '123 '. . CALL FUNCTION 'PF_CHANGE_PARAMETER' * EXPORTING * change_mode = ld_change_mode * btcrecno = ld_btcrecno * tabrecno = ld_tabrecno * rfcrecno = ld_rfcrecno * sporecno = ld_sporecno * tiintrecno = ld_tiintrecno * adrecno = ld_adrecno * dbprocrecno = ld_dbprocrecno * clirecno = ld_clirecno * tcode1 = ld_tcode1 * tcode2 = ld_tcode2 * tcode3 = ld_tcode3 * tcode4 = ld_tcode4 * tcode5 = ld_tcode5 * httprecno = ld_httprecno * smtprecno = ld_smtprecno * vmcrecno = ld_vmcrecno * dbconrecno = ld_dbconrecno * esirecno = ld_esirecno * eppitemno = ld_eppitemno * webservicerecno = ld_webservicerecno * trexrecno = ld_trexrecno . " PF_CHANGE_PARAMETER
IF SY-SUBRC EQ 0. "All OK 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_change_mode  TYPE TSKH_DUMMY-RESET_MODE ,
ld_btcrecno  TYPE SY-INDEX ,
ld_tabrecno  TYPE SY-INDEX ,
ld_rfcrecno  TYPE SY-INDEX ,
ld_sporecno  TYPE SY-INDEX ,
ld_tiintrecno  TYPE SY-INDEX ,
ld_adrecno  TYPE SY-INDEX ,
ld_dbprocrecno  TYPE SY-INDEX ,
ld_clirecno  TYPE SY-INDEX ,
ld_tcode1  TYPE SY-TCODE ,
ld_tcode2  TYPE SY-TCODE ,
ld_tcode3  TYPE SY-TCODE ,
ld_tcode4  TYPE SY-TCODE ,
ld_tcode5  TYPE SY-TCODE ,
ld_httprecno  TYPE SY-INDEX ,
ld_smtprecno  TYPE INT4 ,
ld_vmcrecno  TYPE INT4 ,
ld_dbconrecno  TYPE INT4 ,
ld_esirecno  TYPE INT4 ,
ld_eppitemno  TYPE INT4 ,
ld_webservicerecno  TYPE INT4 ,
ld_trexrecno  TYPE INT4 .


ld_change_mode = Check type of data required
ld_btcrecno = '123 '.
ld_tabrecno = '123 '.
ld_rfcrecno = '123 '.
ld_sporecno = '123 '.
ld_tiintrecno = '123 '.
ld_adrecno = '123 '.
ld_dbprocrecno = '123 '.
ld_clirecno = '123 '.
ld_tcode1 = 'some text here'.
ld_tcode2 = 'some text here'.
ld_tcode3 = 'some text here'.
ld_tcode4 = 'some text here'.
ld_tcode5 = 'some text here'.
ld_httprecno = '123 '.
ld_smtprecno = '123 '.
ld_vmcrecno = '123 '.
ld_dbconrecno = '123 '.
ld_esirecno = '123 '.
ld_eppitemno = '123 '.
ld_webservicerecno = '123 '.
ld_trexrecno = '123 '.

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