Functionality Determines, for a given day, activity prices for cost center/activitytype combinations. The activity types receiving the prices are given in the form of atable with object IDs (controlling area, activity type). Example You want all activity type prices from table I_OBJECT_IDS for costcenter PROCUREMENT on today's date. Function module callup: DATA: I_OBJECT_IDS LIKE BAPI1031_1, I_PRICES LIKE BAPI1031_4, I_RETURN LIKE BAPIRETURN CALL FUNCTION 'BAPI_ACTIVITYTYPE_GETPRICES' EXPORTING COSTCENTER = 'BESCHAFFUNG' IMPORTING RETURN = I_RETURN TABLES OBJECT_IDS = I_OBJECT_IDS PRICES = I_PRICES. Notes The R/3 System uses the plan activity values (value type 01) fromversion 0. You require system authorization for object K_CSLA>. You can enter the cost centers by entering:
- a single value (fill COSTCENTER parameter)
- an interval (fill COSTCENTER and COSTCENTER_TO parameters)
- or an upper limit (fill COSTCENTER_TO parameter).
If you do not enter any selections, the module searches for allactivity types in the object table for cost centers. The controlling area is based on the object table entries. These mayvary for different object entries, but the fiscal year variants mustagree on the same key date, in the same period and the same fiscalyear. If this is not the case, processing is ended and the systemoffers you information about any errors occurring in the RETURNparameter. Return table PRICES includes all cost center/activity type combinationsfitting the given selection criteria, in addition to the correspondingactivity type prices for the given date's period. The table gives, inaddition to cost center/activity type texts, the total activity priceper quantity unit, the activity unit, and the activity price unit incontrolling area currency. If no activity prices could be found for the selection criteria, thesystem offers more information under the RETURN parameter. If controlling areas in the object table have key dates in differentperiods and/or fiscal years, then processing cannot be continued andthe system describes the errors that have occurred in the RETURNparameter.Description Return structure for errors and system messages. Description Parameter holding the value of the cost center or the lowest value ofthe cost center interval in which the SAP R/3 System searches foractivity type prices. For more information on cost centers, see the corresponding dataelement documentation: Cost Center>.Value range Dictionary data type: CHAR (field length 10) Default No default. Description Parameter holding the highest value of the cost center interval inwhich the SAP R/3 System searches for activity type prices. For more information on cost centers, see the corresponding dataelement documentation: Cost Center>.Value range Dictionary data type: CHAR (field length 10) Default No default. Description Dates in which the SAP R/3 System searches for activty type prices. For more information on the date, see the corresponding data elementdocumentation: From Date> and To Date>.Value range Dictionary data type: DATS (field length 8) Default Defaulted with the current system date (SY-DATUM). Description Return table holding the keys (controlling area and cost center ID) ofall activity types for which the SAP R/3 System searches for prices. For more information on fields, see the corresponding data elementdocumentation: Activity Type> andControlling Area>.Description Return table holding the activity type prices for all the activitytypes found.
|