SAP Reports / Programs | Investment Management | Capital Investments | Investment Programs(IM-FA-IP) SAP IM

RAIMCCP2 SAP ABAP Report - Transfer Appropriation Request Plan to Measure Plan







RAIMCCP2 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RAIMCCP2 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

IMCCP2 - Transfer App.Req. Plan -> Meas. Plan


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 RAIMCCP2. "Basic submit
SUBMIT RAIMCCP2 AND RETURN. "Return to original report after report execution complete
SUBMIT RAIMCCP2 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: TEST_RUN = D Test Run
Selection Text: SO_WERKS = D Plant
Selection Text: SO_VKOKR = D Controlling Area
Selection Text: SO_REQID = D Appropriation Request
Selection Text: SO_POSID = D Position ID
Selection Text: SO_ABUKR = D Requesting Company Code
Selection Text: PA_VTO = Target version (if different)
Selection Text: PA_VFROM = Source Version
Selection Text: PA_SGTXT = D Line Item Text
Selection Text: PA_PRNAM = D Investment Program
Selection Text: PA_GJAHR = D Approval Year
Title: Transfer Appropriation Request Plan to Measure Plan
Text Symbol: MO2 = The program was executed in test mode
Text Symbol: 001 = The following serious error occurred - inform your system administrator:
Text Symbol: 002 = No data was updated
Text Symbol: 003 = The following error, warning and information messages were issued:
Text Symbol: 004 = Data was updated successfully
Text Symbol: 005 = Data could be updated, as long as no errors were found
Text Symbol: 006 = Data can be updated
Text Symbol: 007 = Data can be updated, as long as no errors are found
Text Symbol: 008 = Following errors occurred:
Text Symbol: 009 = The following warning and information messages were issued:
Text Symbol: F01 = Processing options
Text Symbol: F02 = Selections
Text Symbol: LOG = Transfer Appropriation Request Plan to Measure Plan
Text Symbol: MO1 = The program was executed in update mode


INCLUDES used within this REPORT RAIMCCP2

INCLUDE SBAL_CONSTANTS.


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:

AIPP_GET_SELOP_RESTRICTIONS CALL FUNCTION 'AIPP_GET_SELOP_RESTRICTIONS' IMPORTING e_restrict = restrict TABLES it_selop_name = lt_selop_name.

SELECT_OPTIONS_RESTRICT CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' EXPORTING restriction = restrict EXCEPTIONS OTHERS = 1.

AIPA_CHECK_SUBTREE_INVPROG CALL FUNCTION 'AIPA_CHECK_SUBTREE_INVPROG' EXPORTING i_prnam = pa_prnam i_posid = so_posid-low i_gjahr = pa_gjahr i_flg_pos_required = ' ' i_flg_pos_must_be_a_leaf = ' ' EXCEPTIONS no_entries_made = 1 entries_not_complete = 2 program_does_not_exist = 3 position_does_not_exist = 4 position_not_indicated = 5 position_is_not_a_leaf = 6 OTHERS = 7.

AIPA_F4_PROGRAM CALL FUNCTION 'AIPA_F4_PROGRAM' EXPORTING i_program = gd_program i_dynnr = gd_dynnr i_fn_prnam = 'PA_PRNAM' i_fn_gjahr = 'PA_GJAHR'.

AIPA_F4_POSITION CALL FUNCTION 'AIPA_F4_POSITION' EXPORTING i_program = gd_program i_dynnr = gd_dynnr i_fn_prnam_proposal = 'PA_PRNAM' i_fn_gjahr_proposal = 'PA_GJAHR' i_fn_prnam = 'PA_PRNAM' i_fn_posid = 'SO_POSID-LOW' i_fn_gjahr = 'PA_GJAHR'.

AIPA_F4_PLAN_VERSION CALL FUNCTION 'AIPA_F4_PLAN_VERSION' EXPORTING i_program = gd_program i_dynnr = gd_dynnr i_fn_gjahr_proposal = 'PA_GJAHR' i_fn_prnam_proposal = 'PA_PRNAM' i_fn_versn = 'PA_VFROM'.

AIPA_F4_PLAN_VERSION CALL FUNCTION 'AIPA_F4_PLAN_VERSION' EXPORTING i_program = gd_program i_dynnr = gd_dynnr i_fn_gjahr_proposal = 'PA_GJAHR' i_fn_prnam_proposal = 'PA_PRNAM' i_fn_versn = 'PA_VTO'.

AIPA_APPL_LOG_GET_HANDLE CALL FUNCTION 'AIPA_APPL_LOG_GET_HANDLE' IMPORTING es_log_handle = gs_log_handle.

AIPA_APPL_LOG_INSERT_COMMENT CALL FUNCTION 'AIPA_APPL_LOG_INSERT_COMMENT' EXPORTING is_log_handle = gs_log_handle id_comment = text-mo1.

AIPA_APPL_LOG_INSERT_COMMENT CALL FUNCTION 'AIPA_APPL_LOG_INSERT_COMMENT' EXPORTING is_log_handle = gs_log_handle id_comment = text-mo2.

AIPA_IPASSG_PARTITION_GET CALL FUNCTION 'AIPA_IPASSG_PARTITION_GET' IMPORTING ed_new_buffer_partition = gd_buffer_partition.

AIPA_IPASSG_BUFFER_REFRESH CALL FUNCTION 'AIPA_IPASSG_BUFFER_REFRESH' EXPORTING id_buffer_partition = gd_buffer_partition.

