SAP SRM_START_FRAMEWORK_RFC Function Module for









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

Function Group: SRM_CLIENT
Program Name: SAPLSRM_CLIENT
Main Program: SAPLSRM_CLIENT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function SRM_START_FRAMEWORK_RFC 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_START_FRAMEWORK_RFC'"
EXPORTING
* IM_RMS_ID = "RMS ID
* IM_ORGANIZER_RMS_ID = 'S_RMS_DATA' "
* IM_CFW_SPS_ID = SRMIF_CLIENTFRAME_ID "Element Type ID
* IM_CONTEXT_ATTRIBUTES = "
* IM_SPS_ID = "Element Type ID
* IM_IS_MODEL = IF_SRM=>FALSE "
* IM_SP_POID = "SP POID
* IM_PDIR_ID = "PDIR ID
IM_ACTIVITY = "Activity
* IM_OPTION_ORGANIZER = IF_SRM=>TRUE "With Organizer
* IM_OPTION_NAVIGATION = IF_SRM=>TRUE "With Navigation
* IM_ORGANIZER_SPS_ID = 'SRM_SPS_ORGANIZER' "

IMPORTING
EX_RESULT_ACTIVITY_STATE = "Result Activity State (->IF_SRM_REQUEST)
EX_RESULT_SP_POID = "
EX_RESULT_SPS_ID = "
EX_RESULT_RMS_ID = "
EX_RESULT_IS_MODEL = "
EX_FAILURE_REASON = "

EXCEPTIONS
SRM_FAILURE = 1 AUTHORIZATION_FAILURE = 2
.



IMPORTING Parameters details for SRM_START_FRAMEWORK_RFC

IM_RMS_ID - RMS ID

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

IM_ORGANIZER_RMS_ID -

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

IM_CFW_SPS_ID - Element Type ID

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

IM_CONTEXT_ATTRIBUTES -

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

IM_SPS_ID - Element Type ID

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

IM_IS_MODEL -

Data type: SRMBOOLEAN
Default: IF_SRM=>FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_SP_POID - SP POID

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

IM_PDIR_ID - PDIR ID

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

IM_ACTIVITY - Activity

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

IM_OPTION_ORGANIZER - With Organizer

Data type: SRMBOOLEAN
Default: IF_SRM=>TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_OPTION_NAVIGATION - With Navigation

Data type: SRMBOOLEAN
Default: IF_SRM=>TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IM_ORGANIZER_SPS_ID -

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

EXPORTING Parameters details for SRM_START_FRAMEWORK_RFC

EX_RESULT_ACTIVITY_STATE - Result Activity State (->IF_SRM_REQUEST)

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

EX_RESULT_SP_POID -

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

EX_RESULT_SPS_ID -

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

EX_RESULT_RMS_ID -

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

EX_RESULT_IS_MODEL -

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

EX_FAILURE_REASON -

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

EXCEPTIONS details

SRM_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

AUTHORIZATION_FAILURE -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SRM_START_FRAMEWORK_RFC 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_im_rms_id  TYPE STRING, "   
lv_srm_failure  TYPE STRING, "   
lv_ex_result_activity_state  TYPE I, "   
lv_im_organizer_rms_id  TYPE SRMRMSID, "   'S_RMS_DATA'
lv_im_cfw_sps_id  TYPE SRMSPSID, "   SRMIF_CLIENTFRAME_ID
lv_im_context_attributes  TYPE RCM_CONTEXT_ATTRIBUTES_RFC, "   
lv_im_sps_id  TYPE SRMSPSID, "   
lv_ex_result_sp_poid  TYPE SRM_LIST_POID, "   
lv_authorization_failure  TYPE SRM_LIST_POID, "   
lv_im_is_model  TYPE SRMBOOLEAN, "   IF_SRM=>FALSE
lv_ex_result_sps_id  TYPE SRMSPSID, "   
lv_im_sp_poid  TYPE SRM_LIST_POID, "   
lv_ex_result_rms_id  TYPE SRMSPSID, "   
lv_im_pdir_id  TYPE SRMPOIDID, "   
lv_ex_result_is_model  TYPE SRMBOOLEAN, "   
lv_im_activity  TYPE SRMACTID, "   
lv_ex_failure_reason  TYPE STRING, "   
lv_im_option_organizer  TYPE SRMBOOLEAN, "   IF_SRM=>TRUE
lv_im_option_navigation  TYPE SRMBOOLEAN, "   IF_SRM=>TRUE
lv_im_organizer_sps_id  TYPE SRMSPSID. "   'SRM_SPS_ORGANIZER'

  CALL FUNCTION 'SRM_START_FRAMEWORK_RFC'  "
    EXPORTING
         IM_RMS_ID = lv_im_rms_id
         IM_ORGANIZER_RMS_ID = lv_im_organizer_rms_id
         IM_CFW_SPS_ID = lv_im_cfw_sps_id
         IM_CONTEXT_ATTRIBUTES = lv_im_context_attributes
         IM_SPS_ID = lv_im_sps_id
         IM_IS_MODEL = lv_im_is_model
         IM_SP_POID = lv_im_sp_poid
         IM_PDIR_ID = lv_im_pdir_id
         IM_ACTIVITY = lv_im_activity
         IM_OPTION_ORGANIZER = lv_im_option_organizer
         IM_OPTION_NAVIGATION = lv_im_option_navigation
         IM_ORGANIZER_SPS_ID = lv_im_organizer_sps_id
    IMPORTING
         EX_RESULT_ACTIVITY_STATE = lv_ex_result_activity_state
         EX_RESULT_SP_POID = lv_ex_result_sp_poid
         EX_RESULT_SPS_ID = lv_ex_result_sps_id
         EX_RESULT_RMS_ID = lv_ex_result_rms_id
         EX_RESULT_IS_MODEL = lv_ex_result_is_model
         EX_FAILURE_REASON = lv_ex_failure_reason
    EXCEPTIONS
        SRM_FAILURE = 1
        AUTHORIZATION_FAILURE = 2
. " SRM_START_FRAMEWORK_RFC




ABAP code using 7.40 inline data declarations to call FM SRM_START_FRAMEWORK_RFC

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_rms_id) = 'S_RMS_DATA'.
 
DATA(ld_im_cfw_sps_id) = SRMIF_CLIENTFRAME_ID.
 
 
 
 
 
DATA(ld_im_is_model) = IF_SRM=>FALSE.
 
 
 
 
 
 
 
 
DATA(ld_im_option_organizer) = IF_SRM=>TRUE.
 
DATA(ld_im_option_navigation) = IF_SRM=>TRUE.
 
DATA(ld_im_organizer_sps_id) = 'SRM_SPS_ORGANIZER'.
 


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!