SAP TP_1A_CREATE_PREFERENCES Function Module for









TP_1A_CREATE_PREFERENCES is a standard tp 1a create preferences 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 tp 1a create preferences FM, simply by entering the name TP_1A_CREATE_PREFERENCES into the relevant SAP transaction such as SE37 or SE38.

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



Function TP_1A_CREATE_PREFERENCES 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 'TP_1A_CREATE_PREFERENCES'"
EXPORTING
CONNECT_PARAM = "Assignment Parameters for Preference Synchronization
OTA_CUSTOMER = "Preference Synchronization: Customer Data
OTA_ADDRESS = "Preference Synchronization: Address Data
OTA_DIRECTBILL = "Preference Synchronization: Invoice Address
OTA_AIRLINEPREF = "Preference Synchronization: Flight Preferences
OTA_HOTELPREF = "Preference Synchronization: Hotel Preferences
OTA_VEHICLERENTALPREF = "Preference Synchronization: Rental Car Preferences
OTA_COMMONPREF = "Preference Synchronization: Language Preferences

CHANGING
PERNR_UPD = "Control Parameters For GDS Profile Synchronization
OTA_AFFILIATIONS = "Preference Synchronization: Company ID

TABLES
OTA_TELEPHONEINFO_TAB = "Preference Synchronization: Telephone Data Table
OTA_VEHICLELOYALTYRPH_TAB = "Preference Synchronization: Hotel Chain Preference
OTA_VEHICLECOMPANYCD_TAB = "Preference Synchronization: Hotel Loyalty Program - Table
OTA_OTHERSRVCPREF_TAB = "Preference Synchronization:Further Service Preferences Table
OTA_EMAIL_TAB = "Preference Synchronization: Email Table
OTA_COSTCENTER_TAB = "Preference Synchronization: Cost Center Table
OTA_CREDITCARD_TAB = "Preference Synchronization: Credit Cards
OTA_CUSTLOYALTY_TAB = "Preference Synchronization: Customer Loyalty Program Table
OTA_AIRLINELOYALTYRPH_TAB = "Preference Synchronization: Car Rental Providers Table
OTA_AIRSSR_TAB = "Preference Synchronization: Car Rental Loyalty Program Table
OTA_HOTELLOYALTYRPH_TAB = "Preference Synchronization: Customer Programs Flight - Table
OTA_HOTELCOMPANYCODE_TAB = "Preference Synchronization: Flight Preferences Table
.



IMPORTING Parameters details for TP_1A_CREATE_PREFERENCES

CONNECT_PARAM - Assignment Parameters for Preference Synchronization

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

OTA_CUSTOMER - Preference Synchronization: Customer Data

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

OTA_ADDRESS - Preference Synchronization: Address Data

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

OTA_DIRECTBILL - Preference Synchronization: Invoice Address

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

OTA_AIRLINEPREF - Preference Synchronization: Flight Preferences

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

OTA_HOTELPREF - Preference Synchronization: Hotel Preferences

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

OTA_VEHICLERENTALPREF - Preference Synchronization: Rental Car Preferences

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

OTA_COMMONPREF - Preference Synchronization: Language Preferences

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

CHANGING Parameters details for TP_1A_CREATE_PREFERENCES

PERNR_UPD - Control Parameters For GDS Profile Synchronization

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

OTA_AFFILIATIONS - Preference Synchronization: Company ID

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

TABLES Parameters details for TP_1A_CREATE_PREFERENCES

OTA_TELEPHONEINFO_TAB - Preference Synchronization: Telephone Data Table

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

OTA_VEHICLELOYALTYRPH_TAB - Preference Synchronization: Hotel Chain Preference

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

OTA_VEHICLECOMPANYCD_TAB - Preference Synchronization: Hotel Loyalty Program - Table

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

OTA_OTHERSRVCPREF_TAB - Preference Synchronization:Further Service Preferences Table

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

OTA_EMAIL_TAB - Preference Synchronization: Email Table

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

OTA_COSTCENTER_TAB - Preference Synchronization: Cost Center Table

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

OTA_CREDITCARD_TAB - Preference Synchronization: Credit Cards

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

OTA_CUSTLOYALTY_TAB - Preference Synchronization: Customer Loyalty Program Table

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

OTA_AIRLINELOYALTYRPH_TAB - Preference Synchronization: Car Rental Providers Table

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

OTA_AIRSSR_TAB - Preference Synchronization: Car Rental Loyalty Program Table

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

OTA_HOTELLOYALTYRPH_TAB - Preference Synchronization: Customer Programs Flight - Table

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

OTA_HOTELCOMPANYCODE_TAB - Preference Synchronization: Flight Preferences Table

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

