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: 

include structure

Former Member
0 Kudos

hi,

if i want to add fields to tab_bsid using include structure wa_partner, can it be done? if not what can i do? i know to have include structure, must be in the begin ~ end but for my case, can it be done?

DATA: tab_bsid TYPE STANDARD TABLE OF bsid,

begin of wa_partner,

kunnr1 like vbpa-kunnr,

kunnr2 like vbpa-kunnr,

kunnr3 like vbpa-kunnr,

end of wa_partner.

thanks

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Like so...



data: begin of struc occurs 0.
  include structure bsid.
data: kunnr1 like vbpa-kunnr,
        kunnr2 like vbpa-kunnr,
        kunnr3 like vbpa-kunnr,
        end of struc.


Regards,

Rich Heilman

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Or.....



Types: begin of t_partner,
           kunnr1 like vbpa-kunnr,
           kunnr2 like vbpa-kunnr,
           kunnr3 like vbpa-kunnr,
           end of t_partner.

Types: begin of t_tab_bsid.
    include type bsid.
    include type t_partner.
Types: end of t_tab_bsid.

DATA: tab_bsid TYPE STANDARD TABLE OF t_tab_bsid.

Regards,

RIch Heilman