SAP NF_GM_TIME_SETTINGS_SET Function Module for
NF_GM_TIME_SETTINGS_SET is a standard nf gm time settings set 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 nf gm time settings set FM, simply by entering the name NF_GM_TIME_SETTINGS_SET into the relevant SAP transaction such as SE37 or SE38.
Function Group: OM_NAVFRAMEWORK_OO_OBJ
Program Name: SAPLOM_NAVFRAMEWORK_OO_OBJ
Main Program: SAPLOM_NAVFRAMEWORK_OO_OBJ
Appliation area: H
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function NF_GM_TIME_SETTINGS_SET 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 'NF_GM_TIME_SETTINGS_SET'".
EXPORTING
* PASTTIME = '0' "
* PASTTIMEUNIT = 'D' "Time unit for preview period
* FUTURETIME = '3' "
* FUTURETIMEUNIT = 'M' "Time unit for preview period
* FIX_ENDDATE = SY-DATUM "Field of Type DATS
IMPORTING Parameters details for NF_GM_TIME_SETTINGS_SET
PASTTIME -
Data type: NUM4Default: '0'
Optional: Yes
Call by Reference: Yes
PASTTIMEUNIT - Time unit for preview period
Data type: OMTIMEUNITDefault: 'D'
Optional: Yes
Call by Reference: Yes
FUTURETIME -
Data type: NUM4Default: '3'
Optional: Yes
Call by Reference: Yes
FUTURETIMEUNIT - Time unit for preview period
Data type: OMTIMEUNITDefault: 'M'
Optional: Yes
Call by Reference: Yes
FIX_ENDDATE - Field of Type DATS
Data type: DATSDefault: SY-DATUM
Optional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for NF_GM_TIME_SETTINGS_SET 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_pasttime | TYPE NUM4, " '0' | |||
| lv_pasttimeunit | TYPE OMTIMEUNIT, " 'D' | |||
| lv_futuretime | TYPE NUM4, " '3' | |||
| lv_futuretimeunit | TYPE OMTIMEUNIT, " 'M' | |||
| lv_fix_enddate | TYPE DATS. " SY-DATUM |
|   CALL FUNCTION 'NF_GM_TIME_SETTINGS_SET' " |
| EXPORTING | ||
| PASTTIME | = lv_pasttime | |
| PASTTIMEUNIT | = lv_pasttimeunit | |
| FUTURETIME | = lv_futuretime | |
| FUTURETIMEUNIT | = lv_futuretimeunit | |
| FIX_ENDDATE | = lv_fix_enddate | |
| . " NF_GM_TIME_SETTINGS_SET | ||
ABAP code using 7.40 inline data declarations to call FM NF_GM_TIME_SETTINGS_SET
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.| DATA(ld_pasttime) | = '0'. | |||
| DATA(ld_pasttimeunit) | = 'D'. | |||
| DATA(ld_futuretime) | = '3'. | |||
| DATA(ld_futuretimeunit) | = 'M'. | |||
| DATA(ld_fix_enddate) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects