SAP TB_EXPOSURE_INSERT_DAY_STATE Function Module for After Update in Background Run: Specify in 'Day' Status
TB_EXPOSURE_INSERT_DAY_STATE is a standard tb exposure insert day state SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for After Update in Background Run: Specify in 'Day' Status 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 tb exposure insert day state FM, simply by entering the name TB_EXPOSURE_INSERT_DAY_STATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: TBL2
Program Name: SAPLTBL2
Main Program: SAPLTBL2
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TB_EXPOSURE_INSERT_DAY_STATE 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 'TB_EXPOSURE_INSERT_DAY_STATE'"After Update in Background Run: Specify in 'Day' Status.
EXPORTING
* I_DLI = SY-DATUM "Date of Current Run
IT_ATLA = "Table of Limit Types (Only SLA Fields, Relevant for SLSC)
* IA_SYNC = 'S' "Update: Synchronous (S), Asyncronous (A)
* I_PACKAGE_SIZE = 1000 "Array Size for Update (COMMIT Counter)
EXCEPTIONS
ERROR_INSERT = 1 WRONG_PARAMETER = 2 UNDEFINED_ERROR = 3
IMPORTING Parameters details for TB_EXPOSURE_INSERT_DAY_STATE
I_DLI - Date of Current Run
Data type: VTBLIL-DLIDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_ATLA - Table of Limit Types (Only SLA Fields, Relevant for SLSC)
Data type: TRLM_T_LAOptional: No
Call by Reference: No ( called with pass by value option)
IA_SYNC - Update: Synchronous (S), Asyncronous (A)
Data type: CDefault: 'S'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PACKAGE_SIZE - Array Size for Update (COMMIT Counter)
Data type: IDefault: 1000
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_INSERT - Error During Insertion of Totals Records
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_PARAMETER - Incorrect Parameters for Interface
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
UNDEFINED_ERROR - RAISE OTHERS In Sub-FM
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TB_EXPOSURE_INSERT_DAY_STATE 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_i_dli | TYPE VTBLIL-DLI, " SY-DATUM | |||
| lv_error_insert | TYPE VTBLIL, " | |||
| lv_it_atla | TYPE TRLM_T_LA, " | |||
| lv_wrong_parameter | TYPE TRLM_T_LA, " | |||
| lv_ia_sync | TYPE C, " 'S' | |||
| lv_undefined_error | TYPE C, " | |||
| lv_i_package_size | TYPE I. " 1000 |
|   CALL FUNCTION 'TB_EXPOSURE_INSERT_DAY_STATE' "After Update in Background Run: Specify in 'Day' Status |
| EXPORTING | ||
| I_DLI | = lv_i_dli | |
| IT_ATLA | = lv_it_atla | |
| IA_SYNC | = lv_ia_sync | |
| I_PACKAGE_SIZE | = lv_i_package_size | |
| EXCEPTIONS | ||
| ERROR_INSERT = 1 | ||
| WRONG_PARAMETER = 2 | ||
| UNDEFINED_ERROR = 3 | ||
| . " TB_EXPOSURE_INSERT_DAY_STATE | ||
ABAP code using 7.40 inline data declarations to call FM TB_EXPOSURE_INSERT_DAY_STATE
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 DLI FROM VTBLIL INTO @DATA(ld_i_dli). | ||||
| DATA(ld_i_dli) | = SY-DATUM. | |||
| DATA(ld_ia_sync) | = 'S'. | |||
| DATA(ld_i_package_size) | = 1000. | |||
Search for further information about these or an SAP related objects