Functionality This method provides the company code with the controlling areaassigned to it. If the company code does not exist an appropriate errormessage is transferred to the RETURN paramter. If no controlling areahas been assigned to the company code, the initial value (space) isassigned to the CONTROLLINGAREAID parameter. No error message exists inthe RETURN structure, because this situation is valid from a businessperspective. 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 methodCompanycode.GetList (BAPI_COMPANYCODE_GETLIST). Messages are sent to parameter RETURN. The parameter documentationincludes the return values and their meaning. Description Key for the controlling area> determined by the R/3System for the company code.Description Method return code. Value range Type Code Meaning E(rror) KI200 Company code assigned to no controlling area E(rror) KI206 Company code does not exist Blank Blank Method sucessfully completed Description Key for the company code> for which the R/3 Systemdetermines the associated controlling area. |