Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> Bapi>ExpenditureProgDef



Index

ExpenditureProgDef

ExpenditureProgDef


The business object program definition encompasses master data and other information relevant to a program.


Structure


The program definition consists of


-Program ID


-Approval year


-Program type


-Short text of program ID


-Fiscal year variant


-Currency


-Specifications for budget distribution/budget categories


In addition, you can specify the person resonsible for the program and a default language.


Integration


The program ID and approval year entered in the program definition uniquely identify the program.


11-Dec-2005


Methods

Available Methods


  • Change : Change [ BAPI_EXPENDITUREPROGDEF_CHANGE ]
  • Create : Create [ BAPI_EXPENDITUREPROGDEF_CREATE ]
  • ExistenceCheck : Existence check [ BAPI_EXPENDITUREPROGDEF_EXCHK ]
  • GetDetail : Display [ BAPI_EXPENDITUREPROGDEF_GETDTL ]
  • GetList : Object list [ BAPI_EXPENDITUREPROGDEF_GTLIST ]
  • SaveReplica : SaveReplica - SAP internal use only [ BAPI_EXPENDITUREPROGDEF_SAVER ]

11-Dec-2005


Change

Change


Function

Using this method, you can change the master data of the programdefinition entered. The program type and program ID cannot be changed.

The system takes into account only those fields that have changedentries, that is you only have to enter the fields that are to be changed. Other fields can remain empty.


Before the change to the program definition is made, there is an automatic check of the consistency of the data in the local andexternal systems.

Set the TEST_RUN indicator to have the system check if changing the data is possiblewithout errors. You receive a list showing any errors. In this way, you
avoid the situation in which multiple errors cause the change of datato be interruped each time. The change itself is not made when this indicator is set.

Notes

The program definition consists of the PROGRAM and APPROVALYEAR parameters.


The data to be changed is transferred using both the PROGDEF_OLD and PROGDEF_NEW structures.PROGDEF_OLD contains the unchanged data, as it was in the external system before the change. The PROGDEF_NEW structure contains thechanged data.


During the consistency check, the system compares the unchanged data ofthe fields to be changed in the PROGDEF_OLD structure with the corresponding data in the local system. The system makes the changesonly if the data is the same.

Additional information


For more information, refer to the SAP Library IM under Investment Programs.


11-Dec-2005


Create

Create


Function

You can use this method to create the master data of a program definition.

Note

The program definition is specified by the PROGRAM and APPROVALYEAR parameters.

Additional information

For more information, refer to the SAP Library IM under Investment Programs.


11-Dec-2005


ExistenceCheck

ExistenceCheck


Function

You can use this method to check if an entered program definition already exists.

Notes

The program definition is specified by the parameters PROGRAM and APPROVALYEAR

Further information

For more information, see the SAP Libarary IM, Investment Program.


11-Dec-2005


GetDetail

GetDetail


Function

You can use this method to call information using a program definition (for example, currency, fiscal year variant, short text).

Notes

The system returns the master data of the program definition specified by the parameters PROGRAM and APPROVALYEAR
. They are returned in the PROGDEF structure.

Further Information

For more information, see the SAP Library IM, Investment Program.


11-Dec-2005


GetList

GetList


Funcktion

This method returns all program definitions that meet the selection criteria entered.

For example, when you enter approval years "1980-1990", then allprogram definitions are listed that were approved in these years.

For more detailed information on the program definitions determined in this way, call the object list.


Notes

The function supplies a table with program IDs (that is, the key fields PROGRAM and APPROVALYEAR )that satisfy the selection criteria. These criteria are transferred inthe RANGES_PROGRAM and RANGES_APPROVALYEAR tables, which are similar to RANGES tables in ABAP programming.


Before returning the values it finds, the system carries out anauthorization check. It returns only those program IDs, for which thereis display authorization. If there is no display authorization for anyof the program definitions found, the system issues an error message.


Further Information

For more information, see the SAP Library IM, Investment Programs Programs.


11-Dec-2005


SaveReplica

SaveReplica


No document is available


11-Dec-2005