SAP PLM_PROFILE_TREE Function Module for Profile tree









PLM_PROFILE_TREE is a standard plm profile tree SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Profile tree 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 plm profile tree FM, simply by entering the name PLM_PROFILE_TREE into the relevant SAP transaction such as SE37 or SE38.

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



Function PLM_PROFILE_TREE 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 'PLM_PROFILE_TREE'"Profile tree
EXPORTING
PROGNAME = "
* PROFILE_IN = "
* LEVEL = 2 "
* X_END = 0 "
* X_START = 0 "
* Y_END = 0 "
* Y_START = 0 "

IMPORTING
PROFILE_OUT = "
.



IMPORTING Parameters details for PLM_PROFILE_TREE

PROGNAME -

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

PROFILE_IN -

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

LEVEL -

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

X_END -

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

X_START -

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

Y_END -

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

Y_START -

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

EXPORTING Parameters details for PLM_PROFILE_TREE

PROFILE_OUT -

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

Copy and paste ABAP code example for PLM_PROFILE_TREE 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_progname  TYPE VARIT-REPORT, "   
lv_profile_out  TYPE TOGM4-PROFILE, "   
lv_profile_in  TYPE TOGM4-PROFILE, "   
lv_level  TYPE TOGM4, "   2
lv_x_end  TYPE SY-CUCOL, "   0
lv_x_start  TYPE SY-CUCOL, "   0
lv_y_end  TYPE SY-CUROW, "   0
lv_y_start  TYPE SY-CUROW. "   0

  CALL FUNCTION 'PLM_PROFILE_TREE'  "Profile tree
    EXPORTING
         PROGNAME = lv_progname
         PROFILE_IN = lv_profile_in
         LEVEL = lv_level
         X_END = lv_x_end
         X_START = lv_x_start
         Y_END = lv_y_end
         Y_START = lv_y_start
    IMPORTING
         PROFILE_OUT = lv_profile_out
. " PLM_PROFILE_TREE




ABAP code using 7.40 inline data declarations to call FM PLM_PROFILE_TREE

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 REPORT FROM VARIT INTO @DATA(ld_progname).
 
"SELECT single PROFILE FROM TOGM4 INTO @DATA(ld_profile_out).
 
"SELECT single PROFILE FROM TOGM4 INTO @DATA(ld_profile_in).
 
DATA(ld_level) = 2.
 
"SELECT single CUCOL FROM SY INTO @DATA(ld_x_end).
 
"SELECT single CUCOL FROM SY INTO @DATA(ld_x_start).
 
"SELECT single CUROW FROM SY INTO @DATA(ld_y_end).
 
"SELECT single CUROW FROM SY INTO @DATA(ld_y_start).
 


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!