2005 Dec 29 8:15 AM
Hi,
In smartforms I need to use under Global Settings -> Form Interface -> Tables; My own internal table like the following;
ITAB_SCHEDULE_LINE <b>TYPE</b> ITAB_TY_SCHEDULE_LINE_TYPE
But the following error pops up when I check it;
Type ITAB_TY_SCHEDULE_LINE_TYPE does not exists
I have created ITAB_TY_SCHEDULE_LINE in Global Definitions -> Types like the following;
TYPES : BEGIN OF wa_schedule_line,
BISMT like MARA-BISMT,
REMARK(102) type C,
QTY type p DECIMALS 1,
SUB_QTYTOTAL type p DECIMALS 1,
UNIT_PRICE type p DECIMALS 3,
VALUE type p DECIMALS 2,
SUB_VALUETOTAL type p DECIMALS 2,
DEL_DATE type VBEP-EDATU,
LINE_NO type I,
END OF wa_schedule_line.
TYPES: itab_schedule_line_type TYPE TABLE OF wa_schedule_line.
Then in Global Data like following;
ITAB_TY_SCHEDULE_LINE_TYPE <b>TYPE</b> ITAB_SCHEDULE_LINE_TYPE
Why cant it locate the ITAB_TY_SCHEDULE_LINE_TYPE ?
Thanks,
Kishan
2005 Dec 29 8:27 AM
Hi,
In Global Definition->Types
TYPES : BEGIN OF wa_schedule_line,
BISMT like MARA-BISMT,
REMARK(102) type C,
QTY type p DECIMALS 1,
SUB_QTYTOTAL type p DECIMALS 1,
UNIT_PRICE type p DECIMALS 3,
VALUE type p DECIMALS 2,
SUB_VALUETOTAL type p DECIMALS 2,
DEL_DATE type VBEP-EDATU,
LINE_NO type I,
END OF wa_schedule_line.
Then in Global definitions->Global data,
declare
ITAB_SCHEDULE_LINE TYPE standard table of wa_schedule_line.
You won't get error.
Kindly reward points if it helps.
2005 Dec 29 8:27 AM
Hi,
In Global Definition->Types
TYPES : BEGIN OF wa_schedule_line,
BISMT like MARA-BISMT,
REMARK(102) type C,
QTY type p DECIMALS 1,
SUB_QTYTOTAL type p DECIMALS 1,
UNIT_PRICE type p DECIMALS 3,
VALUE type p DECIMALS 2,
SUB_VALUETOTAL type p DECIMALS 2,
DEL_DATE type VBEP-EDATU,
LINE_NO type I,
END OF wa_schedule_line.
Then in Global definitions->Global data,
declare
ITAB_SCHEDULE_LINE TYPE standard table of wa_schedule_line.
You won't get error.
Kindly reward points if it helps.
2005 Dec 29 8:42 AM
Hi Jayanthi,
I did the way U told me to do but the same error keeps poping.
Does this mean for Interface Tables U could only have ABAP Tables and Structures which are pre-defined.
What I am going to do is to define my own internal table where it will be populated by the main program and passed to smartforms. Why is this error keeps coming?
Thank,
Kishan
2005 Dec 29 8:54 AM
Hi,
As far I know,if you want to pass the internal table from program,then you need to define structure for the same in SE11.Then in Form Interface->Tables,you can use it.In this way,internal tables are passed from programs.
But if you want to handle your internal table without creating structure in SE11,you cannot pass from program.But in Global Definitions->Types,you can declare your own types and in Global data,you can refer the same type for internal table and use the same internla table for processing inside smartform.
But in this way,you cannot pass internal table from program.
Hope this helps.
2005 Dec 29 8:57 AM