SAP G_INVERT_MASS_DATA Function Module for
G_INVERT_MASS_DATA is a standard g invert mass data 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 g invert mass data FM, simply by entering the name G_INVERT_MASS_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: GLE2
Program Name: SAPLGLE2
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function G_INVERT_MASS_DATA 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 'G_INVERT_MASS_DATA'".
EXPORTING
E_PERID = "Start Period for Inverting
E_RYEAR = "Fiscal Year for Inverting
* E_STAT = "Ind.: Euro Status Management Active
* E_NO_DEFLG = 'X' "Ind.: Do Not Invert Financial Reporting Data
TABLES
IT_FILCA = "Database Values
* RA_RLEVL = "Ranges Table for Posting Levels
IT_FILCA_REV = "
IT_FILCA_AUTRV = "Automatic Reversal Items
* RA_T881 = "Valid LC Ledgers
* RA_RVERS = "Ranges Table for Versions
* RA_RLDNR = "Ranges Table for Ledgers
* RA_RCOMP = "Ranges Table for Companies
* RA_DOCTY = "Ranges Table for Document Types
* RA_RACCT = "Ranges Table for Financial Statement Items
IMPORTING Parameters details for G_INVERT_MASS_DATA
E_PERID - Start Period for Inverting
Data type: FILCA-POPEROptional: No
Call by Reference: No ( called with pass by value option)
E_RYEAR - Fiscal Year for Inverting
Data type: FILCA-RYEAROptional: No
Call by Reference: No ( called with pass by value option)
E_STAT - Ind.: Euro Status Management Active
Data type: KONSPARAM-KZOptional: Yes
Call by Reference: No ( called with pass by value option)
E_NO_DEFLG - Ind.: Do Not Invert Financial Reporting Data
Data type: KONSPARAM-KZDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for G_INVERT_MASS_DATA
IT_FILCA - Database Values
Data type: FILCAOptional: No
Call by Reference: No ( called with pass by value option)
RA_RLEVL - Ranges Table for Posting Levels
Data type: FK00_T_RA_RLEVLOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_FILCA_REV -
Data type: FILCAOptional: No
Call by Reference: No ( called with pass by value option)
IT_FILCA_AUTRV - Automatic Reversal Items
Data type: FILCAOptional: No
Call by Reference: No ( called with pass by value option)
RA_T881 - Valid LC Ledgers
Data type: FK00_T_RA_RLDNROptional: Yes
Call by Reference: No ( called with pass by value option)
RA_RVERS - Ranges Table for Versions
Data type: FK00_T_RA_RVERSOptional: Yes
Call by Reference: No ( called with pass by value option)
RA_RLDNR - Ranges Table for Ledgers
Data type: FK00_T_RA_RLDNROptional: Yes
Call by Reference: No ( called with pass by value option)
RA_RCOMP - Ranges Table for Companies
Data type: FK00_T_RA_RCOMPOptional: Yes
Call by Reference: No ( called with pass by value option)
RA_DOCTY - Ranges Table for Document Types
Data type: FK00_T_RA_DOCTYOptional: Yes
Call by Reference: No ( called with pass by value option)
RA_RACCT - Ranges Table for Financial Statement Items
Data type: FK00_T_RA_RACCTOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for G_INVERT_MASS_DATA 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_perid | TYPE FILCA-POPER, " | |||
| lt_it_filca | TYPE STANDARD TABLE OF FILCA, " | |||
| lt_ra_rlevl | TYPE STANDARD TABLE OF FK00_T_RA_RLEVL, " | |||
| lv_e_ryear | TYPE FILCA-RYEAR, " | |||
| lt_it_filca_rev | TYPE STANDARD TABLE OF FILCA, " | |||
| lv_e_stat | TYPE KONSPARAM-KZ, " | |||
| lt_it_filca_autrv | TYPE STANDARD TABLE OF FILCA, " | |||
| lt_ra_t881 | TYPE STANDARD TABLE OF FK00_T_RA_RLDNR, " | |||
| lv_e_no_deflg | TYPE KONSPARAM-KZ, " 'X' | |||
| lt_ra_rvers | TYPE STANDARD TABLE OF FK00_T_RA_RVERS, " | |||
| lt_ra_rldnr | TYPE STANDARD TABLE OF FK00_T_RA_RLDNR, " | |||
| lt_ra_rcomp | TYPE STANDARD TABLE OF FK00_T_RA_RCOMP, " | |||
| lt_ra_docty | TYPE STANDARD TABLE OF FK00_T_RA_DOCTY, " | |||
| lt_ra_racct | TYPE STANDARD TABLE OF FK00_T_RA_RACCT. " |
|   CALL FUNCTION 'G_INVERT_MASS_DATA' " |
| EXPORTING | ||
| E_PERID | = lv_e_perid | |
| E_RYEAR | = lv_e_ryear | |
| E_STAT | = lv_e_stat | |
| E_NO_DEFLG | = lv_e_no_deflg | |
| TABLES | ||
| IT_FILCA | = lt_it_filca | |
| RA_RLEVL | = lt_ra_rlevl | |
| IT_FILCA_REV | = lt_it_filca_rev | |
| IT_FILCA_AUTRV | = lt_it_filca_autrv | |
| RA_T881 | = lt_ra_t881 | |
| RA_RVERS | = lt_ra_rvers | |
| RA_RLDNR | = lt_ra_rldnr | |
| RA_RCOMP | = lt_ra_rcomp | |
| RA_DOCTY | = lt_ra_docty | |
| RA_RACCT | = lt_ra_racct | |
| . " G_INVERT_MASS_DATA | ||
ABAP code using 7.40 inline data declarations to call FM G_INVERT_MASS_DATA
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 POPER FROM FILCA INTO @DATA(ld_e_perid). | ||||
| "SELECT single RYEAR FROM FILCA INTO @DATA(ld_e_ryear). | ||||
| "SELECT single KZ FROM KONSPARAM INTO @DATA(ld_e_stat). | ||||
| "SELECT single KZ FROM KONSPARAM INTO @DATA(ld_e_no_deflg). | ||||
| DATA(ld_e_no_deflg) | = 'X'. | |||
Search for further information about these or an SAP related objects