Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

resolve smartforms error urgent

Former Member
0 Likes
532

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

3 REPLIES 3
Read only

former_member188827
Active Contributor
0 Likes
502

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

Read only

Former Member
0 Likes
502

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:)

Read only

varma_narayana
Active Contributor
0 Likes
502

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..