‎2008 Apr 08 4:53 PM
hi sdn,
i created a structure in data dictionary with some fields of vbrp table.
now i want declare that structure in my prog and retrieve data from that structure, how can i proceed please tell me!
‎2008 Apr 08 4:54 PM
tables: <structure name>
same as selecting standard table
using select statements
‎2008 Apr 08 4:54 PM
tables: <structure name>
same as selecting standard table
using select statements
‎2008 Apr 08 4:55 PM
*declaration
data: ls_str type <<your structure>>.
*data
select * from <table> into ls_str where...
Bert
‎2008 Apr 08 4:56 PM
data my_structure type my_z_structure.
It was an structure or a table?
Structures don't keep any data, so there's nothing you can retrieve
‎2008 Apr 08 9:34 PM
Just to add one thing to Bert's response:
*declaration
data: ls_str type <<your structure>>.
*data
*select * from <table> into ls_str where...
select * from <table> into corresponding fields of ls_str where...
Regards
Greg Kern