Data: d_endpos_col(4) value 25,
d_ENDPOS_ROW(4) value 5,
d_startpos_row(4) value 10,
d_startposcol(4) value 10,
d_title(100),
d_choice like SY-TABIX.
Data: begin of int_valtab occurs 0,
data(100),
end of int_valtab.
move: 'This is row 1' to int_valtab-data.
append int_valtab.
clear int_valtab.
move: 'This is row 2' to int_valtab-data.
append int_valtab.
clear int_valtab.
move: 'Display Table' to d_title.
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
EXPORTING
ENDPOS_COL = d_endpos_col
ENDPOS_ROW = d_ENDPOS_ROW
STARTPOS_COL = d_startposcol
STARTPOS_ROW = d_startpos_row
TITLETEXT = d_title
IMPORTING
CHOISE = d_choice
TABLES
VALUETAB = int_valtab
EXCEPTIONS
BREAK_OFF = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
*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 and
therefore caused a runtime error.
The reason for the exception is:
The call to the function module "POPUP_WITH_TABLE_DISPLAY" is incorrect:
The function module interface allows you to specify only
fields of a particular type under "ENDPOS_COL".
The field "D_ENDPOS_COL" specified here is a different
field type