AIPA_IPASSG_BUFFER_FILL CALL FUNCTION 'AIPA_IPASSG_BUFFER_FILL' EXPORTING id_buffer_partition = gd_buffer_partition id_prnam = pa_prnam id_gjahr = pa_gjahr iflg_get_indirect_assg_too = ' ' iflg_buffer_assgined_objs_only = 'X' TABLES it_obj = gt_obj ir_posid = gt_imselopt EXCEPTIONS abend_occured = 1 OTHERS = 2.

AIPB_BAPIRET2_FILL CALL FUNCTION 'AIPB_BAPIRET2_FILL' EXPORTING type = sy-msgty cl = sy-msgid number = sy-msgno par1 = sy-msgv1 par2 = sy-msgv2 par3 = sy-msgv3 par4 = sy-msgv4 IMPORTING return = gs_return_abend.

AIPA_IPASSG_BUFFER_LOOP_INIT CALL FUNCTION 'AIPA_IPASSG_BUFFER_LOOP_INIT'.

AIPA_IPASSG_BUFFER_LOOP CALL FUNCTION 'AIPA_IPASSG_BUFFER_LOOP' EXPORTING id_buffer_partition = gd_buffer_partition IMPORTING ed_objnr = gt_obj_proc-objnr eflg_no_more_entries = gflg_no_more_entries EXCEPTIONS abend_occured = 1 OTHERS = 2.

AIPB_BAPIRET2_FILL CALL FUNCTION 'AIPB_BAPIRET2_FILL' EXPORTING type = sy-msgty cl = sy-msgid number = sy-msgno par1 = sy-msgv1 par2 = sy-msgv2 par3 = sy-msgv3 par4 = sy-msgv4 IMPORTING return = gs_return_abend.

AIPA_CP_REQ_PLAN_TO_MEAS_PLAN CALL FUNCTION 'AIPA_CP_REQ_PLAN_TO_MEAS_PLAN' EXPORTING id_versn_from = pa_vfrom id_gnjhr_from = pa_gjahr id_versn = pa_vto iflg_or = 'X' iflg_pr = 'X' iflg_cons_check = ' ' iflg_cons_check_obj = ' ' iflg_cons_check_def = 'X' iflg_cons_adjust = ' ' id_cons_severity = 'W' iflg_test_run = test_run id_sgtxt = gd_sgtxt TABLES it_obj = gt_obj_proc et_return = gt_return_tmp EXCEPTIONS abend_occured = 1 OTHERS = 2.

AIPB_BAPIRET2_FILL





CALL FUNCTION 'AIPB_BAPIRET2_FILL' EXPORTING type = sy-msgty cl = sy-msgid number = sy-msgno par1 = sy-msgv1 par2 = sy-msgv2 par3 = sy-msgv3 par4 = sy-msgv4 IMPORTING return = gs_return_abend.

AIPA_APPL_LOG_INSERT_COMMENT CALL FUNCTION 'AIPA_APPL_LOG_INSERT_COMMENT' EXPORTING is_log_handle = gs_log_handle id_comment = text-001.

AIPA_APPL_LOG_INSERT_MESSAGE CALL FUNCTION 'AIPA_APPL_LOG_INSERT_MESSAGE' EXPORTING is_log_handle = gs_log_handle is_return = gs_return_abend.

AIPA_APPL_LOG_INSERT_COMMENT CALL FUNCTION 'AIPA_APPL_LOG_INSERT_COMMENT' EXPORTING is_log_handle = gs_log_handle id_comment = text-002.

AIPA_APPL_LOG_INSERT_COMMENT CALL FUNCTION 'AIPA_APPL_LOG_INSERT_COMMENT' EXPORTING is_log_handle = gs_log_handle id_comment = gd_ewi_text.

AIPA_APPL_LOG_INSERT_MESSAGE CALL FUNCTION 'AIPA_APPL_LOG_INSERT_MESSAGE' EXPORTING is_log_handle = gs_log_handle is_return = gt_return.

AIPA_APPL_LOG_INSERT_COMMENT CALL FUNCTION 'AIPA_APPL_LOG_INSERT_COMMENT' EXPORTING is_log_handle = gs_log_handle id_comment = text-004.

AIPA_APPL_LOG_INSERT_COMMENT CALL FUNCTION 'AIPA_APPL_LOG_INSERT_COMMENT' EXPORTING is_log_handle = gs_log_handle id_comment = text-006.

AIPA_APPL_LOG_INSERT_COMMENT CALL FUNCTION 'AIPA_APPL_LOG_INSERT_COMMENT' EXPORTING is_log_handle = gs_log_handle id_comment = text-005.

AIPA_APPL_LOG_INSERT_COMMENT CALL FUNCTION 'AIPA_APPL_LOG_INSERT_COMMENT' EXPORTING is_log_handle = gs_log_handle id_comment = text-007.

AIPA_APPL_LOG_INSERT_COMMENT CALL FUNCTION 'AIPA_APPL_LOG_INSERT_COMMENT' EXPORTING is_log_handle = gs_log_handle id_comment = text-004.

AIPA_APPL_LOG_INSERT_COMMENT CALL FUNCTION 'AIPA_APPL_LOG_INSERT_COMMENT' EXPORTING is_log_handle = gs_log_handle id_comment = text-006.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

AIPA_APPL_LOG_WRITE_AS_LIST CALL FUNCTION 'AIPA_APPL_LOG_WRITE_AS_LIST' EXPORTING id_title = text-log.

AIPA_CIP_SUBTREE_LEAFS_GET CALL FUNCTION 'AIPA_CIP_SUBTREE_LEAFS_GET' EXPORTING id_prnam = pa_prnam id_gjahr = pa_gjahr TABLES it_posid_entry = lt_posid_entry et_posid_leaf = lt_posid_leaf.



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 RAIMCCP2 or its description.