Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Internal Table

Former Member
0 Kudos

Hi,

Currently I am editing an existing prog. where internal table declared like this

TYPES: BEGIN OF TS_IN.

INCLUDE STRUCTURE ZPSS_INSERT.

TYPES: END OF TS_IN.

and

DATA: TT_IN TYPE STANDARD TABLE OF TS_IN INITIAL SIZE 5000

WITH HEADER LINE,

But I need to insert few more fields apart from ZPSS_INSERT. How should I declare fields with out changing the structure ZPSS_INSERT.

Thanks

Ram

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You can simply add them like so.

TYPES: BEGIN OF TS_IN.
INCLUDE STRUCTURE ZPSS_INSERT.
Types: fld1 type c.
Types: fld2 type c.
TYPES: END OF TS_IN.

Regards,

Rich Heilman

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You can simply add them like so.

TYPES: BEGIN OF TS_IN.
INCLUDE STRUCTURE ZPSS_INSERT.
Types: fld1 type c.
Types: fld2 type c.
TYPES: END OF TS_IN.

Regards,

Rich Heilman

former_member181962
Active Contributor
0 Kudos

Make the highlighted change

TYPES: BEGIN OF TS_IN.

INCLUDE STRUCTURE ZPSS_INSERT.

<b>data: field1 type mara-matnr.</b>

TYPES: END OF TS_IN.

Former Member
0 Kudos

Hi,

Check this..

TYPES: BEGIN OF TS_IN.

INCLUDE STRUCTURE ZPSS_INSERT.

<b>TYPES: ADD_FIELD1 TYPE MATNR,

ADD_FIELD2 TYPE KUNNR,</b>

TYPES: END OF TS_IN.

Thanks,

Naren