2006 Jul 06 8:38 AM
HI EXPERTS,
I am using READ_TEXT FM to get the basic text line from mara . for that i defined global variables as follows
gt_lines type ty_lines
wa_lines type tline
tdline type tdline
i have all the text line in the gt_lines and thse text line are numbered as 1 2 3 ........20.
so if i want to display the text lines 7-12 in particular window how we can write query for this
plz guide me its urgent
points sure
2006 Jul 06 8:41 AM
Hello,
U can try like this.
Loop at gt_lines into wa_lines from 7 to 12 .
gt_final = wa_lines.
append gt_final.
endloop.
Loop at gt_final.
Call 'write_form'
endloop.
Hope this will be useful for u.
Award the points.
Regards,
Vasanth
HI EXPERTS,
I am using READ_TEXT FM to get the basic text line from mara . for that i defined global variables as follows
gt_lines type ty_lines
wa_lines type tline
tdline type tdline
i have all the text line in the gt_lines and thse text line are numbered as 1 2 3 ........20.
so if i want to display the text lines 7-12 in particular window how we can write query for this
plz guide me its urgent
points sure
2006 Jul 06 8:41 AM
Hello,
U can try like this.
Loop at gt_lines into wa_lines from 7 to 12 .
gt_final = wa_lines.
append gt_final.
endloop.
Loop at gt_final.
Call 'write_form'
endloop.
Hope this will be useful for u.
Award the points.
Regards,
Vasanth
2006 Jul 06 8:44 AM
Hi,
Use the following code snippet to get the number of lines from the internal table,
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = GT_THEAD-TDID
LANGUAGE = GT_THEAD-TDSPRAS
NAME = GT_THEAD-TDNAME
OBJECT = GT_THEAD-TDOBJECT
TABLES
LINES = gt_Tline
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
From gt_tline, you can extract the index from 7 to 12, by reading the internal table with index numbers,
Hope this helps,
Rgds,
2006 Jul 06 9:17 AM
> HI EXPERTS,
>
> I am using READ_TEXT FM to get the basic text line
> from mara . for that i defined global variables as
> follows
> gt_lines type ty_lines
> wa_lines type tline
> tdline type tdline
>
>
> i have all the text line in the gt_lines and thse
> text line are numbered as 1 2 3 ........20.
>
> so if i want to display the text lines 7-12 in
> particular window how we can write query for this
>
> plz guide me its urgent
>
> points sure
If u have multiple records in your LINES table then u can read using the READ Statemnet USing the Index Clause
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |