2007 Mar 22 8:14 AM
consider i am having an internal table consisting of100 records.is there any options in ABAP to get a particular record with index value of say 40.
thanks in advance
consider i am having an internal table consisting of100 records.is there any options in ABAP to get a particular record with index value of say 40.
thanks in advance
2007 Mar 22 8:16 AM
2007 Mar 22 8:16 AM
2007 Mar 22 8:17 AM
2007 Mar 22 8:18 AM
2007 Mar 22 8:20 AM
read table itab index 40.
if sy-subrc = 0.
select * from where field = itab-field.
endif.
2007 Mar 22 8:21 AM
read table itab index 40.
if sy-subrc = 0.
select * from where field = itab-field.
endif.
2007 Mar 22 8:21 AM
sorrry i m not enough clear abt your requirement..
you can use it like this..
suppose your itab contains field matnr.
read table itab index 40.
select single matnr into mara-matnr from mara where matnr = itab-matnr.
pls clearly say abt your requirement..
regards
shiba dutta
2007 Mar 22 9:29 AM
Follow the following steps:
Step 1: Sort itab by key-fields.
Step 2: Read table itab index 40.
Step 3: Now your 40th record is in the header line.
So you can use it now like below:
if sy-subrc = 0.
select * from where field = itab-field.
endif.
Message was edited by:
RAMA PAMMI
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |