2009 Jan 21 6:18 PM
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.
2009 Jan 21 6:23 PM
select <values> from stxh into itab where <pass ur common data in where>
now loop at itab and call read_text inside it
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.
2009 Jan 21 6:23 PM
select <values> from stxh into itab where <pass ur common data in where>
now loop at itab and call read_text inside it
2009 Jan 21 6:24 PM
Hi,
You need to call the Read_text 4 times you cannot read in one shot. Or read text from db tables
2009 Jan 22 7:08 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |