10-08-2007 8:12 AM
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.
10-08-2007 8:34 AM
yes surely we can do this...
we won't get any errors in this code.
regards,
sohi.
10-08-2007 8:14 AM
10-08-2007 8:16 AM
10-08-2007 8:21 AM
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.
10-08-2007 8:25 AM
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
10-08-2007 8:25 AM
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
10-08-2007 8:17 AM
Hi,
You can declare like this but instead of structure(which is obselete) you can use INCLUDE TYPE that will better.
Thanks,
Muthu
10-08-2007 8:34 AM
yes surely we can do this...
we won't get any errors in this code.
regards,
sohi.