SAP SRM_FW_INITIALIZE Function Module for









SRM_FW_INITIALIZE is a standard srm fw initialize 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 srm fw initialize FM, simply by entering the name SRM_FW_INITIALIZE into the relevant SAP transaction such as SE37 or SE38.

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



Function SRM_FW_INITIALIZE 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 'SRM_FW_INITIALIZE'"
EXPORTING
IM_STARTING_REF = "
IM_ROOT_REF = "
IM_GUI_TYPE = "Actual GUI Type
IM_OPTION_ORGANIZER = "
IM_OPTION_NAVIGATION = "
* IM_ORGANIZER_SPS_ID = 'SRM_SPS_ORGANIZER' "
* IM_ORGANIZER_RMS_ID = 'S_RMS_DATA' "

IMPORTING
EX_RESULT = "
EX_ACTIVITY_STATE = "

EXCEPTIONS
CX_SRM_FRAMEWORK = 1
.



IMPORTING Parameters details for SRM_FW_INITIALIZE

IM_STARTING_REF -

Data type: CL_SRM_START_FRAMEWORK
Optional: No
Call by Reference: Yes

IM_ROOT_REF -

Data type: IF_SRM_ROOT
Optional: No
Call by Reference: Yes

IM_GUI_TYPE - Actual GUI Type

Data type: I
Optional: No
Call by Reference: Yes

IM_OPTION_ORGANIZER -

Data type: SRMBOOLEAN
Optional: No
Call by Reference: Yes

IM_OPTION_NAVIGATION -

Data type: SRMBOOLEAN
Optional: No
Call by Reference: Yes

IM_ORGANIZER_SPS_ID -

Data type: STRING
Default: 'SRM_SPS_ORGANIZER'
Optional: Yes
Call by Reference: Yes

IM_ORGANIZER_RMS_ID -

Data type: STRING
Default: 'S_RMS_DATA'
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for SRM_FW_INITIALIZE

EX_RESULT -

Data type: IF_SRM_POID
Optional: No
Call by Reference: Yes

EX_ACTIVITY_STATE -

Data type: I
Optional: No
Call by Reference: Yes

EXCEPTIONS details

CX_SRM_FRAMEWORK - Framework (Abstract)

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SRM_FW_INITIALIZE 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_ex_result  TYPE IF_SRM_POID, "   
lv_im_starting_ref  TYPE CL_SRM_START_FRAMEWORK, "   
lv_cx_srm_framework  TYPE CL_SRM_START_FRAMEWORK, "   
lv_im_root_ref  TYPE IF_SRM_ROOT, "   
lv_ex_activity_state  TYPE I, "   
lv_im_gui_type  TYPE I, "   
lv_im_option_organizer  TYPE SRMBOOLEAN, "   
lv_im_option_navigation  TYPE SRMBOOLEAN, "   
lv_im_organizer_sps_id  TYPE STRING, "   'SRM_SPS_ORGANIZER'
lv_im_organizer_rms_id  TYPE STRING. "   'S_RMS_DATA'

  CALL FUNCTION 'SRM_FW_INITIALIZE'  "
    EXPORTING
         IM_STARTING_REF = lv_im_starting_ref
         IM_ROOT_REF = lv_im_root_ref
         IM_GUI_TYPE = lv_im_gui_type
         IM_OPTION_ORGANIZER = lv_im_option_organizer
         IM_OPTION_NAVIGATION = lv_im_option_navigation
         IM_ORGANIZER_SPS_ID = lv_im_organizer_sps_id
         IM_ORGANIZER_RMS_ID = lv_im_organizer_rms_id
    IMPORTING
         EX_RESULT = lv_ex_result
         EX_ACTIVITY_STATE = lv_ex_activity_state
    EXCEPTIONS
        CX_SRM_FRAMEWORK = 1
. " SRM_FW_INITIALIZE




ABAP code using 7.40 inline data declarations to call FM SRM_FW_INITIALIZE

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.

 
 
 
 
 
 
 
 
DATA(ld_im_organizer_sps_id) = 'SRM_SPS_ORGANIZER'.
 
DATA(ld_im_organizer_rms_id) = 'S_RMS_DATA'.
 


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!