‎2007 Sep 07 6:43 AM
i hav passed an internal table to the smartform using exporting
and in form interface i define it as
itab type zgr (zgr is a structure)
now when i use this itab in the loop in smartform
it gives an error
itab is neither specified by tables statement
plz ans
its very urgent
‎2007 Sep 07 6:51 AM
specify itab under tables like dis
CALL FUNCTION zfnam "'/1BCDWB/SF00000035'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
is_nast = nast
is_repeat = 'X'
is_traptab = mkpf
zprod_order = zorder
zprod_date = zprod_date
<b>TABLES
itab = itab</b>
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
and in smartform also declare it under tables tab as
Parameter Name Type Assignment Associated Type
itab like zgr
plz reward points if dis helps
‎2007 Sep 07 9:57 AM
Hi ,
In the smartform for FORM INTERFACE declara itab with LIKE ur structure name
and in the global inreface give ur work area as TYPE ur structure name .
Hope this will help .
Praveen:)
‎2007 Sep 07 10:04 AM
Hi
If you want to define internal table under IMPORT or EXPORT then the Data type must be a Table Type.
So Create a Table type(Eg ZTTGR in DDIC based on the structure(ZGR)
Then Give as:
ITAB TYPE ZTTGR.
OR
Declare the internal table in the TABLES in Form interface as
ITAB LIKE ZGR. "USING STRUCTURE
both will work..
Reward if Helpful..