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

regarding smartform passing tables

Former Member
0 Likes
1,101

Hi gurus,

i am working on a smartform,

when i am trying to declarea a table in form interface,

ex:

itab like ktab.

it says ktab not identified, butif give somthing like std tables like mara, makt, its taking.

Is it that, we have create all the custom internal tables in the smartform, only passing standard tables.

regards.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,085

hi amit,

now i have put the stmt:

TYPES: KTAB TYPE STANDARD TABLE of ZTAB.

in the types tab of global definitions.

and in the form interface i declared:

itab type ktab.

still it says ktab doesnot exist.

Hi gurus,

i am working on a smartform,

when i am trying to declarea a table in form interface,

ex:

itab like ktab.

it says ktab not identified, butif give somthing like std tables like mara, makt, its taking.

Is it that, we have create all the custom internal tables in the smartform, only passing standard tables.

regards.

8 REPLIES 8
Read only

amit_khare
Active Contributor
0 Likes
1,085

If the KTAB is the table type ...is it defined in the Tab TYPES....if not then define there before creating its line type.

And dont use LIKE tat is obsolete statement.

Read only

Former Member
0 Likes
1,085

hi amit,

thanks for your time,

in the global definitions, in the types tab i gave the below:

types: begin of ztab,

job(6),

cust_num(8),

sequence(5),

line_set,

end of ztab.

int he global data tab i gave the below:

WA_KTAB TYPE ZTAB

KTAB TYPE STANDARD TZTAB

In the form interface , in the tables tab i gave below:

ITAB TYPE ZTAB

it say s ZTAB doesnot exist.

By types tab are you refering to import tab of form interface, or global data tab of global definitions.

Read only

0 Likes
1,085

Put this definition in TYPES only.

TYPES: KTAB TYPE STANDARD TABLE of ZTAB.

Now declare internal table as

ITAB type KTAB.

Read only

Former Member
0 Likes
1,086

hi amit,

now i have put the stmt:

TYPES: KTAB TYPE STANDARD TABLE of ZTAB.

in the types tab of global definitions.

and in the form interface i declared:

itab type ktab.

still it says ktab doesnot exist.

Read only

0 Likes
1,085

Not in the Form interface but in Global Data you need to do this declaration.

Form Interface only take global data types (Created with SE11).

Read only

0 Likes
1,085

then amith,

how do i send an internal table data to smartform, if i declare that in global definitions,

because to pass internal table data from calling program, it has to be declared in form interface.

am i wrong.

Read only

0 Likes
1,085

You need to create a structure of those fields in SE11. Then declare the internal table in the form and in the Smartform of type that structure.

Read only

0 Likes
1,085

ok amit,

i will try in that direction.

thank you.