Hi,
I have developed print program as well as smartform.I need to pass two internal tables(IT_STR1 and IT_STR2) from the print program to smartform. I am getting the short dump while executing the print program and it is mentioned below :
An exception occurred. This exception will be dealt with in more detail
below. The exception, assigned to the class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was not caught, which led to a runtime error. The reason for this exception is:
The call to the function module "/1BCDWB/SF00000090" is incorrect:
The function module interface allows you to specify only fields
of a particular type under "ITE_STR1". The field "IT_STR1" specified here
has a different field type.
I have mentioned here the way i declared and used the internal table in print program:
DATA: IT_STR1 TYPE STANDARD TABLE OF ZBK_STR1,
WA_STR1 LIKE LINE OF IT_STR1.
DATA: IT_STR2 TYPE STANDARD TABLE OF ZBK_STR2,
WA_STR2 LIKE LINE OF IT_STR2.
CALL FUNCTION PROG_NAME (prog_name ->function module name)
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
ITE_STR2 = IT_STR2
ITE_STR1 = IT_STR1
In smartform , I declared under IMPORT TAB In Form Interface as follows:
ITE_STR2 TYPE ZBK_STR2
ITE_STR1 TYPE ZBK_STR1
Kindly help me out.
Thanks,
Kiruthi