SAP FITP_RETRIEVE_PNR Function Module for
FITP_RETRIEVE_PNR is a standard fitp retrieve pnr 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 fitp retrieve pnr FM, simply by entering the name FITP_RETRIEVE_PNR into the relevant SAP transaction such as SE37 or SE38.
Function Group: FITP_TRPL
Program Name: SAPLFITP_TRPL
Main Program: SAPLFITP_TRPL
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FITP_RETRIEVE_PNR 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 'FITP_RETRIEVE_PNR'".
EXPORTING
VARIANT = "
RECORD_LOCATOR = "
OPERATION_MODE = "
* SW_PORTAL = "
IMPORTING
T_RETURN = "
TABLES
PNR_MAIN_OUT = "
PNR_FOP_OUT = "
PNR_REMARKS_OUT = "
PNR_FQTV_OUT = "
PNR_SEAT_OUT = "
PNR_SEAT_DETAILS_OUT = "
PNR_MISC_SSR_OUT = "
PNR_OSI_OUT = "
PNR_TK_ELEMENT_OUT = "
PNR_SEGMENT_ASSOCIATION = "
PNR_ACKNOWLEDGEMENT = "
PNR_NAME_OUT = "
PNR_FLIGHT_OUT = "
PNR_HOTEL_OUT = "
PNR_CAR_OUT = "
PNR_OTHER_SERVICE_OUT = "
PNR_AUXILIARY_OUT = "
PNR_ADDRESS_OUT = "
PNR_PHONE_OUT = "
EXCEPTIONS
NO_PNR_FOUND = 1 GENERAL_API_ERROR = 2 APPLICATION_API_ERROR = 3 SEGMENT_SELL_UNSTABLE = 4 NO_DESTINATION_FOUND = 5 NO_VALID_VARIANT = 6 CONNECTION_ERROR = 7 RFC_ERROR = 8
IMPORTING Parameters details for FITP_RETRIEVE_PNR
VARIANT -
Data type: FTPT_VARIANT-VARIANTOptional: No
Call by Reference: No ( called with pass by value option)
RECORD_LOCATOR -
Data type: FTPT_VARIANT-REC_LOCATOROptional: No
Call by Reference: No ( called with pass by value option)
OPERATION_MODE -
Data type: FTPS_API-ERROR_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
SW_PORTAL -
Data type: CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FITP_RETRIEVE_PNR
T_RETURN -
Data type: BAPIRETTABOptional: No
Call by Reference: Yes
TABLES Parameters details for FITP_RETRIEVE_PNR
PNR_MAIN_OUT -
Data type: FTPS_API_PNR_MAINOptional: No
Call by Reference: No ( called with pass by value option)
PNR_FOP_OUT -
Data type: FTPS_API_PNR_FOPOptional: No
Call by Reference: No ( called with pass by value option)
PNR_REMARKS_OUT -
Data type: FTPS_API_PNR_REMARKSOptional: No
Call by Reference: No ( called with pass by value option)
PNR_FQTV_OUT -
Data type: FTPS_API_PNR_FQTVOptional: No
Call by Reference: No ( called with pass by value option)
PNR_SEAT_OUT -
Data type: FTPS_API_PNR_SEATOptional: No
Call by Reference: No ( called with pass by value option)
PNR_SEAT_DETAILS_OUT -
Data type: FTPS_API_PNR_SEAT_DETAILSOptional: No
Call by Reference: No ( called with pass by value option)
PNR_MISC_SSR_OUT -
Data type: FTPS_API_PNR_SSR_MISCOptional: No
Call by Reference: No ( called with pass by value option)
PNR_OSI_OUT -
Data type: FTPS_API_PNR_OSIOptional: No
Call by Reference: No ( called with pass by value option)
PNR_TK_ELEMENT_OUT -
Data type: FTPS_API_PNR_TK_ELEMOptional: No
Call by Reference: No ( called with pass by value option)
PNR_SEGMENT_ASSOCIATION -
Data type: FTPS_API_PNR_SEG_ASSOCOptional: No
Call by Reference: No ( called with pass by value option)
PNR_ACKNOWLEDGEMENT -
Data type: FTPS_API_PNR_ACK_DATAOptional: No
Call by Reference: No ( called with pass by value option)
PNR_NAME_OUT -
Data type: FTPS_API_PNR_NAMEOptional: No
Call by Reference: No ( called with pass by value option)
PNR_FLIGHT_OUT -
Data type: FTPS_API_PNR_FLIGHTOptional: No
Call by Reference: No ( called with pass by value option)
PNR_HOTEL_OUT -
Data type: FTPS_API_PNR_HOTELOptional: No
Call by Reference: No ( called with pass by value option)
PNR_CAR_OUT -
Data type: FTPS_API_PNR_CAROptional: No
Call by Reference: No ( called with pass by value option)
PNR_OTHER_SERVICE_OUT -
Data type: FTPS_API_PNR_OTHER_SERVICEOptional: No
Call by Reference: No ( called with pass by value option)
PNR_AUXILIARY_OUT -
Data type: FTPS_API_PNR_AUXILIARYOptional: No
Call by Reference: No ( called with pass by value option)
PNR_ADDRESS_OUT -
Data type: FTPS_API_PNR_ADDRESSOptional: No
Call by Reference: No ( called with pass by value option)
PNR_PHONE_OUT -
Data type: FTPS_API_PNR_PHONEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_PNR_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
GENERAL_API_ERROR - General API error
Data type:Optional: No
Call by Reference: Yes
APPLICATION_API_ERROR -
Data type:Optional: No
Call by Reference: Yes
SEGMENT_SELL_UNSTABLE -
Data type:Optional: No
Call by Reference: Yes
NO_DESTINATION_FOUND - No RFC destination found
Data type:Optional: No
Call by Reference: Yes
NO_VALID_VARIANT -
Data type:Optional: No
Call by Reference: Yes
CONNECTION_ERROR - Error when setting up connection
Data type:Optional: No
Call by Reference: Yes
RFC_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FITP_RETRIEVE_PNR 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_variant | TYPE FTPT_VARIANT-VARIANT, " | |||
| lv_t_return | TYPE BAPIRETTAB, " | |||
| lv_no_pnr_found | TYPE BAPIRETTAB, " | |||
| lt_pnr_main_out | TYPE STANDARD TABLE OF FTPS_API_PNR_MAIN, " | |||
| lt_pnr_fop_out | TYPE STANDARD TABLE OF FTPS_API_PNR_FOP, " | |||
| lt_pnr_remarks_out | TYPE STANDARD TABLE OF FTPS_API_PNR_REMARKS, " | |||
| lt_pnr_fqtv_out | TYPE STANDARD TABLE OF FTPS_API_PNR_FQTV, " | |||
| lt_pnr_seat_out | TYPE STANDARD TABLE OF FTPS_API_PNR_SEAT, " | |||
| lt_pnr_seat_details_out | TYPE STANDARD TABLE OF FTPS_API_PNR_SEAT_DETAILS, " | |||
| lt_pnr_misc_ssr_out | TYPE STANDARD TABLE OF FTPS_API_PNR_SSR_MISC, " | |||
| lt_pnr_osi_out | TYPE STANDARD TABLE OF FTPS_API_PNR_OSI, " | |||
| lt_pnr_tk_element_out | TYPE STANDARD TABLE OF FTPS_API_PNR_TK_ELEM, " | |||
| lt_pnr_segment_association | TYPE STANDARD TABLE OF FTPS_API_PNR_SEG_ASSOC, " | |||
| lt_pnr_acknowledgement | TYPE STANDARD TABLE OF FTPS_API_PNR_ACK_DATA, " | |||
| lt_pnr_name_out | TYPE STANDARD TABLE OF FTPS_API_PNR_NAME, " | |||
| lv_record_locator | TYPE FTPT_VARIANT-REC_LOCATOR, " | |||
| lv_general_api_error | TYPE FTPT_VARIANT, " | |||
| lv_operation_mode | TYPE FTPS_API-ERROR_TYPE, " | |||
| lt_pnr_flight_out | TYPE STANDARD TABLE OF FTPS_API_PNR_FLIGHT, " | |||
| lv_application_api_error | TYPE FTPS_API_PNR_FLIGHT, " | |||
| lv_sw_portal | TYPE CHAR1, " | |||
| lt_pnr_hotel_out | TYPE STANDARD TABLE OF FTPS_API_PNR_HOTEL, " | |||
| lv_segment_sell_unstable | TYPE FTPS_API_PNR_HOTEL, " | |||
| lt_pnr_car_out | TYPE STANDARD TABLE OF FTPS_API_PNR_CAR, " | |||
| lv_no_destination_found | TYPE FTPS_API_PNR_CAR, " | |||
| lv_no_valid_variant | TYPE FTPS_API_PNR_CAR, " | |||
| lt_pnr_other_service_out | TYPE STANDARD TABLE OF FTPS_API_PNR_OTHER_SERVICE, " | |||
| lv_connection_error | TYPE FTPS_API_PNR_OTHER_SERVICE, " | |||
| lt_pnr_auxiliary_out | TYPE STANDARD TABLE OF FTPS_API_PNR_AUXILIARY, " | |||
| lv_rfc_error | TYPE FTPS_API_PNR_AUXILIARY, " | |||
| lt_pnr_address_out | TYPE STANDARD TABLE OF FTPS_API_PNR_ADDRESS, " | |||
| lt_pnr_phone_out | TYPE STANDARD TABLE OF FTPS_API_PNR_PHONE. " |
|   CALL FUNCTION 'FITP_RETRIEVE_PNR' " |
| EXPORTING | ||
| VARIANT | = lv_variant | |
| RECORD_LOCATOR | = lv_record_locator | |
| OPERATION_MODE | = lv_operation_mode | |
| SW_PORTAL | = lv_sw_portal | |
| IMPORTING | ||
| T_RETURN | = lv_t_return | |
| TABLES | ||
| PNR_MAIN_OUT | = lt_pnr_main_out | |
| PNR_FOP_OUT | = lt_pnr_fop_out | |
| PNR_REMARKS_OUT | = lt_pnr_remarks_out | |
| PNR_FQTV_OUT | = lt_pnr_fqtv_out | |
| PNR_SEAT_OUT | = lt_pnr_seat_out | |
| PNR_SEAT_DETAILS_OUT | = lt_pnr_seat_details_out | |
| PNR_MISC_SSR_OUT | = lt_pnr_misc_ssr_out | |
| PNR_OSI_OUT | = lt_pnr_osi_out | |
| PNR_TK_ELEMENT_OUT | = lt_pnr_tk_element_out | |
| PNR_SEGMENT_ASSOCIATION | = lt_pnr_segment_association | |
| PNR_ACKNOWLEDGEMENT | = lt_pnr_acknowledgement | |
| PNR_NAME_OUT | = lt_pnr_name_out | |
| PNR_FLIGHT_OUT | = lt_pnr_flight_out | |
| PNR_HOTEL_OUT | = lt_pnr_hotel_out | |
| PNR_CAR_OUT | = lt_pnr_car_out | |
| PNR_OTHER_SERVICE_OUT | = lt_pnr_other_service_out | |
| PNR_AUXILIARY_OUT | = lt_pnr_auxiliary_out | |
| PNR_ADDRESS_OUT | = lt_pnr_address_out | |
| PNR_PHONE_OUT | = lt_pnr_phone_out | |
| EXCEPTIONS | ||
| NO_PNR_FOUND = 1 | ||
| GENERAL_API_ERROR = 2 | ||
| APPLICATION_API_ERROR = 3 | ||
| SEGMENT_SELL_UNSTABLE = 4 | ||
| NO_DESTINATION_FOUND = 5 | ||
| NO_VALID_VARIANT = 6 | ||
| CONNECTION_ERROR = 7 | ||
| RFC_ERROR = 8 | ||
| . " FITP_RETRIEVE_PNR | ||
ABAP code using 7.40 inline data declarations to call FM FITP_RETRIEVE_PNR
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 VARIANT FROM FTPT_VARIANT INTO @DATA(ld_variant). | ||||
| "SELECT single REC_LOCATOR FROM FTPT_VARIANT INTO @DATA(ld_record_locator). | ||||
| "SELECT single ERROR_TYPE FROM FTPS_API INTO @DATA(ld_operation_mode). | ||||
Search for further information about these or an SAP related objects