cancel
Showing results for 
Search instead for 
Did you mean: 

How to define internal table in smartform(urgent)

former_member190312
Active Participant
0 Kudos

Hi all,

How can i define a internal table <b>with header line </b> in global data ???

i defined like

In Types,

TYPES : BEGIN OF T_XVBPLP2 ,

VENUM(10),

VEPOS(10),

POSNR(6),

VEMNG LIKE LIPS-LFIMG,

MATNR LIKE LIPS-MATNR,

CHARG LIKE LIPS-CHARG,

ARKTX LIKE LIPS-ARKTX,

END OF T_XVBPLP2.

TYPES: T_XVBPLP TYPE TABLE OF T_XVBPLP2.

In Global Data,

T_XVBPLP TYPE T_XVBPLP.

Still, i am getting error message that, Internal table is not with header line.

can u plz give me some examples , to define internal table with header line in smartform ???

any correct answers will be rewarded??

Regards

pabitra

Accepted Solutions (1)

Accepted Solutions (1)

former_member195698
Active Contributor
0 Kudos

Can't you use a Work Area along with your internal table (without header line) wherever you are using your internal table ? Within your smartform you might be looping at your internal table. Can't you use INTO WORK AREA addition within your smartform?

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

define WA_ITAB in Global variables

variable name type assin associated type

t_text like zstc_text

you cannot define a internal table with header line in SMART Forms. Declare a internal table and a work area separately both referring to the same structure.

Then you can use the work area. So, in this case WA_ITAB is declared as a global variable of TYPE ZSTC_TEXT.

Regards

Pavan

Former Member
0 Kudos

Hi,

Its always better to define an internal table without header line and use workarea for further processing.

If you want to define internal table with header line just give as

T_XVBPLP TYPE standard table of T_XVBPLP with header line.