cancel
Showing results for 
Search instead for 
Did you mean: 

Declaration in Smartform

Former Member
0 Kudos

I've developed a SF. In that there is an internal table and fetch data from DB into this itab. I got this error:

"Field IT_REGUH is unknown. it is neither in one of the specified tables nor defined by a 'DATA' statement."

how can i declare the itab?

Under global data

IT_REGUH TYPE TABLE OF T_REGUH.

under types

types: BEGIN OF t_reguh,

lifnr TYPE reguh-lifnr,

rwbtr TYPE reguh-rwbtr,

valut TYPE reguh-valut,

koinh TYPE reguh-koinh,

name1 TYPE reguh-name1,

END OF t_reguh.

under initialization

SELECT rwbtr valut koinh name1 lifnr

INTO CORRESPONDING FIELDS OF TABLE it_reguh from reguh.

Accepted Solutions (1)

Accepted Solutions (1)

sudhir_uppalapati
Participant
0 Kudos

Hi,

Give IT_REGUH under Output parameters.

Former Member
0 Kudos

can i declare headerline inside SF.

or how can i declare work area? I want to declare work area for internal table IT_REGUH.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi christy george ,

It wont take if you give the reference type under "types"

Just create in z-structure with same fields like t_reguh. say zreguh

then Under global data

IT_REGUH TYPE TABLE OF ZREGUH.

Thanks

Murugan.B