Fonction SAP BAPI_ACTIVITYTYPE_GETLIST - List of Activity Types Using Selection Criteria

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ACTIVITYTYPE BAPI1031_1-ACTTYPE C 6 X Activity Type (From-Value)
ACTIVITYTYPE_CATEGORY BAPI1031_3-CATEGORY C 1 X Activity Type Category (From-Value)
ACTIVITYTYPE_CATEGORY_TO BAPI1031_3-CATEGORY C 1 X Activity Type Category (To-Value)
ACTIVITYTYPE_TO BAPI1031_1-ACTTYPE C 6 X Activity Type (To-Value)
ACTIVITYTYPE_UNIT BAPI1031_3-ACT_UNIT C 3 X Activity Unit (From-Value)
ACTIVITYTYPE_UNIT_TO BAPI1031_3-ACT_UNIT C 3 X Activity Unit (To-Value)
ALLOCATION_COSTELEMENT BAPI1031_3-COST_ELEM C 10 X Allocation Cost Element (From Value)
ALLOCATION_COSTELEMENT_TO BAPI1031_3-COST_ELEM C 10 X Allocation Cost Element (To Value)
CONTROLLINGAREA BAPI1031_1-CO_AREA C 4 X Controlling Area (From Value)
CONTROLLINGAREA_TO BAPI1031_1-CO_AREA C 4 X Controlling Area (To Value)
DATE BAPI1031_3-DATE D 8 SY-DATUM X Selection Date: Key Date
DATETO BAPI1031_3-DATE D 8 X
PRICE_INDICATOR BAPI1031_3-PRICE_IND C 3 X Price indicator (from value)
PRICE_INDICATOR_TO BAPI1031_3-PRICE_IND C 3 X Price indicator (to value)
SEARCHSTRING BAPI1031_2-DESCRIPT C 40 X Search String for Activity- Type, Name, Description

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN u 452 Return Parameter

Paramètre Reférence Long. Facultatif Description
ACTIVITYTYPE_LIST BAPI1031_2 70 Return Table: List of Activity Types

Functionality
Uses selection criteria for a given day to provide a list of allactivity types (controlling area, activity type, and activity typename) matching the criteria.

Example
You want a list of all activity types in controlling area 0001 andallocated through cost element 600000 for today's date.
Function module callup:
DATA: I_ACTIVITYTYPE_LIST LIKE BAPI1031_2 OCCURS 0 WITH HEADER LINE,
I_RETURN LIKE BAPIRETURN
CALL FUNCTION 'BAPI_ACTIVITYTYPE_GETLIST'
EXPORTING CONTROLLINGAREA = '0001'
ALLOC_COST_ELEMENT = '600000'
DATE = SY-DATUM
IMPORTING RETURN = I_RETURN
TABLES ACTIVITYTYPE_LIST = I_ACTIVITYTYPE_LIST

Notes
You require system authorization for object K_CSLA.
You can enter the criteria as single values (such as parameterCONTROLLINGAREA), as intervals (CONTROLLINGAREA andCONTROLLINGAREA_TO),or as the upper limit (CONTROLLINGAREA_TO only).
You may also enter a search string with a masking symbol (* or +). Themodule selects all activity types using the string in their names,titles, or descriptions.
If you do not enter any criteria, a list of all activity types appears.
If the R/3 System finds no activity types for the selection criteria,you can find more information in the RETURN parameter regarding anyerrors that occur.
Technical note on import parameters ACTIVITYTYPE, ACTIVITYTYPE_TO andSEARCHSTRING:
The selection first valueates the parameters ACTIVITYTYPE andACTIVITYTYPE_TO. If the criterium is an individual value, an interval,or an upper limit, the module selects master data according to theselection criteria. If you do not enter restrictions, the moduledisplays all activity types fitting the existing criteria.
Afterwards, the module adds the appropriate texts.
If you use the parameter SEARCHSTRING, the module checks, after thetext selection, whether the activity type or the short/long textsinclude the search string. If not, the module removes the correspondingentry from the return table.

