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

RAIMSTAT SAP ABAP Report - Determine a Quantity Structure for an Investment Program







RAIMSTAT 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 RAIMSTAT into the relevant SAP transactions such as SE38 or SE80


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 RAIMSTAT. "Basic submit
SUBMIT RAIMSTAT AND RETURN. "Return to original report after report execution complete
SUBMIT RAIMSTAT 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: PA_GJAHR = D Approval year
Selection Text: PA_POSID = D Position ID
Selection Text: PA_PRNAM = D Investment program
Selection Text: SO_VERSN = D Version
Selection Text: SO_WRTTP = D Value type
Title: Determine a Quantity Structure for an Investment Program
Text Symbol: 120 = Activity
Text Symbol: 110 = Networks
Text Symbol: 100 = Projects for appropriation request (inc. subordinate)
Text Symbol: 090 = Projects for appropriation request
Text Symbol: 080 = WBS elements as measures (incl. subordinate WBS elem.)
Text Symbol: 070 = WBS elements as measures
Text Symbol: 060 = Orders for appropriation request
Text Symbol: 050 = Orders for project
Text Symbol: 040 = Orders as measures
Text Symbol: 030 = Variants
Text Symbol: 020 = Appropriation requests
Text Symbol: 010 = Inv. prog. positions
Text Symbol: 130 = Version assignments
Text Symbol: 190 = RECRD NO.
Text Symbol: 180 = ValueType
Text Symbol: 170 = VERSION
Text Symbol: 160 = Program position:
Text Symbol: 150 = Approval year:
Text Symbol: 140 = Investment program:


INCLUDES used within this REPORT RAIMSTAT

No INCLUDES are used within this REPORT code!


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:

AIPA_F4_PROGRAM CALL FUNCTION 'AIPA_F4_PROGRAM' EXPORTING I_PROGRAM = SY-CPROG I_DYNNR = SY-DYNNR I_FN_PRNAM = 'PA_PRNAM' I_FN_GJAHR = 'PA_GJAHR'.

AIPA_F4_POSITION CALL FUNCTION 'AIPA_F4_POSITION' EXPORTING I_PROGRAM = SY-CPROG I_DYNNR = SY-DYNNR I_FN_PRNAM_PROPOSAL = 'PA_PRNAM' I_FN_POSID = 'PA_POSID' I_FN_GJAHR_PROPOSAL = 'PA_GJAHR'.

AIPA_CHECK_SUBTREE_INVPROG CALL FUNCTION 'AIPA_CHECK_SUBTREE_INVPROG' EXPORTING I_PRNAM = PA_PRNAM I_POSID = PA_POSID I_GJAHR = PA_GJAHR.

AIP1_GET_INVPROG CALL FUNCTION 'AIP1_GET_INVPROG' EXPORTING I_PRNAM = PA_PRNAM I_GJAHR = PA_GJAHR I_POSID = PA_POSID I_AKTYP = 'A' I_LANGU = SY-LANGU I_PUT_MEASURES_TOO = ' ' I_CREATE_STREENODE_TOO = 'X' EXCEPTIONS NOT_FOUND = 1 OTHERS = 2.

AIP1_GET_IMPR CALL FUNCTION 'AIP1_GET_IMPR' TABLES T_IMPR = GT_IMPR[].

OBJECT_KEY_GET_PR CALL FUNCTION 'OBJECT_KEY_GET_PR' EXPORTING OBJNR = LS_OBJNR-OBJNR IMPORTING PSPNR = L_PSPNR EXCEPTIONS NOT_FOUND = 01 WRONG_OBART = 02.

GET_TREE_FROM_PRHI CALL FUNCTION 'GET_TREE_FROM_PRHI' EXPORTING I_PSPNR = L_PSPNR NO_BUFFER = 'X' TABLES PSP_TREE = LT_PRHI[] EXCEPTIONS INPUT_ERROR = 1 PSP_HIERARCHY_ERROR = 2 PSP_NOT_FOUND = 3 OTHERS = 4.

OBJECT_KEY_GET_IQ CALL FUNCTION 'OBJECT_KEY_GET_IQ' EXPORTING OBJNR = LS_OBJNR-OBJNR IMPORTING IMA_POSNR = LS_POSNR-POSNR EXCEPTIONS NOT_FOUND = 1 WRONG_OBART = 2 OTHERS = 3.



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