Fonction SAP BAPI_COSTELEMENTGRP_GETLIST - Object BUS1113 (Cost Element Group) - Method GetList

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CHARTOFACCOUNTSMASK BAPICO_GROUP-CHRT_ACCTS C 4 '*' X Entry Screen for the Chart of Accounts
GROUPNAMEMASK BAPICO_GROUP-GROUPNAME C 15 '*' X Entry Screen for the Group Name
LANGUAGE BAPI0015_10 u 3 X Language in which Texts are Read
TOPNODESONLY BAPICO_GROUP-TOPNODESONLY C 1 ' ' X Search Only for Top Node

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Error

Paramètre Reférence Long. Facultatif Description
GROUPLIST BAPI1113_LIST 59 List of Cost Element Groups Found


List of
cost element groups. Allthe cost element groups are searched for that satisfy the selectioncriteria.
You can restrict the search for groups by transferring a mask for thegroup name in the optional parameter GroupNameMask (maskingindicators are +*).
The
chart of accounts of thegroups is entered in the ChartOfAccountsMask parameter (maskingindicators are also possisble here).
If the optional parameterr TopNodesOnly is set to 'X', a searchis only made for groups that are the top node in a hierarchy, i.e. theyare not used in other groups.
The list of groups found is transfered to the table GroupList.
If an error occurs during the search, the eror message is issued in theReturn parameter.

Example
All cost element groups from the chart of accounts INT that begin with'A' are to be displayed. Call the method:
DATA: LT_GROUPLIST LIKE BAPI1113_LIST OCCURS 0,
L_RETURN LIKE BAPIRET2.
CALL FUNCTION 'BAPI_COSTELEMENTGRP_GETLIST'
EXPORTING
CHARTOFACCOUNTS = 'INT '
GROUPNAME = 'A*'
IMPORTING
RETURN = L_RETURN
TABLES
GROUPLIST = LT_GROUPLIST.

Notes
You require the read authorization for object
K_CSKA_SET
INCLUDE CO_BAPI_GROUP_GETLIST_RETURN OBJECT DOKU ID TX LANGUAGE EN

Description
Specify the chart of accounts for which the groups areto be found.
The import parameter chart of accounts is optional, youdo not need to fill it.

Default
'*',, Search for groups in all charts of accounts
INCLUDE CO_BAPI_GROUP_GETLIST_GRPMSK OBJECT DOKU ID TX LANGUAGE EN

Default
'*',, Searches for all groups of the chart of accounts specified

Description
Language in which texts are read.
INCLUDE CO_BAPI_GROUP_GETLIST_TOPNOD OBJECT DOKU ID TX LANGUAGE EN
INCLUDE CO_BAPI_GETLIST_TOPNODE_VOR OBJECT DOKU ID TX LANGUAGE EN
INCLUDE CO_BAPI_GROUP_GETLIST_GRPLTS OBJECT DOKU ID TX LANGUAGE EN
CHRT_ACCTS,,Chart of accounts
GROUPNAME,,Group name
DESCRIPT,,Short description of group
INCLUDE CO_BAPI_GROUP_PARAMETER_INFO OBJECT DOKU ID TX LANGUAGE EN