Copy and paste ABAP code example for TP_1A_CREATE_PREFERENCES 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_pernr_upd  TYPE FTPS_PERNR_UPD, "   
lv_connect_param  TYPE TA23PROFILE_SYNC, "   
lt_ota_telephoneinfo_tab  TYPE STANDARD TABLE OF FTPS_OTA_TELEPHONEINFO_TAB, "   
lt_ota_vehicleloyaltyrph_tab  TYPE STANDARD TABLE OF FTPS_OTA_VEHICLELOYALTYRPH_TAB, "   
lt_ota_vehiclecompanycd_tab  TYPE STANDARD TABLE OF FTPS_OTA_VEHICLECOMPANYCD_TAB, "   
lt_ota_othersrvcpref_tab  TYPE STANDARD TABLE OF FTPS_OTA_OTHERSRVCPREF_TAB, "   
lv_ota_customer  TYPE FTPS_OTA_CUSTOMER, "   
lt_ota_email_tab  TYPE STANDARD TABLE OF FTPS_OTA_EMAIL_TAB, "   
lv_ota_affiliations  TYPE FTPS_OTA_AFFILIATIONS, "   
lv_ota_address  TYPE FTPS_OTA_ADDRESS, "   
lt_ota_costcenter_tab  TYPE STANDARD TABLE OF FTPS_OTA_COSTCENTER_TAB, "   
lv_ota_directbill  TYPE FTPS_OTA_DIRECTBILL, "   
lt_ota_creditcard_tab  TYPE STANDARD TABLE OF FTPS_OTA_CREDITCARD_TAB, "   
lv_ota_airlinepref  TYPE FTPS_OTA_AIRLINEPREF, "   
lt_ota_custloyalty_tab  TYPE STANDARD TABLE OF FTPS_OTA_CUSTLOYALTY_TAB, "   
lv_ota_hotelpref  TYPE FTPS_OTA_HOTELPREF, "   
lt_ota_airlineloyaltyrph_tab  TYPE STANDARD TABLE OF FTPS_OTA_AIRLINELOYALTYRPH_TAB, "   
lt_ota_airssr_tab  TYPE STANDARD TABLE OF FTPS_OTA_AIRSSR_TAB, "   
lv_ota_vehiclerentalpref  TYPE FTPS_OTA_VEHICLERENTALPREF, "   
lv_ota_commonpref  TYPE FTPS_OTA_COMMONPREF, "   
lt_ota_hotelloyaltyrph_tab  TYPE STANDARD TABLE OF FTPS_OTA_HOTELLOYALTYRPH_TAB, "   
lt_ota_hotelcompanycode_tab  TYPE STANDARD TABLE OF FTPS_OTA_HOTELCOMPANYCODE_TAB. "   

  CALL FUNCTION 'TP_1A_CREATE_PREFERENCES'  "
    EXPORTING
         CONNECT_PARAM = lv_connect_param
         OTA_CUSTOMER = lv_ota_customer
         OTA_ADDRESS = lv_ota_address
         OTA_DIRECTBILL = lv_ota_directbill
         OTA_AIRLINEPREF = lv_ota_airlinepref
         OTA_HOTELPREF = lv_ota_hotelpref
         OTA_VEHICLERENTALPREF = lv_ota_vehiclerentalpref
         OTA_COMMONPREF = lv_ota_commonpref
    CHANGING
         PERNR_UPD = lv_pernr_upd
         OTA_AFFILIATIONS = lv_ota_affiliations
    TABLES
         OTA_TELEPHONEINFO_TAB = lt_ota_telephoneinfo_tab
         OTA_VEHICLELOYALTYRPH_TAB = lt_ota_vehicleloyaltyrph_tab
         OTA_VEHICLECOMPANYCD_TAB = lt_ota_vehiclecompanycd_tab
         OTA_OTHERSRVCPREF_TAB = lt_ota_othersrvcpref_tab
         OTA_EMAIL_TAB = lt_ota_email_tab
         OTA_COSTCENTER_TAB = lt_ota_costcenter_tab
         OTA_CREDITCARD_TAB = lt_ota_creditcard_tab
         OTA_CUSTLOYALTY_TAB = lt_ota_custloyalty_tab
         OTA_AIRLINELOYALTYRPH_TAB = lt_ota_airlineloyaltyrph_tab
         OTA_AIRSSR_TAB = lt_ota_airssr_tab
         OTA_HOTELLOYALTYRPH_TAB = lt_ota_hotelloyaltyrph_tab
         OTA_HOTELCOMPANYCODE_TAB = lt_ota_hotelcompanycode_tab
. " TP_1A_CREATE_PREFERENCES




ABAP code using 7.40 inline data declarations to call FM TP_1A_CREATE_PREFERENCES

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



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!