SAP SSC_SR_PERSIST_CREATE_MANUALLY Function Module for Launch Service Request UI in create mode









SSC_SR_PERSIST_CREATE_MANUALLY is a standard ssc sr persist create manually SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Launch Service Request UI in create mode 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 ssc sr persist create manually FM, simply by entering the name SSC_SR_PERSIST_CREATE_MANUALLY into the relevant SAP transaction such as SE37 or SE38.

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



Function SSC_SR_PERSIST_CREATE_MANUALLY 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 'SSC_SR_PERSIST_CREATE_MANUALLY'"Launch Service Request UI in create mode
EXPORTING
IS_APPLICATION_CONTEXT = "Application Context for parameters transfer to CRM SR.
* IX_OVERWRITE_TARGET = ABAP_TRUE "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* IT_STATUS = "Shared Service Center: Status inserting table
* IV_BUSINESS_ROLE = "Business Role
IS_APPLICATION_PERSISTENCE = "Application Context which needs to be saved into Persistence
* IX_SHOW_EXISTING_SR = ABAP_TRUE "Boolean Variable (X=True, -=False, Space=Unknown)
* IX_CLOSED_SR = ABAP_UNDEFINED "
* IX_CHIP_SR = ABAP_FALSE "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* IT_ACTIVITY = "Shared Service Center: Activity inserting table
* IT_SRV_REQ_H = "Shared Service Center: Service Request Header inserting tab
* IS_SCREENSHOT = "Screenshot Image Data Structure
* IT_SERVICE_OS = "Shared Service Center: Subject inserting table

IMPORTING
ET_MESSAGES = "Table with BAPI Return Information
EV_URL = "
.



IMPORTING Parameters details for SSC_SR_PERSIST_CREATE_MANUALLY

IS_APPLICATION_CONTEXT - Application Context for parameters transfer to CRM SR.

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

IX_OVERWRITE_TARGET - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

Data type: BOOLE_D
Default: ABAP_TRUE
Optional: Yes
Call by Reference: Yes

IT_STATUS - Shared Service Center: Status inserting table

Data type: SSC_T_SRVREQ_STATUS_INS
Optional: Yes
Call by Reference: Yes

IV_BUSINESS_ROLE - Business Role

Data type: CRMT_UI_PROFILE
Optional: Yes
Call by Reference: Yes

IS_APPLICATION_PERSISTENCE - Application Context which needs to be saved into Persistence

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

IX_SHOW_EXISTING_SR - Boolean Variable (X=True, -=False, Space=Unknown)

Data type: BOOLE_D
Default: ABAP_TRUE
Optional: Yes
Call by Reference: Yes

IX_CLOSED_SR -

Data type: ABAP_BOOL
Default: ABAP_UNDEFINED
Optional: Yes
Call by Reference: Yes

IX_CHIP_SR - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

Data type: BOOLE_D
Default: ABAP_FALSE
Optional: Yes
Call by Reference: Yes

IT_ACTIVITY - Shared Service Center: Activity inserting table

Data type: SSC_T_SRVREQ_ACTIVITY_INS
Optional: Yes
Call by Reference: Yes

IT_SRV_REQ_H - Shared Service Center: Service Request Header inserting tab

Data type: SSC_T_SERVICE_REQUEST_H_INS
Optional: Yes
Call by Reference: Yes

IS_SCREENSHOT - Screenshot Image Data Structure

Data type: SSC_S_SCREENSHOT
Optional: Yes
Call by Reference: Yes

IT_SERVICE_OS - Shared Service Center: Subject inserting table

Data type: SSC_T_SRVREQ_SERVICE_OS_INS
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for SSC_SR_PERSIST_CREATE_MANUALLY

ET_MESSAGES - Table with BAPI Return Information

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

EV_URL -

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

Copy and paste ABAP code example for SSC_SR_PERSIST_CREATE_MANUALLY 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_et_messages  TYPE BAPIRETTAB, "   
lv_is_application_context  TYPE SSC_S_APPLICATION_CONTEXT, "   
lv_ix_overwrite_target  TYPE BOOLE_D, "   ABAP_TRUE
lv_it_status  TYPE SSC_T_SRVREQ_STATUS_INS, "   
lv_iv_business_role  TYPE CRMT_UI_PROFILE, "   
lv_ev_url  TYPE STRING, "   
lv_is_application_persistence  TYPE SSC_S_APPLICATION_PERSISTENCE, "   
lv_ix_show_existing_sr  TYPE BOOLE_D, "   ABAP_TRUE
lv_ix_closed_sr  TYPE ABAP_BOOL, "   ABAP_UNDEFINED
lv_ix_chip_sr  TYPE BOOLE_D, "   ABAP_FALSE
lv_it_activity  TYPE SSC_T_SRVREQ_ACTIVITY_INS, "   
lv_it_srv_req_h  TYPE SSC_T_SERVICE_REQUEST_H_INS, "   
lv_is_screenshot  TYPE SSC_S_SCREENSHOT, "   
lv_it_service_os  TYPE SSC_T_SRVREQ_SERVICE_OS_INS. "   

  CALL FUNCTION 'SSC_SR_PERSIST_CREATE_MANUALLY'  "Launch Service Request UI in create mode
    EXPORTING
         IS_APPLICATION_CONTEXT = lv_is_application_context
         IX_OVERWRITE_TARGET = lv_ix_overwrite_target
         IT_STATUS = lv_it_status
         IV_BUSINESS_ROLE = lv_iv_business_role
         IS_APPLICATION_PERSISTENCE = lv_is_application_persistence
         IX_SHOW_EXISTING_SR = lv_ix_show_existing_sr
         IX_CLOSED_SR = lv_ix_closed_sr
         IX_CHIP_SR = lv_ix_chip_sr
         IT_ACTIVITY = lv_it_activity
         IT_SRV_REQ_H = lv_it_srv_req_h
         IS_SCREENSHOT = lv_is_screenshot
         IT_SERVICE_OS = lv_it_service_os
    IMPORTING
         ET_MESSAGES = lv_et_messages
         EV_URL = lv_ev_url
. " SSC_SR_PERSIST_CREATE_MANUALLY




ABAP code using 7.40 inline data declarations to call FM SSC_SR_PERSIST_CREATE_MANUALLY

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_ix_overwrite_target) = ABAP_TRUE.
 
 
 
 
 
DATA(ld_ix_show_existing_sr) = ABAP_TRUE.
 
DATA(ld_ix_closed_sr) = ABAP_UNDEFINED.
 
DATA(ld_ix_chip_sr) = ABAP_FALSE.
 
 
 
 
 


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!