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

Global declaration

Former Member
0 Likes
358

Hi,

If i declare the table in se24.

Example: TABLES:SPOH. it's not accepting, how i can declare the table in SE24

3 REPLIES 3
Read only

Former Member
0 Likes
334

Hi,

if u r declaring in the method it will not take u have create the field string refering to the standard table

for example.

fs_spfli type spfli.

plzz reward points if it helps.

Read only

Sougata
Active Contributor
0 Likes
334

Hi Udaya,

First create a Table Type of table SPOH through SE11 call it for e.g. ZTT_SPOH. Then in SE24 declare your variable

gt_spoh TYPE ZTT_SPOH

.

Don't forget to reward points.

Sougata.

I think I did not understand you correctly first...there's no need to declare database tables by TABLES statement. You can declare an internal table (like the way I've shown above) or declare a work area e.g.

gw_spoh type spoh

and then select data from SPOH either to the table gt_spoh or work area gw_spoh.

Message was edited by:

Sougata Chatterjee

Read only

former_member199581
Active Participant
0 Likes
334

In the OO context, the statement TABLES is not admitted, since it creates a table with header line.

However, you don't need the TABLES statement to perform selections on DB.

Declare an Internal Table with the corresponding structure and that's it.

Hope this helps,

R.