Fonction SAP AIP1_GET_INVPROG - Retrieve investment program

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_AKTYP T020-AKTYP C 1 'V' X Action category (A=display, V=change)
I_CONSIDER_DEC_REQUESTS C C 0 'X' X
I_CONSIDER_FIN_MEASURES 0 'X' X R - Ind: "Consider closed measures"
I_CONSIDER_FIN_MEASURES_ONLY 0 ' ' X
I_CONSIDER_FUT_MEASURES 0 'X' X R - Ind: "Consider future values"
I_CONSIDER_OLD_MEASURES 0 ' ' X R - Ind: "Consider old measures/values"
I_CONSIDER_REJ_MEASURES C C 0 'X' X
I_CONSIDER_REL_MEASURES C C 0 'X' X
I_COSTS_FROMPER T009-ANZBP N 3 '000' X R - Selection of actual values: From period
I_COSTS_FROMYEAR COSP-GJAHR N 4 '0000' X R - Selection of actual values: From fiscal year
I_COSTS_TOPER T009-ANZBP N 3 '000' X R - Selection of actual values: To period
I_COSTS_TOYEAR COSP-GJAHR N 4 '0000' X R - Selection of actual values: To fiscal year
I_CREATE_STREENODE_TOO 0 ' ' X R - Ind: "Create STREENODE"
I_FLG_GNJHR_IQ_DERIVE XFELD C 1 'X' X
I_FLG_LEDGER_ALL C C 0 ' ' X
I_FLG_MR_PL_BU_IN_POS_CURR XFELD C 1 ' ' X
I_FLG_VALUTYP_ALL C C 0 ' ' X
I_FLG_VERSN_ALL C C 0 ' ' X
I_FLG_WITH_PATH XFELD C 1 ' ' X
I_GJAHR IMPR-GJAHR N 4 Approval year
I_GNJHR_IQ IMAK-GJAHR N 4 '0000' X
I_INTERN 0 ' ' X T - Ind: "Budget distribution"
I_LANGU SYST-LANGU C 1 SY-LANGU X Language
I_OBARTS C C 0 'ORPRIQ ' X
I_OLDMEAS RAIP1-OLDMS C 1 ' ' X T - Ind: "Old measures during budget distribution"
I_PLGET 0 '3' X
I_POSID IMPR-POSID C 24 ' ' X Point of entry ID
I_POSNR IMPR-POSNR N 8 00000000 X Internal number of point of entry
I_PRNAM IMTP-PRNAM C 8 Investment program
I_PUT_MAIN_STATUS C C 0 ' ' X
I_PUT_MEASURES_TOO 0 'X' X R - Ind: "Display measures also"
I_PUT_REQUESTS_ONLY C C 0 ' ' X
I_READ_BUDGETS_TOO 0 ' ' X R - Ind: "Read budget of measures"
I_READ_COSTS_TOO 0 ' ' X R - Ind: " Read actual values of measures"
I_READ_PLANS_TOO 0 ' ' X R - Ind: "Read plan values of measures"
I_READ_PROFIT_DATA_TOO 0 ' ' X
I_READ_RELBUDGETS_TOO 0 ' ' X
I_REP_CURR WAERS C 5 ' ' X
I_ROLLUP_BUDGETS 0 ' ' X R - Ind: "Roll up budget of measures"
I_ROLLUP_COSTS 0 ' ' X R - Ind: "Roll up actual values of measures"
I_ROLLUP_PLANS 0 ' ' X R - Ind: "Roll up plan values of measures"
I_ROLLUP_RELBUDGETS 0 ' ' X
I_STATSEL TJ48-SELID C 7 ' ' X R - Status selection profile of measures
I_TRGKZ BPGE-TRGKZ C 1 'N' X T - Approval time period = object indicator
I_UP_TO_LEVEL RAIP_DYNP-TLEVEL N 2 '00' X
I_VALUTYP TKA09-VALUTYP N 1 '0' X
I_VERSN RAIP3-VERSN C 3 '000' X
I_XPLAN 0 ' ' X T - Ind: "Planning transaction"
I_XTRANSACTION 0 ' ' X T - Ind: "Budget transaction/planning transaction"

Paramètre Reférence Type Long. Description
E_IMTP IMTP u 85 IMTP record
E_IMTT IMTT u 97 IMTT record

Paramètre Reférence Long. Facultatif Description
IT_SEL_AUFNR 0 X
IT_SEL_POSNR 0 X
IT_SEL_PSPHI 0 X
IT_SEL_PSPNR 0 X

Exception Description
NOT_FOUND Invalid entry or nothing found

Functionality
The function module imports and buffers the following for
investment program I_PRNAM/I_GJAHR :

  • the investment program (E_IMTP),

  • all program positions (starting with the point of entry position
  • I_POSID or I_POSNR),
    • the parent position of the point of entry position (if the point of
    • entry position is not the top position in the hierarchy),
      • all (!) investment measures

      • (in external processing mode I_INTERN=SPACE),
        • the investment measures of the specified object type E_OBART

        • (in internal processing mode I_INTERN='X').
          The system keeps the program positions/investment measures in thesequence that the budget processor expects (important for functionmodule AIP1_GET_PRPOS_SINGLE).
          When you use internal processing mode (processing of investmentmeasures that belong to program positions), the system asks for theobject type E_OBART in a dialog box when you enter I_OBART=SPACE
          If I_AKTYP='V' (change), the investment program is blocked. If you arein internal processing mode, the system also blocks the investmentmeasures that belong to the specified object type.
          You also have to specify whether you are calling a plannningtransaction (I_XPLAN='X') or a budget transaction (I_XPLAN=SPACE).
          If you set I_READ_BUDGETS_TOO='X' (I_READ_COSTS_TOO='X'), the functionmodule will also import the budget values/plan values of the budgetprocessor too (the actual value from CO). This is a requirement forusing function module AIP1_GET_BUDGET_SINGLE later.