Fonction SAP BAPI_INVPROGRAM_SAVE_ENTITIES - Save Assigned Entities in Summarization Database

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
FROMOWNLOGSYSTEM BAPI1057C0-OWN_LOGSYS C 1 'X' X Entities from Own Logical System
LANGU BAPI1057C0-LANGU C 1 SY-LANGU X Logon Language in SAP Format
LANGUISO 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 that Occurred

Paramètre Reférence Long. Facultatif Description
COSTCENTERS BAPI1057C3 48 X Cost Centers
FUNCTLOCS BAPI1057C5 80 X Functional Locations
MEASURES BAPI1057C1 108 X Measures
PLANTS BAPI1057C4 44 X Plants
PROFITCENTERS BAPI1057C2 48 X Profit Centers
REQUESTS BAPI1057C6 114 X Appropriation Requests
RETURNMESSAGES BAPIRETURN1 470 X Messages (Error Messages, Warnings)

Functionality
Using this method, you can store the identifiers and texts of the(replicated) appropriation requests and measures, which are assigned toan investment program, in the summarization database of InvestmentManagement.
The function module can also be used to store the following in thesummarization database of Investment Management:
identifiers and texts of the (replicated) profit centers, cost centers,plants or functional locations belonging to the investment program orto the appropriation requests or measures belonging to it.
Caution: This method is obsolete as of Release 4.6A! From that pointon, use only the methods of the BUS1157 and BUS1158 business objects.
The identifier of the functional location is limited to 22 charactersin the summarization database of Investment Management. If a longeridentifier is transferred to the function module, an error message isissued!
A "normal master record" is not created for any of the entities listedabove. The entities are stored in special tables for the InformationSystem of Investment Management.
If texts already exist for an entity in the summarization database inthe given language, these texts are overwritten by the new texts.

Caution
The function module should be called at the most only once within atransaction, if possible.
If an error occurs at any point during processing, there is no update,and the function module automatically carries out a ROLLBACK. TheRETURNMESSAGES table parameter contains a list of the errors thatoccurred.
In the case of successful completion, the function module mayautomatically carry out a COMMIT for the database changes, undercertain circumstances. This may or may not have been explicitlytransmitted by the calling program.
The RETURNMESSAGES table parameter may contain another list of warningmessages that were issued.
The RETURN parameter tells you if processing was completed successfullyor if there were errors.

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

Meaning
INCLUDE BAPI_DATAELEMENT

Meaning
INCLUDE BAPI_DATAELEMENT

Meaning
INCLUDE BAPI_DATAELEMENT

Meaning
INCLUDE BAPI_DATAELEMENT

Meaning
INCLUDE BAPI_TABLE