SAP PTRM_WEB_SSC_SR_CREATE_ITIN Function Module for Launch Service Request UI for Itinerary
PTRM_WEB_SSC_SR_CREATE_ITIN is a standard ptrm web ssc sr create itin 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 for Itinerary 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 ptrm web ssc sr create itin FM, simply by entering the name PTRM_WEB_SSC_SR_CREATE_ITIN into the relevant SAP transaction such as SE37 or SE38.
Function Group: PTRM_WEB_SSC
Program Name: SAPLPTRM_WEB_SSC
Main Program: SAPLPTRM_WEB_SSC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function PTRM_WEB_SSC_SR_CREATE_ITIN 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 'PTRM_WEB_SSC_SR_CREATE_ITIN'"Launch Service Request UI for Itinerary.
EXPORTING
IV_ACTIVITY = "Shared Services Center: Activity
* IV_PERIOD_OPTION = "Period for ExpressExpenseSheet
* IT_MESSAGES = "Table with BAPI Return Information
IV_EMPLOYEE_NUMBER = "Personnel Number
* IV_TRIP_NUMBER = "Trip Number
* IT_ITINERARY = "Destinations of Trip
* IS_TRIP_GEN_DATA = "General Trip Data
* IT_ITINERARY_DEL = "Destinations of Trip
* IV_PERIOD_FROM = "Date
* IV_PERIOD_TO = "Date
IMPORTING
ET_BAPIRET = "Table with BAPI Return Information
EV_URL = "URL for service request creation page
IMPORTING Parameters details for PTRM_WEB_SSC_SR_CREATE_ITIN
IV_ACTIVITY - Shared Services Center: Activity
Data type: SSC_ELEMENTOptional: No
Call by Reference: No ( called with pass by value option)
IV_PERIOD_OPTION - Period for ExpressExpenseSheet
Data type: FITV_WEB_EES_PERIODOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_MESSAGES - Table with BAPI Return Information
Data type: BAPIRETTABOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_EMPLOYEE_NUMBER - Personnel Number
Data type: PERNR_DOptional: No
Call by Reference: No ( called with pass by value option)
IV_TRIP_NUMBER - Trip Number
Data type: REINROptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ITINERARY - Destinations of Trip
Data type: PTRV_WEB_ITINERARY_INT_TOptional: Yes
Call by Reference: No ( called with pass by value option)
IS_TRIP_GEN_DATA - General Trip Data
Data type: PTRV_WEB_GENERAL_DATA_INTOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_ITINERARY_DEL - Destinations of Trip
Data type: PTRV_WEB_ITINERARY_INT_TOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_PERIOD_FROM - Date
Data type: DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_PERIOD_TO - Date
Data type: DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for PTRM_WEB_SSC_SR_CREATE_ITIN
ET_BAPIRET - Table with BAPI Return Information
Data type: BAPIRETTABOptional: No
Call by Reference: No ( called with pass by value option)
EV_URL - URL for service request creation page
Data type: STRINGOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for PTRM_WEB_SSC_SR_CREATE_ITIN 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_bapiret | TYPE BAPIRETTAB, " | |||
| lv_iv_activity | TYPE SSC_ELEMENT, " | |||
| lv_iv_period_option | TYPE FITV_WEB_EES_PERIOD, " | |||
| lv_ev_url | TYPE STRING, " | |||
| lv_it_messages | TYPE BAPIRETTAB, " | |||
| lv_iv_employee_number | TYPE PERNR_D, " | |||
| lv_iv_trip_number | TYPE REINR, " | |||
| lv_it_itinerary | TYPE PTRV_WEB_ITINERARY_INT_T, " | |||
| lv_is_trip_gen_data | TYPE PTRV_WEB_GENERAL_DATA_INT, " | |||
| lv_it_itinerary_del | TYPE PTRV_WEB_ITINERARY_INT_T, " | |||
| lv_iv_period_from | TYPE DATUM, " | |||
| lv_iv_period_to | TYPE DATUM. " |
|   CALL FUNCTION 'PTRM_WEB_SSC_SR_CREATE_ITIN' "Launch Service Request UI for Itinerary |
| EXPORTING | ||
| IV_ACTIVITY | = lv_iv_activity | |
| IV_PERIOD_OPTION | = lv_iv_period_option | |
| IT_MESSAGES | = lv_it_messages | |
| IV_EMPLOYEE_NUMBER | = lv_iv_employee_number | |
| IV_TRIP_NUMBER | = lv_iv_trip_number | |
| IT_ITINERARY | = lv_it_itinerary | |
| IS_TRIP_GEN_DATA | = lv_is_trip_gen_data | |
| IT_ITINERARY_DEL | = lv_it_itinerary_del | |
| IV_PERIOD_FROM | = lv_iv_period_from | |
| IV_PERIOD_TO | = lv_iv_period_to | |
| IMPORTING | ||
| ET_BAPIRET | = lv_et_bapiret | |
| EV_URL | = lv_ev_url | |
| . " PTRM_WEB_SSC_SR_CREATE_ITIN | ||
ABAP code using 7.40 inline data declarations to call FM PTRM_WEB_SSC_SR_CREATE_ITIN
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.Search for further information about these or an SAP related objects