SAP TRIP_READ_TABLES_MEALS Function Module for









TRIP_READ_TABLES_MEALS is a standard trip read tables meals 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 trip read tables meals FM, simply by entering the name TRIP_READ_TABLES_MEALS into the relevant SAP transaction such as SE37 or SE38.

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



Function TRIP_READ_TABLES_MEALS 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 'TRIP_READ_TABLES_MEALS'"
EXPORTING
PROVISION_VARIANT = "
NUMBER_OF_DAYS = "
NUMBER_OF_HOURS = "
BEGIN_TIME = "
END_TIME = "
DATE = "
TRIP_BEGIN_DATE = "
TRIP_END_DATE = "
HOME_COUNTRY = "
COMPANY_CODE = "
LOCAL_CURRENCY = "
INDICATOR_FLAT_MAX = "
* WITH_USER_EXITS = ' ' "
TRIP_TYPE_STATUTORY = "
TRIP_ACTIVITY = "
COUNTRY = "
REGION = "
TRIP_TYPE_ENTERPRISE = "
REIMB_GROUP_STATUTORY = "
REIMB_GROUP_ENTERPRISE = "

IMPORTING
AMOUNT_TAXFREE = "
AMOUNT_ENTERPRISE = "
AMOUNT_CUSTOMER = "
CURRENCY = "
LIST_OF_MEALS = "

EXCEPTIONS
ENTRY_NOT_FOUND = 1 INVALID_PROVISION_VARIANT = 2
.



IMPORTING Parameters details for TRIP_READ_TABLES_MEALS

PROVISION_VARIANT -

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

NUMBER_OF_DAYS -

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

NUMBER_OF_HOURS -

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

BEGIN_TIME -

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

END_TIME -

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

DATE -

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

TRIP_BEGIN_DATE -

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

TRIP_END_DATE -

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

HOME_COUNTRY -

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

COMPANY_CODE -

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

LOCAL_CURRENCY -

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

INDICATOR_FLAT_MAX -

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

WITH_USER_EXITS -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TRIP_TYPE_STATUTORY -

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

TRIP_ACTIVITY -

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

COUNTRY -

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

REGION -

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

TRIP_TYPE_ENTERPRISE -

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

REIMB_GROUP_STATUTORY -

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

REIMB_GROUP_ENTERPRISE -

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

EXPORTING Parameters details for TRIP_READ_TABLES_MEALS

AMOUNT_TAXFREE -

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

AMOUNT_ENTERPRISE -

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

AMOUNT_CUSTOMER -

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

CURRENCY -

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

LIST_OF_MEALS -

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

EXCEPTIONS details

ENTRY_NOT_FOUND -

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

INVALID_PROVISION_VARIANT -

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

