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

how to read mutiple texts using read text

Former Member
0 Likes
743

Hi friends,

iam facing a problem.

iam using READ_TEXT function module to read the text in va01 for line item.

name = w_test i always have same ie : vbeln & posnr 1000020012000010

vbeln = 1000020012 posnr = 000010

CALL FUNCTION 'READ_TEXT'

EXPORTING

client = sy-mandt

id = p_textid

language = sy-langu

name = w_test

object = 'VBBK'

TABLES

lines = t_tline

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8.

now i have to read text for different ids for same line item and order number

0001 , 1000 , 2000 , 3000

now in the above code only my textid will be change

do i need to call the read text function module 4 times to read 4 diferent texts.

can one one tell me how can i use it as per modulirization coding.

Regards

Priyanka.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
707

select <values> from stxh into itab where <pass ur common data in where>

now loop at itab and call read_text inside it

select <values> from stxh into itab where <pass ur common data in where>

now loop at itab and call read_text inside it

3 REPLIES 3
Read only

Former Member
0 Likes
708

select <values> from stxh into itab where <pass ur common data in where>

now loop at itab and call read_text inside it

Read only

Former Member
0 Likes
707

Hi,

You need to call the Read_text 4 times you cannot read in one shot. Or read text from db tables

Read only

Former Member
0 Likes
707

Hi,

Put the Function module READ_TEXT in LOOP ... ENLOOP.

When you put inside the loop .. based on ID it will change...

Thanks ,

Chandra Babu.A