SAP THMEX_CREATE_ROLLOVER_LOG Function Module for Insert Rollover Info into RO Log Table
THMEX_CREATE_ROLLOVER_LOG is a standard thmex create rollover log SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Insert Rollover Info into RO Log Table processing and below is the pattern details for this FM, 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 thmex create rollover log FM, simply by entering the name THMEX_CREATE_ROLLOVER_LOG into the relevant SAP transaction such as SE37 or SE38.
Function Group: THMEX_HM_VIA_RO
Program Name: SAPLTHMEX_HM_VIA_RO
Main Program: SAPLTHMEX_HM_VIA_RO
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function THMEX_CREATE_ROLLOVER_LOG 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 'THMEX_CREATE_ROLLOVER_LOG'"Insert Rollover Info into RO Log Table.
EXPORTING
* IM_FLAG = 'I' "Change type (U, I, E, D)
IM_NEW_EXPOS = "Hedge Management: exposure created by transactions
IM_OLD_EXPOSUREID = "Hedge Management: Exposure ID
IM_NEW_TRANS_FX = "Hedge Management: Transactions
IM_OLD_TRANS_FX = "Hedge Management: Transactions
* IM_P_PERSISTENCY_MANAGER = "Treasury Position Management: Persistence Service
EXCEPTIONS
MISSING_FIELDS = 1 DB_ERROR = 2
IMPORTING Parameters details for THMEX_CREATE_ROLLOVER_LOG
IM_FLAG - Change type (U, I, E, D)
Data type: CDPOS-CHNGINDDefault: 'I'
Optional: Yes
Call by Reference: Yes
IM_NEW_EXPOS - Hedge Management: exposure created by transactions
Data type: THMEXT_EXPOSOptional: No
Call by Reference: Yes
IM_OLD_EXPOSUREID - Hedge Management: Exposure ID
Data type: THMEXT_EXPOS-EXPOSUREIDOptional: No
Call by Reference: Yes
IM_NEW_TRANS_FX - Hedge Management: Transactions
Data type: THMEXT_TRANS_FXOptional: No
Call by Reference: Yes
IM_OLD_TRANS_FX - Hedge Management: Transactions
Data type: THMEXT_TRANS_FXOptional: No
Call by Reference: Yes
IM_P_PERSISTENCY_MANAGER - Treasury Position Management: Persistence Service
Data type: CL_PERSISTENCY_MANAGER_TRGOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
MISSING_FIELDS - Needed fields missing
Data type:Optional: No
Call by Reference: Yes
DB_ERROR - Database error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for THMEX_CREATE_ROLLOVER_LOG 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_im_flag | TYPE CDPOS-CHNGIND, " 'I' | |||
| lv_missing_fields | TYPE CDPOS, " | |||
| lv_db_error | TYPE CDPOS, " | |||
| lv_im_new_expos | TYPE THMEXT_EXPOS, " | |||
| lv_im_old_exposureid | TYPE THMEXT_EXPOS-EXPOSUREID, " | |||
| lv_im_new_trans_fx | TYPE THMEXT_TRANS_FX, " | |||
| lv_im_old_trans_fx | TYPE THMEXT_TRANS_FX, " | |||
| lv_im_p_persistency_manager | TYPE CL_PERSISTENCY_MANAGER_TRG. " |
|   CALL FUNCTION 'THMEX_CREATE_ROLLOVER_LOG' "Insert Rollover Info into RO Log Table |
| EXPORTING | ||
| IM_FLAG | = lv_im_flag | |
| IM_NEW_EXPOS | = lv_im_new_expos | |
| IM_OLD_EXPOSUREID | = lv_im_old_exposureid | |
| IM_NEW_TRANS_FX | = lv_im_new_trans_fx | |
| IM_OLD_TRANS_FX | = lv_im_old_trans_fx | |
| IM_P_PERSISTENCY_MANAGER | = lv_im_p_persistency_manager | |
| EXCEPTIONS | ||
| MISSING_FIELDS = 1 | ||
| DB_ERROR = 2 | ||
| . " THMEX_CREATE_ROLLOVER_LOG | ||
ABAP code using 7.40 inline data declarations to call FM THMEX_CREATE_ROLLOVER_LOG
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 CHNGIND FROM CDPOS INTO @DATA(ld_im_flag). | ||||
| DATA(ld_im_flag) | = 'I'. | |||
| "SELECT single EXPOSUREID FROM THMEXT_EXPOS INTO @DATA(ld_im_old_exposureid). | ||||
Search for further information about these or an SAP related objects