About a small bug
Some sentences about a message without sense:
S:EK:060.
This message messade is returned by the following operations>
Transaction PHCPADMN.
Plan data -> Transfer to CO -> Display original document Ctrl+Shift+F2
or Check original document Ctrl+Shift+F3
or Update original document Ctrl+Shift+F6
or Post Plan Ctrl+Shift+F4
This error exists when missing authorization for
OBJECT ‘S_TABU_DIS’
ID ‘ACTVT’ 03
ID ‘DICBERCLS’ KC.
The message s:ek:060 is without sense and you can’t find the real reason of error, only with degugger.
The problem is in source code
* Get fiscal year variant for company code
CALL FUNCTION ‘BAPI_CONTROLLINGAREA_GETDETAIL’
EXPORTING
CONTROLLINGAREAID = CONTROLLINGAREAID
IMPORTING
CONTROLLINGAREA_DETAIL = CO_AREA_DETAIL
RETURN = RETURN_OLD
EXCEPTIONS
OTHERS = 0.
IF NOT return_old–type IS INITIAL. “744408
* No Returncode possible for BAPIs
MOVE-CORRESPONDING RETURN_OLD TO RETURN.
MOVE RETURN_OLD(2) TO RETURN–ID.
MOVE RETURN_OLD+2(3) TO RETURN–NUMBER.
else.
RETURN_OLD
TYPE E
CODE KZ600
MESSAGE No authorization to display controlling areas
LOG_NO
LOG_MSG_NO 000000
MESSAGE_V1
MESSAGE_V2
MESSAGE_V3
MESSAGE_V4
RETURN
TYPE E
ID EK
NUMBER 060
MESSAGE No authorization to display controlling areas
LOG_NO
LOG_MSG_NO 000000
MESSAGE_V1
MESSAGE_V2
MESSAGE_V3
MESSAGE_V4
In function module BAPI_COAREA_GETPERIODLIMITS after
calling function module BAPI_CONTROLLINGAREA_GETDETAIL
is error in transfer of error message data from parameter RETUTN_OLD into RETURN.
The result error message is without sense.
I think note 1057464 - BAPI_COAREA_GETPERIODLIMITS: Incorrect error message, will solve this issue.