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: 

can we declare this.....

Former Member
0 Kudos

Hi, all

can we declare in this type for including a strucutre.

TYPES: BEGIN OF x_j_1bagnt.

INCLUDE STRUCTURE j_1bagnt.

TYPES: END OF x_j_1bagnt.

DATA : t_j_1bagnt TYPE TABLE OF x_j_1bagnt,

wa_j_1bagnt LIKE LINE OF t_j_1bagnt.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

yes surely we can do this...

we won't get any errors in this code.

regards,

sohi.

7 REPLIES 7

former_member404244
Active Contributor
0 Kudos

Hi,

yes we can do this..

Regards,

Nagaraj

Former Member
0 Kudos

Yes u can do..

why cant u try it urself??

0 Kudos

but when i am declaring this i am getting this error in the preceeding statements, can you please check this and let me know the error.

Program Z_TEST_RAM

"WA_J_1BNFLIN_T" is not an internal table - the "OCCURS n"

specification is missing.

0 Kudos

TYPES: BEGIN OF x_j_1bagnt.

INCLUDE STRUCTURE j_1bagnt.

TYPES: END OF x_j_1bagnt.

DATA : t_j_1bagnt TYPE TABLE OF x_j_1bagnt,

wa_j_1bagnt LIKE LINE OF t_j_1bagnt.

If the above is ur declartion,

where is <b>WA_J_1BNFLIN_T</b> in ur declaration?

and if u r talking about wa_j_1bagnt only, then the error is not due to ur declaration, the declaration is perfect and wa_j_1bagnt is the workarea. u might have looped it some where or used it like an internal table some where in ur report, that is the reason u r getting the above error

Message was edited by:

Hymavathi Oruganti

0 Kudos

According to your declarations WA_J_1BNFLIN_T is only a work area, the below error is because you are treating this WA_J_1BNFLIN_T as a table.

Place ur code, so taht we can suggest as where it goes wrong.

Regards

Gopi

Former Member
0 Kudos

Hi,

You can declare like this but instead of structure(which is obselete) you can use INCLUDE TYPE that will better.

Thanks,

Muthu

Former Member
0 Kudos

yes surely we can do this...

we won't get any errors in this code.

regards,

sohi.