SAP FITP_CREATE_TRIP_FROM_REQUEST Function Module for









FITP_CREATE_TRIP_FROM_REQUEST is a standard fitp create trip from request 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 create trip from request FM, simply by entering the name FITP_CREATE_TRIP_FROM_REQUEST into the relevant SAP transaction such as SE37 or SE38.

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



Function FITP_CREATE_TRIP_FROM_REQUEST 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_CREATE_TRIP_FROM_REQUEST'"
EXPORTING
MOREI = "Trip Provision Variant
* I_FM_POSTING_DATE = "

IMPORTING
WA_HEAD = "General Trip Data
WA_PERIO = "Period Data of a Trip

CHANGING
WA_REQ_HEAD = "Framework Data of Travel Request

TABLES
T_REQ_HEAD = "Framework Data of Travel Request
T_REQUEST = "
T_REQ_REASON = "Reason for Travel Request
T_REQ_ACCOUNT = "Travel Request Cost Assignment
T_REQ_ADVANCE = "Travel Request Advance
T_USER = "Field String/Table for USER Screen

EXCEPTIONS
CREATION_FAILED = 1 ENQUEUE_FAILED = 2
.



IMPORTING Parameters details for FITP_CREATE_TRIP_FROM_REQUEST

MOREI - Trip Provision Variant

Data type: PTRV_HEAD-MOREI
Optional: No
Call by Reference: Yes

I_FM_POSTING_DATE -

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

EXPORTING Parameters details for FITP_CREATE_TRIP_FROM_REQUEST

WA_HEAD - General Trip Data

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

WA_PERIO - Period Data of a Trip

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

CHANGING Parameters details for FITP_CREATE_TRIP_FROM_REQUEST

WA_REQ_HEAD - Framework Data of Travel Request

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

TABLES Parameters details for FITP_CREATE_TRIP_FROM_REQUEST

T_REQ_HEAD - Framework Data of Travel Request

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

T_REQUEST -

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

T_REQ_REASON - Reason for Travel Request

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

T_REQ_ACCOUNT - Travel Request Cost Assignment

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

T_REQ_ADVANCE - Travel Request Advance

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

T_USER - Field String/Table for USER Screen

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

EXCEPTIONS details

CREATION_FAILED -

Data type:
Optional: No
Call by Reference: Yes

ENQUEUE_FAILED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FITP_CREATE_TRIP_FROM_REQUEST 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_morei  TYPE PTRV_HEAD-MOREI, "   
lv_wa_head  TYPE PTRV_HEAD, "   
lt_t_req_head  TYPE STANDARD TABLE OF FTPT_REQ_HEAD, "   
lv_wa_req_head  TYPE FTPT_REQ_HEAD, "   
lv_creation_failed  TYPE FTPT_REQ_HEAD, "   
lv_wa_perio  TYPE PTRV_PERIO, "   
lt_t_request  TYPE STANDARD TABLE OF FTPT_REQUEST, "   
lv_enqueue_failed  TYPE FTPT_REQUEST, "   
lv_i_fm_posting_date  TYPE FM_POSTING_DATE, "   
lt_t_req_reason  TYPE STANDARD TABLE OF FTPT_REQ_REASON, "   
lt_t_req_account  TYPE STANDARD TABLE OF FTPT_REQ_ACCOUNT, "   
lt_t_req_advance  TYPE STANDARD TABLE OF FTPT_REQ_ADVANCE, "   
lt_t_user  TYPE STANDARD TABLE OF PTK99. "   

  CALL FUNCTION 'FITP_CREATE_TRIP_FROM_REQUEST'  "
    EXPORTING
         MOREI = lv_morei
         I_FM_POSTING_DATE = lv_i_fm_posting_date
    IMPORTING
         WA_HEAD = lv_wa_head
         WA_PERIO = lv_wa_perio
    CHANGING
         WA_REQ_HEAD = lv_wa_req_head
    TABLES
         T_REQ_HEAD = lt_t_req_head
         T_REQUEST = lt_t_request
         T_REQ_REASON = lt_t_req_reason
         T_REQ_ACCOUNT = lt_t_req_account
         T_REQ_ADVANCE = lt_t_req_advance
         T_USER = lt_t_user
    EXCEPTIONS
        CREATION_FAILED = 1
        ENQUEUE_FAILED = 2
. " FITP_CREATE_TRIP_FROM_REQUEST




ABAP code using 7.40 inline data declarations to call FM FITP_CREATE_TRIP_FROM_REQUEST

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 MOREI FROM PTRV_HEAD INTO @DATA(ld_morei).
 
 
 
 
 
 
 
 
 
 
 
 
 


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!