2008 May 12 5:07 PM
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.
2008 May 12 6:07 PM
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.
2008 May 12 5:12 PM
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.
2008 May 12 5:27 PM
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.
2008 May 12 5:29 PM
Put this definition in TYPES only.
TYPES: KTAB TYPE STANDARD TABLE of ZTAB.
Now declare internal table as
ITAB type KTAB.
2008 May 12 6:07 PM
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.
2008 May 12 6:20 PM
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).
2008 May 12 6:34 PM
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.
2008 May 12 6:37 PM
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.
2008 May 12 7:46 PM