SAP TRIPS_LIST_PERIO_HEAD Function Module for









TRIPS_LIST_PERIO_HEAD is a standard trips list perio head 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 trips list perio head FM, simply by entering the name TRIPS_LIST_PERIO_HEAD into the relevant SAP transaction such as SE37 or SE38.

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



Function TRIPS_LIST_PERIO_HEAD 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 'TRIPS_LIST_PERIO_HEAD'"
EXPORTING
EMPLOYEENUMBER = "Personnel Number
OLD_VERSIONS = "Indicator for read of old versions
* I_SHOW_TRIPS_FROM_DATE = "
* I_PRESELECTION = ' ' "
* I_LOG_ERROR = ' ' "
* I_ALSO_COMP_PERIODS = ' ' "

IMPORTING
NO_TRIPS = "Indicator for existence of trips

TABLES
PERIO = "Period-dependent trip data
HEAD = "Period-independent trip data
* ET_LOGGED_ERRORS = "

EXCEPTIONS
TABLE_PERIO_READ_ERROR = 1 TABLE_HEAD_READ_ERROR = 2 TABLES_INCONSISTENT = 3
.



IMPORTING Parameters details for TRIPS_LIST_PERIO_HEAD

EMPLOYEENUMBER - Personnel Number

Data type: PTP42-PERNR
Optional: No
Call by Reference: No ( called with pass by value option)

OLD_VERSIONS - Indicator for read of old versions

Data type: PTPRW-OLD_VERSIONS
Optional: No
Call by Reference: No ( called with pass by value option)

I_SHOW_TRIPS_FROM_DATE -

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

I_PRESELECTION -

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_LOG_ERROR -

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_ALSO_COMP_PERIODS -

Data type: XFELD
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for TRIPS_LIST_PERIO_HEAD

NO_TRIPS - Indicator for existence of trips

Data type: PTPRW-NO_TRIPS
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for TRIPS_LIST_PERIO_HEAD

PERIO - Period-dependent trip data

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

HEAD - Period-independent trip data

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

ET_LOGGED_ERRORS -

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

EXCEPTIONS details

TABLE_PERIO_READ_ERROR - Error during read of table PTRV_PERIO

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

TABLE_HEAD_READ_ERROR - Error during read of table PTRV_HEAD

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

TABLES_INCONSISTENT - Inconsistent table content

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

Copy and paste ABAP code example for TRIPS_LIST_PERIO_HEAD 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:
lt_perio  TYPE STANDARD TABLE OF PTP42, "   
lv_no_trips  TYPE PTPRW-NO_TRIPS, "   
lv_employeenumber  TYPE PTP42-PERNR, "   
lv_table_perio_read_error  TYPE PTP42, "   
lt_head  TYPE STANDARD TABLE OF PTP02, "   
lv_old_versions  TYPE PTPRW-OLD_VERSIONS, "   
lv_table_head_read_error  TYPE PTPRW, "   
lt_et_logged_errors  TYPE STANDARD TABLE OF BAPIRET2_T, "   
lv_tables_inconsistent  TYPE BAPIRET2_T, "   
lv_i_show_trips_from_date  TYPE DATUM, "   
lv_i_preselection  TYPE XFELD, "   SPACE
lv_i_log_error  TYPE XFELD, "   SPACE
lv_i_also_comp_periods  TYPE XFELD. "   SPACE

  CALL FUNCTION 'TRIPS_LIST_PERIO_HEAD'  "
    EXPORTING
         EMPLOYEENUMBER = lv_employeenumber
         OLD_VERSIONS = lv_old_versions
         I_SHOW_TRIPS_FROM_DATE = lv_i_show_trips_from_date
         I_PRESELECTION = lv_i_preselection
         I_LOG_ERROR = lv_i_log_error
         I_ALSO_COMP_PERIODS = lv_i_also_comp_periods
    IMPORTING
         NO_TRIPS = lv_no_trips
    TABLES
         PERIO = lt_perio
         HEAD = lt_head
         ET_LOGGED_ERRORS = lt_et_logged_errors
    EXCEPTIONS
        TABLE_PERIO_READ_ERROR = 1
        TABLE_HEAD_READ_ERROR = 2
        TABLES_INCONSISTENT = 3
. " TRIPS_LIST_PERIO_HEAD




ABAP code using 7.40 inline data declarations to call FM TRIPS_LIST_PERIO_HEAD

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 NO_TRIPS FROM PTPRW INTO @DATA(ld_no_trips).
 
"SELECT single PERNR FROM PTP42 INTO @DATA(ld_employeenumber).
 
 
 
"SELECT single OLD_VERSIONS FROM PTPRW INTO @DATA(ld_old_versions).
 
 
 
 
 
DATA(ld_i_preselection) = ' '.
 
DATA(ld_i_log_error) = ' '.
 
DATA(ld_i_also_comp_periods) = ' '.
 


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!