on 03-03-2009 5:26 AM
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
create table types for the structures zbk_str2 and zbk_str1 in se11 and use those table tables
in declaring internal tables in smartform.That should work.
ex:suppose you create table types as ztt_str1 and ztt_str2.
declare internal tables in smartforms (form interface section) as
it_str1 type ztt_str1
it_str2 type ztt_str2
and work areas as
wa_str1 type zbk_str1
wa_str2 type zbk_str2.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In smartform declare like this..
ITE_STR2 TYPE TABLE OF ZBK_STR2
ITE_STR1 TYPE TABLE OF ZBK_STR1
Edited by: Arunima Rudra on Mar 3, 2009 12:09 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
these (IT_STR1 and IT_STR2) 2 internal table strctures needs to create in SE11. these strctures must be in dictionary level. goto se11 and create the strcture with same fields...
when you pass the internal tables throuh print program and reciveing the data through smartfrom FORM INTERFACE it should be created in se11.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try doing this..
declare in the following way.
IT_STR1 TYPE ZBK_STR1,
regards
Palak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there any Currency type field in the Z Table which u have declared???
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.