Description
Return structure for errors and system messages.

Description
Parameter holding the activity type value or the lowest value of theactivity type interval.
For more information on activity types, see the corresponding dataelement documentation: Activity Type.

Value range
Dictionary data type: CHAR (field length 6).

Default
No default.

Description
Parameter holding the activity type category value or the lowest valueof the activity type category interval in which the SAP R/3 Systemsearches for activity types.
For more information on activity type categories, see the correspondingdata element documentation: Activity Type Category.

Value range
Dictionary data type: CHAR (field length 1).

Default
No default.

Description
Parameter holding the highest value of the activity type category inwhich the SAP R/3 System searches for activity types.
For more information on activity type categories, see the correspondingdata element documentation: Activity Type Category.

Value range
Dictionary data type: CHAR (field length 1).

Default
No default.

Description
Parameter holding the highest value of the activity type interval.
For more information on activity types, see the corresponding dataelement documentation: Activity Type.

Value range
Dictionary data type: CHAR (field length 6).

Default
No default.

Description
Parameter holding the activity type unit value or the lowest value ofthe activity type unit interval in which the SAP R/3 System searchesfor activity types.
For more information on activity type units, see the corresponding dataelement documentation: Activity Type Unit.

Value range
Dictionary data type: CHAR (field length 3).

Default
No default.

Description
Parameter holding the highest value of the activity type unit intervalin which the SAP R/3 System searches for activity types.
For more information on activity type units, see the corresponding dataelement documentation: Activity Type Unit.

Value range
Dictionary data type: CHAR (field length 3).

Default
No default.

Description
Parameter holding the allocation cost element for the activity type orthe lower value of the allocation cost element interval in which theSAP R/3 System searches for activity types.
For more information on allocation cost elements, see the correspondingdata element documentation: Allocation Cost Element.

Value range
Dictionary data type: CHAR (field length 10).

Default
No default.

Description
Parameter holding the highest value of the allocation cost elementinterval in which the SAP R/3 System searches for activity types.
For more information on allocation cost elements, see the correspondingdata element documentation: Allocation Cost Element.

Value range
Dictionary data type: CHAR (field length 10).

Default
No default.

Description
Parameter holding the value of the controlling area or the lowest valueof the controlling area interval in which the SAP R/3 System searchesfor activity types.
For more information on controlling areas, see the corresponding dataelement documentation: Controlling Area.

Value range
Dictionary data type: CHAR (field length 4).

Default
No default.

Description
Parameter holding the highest value of the controlling area interval inwhich the SAP R/3 System searches for activity types.
For more information on controlling areas, see the corresponding dataelement documentation: Controlling Area.

Value range
Dictionary data type: CHAR (field length 4).

Default
No default.

Description
Dates in which the SAP R/3 System searches for activity types.
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
Parameter holding the activity price indicator value or the lowestvalue of the activity price indicator interval in which the SAP R/3System searches for activity types.
For more information on activity price indicators, see thecorresponding data element documentation: Activity PriceIndicator.

Value range
Dictionary data type: CHAR (field length 3).

Default
No default.

Description
Parameter holding the highest value of the activity price indicatorinterval in which the SAP R/3 System searches for activity types.
For more information on activity price indicators, see thecorresponding data element documentation: Activity PriceIndicator.

Value range
Dictionary data type: CHAR (field length 3).

Default
No default.

Description
Parameter holding the string according to which the SAP R/3 Systemsearches for the name or description of the activity type.

Value range
Dictionary data type: CHAR (field length 40)

Default
No default.

Description
Return table holding the keys (controlling area and activity type ID)ofall cost centers found, along with their names in the logon languageSY-LANGU.
For more information on fields, see the corresponding data elementdocumentation: Activity Type and Controlling Area.