Fonction SAP BAPI_EXPENDITUREPROGTREE_GDVAL - Determine Values for Program Sub-Tree

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ACTUALS_FROM_PERIOD BAPIPROGAUX-ACTUALS_FROM_PERIOD N 3 X From period for selection of actual values
ACTUALS_FROM_YEAR BAPIPROGAUX-ACTUALS_FROM_YEAR N 4 X From fiscal year for selection of actual values
ACTUALS_TO_PERIOD BAPIPROGAUX-ACTUALS_TO_PERIOD N 3 X To period for selection of actual values
ACTUALS_TO_YEAR BAPIPROGAUX-ACTUALS_TO_YEAR N 4 X To fiscal year for selection of actual values
APPROVALYEAR BAPIPROGPOSID-APPROVALYEAR N 4 Approval Year of Program
POSITION BAPIPROGPOSID-POSITION C 24 Position ID
PROGRAM BAPIPROGPOSID-PROGRAM C 8 Program Name
READ_CARRY_FORWARD_VALUES_ALSO BAPIPROGAUX-CFW_VALUES C 1 ' ' X Read Values from Carryforward
READ_FUTURE_VALUES_ALSO BAPIPROGAUX-FUT_VALUES C 1 ' ' X Read Values from Forecast
READ_MEASURE_ACTUALS_ALSO BAPIPROGAUX-GET_M_ACTUALS C 1 ' ' X Read Actual/Commitment from Measures
READ_MEASURE_BUDGET_ALSO BAPIPROGAUX-GET_M_BUDG C 1 ' ' X Read Budget from Measures
READ_MEASURE_PLAN_ALSO BAPIPROGAUX-GET_MR_PLAN C 1 ' ' X Read Plan from Meas./App.Req.
REPORTING_CURRENCY BAPIPROGAUX-REPORTING_CURRENCY C 5 ' ' X Report Currency
REPORTING_CURRENCY_ISO BAPIPROGAUX-REPORTING_CURRENCY_ISO C 3 ' ' X Reporting Currency in ISO Format
STATUS_SEL_PROFILE BAPIPROGAUX-STATUS_SEL_PROFILE C 7 X Status selection profile (measures/approp. requests)
TEST_RUN BAPIPROGAUX-TEST_RUN C 1 ' ' X Test Run
TEST_RUN_MAX_NUMBER_MESSAGES BAPIPROGAUX-TEST_RUN_EMAX I 4 '1000' X Maximum Number of Return Messages during Test Run

Paramètre Reférence Long. Facultatif Description
PROGTREEVALUESLIST BAPIPROGVALLIST 88 X Values of Program Positions
RETURN BAPIRET2 548 X Return Messages

Function
This method is used to determine plan values, budget values, actualvalues and commitments for the positions of a program sub-tree.

Notes
The standard output of the values is in controlling area currency. Byentering a valid reporting currency in either the REPORTING_CURRENCY orREPORTING_CURRENCY_ISO field, you can have the system output the valuesin a reporting currency that differs from the controlling areacurrency. For more information, refer to theDocumentation on the Reporting Currency in IM.
The standard output of the method are the current plan and budgetvalues of the program positions. By setting additional indicators, youcan also receive the following values:
READ_CARRY_FORWARD_VALUES_ALSO = X
During calculation of the plan and budget values of program positions,carryforward values are also taken into account.
During calculation of the plan, budget, actual and commitment values ofmeasures or appropriation requests, the measure values that werecarried forward are also taken into account (if requested; see below).
READ_FUTURE_VALUES_ALSO = X
During calculation of plan and budget values of program positions,values from the forecast are also taken into account.
READ_MEASURE_PLAN_ALSO = X
The plan values from measures and appropriation requests are also readand displayed on the program positions (in summarized form).
READ_MEASURE_BUDGET_ALSO = X
The budgets of measures and measures for appropriation requests areread and displayed on the program positions (in summarized form).
READ_MEASURE_ACTUALS_ALSO = X
The actual values and commitments of measures and measures forappropriation requests are read and displayed on the program positions(in summarized form).
INCLUDE IM_APPROVALYEAR OBJECT DOKU ID TX
INCLUDE IM_POSITION OBJECT DOKU ID TX
INCLUDE IM_PROGRAM OBJECT DOKU ID TX
See function documentation.
See function documentation.
See function documentation.
See function documentation.
See function documentation.
Refer to the functiondocumentation .
Refer to the functiondocumentation.

Meaning
Set this indicator in oreder to carry out a test run.
If the indicator is set, any errors are collected and returnedin RETURN.
You can enter a maximum number of errors that should be determined. Youenter this number in the TEST_RUN_MAX_NUMBER_MESSAGES parameter. Thedefault is 100 errors.
If the indicator is not set, processing terminates after thefirst error is found. Only this first error is returned in RETURN.
By using the TEST_RUN indicator and the TEST_RUN_MAX_NUMBER_MESSAGESparameter, you can pinpoint possible missing authorizations for readingvalues before you carry out the production run.
You should note that no values are returned in the PROGTREEVALUESLISTtable until there are absolutely no errors reported in RETURN !
SAP therefore recommends that you keep setting the TEST_RUN indicatoruntil there are no more errors reported in RETURN.
See documentation forTEST_RUN.
INCLUDE IM_PROGTREEVALUESLIST OBJECT DOKU ID TX

Meaning
Overview of the most important return messages (TYPE.ID.NUMBER):
INCLUDE IM_AP003 OBJECT DOKU ID TX
INCLUDE IM_AP005 OBJECT DOKU ID TX
INCLUDE IM_AP076 OBJECT DOKU ID TX
INCLUDE IM_AP154 OBJECT DOKU ID TX