cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent ! SmartForms internal table declaration

Former Member
0 Kudos

Hi,

Can you tell me where and how to declare this internal table in a SmartForm?

Data : t_mhnd like mhnd occurs 0 with header line.

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

You cannot declare an internal table directly in smartforms. Follow the below procedure.

go to the Global definition in the smartforms.

EX:

int_kna1 like kna1

wa_kna1 type kna1.

body of the internal table will be taken care by int_kna1 and work area will be taken care by wa_kna1.

thanks & regards

Kishore Kumar Maram

Former Member
0 Kudos

Hi Tarik,

In Global Settings -> Form Attributes

Click Types button in that

you can decleare internal table..

TYPES: BEGIN OF TYPE_INV_ITM ,

VBELN LIKE VBRP-VBELN, "Billing doc No

POSNR LIKE VBRP-POSNR, "Billing Line item No

KNUMV LIKE VBRK-KNUMV,

MATNR LIKE VBRP-MATNR, "Material No

END OF TYPE_INV_ITM.

TYPES: IT_INV_ITM type standard table of type_inv_itm.

if help regards point .

with regards

srinivas.k

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

We do not have the internal table in SMARTFORMS, only table structures are supported,

please do follow the below process.

In global settings, click on Global data, under the types tab

declare the same

TYPES: BEGIN OF ty_htext,

htext TYPE tdline, "Text of Header

END OF ty_htext.

and now in the Global data tab

it_htext will be the variable name

type table of is the type assignment

ty_htext will be the assiociated Type.

This will work.

Former Member
0 Kudos

hi,

in global definition give like

i_mhnd like mhnd

wa_mhnd type mhnd

this way we can use this as internal table

thanks & regards,

srinivas

reward points if use full