SAP EMUL_POST_OPEN_ITEM_CORRECTION Function Module for Post Adjustment Flows for Open Items for Euro Changeover
EMUL_POST_OPEN_ITEM_CORRECTION is a standard emul post open item correction SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Post Adjustment Flows for Open Items for Euro Changeover 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 emul post open item correction FM, simply by entering the name EMUL_POST_OPEN_ITEM_CORRECTION into the relevant SAP transaction such as SE37 or SE38.
Function Group: FTLE
Program Name: SAPLFTLE
Main Program: SAPLFTLE
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EMUL_POST_OPEN_ITEM_CORRECTION 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 'EMUL_POST_OPEN_ITEM_CORRECTION'"Post Adjustment Flows for Open Items for Euro Changeover.
EXPORTING
* DATE = SY-DATUM "Umstellungstag
* I_POST_DATE = SY-DATUM "Posting Date
OVDARL = "Ursprüngliche VDARL
CVDARL = "Umgesetzte VDARL
* I_DATUM_LAST_VU = "
* I_UZEIT_LAST_VU = "
* I_FLG_REVERSION = "
* I_MONAT = ' ' "
* I_CCC_CALC_DATE = "
CHANGING
* C_PRIMANOTA = "Source Document
TABLES
OVDBEKI = "Ursprüngliche VDBEKI
OVDBEPI = "Ursprüngliche VDBEPI
UVDBEPI = "Umgesetzte VDBEPI
* PVDBEKI = "Gebuchte Belegköpfe
* PVDBEPI = "Gebuchte Belegpositionen
OBSID = "
CBSID = "
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for EMUL_POST_OPEN_ITEM_CORRECTION
DATE - Umstellungstag
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_POST_DATE - Posting Date
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
OVDARL - Ursprüngliche VDARL
Data type: VDARLOptional: No
Call by Reference: No ( called with pass by value option)
CVDARL - Umgesetzte VDARL
Data type: VDARLOptional: No
Call by Reference: No ( called with pass by value option)
I_DATUM_LAST_VU -
Data type: SY-DATUMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_UZEIT_LAST_VU -
Data type: SY-UZEITOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_REVERSION -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MONAT -
Data type: VDBEKI-DMONATDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CCC_CALC_DATE -
Data type: VDBEPP-DDISPOOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for EMUL_POST_OPEN_ITEM_CORRECTION
C_PRIMANOTA - Source Document
Data type: VDBEPP-RPNNROptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EMUL_POST_OPEN_ITEM_CORRECTION
OVDBEKI - Ursprüngliche VDBEKI
Data type: VDBEKIOptional: No
Call by Reference: No ( called with pass by value option)
OVDBEPI - Ursprüngliche VDBEPI
Data type: VDBEPIOptional: No
Call by Reference: No ( called with pass by value option)
UVDBEPI - Umgesetzte VDBEPI
Data type: VDBEPIOptional: No
Call by Reference: No ( called with pass by value option)
PVDBEKI - Gebuchte Belegköpfe
Data type: VDBEKIOptional: Yes
Call by Reference: No ( called with pass by value option)
PVDBEPI - Gebuchte Belegpositionen
Data type: VDBEPIOptional: Yes
Call by Reference: No ( called with pass by value option)
OBSID -
Data type: BSIDOptional: No
Call by Reference: No ( called with pass by value option)
CBSID -
Data type: BSIDOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR - Fehler aus der Verbuchung
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EMUL_POST_OPEN_ITEM_CORRECTION 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_date | TYPE SY-DATUM, " SY-DATUM | |||
| lv_error | TYPE SY, " | |||
| lt_ovdbeki | TYPE STANDARD TABLE OF VDBEKI, " | |||
| lv_c_primanota | TYPE VDBEPP-RPNNR, " | |||
| lt_ovdbepi | TYPE STANDARD TABLE OF VDBEPI, " | |||
| lv_i_post_date | TYPE SY-DATUM, " SY-DATUM | |||
| lv_ovdarl | TYPE VDARL, " | |||
| lt_uvdbepi | TYPE STANDARD TABLE OF VDBEPI, " | |||
| lv_cvdarl | TYPE VDARL, " | |||
| lt_pvdbeki | TYPE STANDARD TABLE OF VDBEKI, " | |||
| lt_pvdbepi | TYPE STANDARD TABLE OF VDBEPI, " | |||
| lv_i_datum_last_vu | TYPE SY-DATUM, " | |||
| lt_obsid | TYPE STANDARD TABLE OF BSID, " | |||
| lv_i_uzeit_last_vu | TYPE SY-UZEIT, " | |||
| lt_cbsid | TYPE STANDARD TABLE OF BSID, " | |||
| lv_i_flg_reversion | TYPE BSID, " | |||
| lv_i_monat | TYPE VDBEKI-DMONAT, " SPACE | |||
| lv_i_ccc_calc_date | TYPE VDBEPP-DDISPO. " |
|   CALL FUNCTION 'EMUL_POST_OPEN_ITEM_CORRECTION' "Post Adjustment Flows for Open Items for Euro Changeover |
| EXPORTING | ||
| DATE | = lv_date | |
| I_POST_DATE | = lv_i_post_date | |
| OVDARL | = lv_ovdarl | |
| CVDARL | = lv_cvdarl | |
| I_DATUM_LAST_VU | = lv_i_datum_last_vu | |
| I_UZEIT_LAST_VU | = lv_i_uzeit_last_vu | |
| I_FLG_REVERSION | = lv_i_flg_reversion | |
| I_MONAT | = lv_i_monat | |
| I_CCC_CALC_DATE | = lv_i_ccc_calc_date | |
| CHANGING | ||
| C_PRIMANOTA | = lv_c_primanota | |
| TABLES | ||
| OVDBEKI | = lt_ovdbeki | |
| OVDBEPI | = lt_ovdbepi | |
| UVDBEPI | = lt_uvdbepi | |
| PVDBEKI | = lt_pvdbeki | |
| PVDBEPI | = lt_pvdbepi | |
| OBSID | = lt_obsid | |
| CBSID | = lt_cbsid | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " EMUL_POST_OPEN_ITEM_CORRECTION | ||
ABAP code using 7.40 inline data declarations to call FM EMUL_POST_OPEN_ITEM_CORRECTION
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 DATUM FROM SY INTO @DATA(ld_date). | ||||
| DATA(ld_date) | = SY-DATUM. | |||
| "SELECT single RPNNR FROM VDBEPP INTO @DATA(ld_c_primanota). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_post_date). | ||||
| DATA(ld_i_post_date) | = SY-DATUM. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_datum_last_vu). | ||||
| "SELECT single UZEIT FROM SY INTO @DATA(ld_i_uzeit_last_vu). | ||||
| "SELECT single DMONAT FROM VDBEKI INTO @DATA(ld_i_monat). | ||||
| DATA(ld_i_monat) | = ' '. | |||
| "SELECT single DDISPO FROM VDBEPP INTO @DATA(ld_i_ccc_calc_date). | ||||
Search for further information about these or an SAP related objects