Application Development 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: 

Problem with Smartforms

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

jayanthi_jayaraman
Active Contributor
0 Kudos

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.

4 REPLIES 4

jayanthi_jayaraman
Active Contributor
0 Kudos

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.

0 Kudos

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

0 Kudos

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.

0 Kudos

Thanks Jayanthi. Your poits awarded