Fonction SAP BAPI_INVPROGRAM_GET_LEAVES - Output 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 Program End Nodes with Description

Functionality
You can use this method to display all the end node positions of aninvestment program.
If no point of entry position is entered, the function module outputsall end node positions of the investment program hierarchy, that is,all program positions that do not have lower positions assigned tothem.
If a point of entry position is entered, the function module outputsall end node positions that are subordinate to the point of entry.
However, the prerequisite is that the user using the function modulehas authorization to display the selected end nodes. If the user doesnot have authorization for just one of the end nodes, then no end nodesare displayed. Instead the system displays only a list of the missingauthorizations.
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

Meaning
INCLUDE BAPI_DATAELEMENT