SAP Reports / Programs

RGMIDCPOST SAP ABAP Report - Post Indirect Costs (Defined by Sponsor/Grant)







RGMIDCPOST is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Use this program to make indirect cost (IDC) postings relating to grants managed in Grants Management (GM)...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RGMIDCPOST into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

GMIDCPOST - Calculate GM Indirect Cost


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RGMIDCPOST. "Basic submit
SUBMIT RGMIDCPOST AND RETURN. "Return to original report after report execution complete
SUBMIT RGMIDCPOST VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: SO_GRANT = D .
Selection Text: P_TEST = Test Run
Selection Text: P_SGTXT = D .
Selection Text: P_POSTDT = D .
Selection Text: P_PARAL = Parallel Processing
Selection Text: P_MONAT = D .
Selection Text: P_GROUP = D .
Selection Text: P_GRGRP = D .
Selection Text: P_DOCUDT = D .
Selection Text: P_CUTDT = D .
Selection Text: P_BUKRS = D .
Selection Text: P_BLART = D .
Title: Post Indirect Costs (Defined by Sponsor/Grant)
Text Symbol: GRA = Sponsored Grant
Text Symbol: GRT = Processed Grants
Text Symbol: ID1 = IDC documents posted to the Grant
Text Symbol: ID2 = Proposed IDC document for the Grant
Text Symbol: ID3 = Calculated IDC entries
Text Symbol: IDC = IDC Document to be Generated
Text Symbol: OPT = Selection Options
Text Symbol: PRD = Production Run
Text Symbol: REL = IDC-Relevant Line Items
Text Symbol: RUN = Run Parameters
Text Symbol: SEL = Selection Criteria
Text Symbol: SUB = Related Passthrough Grants
Text Symbol: TIT = GM Indirect Cost Applicaton Log Display
Text Symbol: TST = Test Run
Text Symbol: 003 = Free Selection
Text Symbol: 009 = Error when posting IDC document
Text Symbol: 010 = Grant is not productive
Text Symbol: 011 = Grant is not assigned to a company code
Text Symbol: 012 = Missing chart of account for grant's company code
Text Symbol: 013 = Missing customizing of grant type to IDC account
Text Symbol: 014 = Grant is not assigned to any IDC rule
Text Symbol: 015 = IDC rule is not customized
Text Symbol: 016 = No indirect cost available in selected date range
Text Symbol: 017 = No fund recovery available in selected date range
Text Symbol: 018 = No documents match the selection criteria





Text Symbol: 021 = No authorization to perform indirect cost on grant
Text Symbol: 022 = Error in grant master data
Text Symbol: 023 = Indirect Cost Posting
Text Symbol: 051 = Reading Related Grant information
Text Symbol: 052 = Reading previously posted IDC document
Text Symbol: 053 = Calculating necessary IDC entries
Text Symbol: 054 = Preparing IDC Delta entries
Text Symbol: 055 = Posting IDC Document
Text Symbol: 056 = Posting IDC Document - Test Mode
Text Symbol: CA1 = Program/Class Level Cap
Text Symbol: CA2 = Grant Level CAP
Text Symbol: CA3 = Program/Class Level Cap (Passthrough Grants)
Text Symbol: CA4 = Grant Level CAP (Passthrough Grants)
Text Symbol: CAP = IDC Cap
Text Symbol: DET = IDC Line Items
Text Symbol: DGR = Grant Master Data


INCLUDES used within this REPORT RGMIDCPOST

INCLUDE: IFIFMCON_BOOL,
GMAUTHCONSTANTS,
INCLUDE: RKASMAWF.
INCLUDE: SBAL_CONSTANTS.
INCLUDE: RGMIDCPOST001, " APPLICATION LOG
RGMIDCPOST002, " ALV LIST - DISPLAY RESULTS


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

SMLG_GET_DEFINED_SERVERS CALL FUNCTION 'SMLG_GET_DEFINED_SERVERS' EXPORTING grouptype = 'S' groupname = p_group TABLES instances = gt_rzlliapsrv EXCEPTIONS OTHERS = 99.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

FI_DOCUMENT_TYPE_CHECK CALL FUNCTION 'FI_DOCUMENT_TYPE_CHECK' EXPORTING i_blart = p_blart i_koart = 'S' EXCEPTIONS account_type = 1 document_type = 2 document_type_for_batch_only = 3 doctype_only_for_glx_postings = 4 doctype_not_for_glx_postings = 5 OTHERS = 6.

