how to declare Internal table in Business Server Pages

Question: Hi
In BSP i am retriving data from vbak table. I declared in page attributes
ivbak type vbak. At the time of activation i am getting following error message.

ivbak is neither specified under TABLES nor defined as internal table.

please help it.

thanks and regards
sri krishna ponnada

Answer:
there is a place(last tab) for declaring types. you got to declare a table type there and reference it in page attributes.

Regards
Raja

Answer:
This is because you have declared your internal table as referencing VBAK which is effectively just a structure as far as your code is concerned. Change your internal table to reference TAB_VBAK which is a table type with line type of VBAK. You will also need to declare a header line if you wish to do processing on your vbak table - something like ST_VBAK type VBAK. Then...
LOOP AT IVBAK INTO ST_VBAK.

ENDLOOP.

Answer:
Hi,

just declare a structure ZVBAK identical to VBAK in the dictionary and then declare its line type ZVBAK_TT in the dictionary. Or through the BAPI browser copy the types on the last tab. this would for sure work.. and if it doesn't u can kill me

data: ls_vbak type zbak,
   lt_vbak  type zvbak_tt.


  loop at zvbak_tt into zbak.
*
* Do what eva u want to do here.
*
  endloop.
hehehe

this will definately help
have fun.

Answer:
Sorry for mistyping

data: ls_vbak type zbak,
   lt_vbak  type zvbak_tt.


  loop at lt_vbak into ls_vbak.
*
* Do what eva u want to do here.
*
  endloop.
Copyright ?2007 - 2008 www.jt77.com