SAP RM_ALM_PLAN_PAR_CHANGE_001 Function Module for Control Module for Maintenance of Parameters









RM_ALM_PLAN_PAR_CHANGE_001 is a standard rm alm plan par change 001 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Control Module for Maintenance of Parameters 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 rm alm plan par change 001 FM, simply by entering the name RM_ALM_PLAN_PAR_CHANGE_001 into the relevant SAP transaction such as SE37 or SE38.

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



Function RM_ALM_PLAN_PAR_CHANGE_001 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 'RM_ALM_PLAN_PAR_CHANGE_001'"Control Module for Maintenance of Parameters
EXPORTING
I_RPLANV = "
I_SICHTID = "
I_PHID = "
* I_KNOTEN = 1 "
* I_NO_SAVE = '' "' ' or 'X', if 'X' then no prompt for saving data
* I_MODE = 'B' "

IMPORTING
E_FLAG_TO_SAVE = "' ' or 'X', if 'X' data is to be saved

TABLES
* E_IT_JBAPLANPAR = "
* E_IT_JBAPLANPARLZB = "
* E_IT_JBAPLANPARLZB2 = "
* E_IT_JBAPLANCHAR = "
* E_IT_JBAMPGPAR = "

EXCEPTIONS
NO_HIERARCHY_FOUND = 1 ABNORMAL_TERMINATION = 2
.



IMPORTING Parameters details for RM_ALM_PLAN_PAR_CHANGE_001

I_RPLANV -

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

I_SICHTID -

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

I_PHID -

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

I_KNOTEN -

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

I_NO_SAVE - ' ' or 'X', if 'X' then no prompt for saving data

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

I_MODE -

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

EXPORTING Parameters details for RM_ALM_PLAN_PAR_CHANGE_001

E_FLAG_TO_SAVE - ' ' or 'X', if 'X' data is to be saved

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

TABLES Parameters details for RM_ALM_PLAN_PAR_CHANGE_001

E_IT_JBAPLANPAR -

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

E_IT_JBAPLANPARLZB -

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

E_IT_JBAPLANPARLZB2 -

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

E_IT_JBAPLANCHAR -

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

E_IT_JBAMPGPAR -

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

EXCEPTIONS details

NO_HIERARCHY_FOUND -

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

ABNORMAL_TERMINATION -

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

Copy and paste ABAP code example for RM_ALM_PLAN_PAR_CHANGE_001 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_i_rplanv  TYPE JBAPLANV-RPLANV, "   
lv_e_flag_to_save  TYPE C, "   
lt_e_it_jbaplanpar  TYPE STANDARD TABLE OF JBAPLANPAR, "   
lv_no_hierarchy_found  TYPE JBAPLANPAR, "   
lv_i_sichtid  TYPE JBAPLANV-SICHTID, "   
lt_e_it_jbaplanparlzb  TYPE STANDARD TABLE OF JBAPLANPARLZB, "   
lv_abnormal_termination  TYPE JBAPLANPARLZB, "   
lv_i_phid  TYPE JBAPLANV-PHID, "   
lt_e_it_jbaplanparlzb2  TYPE STANDARD TABLE OF JBAPLANPARLZB2, "   
lv_i_knoten  TYPE JBRPHBAUM-PKNOTEN, "   1
lt_e_it_jbaplanchar  TYPE STANDARD TABLE OF JBAPHKMERK, "   
lv_i_no_save  TYPE C, "   ''
lt_e_it_jbampgpar  TYPE STANDARD TABLE OF JBAMPGPAR, "   
lv_i_mode  TYPE C. "   'B'

  CALL FUNCTION 'RM_ALM_PLAN_PAR_CHANGE_001'  "Control Module for Maintenance of Parameters
    EXPORTING
         I_RPLANV = lv_i_rplanv
         I_SICHTID = lv_i_sichtid
         I_PHID = lv_i_phid
         I_KNOTEN = lv_i_knoten
         I_NO_SAVE = lv_i_no_save
         I_MODE = lv_i_mode
    IMPORTING
         E_FLAG_TO_SAVE = lv_e_flag_to_save
    TABLES
         E_IT_JBAPLANPAR = lt_e_it_jbaplanpar
         E_IT_JBAPLANPARLZB = lt_e_it_jbaplanparlzb
         E_IT_JBAPLANPARLZB2 = lt_e_it_jbaplanparlzb2
         E_IT_JBAPLANCHAR = lt_e_it_jbaplanchar
         E_IT_JBAMPGPAR = lt_e_it_jbampgpar
    EXCEPTIONS
        NO_HIERARCHY_FOUND = 1
        ABNORMAL_TERMINATION = 2
. " RM_ALM_PLAN_PAR_CHANGE_001




ABAP code using 7.40 inline data declarations to call FM RM_ALM_PLAN_PAR_CHANGE_001

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 RPLANV FROM JBAPLANV INTO @DATA(ld_i_rplanv).
 
 
 
 
"SELECT single SICHTID FROM JBAPLANV INTO @DATA(ld_i_sichtid).
 
 
 
"SELECT single PHID FROM JBAPLANV INTO @DATA(ld_i_phid).
 
 
"SELECT single PKNOTEN FROM JBRPHBAUM INTO @DATA(ld_i_knoten).
DATA(ld_i_knoten) = 1.
 
 
DATA(ld_i_no_save) = ''.
 
 
DATA(ld_i_mode) = 'B'.
 


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!