GetList
Uses selection criteria for a given day to provide a list of allactivity types (controlling area, activity type, and activity type name) matching the criteria. ExampleYou want a list of all activity types in controlling area 0001 and allocated 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 NotesYou require system authorization for object K_CSLA. You can enter the criteria as single values (such as parameter CONTROLLINGAREA), as intervals (CONTROLLINGAREA and
CONTROLLINGAREA_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 any errors that occur. Technical note on import parameters ACTIVITYTYPE, ACTIVITYTYPE_TO and SEARCHSTRING: The selection first valueates the parameters ACTIVITYTYPE and
ACTIVITYTYPE_TO. If the criterium is an individual value, an interval,or an upper limit, the module selects master data according to the selection 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 corresponding entry from the return table.
|