Ansicht
Dokumentation
BAPI_CONTROLLINGAREA_FIND - Derive Controlling Area from Company Code
Vendor Master (General Section) RFUMSV00 - Advance Return for Tax on Sales/PurchasesThis documentation is copyright by SAP AG.
Functionality
This method provides the company code with the controlling area assigned to it. If the company code does not exist an appropriate error message is transferred to the RETURN paramter. If no controlling area has been assigned to the company code, the initial value (space) is assigned to the CONTROLLINGAREAID parameter. No error message exists in the RETURN structure, because this situation is valid from a business perspective.
Example
-
DATA: CONTROLLINGAREAID LIKE BAPI0004_2-CO_AREA ,
COMPANYCODEID LIKE BAPI0002_2-CO_AREA ,
RETURN LIKE BAPIRETURN .
COMPANYCODEID = '0001'.
CALL FUNCTION 'BAPI_CONTROLLINGAREA_FIND'
EXPORTING
COMPANYCODEID = COMPANYCODEID
IMPORTING
CONTROLLINGAREAID = CONTROLLINGAREAID
RETURN = RETURN
EXCEPTIONS
OTHERS = 1 .
Notes
To find existing controlling area keys, use the method Companycode.GetList (BAPI_COMPANYCODE_GETLIST).
Messages are sent to parameter RETURN. The parameter documentation includes the return values and their meaning.
Parameters
COMPANYCODEIDCONTROLLINGAREAID
RETURN
Exceptions
Function Group
0004COREVendor Master (General Section) ROGBILLS - Synchronize billing plans
This documentation is copyright by SAP AG.
Length: 1743 Date: 20240523 Time: 085046 sap01-206 ( 30 ms )