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

MARA-TEXTLINES

Former Member
0 Likes
844

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
711

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

3 REPLIES 3
Read only

Former Member
0 Likes
712

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

Read only

Former Member
0 Likes
711

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,

Read only

Former Member
0 Likes
711

> 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