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>. |