Skip to Content
0
Dec 05, 2011 at 10:53 AM

using local structure in smartforms

419 Views

Dear all,

i have a query regarding smart forms.i want to pass the internal table to smart form.i have written the code like this

TYPES:BEGIN OF TY_MARA,  " Local structure
       MATNR TYPE MARA-MATNR,
       ERSDA TYPE MARA-ERSDA,
       ERNAM TYPE MARA-ERNAM,
      END OF TY_MARA.

DATA:E_MARA TYPE TY_MARA. " work area
DATA:TS_MARA TYPE STANDARD TABLE OF TY_MARA. "internal table

SELECT MATNR
       ERSDA
       ERNAM INTO TABLE TS_MARA FROM MARA.

when i use the local structure its showing error like @8O@ Form Interface Only table types may be used as the reference type for a table parameter.

if it's a dictionary structure it's working fine.But in case of local structure its not working .in some threads ,they mentioned that we should use only dictionary structure.is that right ?