SAP GMIDCPOST_POST_IDC Function Module for Calculate and post grant IDC









GMIDCPOST_POST_IDC is a standard gmidcpost post idc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Calculate and post grant IDC 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 gmidcpost post idc FM, simply by entering the name GMIDCPOST_POST_IDC into the relevant SAP transaction such as SE37 or SE38.

Function Group: GMIDCPOST
Program Name: SAPLGMIDCPOST
Main Program: SAPLGMIDCPOST
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function GMIDCPOST_POST_IDC 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 'GMIDCPOST_POST_IDC'"Calculate and post grant IDC
EXPORTING
I_BUKRS = "Company Code
I_CUTOFFDT = "Cutoff Date
I_BLART = "Document Type
I_BLDAT = "Document Date in Document
I_BUDAT = "Posting Date in the Document
I_MONAT = "Fiscal Period
I_TEST_MODE = "General Flag
I_SGTXT = "Item Text

TABLES
T_GRANT_INFO = "GM IDC Grant Information
T_GMIDC_POST = "Summary of posted IDC from the report RGMIDCPOST
T_POSTED_IDC = "Actual Line Item Table
T_CALCULATED_IDC = "Actual Line Item Table
T_MESSAGE_LOG = "Multiple grant messages collected in MESG format
T_GMOMD = "Grants Management Object Mapper Table
T_GMIA = "Actual Line Item Table
T_GMIA2 = "GM IDC Structure with Incoming Grant Info and GMIA
T_DELTA_IDC = "Actual Line Item Table
T_GMGRIDCCAP = "Grant IDC Cap (Program + Class)
T_GMGRIDCCAP2 = "Grant IDC Cap (Grant level)
T_GMGRIDCCAP_O = "Grant IDC Cap (Program + Class) for outgoing grant
T_GMGRIDCCAP2_O = "Grant IDC Cap (Grant level) for outgoing grant
.



IMPORTING Parameters details for GMIDCPOST_POST_IDC

I_BUKRS - Company Code

Data type: BUKRS
Optional: No
Call by Reference: No ( called with pass by value option)

I_CUTOFFDT - Cutoff Date

Data type: GM_CUTOFF_DATE
Optional: No
Call by Reference: No ( called with pass by value option)

I_BLART - Document Type

Data type: BLART
Optional: No
Call by Reference: No ( called with pass by value option)

I_BLDAT - Document Date in Document

Data type: BLDAT
Optional: No
Call by Reference: No ( called with pass by value option)

I_BUDAT - Posting Date in the Document

Data type: BUDAT
Optional: No
Call by Reference: No ( called with pass by value option)

I_MONAT - Fiscal Period

Data type: MONAT
Optional: No
Call by Reference: No ( called with pass by value option)

I_TEST_MODE - General Flag

Data type: FLAG
Optional: No
Call by Reference: No ( called with pass by value option)

I_SGTXT - Item Text

Data type: SGTXT
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for GMIDCPOST_POST_IDC

T_GRANT_INFO - GM IDC Grant Information

Data type: GMIDC_GRANT_INFO
Optional: No
Call by Reference: Yes

T_GMIDC_POST - Summary of posted IDC from the report RGMIDCPOST

Data type: GMIDC_POST
Optional: No
Call by Reference: Yes

T_POSTED_IDC - Actual Line Item Table

Data type: GMIA
Optional: No
Call by Reference: Yes

T_CALCULATED_IDC - Actual Line Item Table

Data type: GMIA
Optional: No
Call by Reference: Yes

T_MESSAGE_LOG - Multiple grant messages collected in MESG format

Data type: GMMESG_MULTIPLE_GRANTS
Optional: No
Call by Reference: Yes

T_GMOMD - Grants Management Object Mapper Table

Data type: GMOMD
Optional: No
Call by Reference: Yes

T_GMIA - Actual Line Item Table

Data type: GMIA
Optional: No
Call by Reference: Yes

T_GMIA2 - GM IDC Structure with Incoming Grant Info and GMIA

Data type: GMIDC_GMIA
Optional: No
Call by Reference: Yes

