SAP PTRA_UTIL_MEM_GLOBALS_GET Function Module for
PTRA_UTIL_MEM_GLOBALS_GET is a standard ptra util mem globals get 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 ptra util mem globals get FM, simply by entering the name PTRA_UTIL_MEM_GLOBALS_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: PTRA_UTIL_MEMORY
Program Name: SAPLPTRA_UTIL_MEMORY
Main Program: SAPLPTRA_UTIL_MEMORY
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PTRA_UTIL_MEM_GLOBALS_GET 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 'PTRA_UTIL_MEM_GLOBALS_GET'".
EXPORTING
I_EMPLOYEENUMBER = "Personnel Number
I_DATE = "
* I_TRIP_SCHEMA = '01' "Trip Schema
IMPORTING
E_MOREI = "Trip Provision Variant
E_T702N = "
E_T706D = "
E_MOLGA = "Country Grouping
E_TRVPA = "Settlement Control Through Characteristic TRVPA
E_TRVFD = "Dialog Control Through Characteristic TRVFD
E_TRVFE = "Control of Travel Expense Form Through Characteristic TRVFE
E_TRVFP = "Control of Travel Planning Form Through Characteristic TRVFP
E_TRVFR = "Control of Travel Request Form Through Characteristic TRVFR
E_PUBSEC_COUNTRY = "Country Version of Public Sector
E_TRVFK = "
EXCEPTIONS
ERROR_OCCURRED = 1
IMPORTING Parameters details for PTRA_UTIL_MEM_GLOBALS_GET
I_EMPLOYEENUMBER - Personnel Number
Data type: BAPIEMPL-PERNROptional: No
Call by Reference: Yes
I_DATE -
Data type: DATE_WITH_FIELDNAMEOptional: No
Call by Reference: Yes
I_TRIP_SCHEMA - Trip Schema
Data type: RSCHEDefault: '01'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for PTRA_UTIL_MEM_GLOBALS_GET
E_MOREI - Trip Provision Variant
Data type: HEAD_PERIO-MOREIOptional: No
Call by Reference: Yes
E_T702N -
Data type: T702NOptional: No
Call by Reference: Yes
E_T706D -
Data type: T706DOptional: No
Call by Reference: Yes
E_MOLGA - Country Grouping
Data type: HEAD_PERIO-MOLGAOptional: No
Call by Reference: Yes
E_TRVPA - Settlement Control Through Characteristic TRVPA
Data type: PTRV_TRVPAOptional: No
Call by Reference: Yes
E_TRVFD - Dialog Control Through Characteristic TRVFD
Data type: PTRV_TRVFDOptional: No
Call by Reference: Yes
E_TRVFE - Control of Travel Expense Form Through Characteristic TRVFE
Data type: PTRV_TRVFEOptional: No
Call by Reference: Yes
E_TRVFP - Control of Travel Planning Form Through Characteristic TRVFP
Data type: PTRV_TRVFPOptional: No
Call by Reference: Yes
E_TRVFR - Control of Travel Request Form Through Characteristic TRVFR
Data type: PTRV_TRVFROptional: No
Call by Reference: Yes
E_PUBSEC_COUNTRY - Country Version of Public Sector
Data type: PTRV_PUBSEC_INDICATOROptional: No
Call by Reference: Yes
E_TRVFK -
Data type: PTRV_TRVFEOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR_OCCURRED - Errors have occurred
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for PTRA_UTIL_MEM_GLOBALS_GET 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_e_morei | TYPE HEAD_PERIO-MOREI, " | |||
| lv_error_occurred | TYPE HEAD_PERIO, " | |||
| lv_i_employeenumber | TYPE BAPIEMPL-PERNR, " | |||
| lv_e_t702n | TYPE T702N, " | |||
| lv_e_t706d | TYPE T706D, " | |||
| lv_i_date | TYPE DATE_WITH_FIELDNAME, " | |||
| lv_e_molga | TYPE HEAD_PERIO-MOLGA, " | |||
| lv_e_trvpa | TYPE PTRV_TRVPA, " | |||
| lv_i_trip_schema | TYPE RSCHE, " '01' | |||
| lv_e_trvfd | TYPE PTRV_TRVFD, " | |||
| lv_e_trvfe | TYPE PTRV_TRVFE, " | |||
| lv_e_trvfp | TYPE PTRV_TRVFP, " | |||
| lv_e_trvfr | TYPE PTRV_TRVFR, " | |||
| lv_e_pubsec_country | TYPE PTRV_PUBSEC_INDICATOR, " | |||
| lv_e_trvfk | TYPE PTRV_TRVFE. " |
|   CALL FUNCTION 'PTRA_UTIL_MEM_GLOBALS_GET' " |
| EXPORTING | ||
| I_EMPLOYEENUMBER | = lv_i_employeenumber | |
| I_DATE | = lv_i_date | |
| I_TRIP_SCHEMA | = lv_i_trip_schema | |
| IMPORTING | ||
| E_MOREI | = lv_e_morei | |
| E_T702N | = lv_e_t702n | |
| E_T706D | = lv_e_t706d | |
| E_MOLGA | = lv_e_molga | |
| E_TRVPA | = lv_e_trvpa | |
| E_TRVFD | = lv_e_trvfd | |
| E_TRVFE | = lv_e_trvfe | |
| E_TRVFP | = lv_e_trvfp | |
| E_TRVFR | = lv_e_trvfr | |
| E_PUBSEC_COUNTRY | = lv_e_pubsec_country | |
| E_TRVFK | = lv_e_trvfk | |
| EXCEPTIONS | ||
| ERROR_OCCURRED = 1 | ||
| . " PTRA_UTIL_MEM_GLOBALS_GET | ||
ABAP code using 7.40 inline data declarations to call FM PTRA_UTIL_MEM_GLOBALS_GET
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 HEAD_PERIO INTO @DATA(ld_e_morei). | ||||
| "SELECT single PERNR FROM BAPIEMPL INTO @DATA(ld_i_employeenumber). | ||||
| "SELECT single MOLGA FROM HEAD_PERIO INTO @DATA(ld_e_molga). | ||||
| DATA(ld_i_trip_schema) | = '01'. | |||
Search for further information about these or an SAP related objects