Copy and paste ABAP code example for TRIP_READ_TABLES_MEALS 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_amount_taxfree  TYPE T706H-BETFZ, "   
lv_entry_not_found  TYPE T706H, "   
lv_provision_variant  TYPE T706H-MOREI, "   
lv_number_of_days  TYPE T706H-ANZTA, "   
lv_number_of_hours  TYPE T706V-ANSTD, "   
lv_begin_time  TYPE T706H-BEGUZ, "   
lv_end_time  TYPE T706H-ENDUZ, "   
lv_date  TYPE T706H-ENDDA, "   
lv_trip_begin_date  TYPE T706H-ENDDA, "   
lv_trip_end_date  TYPE T706H-ENDDA, "   
lv_home_country  TYPE T706H-LNDGR, "   
lv_company_code  TYPE BUKRS, "   
lv_local_currency  TYPE T706H-WAERS, "   
lv_amount_enterprise  TYPE T706H-BETFA, "   
lv_indicator_flat_max  TYPE T706H-KZPAH, "   
lv_invalid_provision_variant  TYPE T706H, "   
lv_with_user_exits  TYPE CHAR1, "   SPACE
lv_amount_customer  TYPE T706H-BETKU, "   
lv_trip_type_statutory  TYPE T706H-KZREA, "   
lv_currency  TYPE WAERS, "   
lv_trip_activity  TYPE T706H-KZTKT, "   
lv_country  TYPE T706H-LNDGR, "   
lv_list_of_meals  TYPE CHAR3, "   
lv_region  TYPE T706H-RGION, "   
lv_trip_type_enterprise  TYPE T706H-BEREI, "   
lv_reimb_group_statutory  TYPE T706H-ERKLA, "   
lv_reimb_group_enterprise  TYPE T706H-ERGRU. "   

  CALL FUNCTION 'TRIP_READ_TABLES_MEALS'  "
    EXPORTING
         PROVISION_VARIANT = lv_provision_variant
         NUMBER_OF_DAYS = lv_number_of_days
         NUMBER_OF_HOURS = lv_number_of_hours
         BEGIN_TIME = lv_begin_time
         END_TIME = lv_end_time
         DATE = lv_date
         TRIP_BEGIN_DATE = lv_trip_begin_date
         TRIP_END_DATE = lv_trip_end_date
         HOME_COUNTRY = lv_home_country
         COMPANY_CODE = lv_company_code
         LOCAL_CURRENCY = lv_local_currency
         INDICATOR_FLAT_MAX = lv_indicator_flat_max
         WITH_USER_EXITS = lv_with_user_exits
         TRIP_TYPE_STATUTORY = lv_trip_type_statutory
         TRIP_ACTIVITY = lv_trip_activity
         COUNTRY = lv_country
         REGION = lv_region
         TRIP_TYPE_ENTERPRISE = lv_trip_type_enterprise
         REIMB_GROUP_STATUTORY = lv_reimb_group_statutory
         REIMB_GROUP_ENTERPRISE = lv_reimb_group_enterprise
    IMPORTING
         AMOUNT_TAXFREE = lv_amount_taxfree
         AMOUNT_ENTERPRISE = lv_amount_enterprise
         AMOUNT_CUSTOMER = lv_amount_customer
         CURRENCY = lv_currency
         LIST_OF_MEALS = lv_list_of_meals
    EXCEPTIONS
        ENTRY_NOT_FOUND = 1
        INVALID_PROVISION_VARIANT = 2
. " TRIP_READ_TABLES_MEALS




ABAP code using 7.40 inline data declarations to call FM TRIP_READ_TABLES_MEALS

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 BETFZ FROM T706H INTO @DATA(ld_amount_taxfree).
 
 
"SELECT single MOREI FROM T706H INTO @DATA(ld_provision_variant).
 
"SELECT single ANZTA FROM T706H INTO @DATA(ld_number_of_days).
 
"SELECT single ANSTD FROM T706V INTO @DATA(ld_number_of_hours).
 
"SELECT single BEGUZ FROM T706H INTO @DATA(ld_begin_time).
 
"SELECT single ENDUZ FROM T706H INTO @DATA(ld_end_time).
 
"SELECT single ENDDA FROM T706H INTO @DATA(ld_date).
 
"SELECT single ENDDA FROM T706H INTO @DATA(ld_trip_begin_date).
 
"SELECT single ENDDA FROM T706H INTO @DATA(ld_trip_end_date).
 
"SELECT single LNDGR FROM T706H INTO @DATA(ld_home_country).
 
 
"SELECT single WAERS FROM T706H INTO @DATA(ld_local_currency).
 
"SELECT single BETFA FROM T706H INTO @DATA(ld_amount_enterprise).
 
"SELECT single KZPAH FROM T706H INTO @DATA(ld_indicator_flat_max).
 
 
DATA(ld_with_user_exits) = ' '.
 
"SELECT single BETKU FROM T706H INTO @DATA(ld_amount_customer).
 
"SELECT single KZREA FROM T706H INTO @DATA(ld_trip_type_statutory).
 
 
"SELECT single KZTKT FROM T706H INTO @DATA(ld_trip_activity).
 
"SELECT single LNDGR FROM T706H INTO @DATA(ld_country).
 
 
"SELECT single RGION FROM T706H INTO @DATA(ld_region).
 
"SELECT single BEREI FROM T706H INTO @DATA(ld_trip_type_enterprise).
 
"SELECT single ERKLA FROM T706H INTO @DATA(ld_reimb_group_statutory).
 
"SELECT single ERGRU FROM T706H INTO @DATA(ld_reimb_group_enterprise).
 


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!