‎2008 Jul 10 11:11 AM
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
‎2008 Jul 10 11:16 AM
hi,
structures are used to capture details of only 1 record at run time from tables.the data is not stored in structures.
‎2008 Jul 10 11:19 AM
>
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
‎2008 Jul 10 11:54 AM
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
‎2008 Jul 10 12:03 PM
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
‎2008 Jul 10 12:08 PM
Hi,
Please read the help of read statement.
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb35f8358411d1829f0000e829fbfe/content.htm
Regards
Adil