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: 

How to add an extra field in the internal table containing structure

former_member574106
Participant
0 Kudos

I need to add a new field bseg to i_final in internal table. I can't add bseg to zstruct_cfm. My code is as follows.

DATA : BEGIN OF i_final OCCURS 0.

INCLUDE STRUCTURE zstruct_cfm.

DATA : ENDOF i_final.

Regards,

SAURAV LAHIRY

3 REPLIES 3

Former Member
0 Kudos

Why cant you do like this,


DATA : BEGIN OF i_final OCCURS 0.
 INCLUDE STRUCTURE mara.
data :var type string,    " Your required field
      END OF i_final.

satyajit_mohapatra
Active Contributor
0 Kudos

Try this...................



TYPES: BEGIN OF TEST,
        TEST TYPE char1,
       END OF TEST.

DATA BEGIN OF i_final OCCURS 0.
INCLUDE STRUCTURE mara.
INCLUDE TYPE      TEST.
DATA  END OF i_final.


former_member574106
Participant
0 Kudos

thanks a lot for ur help. it is working fine.

Regards,

SAURAV LAHIRY