Application Development and Automation 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: 
Read only

creating a structure..

Former Member
0 Likes
763

Hi all,

TYPES: BEGIN OF ty_zvag_s_pmt02,

linc6 TYPE linc6.

TYPES: include structure zvag_s_pmt02.

TYPES: END OF ty_zvag_s_pmt02.

i m getting error , expected after include.. but when i do tat still i get the serror..

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
737

HI Neha,

Change your declaration as below.


TYPES: BEGIN OF ty_zvag_s_pmt02,
linc6 TYPE linc6.
include STRUCTURE zvag_s_pmt02.
TYPES: END OF ty_zvag_s_pmt02.

This works!!!!!

Best Regards,

Ram.

7 REPLIES 7
Read only

Former Member
0 Likes
738

HI Neha,

Change your declaration as below.


TYPES: BEGIN OF ty_zvag_s_pmt02,
linc6 TYPE linc6.
include STRUCTURE zvag_s_pmt02.
TYPES: END OF ty_zvag_s_pmt02.

This works!!!!!

Best Regards,

Ram.

Read only

Former Member
0 Likes
737

Hi Neha,

Can you be a bit more clear about your querry?

Read only

Former Member
0 Likes
737

TYPES: BEGIN OF ty_zvag_s_pmt02,

TYPES: include structure zvag_s_pmt02.

linc6 TYPE linc6.

TYPES: END OF ty_zvag_s_pmt02.

keep the include statement as first statement in types and now try.

Read only

Former Member
0 Likes
737

Hi Neha

Please note every ABAP statement start with a KEY WORD and include structure is also a key word

so you can combine types and include structure in a single statement.

try this out

TYPES: BEGIN OF ty_zvag_s_pmt02,

linc6 TYPE linc6.

include structure zvag_s_pmt02.

TYPES: END OF ty_zvag_s_pmt02.

Best Regards

Ramchander Rao.K

Edited by: ramchander krishnamraju on Dec 16, 2008 7:37 AM

Edited by: ramchander krishnamraju on Dec 16, 2008 7:37 AM

Read only

Former Member
0 Likes
737

Hi Neha,

Try this.

DATA: BEGIN OF ty_zvag_s_pmt02,

linc6 TYPE linc6.

include structure zvag_s_pmt02.

TYPES: END OF ty_zvag_s_pmt02.

Rgds,

Santosh Kumar M.

Read only

Former Member
0 Likes
737

This message was moderated.

Read only

Former Member
0 Likes
737

Hi Neha,

TYPES: BEGIN OF ty_zvag_s_pmt02.

INCLUDE STRUCTURE zvag_s_pmt02.

TYPES: linc6 TYPE linc6.

TYPES: END OF ty_zvag_s_pmt02.

try this. it will work

i can say this will work 100%

Regards,

Arjun.

Edited by: mallikarjuna goud on Dec 16, 2008 8:31 AM