Fonction SAP BAPI_INVPROGRAM_GET_REQUESTS - Output Appropriation Requests and End Nodes of an Investment Program

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
APPROVALYEAR BAPI1057ID-APPR_YEAR N 4 Approval Year of the Investment Program
CAPINVPROGRAM BAPI1057ID-INV_PROG C 8 Name of Investment Program
FROM_POSITION BAPI1057ID-FROM_POS C 24 SPACE X Point of Entry Position of Investment Program
LANGU BAPI1057C0-LANGU C 1 SY-LANGU X Logon Language in SAP Format
LANGU_ISO BAPI1057C0-LANGU_ISO C 2 X Logon Language in ISO Format

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN1 u 470 Information about Errors which Occurred

Paramètre Reférence Long. Facultatif Description
AUTHORIZATION_ERRORS BAPIRETURN1 470 X Error during Authorization Check
PROG_LEAVES BAPI1057CP 90 X Program End Nodes with Description
REQUESTS BAPI1057CR 132 X Appropriation Requests for End Nodes

Functionality
Using this method, you can have the system output all appropriationrequests that are assigned to the investment program.
If no point of entry position is entered, the function module outputsall appropriation requests that are assigned to the investment program.
If a point of entry position is entered, the function module outputsonly those appropriation requests that are assigned to the programposition and are below the point of entry position.
It is only possible to assign appropriation requests to end nodes of aninvestment program (that, is investment program positions that do nothave subordinate positions assigned to them in the hierarchy).Therefore, all end nodes below the point of entry position are alsooutput (regardless of whether or not appropriation requests areassigned to these program positions!).
However, the prerequisite is that the user using the function modulehas authorization to display the selected end nodes and appropriationrequests. If the user does not have authorization for just one of theend nodes or appropriation requests, then neither end nodes norappropriation requests are displayed. Instead the system displays onlya list of the missing authorizations.
Caution: This method is obsolete as of Release 4.6A! From that pointon, use only the methods of the BUS1157 and BUS1158 business objects.

Meaning
INCLUDE BAPI_TABLE
INCLUDE IM_LANGUAGE OBJECT DOKU ID TX
INCLUDE IM_LANGUAGE_ISO OBJECT DOKU ID TX

Meaning
INCLUDE BAPI_DATAELEMENT