DOCHEADER_PERIOD_FIND_CHECK CALL FUNCTION 'DOCHEADER_PERIOD_FIND_CHECK' EXPORTING i_bukrs = p_bukrs i_bldat = p_docudt i_budat = p_postdt CHANGING c_monat = p_monat.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-cprog dynumb = sy-dynnr TABLES dynpfields = l_dynpfields.

TRINT_TRANSLATE_TO_UPPER CALL FUNCTION 'TRINT_TRANSLATE_TO_UPPER' CHANGING cv_string = l_set.

G_RW_SET_SELECT CALL FUNCTION 'G_RW_SET_SELECT' EXPORTING set = l_set class = l_class field_name = l_fieldname table = l_table show_table_name = ' ' show_field_name = ' ' no_field_name_change = 'X' no_table_name_change = 'X' IMPORTING set_name = l_set class_name = l_class EXCEPTIONS no_set_picked = 01 no_sets = 02 OTHERS = 999.

DYNP_VALUES_UPDATE





CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = sy-cprog dynumb = sy-dynnr TABLES dynpfields = l_dynpfields.

G_SET_ENCRYPT_SETID CALL FUNCTION 'G_SET_ENCRYPT_SETID' EXPORTING setclass = l_class shortname = l_shortname IMPORTING setid = l_setid EXCEPTIONS illegal_setclass = 2 OTHERS = 3.

G_SET_TREE_IMPORT CALL FUNCTION 'G_SET_TREE_IMPORT' EXPORTING setid = l_setid fieldname = l_fieldname tabname = l_tabname no_descriptions = con_on no_rw_info = con_on EXCEPTIONS OTHERS = 1.

GM_GET_GRANTS CALL FUNCTION 'GM_GET_GRANTS' EXPORTING i_grant_grpname = u_grant_group TABLES e_t_grant_nbr = l_t_grant EXCEPTIONS not_found = 1.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = 'E' msgv1 = u_bukrs msgv2 = u_limitdt msgv3 = space msgv4 = space arbgb = 'GRANTMGMT' txtnr = 870 zeile = space exception_if_not_active = space.

GM_GET_GRANT_SINGLE CALL FUNCTION 'GM_GET_GRANT_SINGLE' EXPORTING i_grant_nbr = t_grant_info-grant_nbr IMPORTING e_gmgrtexts = l_gmgrtexts EXCEPTIONS OTHERS = 0.

GM_AUTH_CHECK_GRANT_GROUP CALL FUNCTION 'GM_AUTH_CHECK_GRANT_GROUP' EXPORTING auth_group = t_grant_info-authgr activity = c_gm_activity_idc life_status = t_grant_info-lifecycle_status EXCEPTIONS not_authorized = 1 wrong_auth_group = 2 wrong_activity = 3 wrong_life_status = 4.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = 'E' msgv1 = t_grant_info-grant_nbr msgv2 = space msgv3 = space msgv4 = space arbgb = 'GRANTMGMT' txtnr = 863 zeile = space exception_if_not_active = space.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = 'E' msgv1 = t_grant_info-grant_nbr msgv2 = space msgv3 = space msgv4 = space arbgb = 'GRANTMGMT' txtnr = 863 zeile = space exception_if_not_active = space.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING msgty = 'E' msgv1 = u_bukrs msgv2 = u_limitdt msgv3 = space msgv4 = space arbgb = 'GRANTMGMT' txtnr = 870 zeile = space exception_if_not_active = space.

SPBT_INITIALIZE CALL FUNCTION 'SPBT_INITIALIZE' EXPORTING group_name = p_group IMPORTING max_pbt_wps = l_max_pbt_wps free_pbt_wps = l_free_pbt_wps EXCEPTIONS invalid_group_name = 1 internal_error = 2 pbt_env_already_initialized = 3 currently_no_resources_avail = 4 no_pbt_resources_found = 5 cant_init_different_pbt_groups = 6 OTHERS = 7.

