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

Regarding Structure

Former Member
0 Likes
576

Hi,

In my application they have declred the structure like --

data: LT_APAR_DATA TYPE FDBL_APAR_TABLE,

LS_APAR_DATA TYPE FDBL_APAR_DATA.

when they read the data from LT_APAR_DATA , i am getting the data. how can i read the data with out selecting the data first. like :

Read table lt_APAR_DATA into wa_APAR_DATA index 1.

If so how the data is automatically updated into FDBL_APAR_TABLE structure.

wating for ur reply.

Thanx & Regards,

Srinath

5 REPLIES 5
Read only

GauthamV
Active Contributor
0 Likes
556

hi,

structures are used to capture details of only 1 record at run time from tables.the data is not stored in structures.

Read only

Former Member
0 Likes
556

>

how can i read the data with out selecting the data first.> Srinath

Hi Srinath,

I dont understand the part - >

how can i read the data with out selecting the data first.> Srinath

Can you please be more clear with that?

Cheers

Kothand

Read only

Former Member
0 Likes
556

hi,

When you are using

Read table lt_APAR_DATA into wa_APAR_DATA index 1.

You are actually selecting the values at index 1 position. This

is one way of selection.

If you dont update this index value you will get data of the first record every time.

Hope this will Help.

Regards

Sumit Agarwal

Read only

Former Member
0 Likes
556

Hi,

Suppose in your internal table you ahve 10 records.

To read the data without selecting index you can loo into the internal table like-

Do 10 times.

Read table lt_APAR_DATA into wa_APAR_DATA .

write:

wa_apar_data-field.

Enddo.

Regards.

Sujit

Read only

Former Member
0 Likes
556