I implemented ISU_DET_DEVICE_FROM_INST in the program to read all of the meters that are linked to the BP. The customer accounts coordinator wants to have the report to read all of the meters readings from the BP and from the old meters that have been changed out.
Error analysis
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was
not caught in procedure "GRID_DISPLAY" "(FORM)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The call to the function module "ISU_DET_DEVICE_FROM_INST" is incorrect:
The function module interface allows you to specify only
fields of a particular type under "X_KEYDATE".
The field "'01/01/1900'" specified here is a different
field type
I used this in the program and after this it's been giving me errors. Thanks.
DATA: xy_lt_ger TYPE isu07_twd_gertab_t.
CALL FUNCTION 'ISU_DET_DEVICE_FROM_INST'
EXPORTING
x_anlage = eastl-anlage
x_keydate = '01/01/1900'
X_ONLY_KEYDATE = 'X'
CHANGING
xy_t_ger = xy_lt_ger
EXCEPTIONS
not_found = 1
internal_error = 2
system_error = 3
OTHERS = 4.