cancel
Showing results for 
Search instead for 
Did you mean: 

Declaration in form interface & global definition

Former Member
0 Kudos

I have a structure "ZTY_MUM1" & line type as "ZTY_MUM"

I need to declare internal table (it_mum) & workarea (wa_mum) based on this structure.

How to declare in form interface & global definition.

Kindly revert.

Harshada

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Go to TYPES tab and make the TYPES declaration.

TYPES : ty_MUM TYPE STANDARD TABLE OF ZTY_MUM1.

TYPES : ty_mum_struct TYPE ZTY_MUM1.

Then in Global data u can do the declaration for table as

it_mum TYPE ty_MUM

and for workarea as

wa_mum TYPE ty_mum_struct.

Thanks.

Former Member
0 Kudos

Hi Harsh,

What all TABLES with item data and WORKAREA with header data that you import from PRINT PROGRAM we declare it in FORM INTERFACE:-

Go to FORM interface :

For Work Area.....

Go to IMPORT TAB

declare the work area as "wa_mum type ZTY_MUM1"

For Internal tables

Go to TABLES Tab

declare the table as " it_mum LIKE ZTY_MUM1".

In Global defenition we declare work areas or variables or constants that we use inside the SMART FORM.

Reward Points If Helpful

Regards

Avi........

Former Member
0 Kudos

Hi

After following these steps, I am getting error

Form Interface Type ZTY_MUM1 is not allowed in this context

Pls.revert

Former Member
0 Kudos

hi,

globaldata->it_mum(in variable name) type(in type name) table of ZTY_MUM1( in associated type.

Rewards point if helpful.

Regards

Santosh.