GMIDCPOST_POST_IDC CALL FUNCTION 'GMIDCPOST_POST_IDC' STARTING NEW TASK l_taskname DESTINATION IN GROUP p_group PERFORMING post_idc_return ON END OF TASK EXPORTING i_bukrs = u_bukrs i_cutoffdt = u_cutoffdt i_blart = u_blart i_bldat = u_bldat i_budat = u_budat i_monat = u_monat i_test_mode = u_test_mode i_sgtxt = u_sgtxt TABLES t_grant_info = l_t_grant_info t_gmomd = l_t_gmomd t_gmia = l_t_gmia t_gmia2 = l_t_gmia2 t_delta_idc = l_t_delta_idc t_gmgridccap = l_t_gmgridccap t_gmgridccap2 = l_t_gmgridccap2 t_gmgridccap_o = l_t_gmgridccap_o t_gmgridccap2_o = l_t_gmgridccap2_o t_gmidc_post = l_t_gmidc_post t_posted_idc = l_t_posted_idc t_calculated_idc = l_t_calculated_idc t_message_log = l_t_message_log EXCEPTIONS communication_failure = 1 system_failure = 2 resource_failure = 3.

SPBT_GET_PP_DESTINATION CALL FUNCTION 'SPBT_GET_PP_DESTINATION' IMPORTING rfcdest = l_rfcdest EXCEPTIONS OTHERS = 1.

SPBT_DO_NOT_USE_SERVER CALL FUNCTION 'SPBT_DO_NOT_USE_SERVER' EXPORTING server_name = l_servername EXCEPTIONS invalid_server_name = 1 no_more_resources_left = 2 pbt_env_not_initialized_yet = 3 OTHERS = 4.

GMIDCPOST_POST_IDC CALL FUNCTION 'GMIDCPOST_POST_IDC' EXPORTING i_bukrs = u_bukrs i_cutoffdt = u_cutoffdt i_blart = u_blart i_bldat = u_bldat i_budat = u_budat i_monat = u_monat i_test_mode = u_test_mode i_sgtxt = u_sgtxt TABLES t_grant_info = t_grant_info t_gmomd = t_gmomd t_gmia = t_gmia t_gmia2 = t_gmia2 t_delta_idc = t_delta_idc t_gmgridccap = t_gmgridccap t_gmgridccap2 = t_gmgridccap2 t_gmgridccap_o = t_gmgridccap_o t_gmgridccap2_o = t_gmgridccap2_o t_gmidc_post = t_gmidc_post t_posted_idc = t_posted_idc t_calculated_idc = t_calculated_idc t_message_log = g_t_message_log.

RS_REFRESH_FROM_SELECTOPTIONS CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS' EXPORTING curr_report = l_repid TABLES selection_table = lt_rsparams EXCEPTIONS not_found = 0 no_report = 0 OTHERS = 0.

KPEP_MONI_INIT_RECORD CALL FUNCTION 'KPEP_MONI_INIT_RECORD' EXPORTING ls_detail = ls_detail IMPORTING ls_key = ls_key_static TABLES lt_selkrit = lt_selkrit lt_param = lt_param.

MESSAGES_SAVE CALL FUNCTION 'MESSAGES_SAVE' EXPORTING i_balobject = lc_balobject i_balsubobject = lc_balsubobject IMPORTING e_log_handle = ls_message-log_handle EXCEPTIONS no_messages = 1 not_active = 2 program_error = 3 save_not_allowed = 4 wrong_identification = 5 OTHERS = 6.

KPEP_MONI_CLOSE_RECORD CALL FUNCTION 'KPEP_MONI_CLOSE_RECORD' EXPORTING ls_key = ls_key_static ls_message = ls_message TABLES lt_spool = gt_spono CHANGING ld_aplstat = ld_aplstat EXCEPTIONS no_id_given = 1 OTHERS = 2.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = l_f_message_log-arbgb exception_if_not_active = 'X' msgty = l_f_message_log-msgty msgv1 = l_f_message_log-msgv1 msgv2 = l_f_message_log-msgv2 msgv3 = l_f_message_log-msgv3 msgv4 = l_f_message_log-msgv4 txtnr = l_f_message_log-txtnr zeile = l_f_message_log-zeile EXCEPTIONS message_type_not_valid = 0 not_active = 0 OTHERS = 0.




MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS a_message = 0 e_message = 0 i_message = 0 w_message = 0.

MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = l_t_smesg.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RGMIDCPOST or its description.