Fonction SAP BAPI_PROFITCENTERGRP_GETLIST - Object BUS1116 (Profit Center Group) - Method GetList

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CONTROLLINGAREAMASK BAPICO_GROUP-CO_AREA C 4 '*' X Entry Screen for the Controlling Area
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 Occurred

Paramètre Reférence Long. Facultatif Description
GROUPLIST BAPI1112_LIST 59 List of Profit Centers Found

Description
List of profit center groups.
All the profit center groups that fulfill the specified selectioncriteria are searched for.
The search for groups can be restricted by entering a mask for thegroup name (mask characters are +*) in the optional GroupNameMask
parameter.
The
controlling area of thegroups are specified in the ControllingAreaMask parameter. Youcan use mask characters here too.
If the optional TopNodesOnly parameter is set to 'X', only thosegroups that are the top nodes in a hierarchy (are not used in othergroups) are searched for.
The list of the groups found is transferred to the GroupListtable.
If an error occurs during the search, the error message is output inthe Return parameter.

Example
All the profit center groups from controlling area 1000 that begin with'A' are to be output. Method call:
DATA: LT_GROUPLIST LIKE BAPI1112_LIST OCCURS 0,
L_RETURN LIKE BAPIRET2.
CALL FUNCTION 'BAPI_PROFITCENTERGROUP_GETLIST'
EXPORTING
CONTROLLINGAREAMASK = '1000'
GROUPNAMEMASK = 'A*'
IMPORTING
RETURN = L_RETURN
TABLES
GROUPLIST = LT_GROUPLIST.

Notes
You need the read authorization for the object
K_PCAP_SET
INCLUDE CO_BAPI_GROUP_GETLIST_RETURN OBJECT DOKU ID TX LANGUAGE EN
INCLUDE CO_BAPI_GROUP_GETLIST_COAREA OBJECT DOKU ID TX LANGUAGE EN
INCLUDE CO_BAPI_GETLIST_COAREA_VOR OBJECT DOKU ID TX LANGUAGE EN
INCLUDE CO_BAPI_GROUP_GETLIST_GRPMSK OBJECT DOKU ID TX LANGUAGE EN
INCLUDE CO_BAPI_GETLIST_GRPMASK_VOR OBJECT DOKU ID TX LANGUAGE EN

Description
Language in which the 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
INCLUDE CO_BAPI_GROUP_STRUCTURE_03 OBJECT DOKU ID TX LANGUAGE EN
INCLUDE CO_BAPI_GROUP_PARAMETER_INFO OBJECT DOKU ID TX LANGUAGE EN