T_DELTA_IDC - Actual Line Item Table

Data type: GMIA
Optional: No
Call by Reference: Yes

T_GMGRIDCCAP - Grant IDC Cap (Program + Class)

Data type: GMGRIDCCAP
Optional: No
Call by Reference: Yes

T_GMGRIDCCAP2 - Grant IDC Cap (Grant level)

Data type: GMGRIDCCAP2
Optional: No
Call by Reference: Yes

T_GMGRIDCCAP_O - Grant IDC Cap (Program + Class) for outgoing grant

Data type: GMGRIDCCAP_O
Optional: No
Call by Reference: Yes

T_GMGRIDCCAP2_O - Grant IDC Cap (Grant level) for outgoing grant

Data type: GMGRIDCCAP2_O
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for GMIDCPOST_POST_IDC 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_bukrs  TYPE BUKRS, "   
lt_t_grant_info  TYPE STANDARD TABLE OF GMIDC_GRANT_INFO, "   
lt_t_gmidc_post  TYPE STANDARD TABLE OF GMIDC_POST, "   
lt_t_posted_idc  TYPE STANDARD TABLE OF GMIA, "   
lt_t_calculated_idc  TYPE STANDARD TABLE OF GMIA, "   
lt_t_message_log  TYPE STANDARD TABLE OF GMMESG_MULTIPLE_GRANTS, "   
lt_t_gmomd  TYPE STANDARD TABLE OF GMOMD, "   
lv_i_cutoffdt  TYPE GM_CUTOFF_DATE, "   
lt_t_gmia  TYPE STANDARD TABLE OF GMIA, "   
lv_i_blart  TYPE BLART, "   
lv_i_bldat  TYPE BLDAT, "   
lt_t_gmia2  TYPE STANDARD TABLE OF GMIDC_GMIA, "   
lv_i_budat  TYPE BUDAT, "   
lt_t_delta_idc  TYPE STANDARD TABLE OF GMIA, "   
lv_i_monat  TYPE MONAT, "   
lt_t_gmgridccap  TYPE STANDARD TABLE OF GMGRIDCCAP, "   
lv_i_test_mode  TYPE FLAG, "   
lt_t_gmgridccap2  TYPE STANDARD TABLE OF GMGRIDCCAP2, "   
lv_i_sgtxt  TYPE SGTXT, "   
lt_t_gmgridccap_o  TYPE STANDARD TABLE OF GMGRIDCCAP_O, "   
lt_t_gmgridccap2_o  TYPE STANDARD TABLE OF GMGRIDCCAP2_O. "   

  CALL FUNCTION 'GMIDCPOST_POST_IDC'  "Calculate and post grant IDC
    EXPORTING
         I_BUKRS = lv_i_bukrs
         I_CUTOFFDT = lv_i_cutoffdt
         I_BLART = lv_i_blart
         I_BLDAT = lv_i_bldat
         I_BUDAT = lv_i_budat
         I_MONAT = lv_i_monat
         I_TEST_MODE = lv_i_test_mode
         I_SGTXT = lv_i_sgtxt
    TABLES
         T_GRANT_INFO = lt_t_grant_info
         T_GMIDC_POST = lt_t_gmidc_post
         T_POSTED_IDC = lt_t_posted_idc
         T_CALCULATED_IDC = lt_t_calculated_idc
         T_MESSAGE_LOG = lt_t_message_log
         T_GMOMD = lt_t_gmomd
         T_GMIA = lt_t_gmia
         T_GMIA2 = lt_t_gmia2
         T_DELTA_IDC = lt_t_delta_idc
         T_GMGRIDCCAP = lt_t_gmgridccap
         T_GMGRIDCCAP2 = lt_t_gmgridccap2
         T_GMGRIDCCAP_O = lt_t_gmgridccap_o
         T_GMGRIDCCAP2_O = lt_t_gmgridccap2_o
. " GMIDCPOST_POST_IDC




ABAP code using 7.40 inline data declarations to call FM GMIDCPOST_POST_IDC

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!