SAP PFL_PROFILE_EDITOR Function Module for









PFL_PROFILE_EDITOR is a standard pfl profile editor 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 pfl profile editor FM, simply by entering the name PFL_PROFILE_EDITOR into the relevant SAP transaction such as SE37 or SE38.

Function Group: SPFL
Program Name: SAPLSPFL
Main Program: SAPLSPFL
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function PFL_PROFILE_EDITOR 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 'PFL_PROFILE_EDITOR'"
EXPORTING
* PFL_EDITOR_PROFILE_NAME = ' ' "
PFL_EDITOR_MODE = "
* PFL_EDITOR_PROFILE_VERSION = PFL_YOUNGEST_VERSION "
PFL_EDITOR_OPCODE = "
* PFL_EDITOR_PROFILE_TYPE = ' ' "

EXCEPTIONS
PROFILE_DOESNT_EXIST = 1 INVALID_PROFILE_TYPE = 10 NO_EDIT_PRIVILEGE_GIVEN = 2 INVALID_EDITOR_MODE = 3 NO_SHOW_PRIVILEGE_GIVEN = 4 INVALID_EDITOR_OPCODE = 5 PROFILE_NAME_MISSING = 6 ENQUEUE_PROBLEM_OCCURED = 7 PROFILE_TYPE_MISSING = 8 PROFILE_NAME_TYPE_CONFLICT = 9
.



IMPORTING Parameters details for PFL_PROFILE_EDITOR

PFL_EDITOR_PROFILE_NAME -

Data type: TPFHT-PFNAME
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PFL_EDITOR_MODE -

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

PFL_EDITOR_PROFILE_VERSION -

Data type: TPFHT-VERSNR
Default: PFL_YOUNGEST_VERSION
Optional: Yes
Call by Reference: No ( called with pass by value option)

PFL_EDITOR_OPCODE -

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

PFL_EDITOR_PROFILE_TYPE -

Data type: TPFHT-TYPE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

PROFILE_DOESNT_EXIST -

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

INVALID_PROFILE_TYPE -

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

NO_EDIT_PRIVILEGE_GIVEN -

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

INVALID_EDITOR_MODE -

Data type:
Optional: No
Call by Reference: Yes

NO_SHOW_PRIVILEGE_GIVEN - User has no display authorization

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

INVALID_EDITOR_OPCODE - Invalid Operation Code

Data type:
Optional: No
Call by Reference: Yes

PROFILE_NAME_MISSING -

Data type:
Optional: No
Call by Reference: Yes

ENQUEUE_PROBLEM_OCCURED -

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

PROFILE_TYPE_MISSING -

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

PROFILE_NAME_TYPE_CONFLICT -

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

Copy and paste ABAP code example for PFL_PROFILE_EDITOR 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_profile_doesnt_exist  TYPE STRING, "   
lv_pfl_editor_profile_name  TYPE TPFHT-PFNAME, "   SPACE
lv_invalid_profile_type  TYPE TPFHT, "   
lv_pfl_editor_mode  TYPE BTCH0000-CHAR1, "   
lv_no_edit_privilege_given  TYPE BTCH0000, "   
lv_invalid_editor_mode  TYPE BTCH0000, "   
lv_pfl_editor_profile_version  TYPE TPFHT-VERSNR, "   PFL_YOUNGEST_VERSION
lv_pfl_editor_opcode  TYPE BTCH0000-CHAR1, "   
lv_no_show_privilege_given  TYPE BTCH0000, "   
lv_invalid_editor_opcode  TYPE BTCH0000, "   
lv_pfl_editor_profile_type  TYPE TPFHT-TYPE, "   SPACE
lv_profile_name_missing  TYPE TPFHT, "   
lv_enqueue_problem_occured  TYPE TPFHT, "   
lv_profile_type_missing  TYPE TPFHT, "   
lv_profile_name_type_conflict  TYPE TPFHT. "   

  CALL FUNCTION 'PFL_PROFILE_EDITOR'  "
    EXPORTING
         PFL_EDITOR_PROFILE_NAME = lv_pfl_editor_profile_name
         PFL_EDITOR_MODE = lv_pfl_editor_mode
         PFL_EDITOR_PROFILE_VERSION = lv_pfl_editor_profile_version
         PFL_EDITOR_OPCODE = lv_pfl_editor_opcode
         PFL_EDITOR_PROFILE_TYPE = lv_pfl_editor_profile_type
    EXCEPTIONS
        PROFILE_DOESNT_EXIST = 1
        INVALID_PROFILE_TYPE = 10
        NO_EDIT_PRIVILEGE_GIVEN = 2
        INVALID_EDITOR_MODE = 3
        NO_SHOW_PRIVILEGE_GIVEN = 4
        INVALID_EDITOR_OPCODE = 5
        PROFILE_NAME_MISSING = 6
        ENQUEUE_PROBLEM_OCCURED = 7
        PROFILE_TYPE_MISSING = 8
        PROFILE_NAME_TYPE_CONFLICT = 9
. " PFL_PROFILE_EDITOR




ABAP code using 7.40 inline data declarations to call FM PFL_PROFILE_EDITOR

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 PFNAME FROM TPFHT INTO @DATA(ld_pfl_editor_profile_name).
DATA(ld_pfl_editor_profile_name) = ' '.
 
 
"SELECT single CHAR1 FROM BTCH0000 INTO @DATA(ld_pfl_editor_mode).
 
 
 
"SELECT single VERSNR FROM TPFHT INTO @DATA(ld_pfl_editor_profile_version).
DATA(ld_pfl_editor_profile_version) = PFL_YOUNGEST_VERSION.
 
"SELECT single CHAR1 FROM BTCH0000 INTO @DATA(ld_pfl_editor_opcode).
 
 
 
"SELECT single TYPE FROM TPFHT INTO @DATA(ld_pfl_editor_profile_type).
DATA(ld_pfl_editor_profile_type) = ' '.
 
 
 
 
 


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!