Ansicht
Dokumentation

BAPI_COAREA_GET_RELATED_CCODES - Determine Company Codes Assigned to one Controlling Area

BAPI_COAREA_GET_RELATED_CCODES - Determine Company Codes Assigned to one Controlling Area

RFUMSV00 - Advance Return for Tax on Sales/Purchases   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The ControllingArea.GetRelatedCompCodes method (BAPI_COAREA_GET_RELATED_CCODES) determines all the company codes assigned to one controlling area.

Example

DATA: CONTROLLINGAREAID LIKE BAPI0004_3-CO_AREA ,
RELATED_COMPANYCODES LIKE BAPI0004_3 OCCURS 0,
RETURN LIKE BAPIRETURN .

CONTROLLINGAREAID = '0001'.

CALL FUNCTION 'BAPI_COAREA_GET_RELATED_CCODES'
EXPORTING
CONTROLLINGAREAID = CONTROLLINGAREAID
IMPORTING
RETURN = RETURN
TABLES
RELATED_COMPANYCODES = RELATED_COMPANYCODES .

Notes

You require authorization for object S_TABU_DIS and table class KC.

You can determine the existing key for the controlling area using the ControllingArea.GetList (BAPI_CONTROLLINGAREA_GETLIST) method.

Messages are are issued in the RETURN parameter. In this parameter documentation you can find the return values and their meaning.

If no company codes have been assigned, the RETURN parameter is initial and the RELATED_COMPANYCODES table contains no entries.





Parameters

CONTROLLINGAREAID
RELATED_COMPANYCODES
RETURN

Exceptions

Function Group

0004CORE

ABAP Short Reference   SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up  
This documentation is copyright by SAP AG.

Length: 1740 Date: 20240523 Time: 105734     sap01-206 ( 22 ms )