‎2007 Nov 11 10:09 AM
Hi,
Is it possible to access text symbols from another program? For example, in program A, it has the text symbol 'text-001'. How can I access that text symbol in program B?
Thanks, useful replies will be awarded.
Regards.
‎2007 Nov 11 11:26 AM
You can use READ TEXTPOOL A statement to get the information in your report B
Regards,
Aj
‎2007 Nov 11 10:17 AM
Hi
You can't access the text symbols of one program into another program.
They are program dependent.
That's why we create them in each program , if they are accessable we should have always created in a same place for all, which is not possible.
Regards
Anji
‎2007 Nov 11 11:26 AM
You can use READ TEXTPOOL A statement to get the information in your report B
Regards,
Aj
‎2007 Nov 11 12:33 PM
Heey new bird!
Go thru this code..and have fun
*Data declaration for textpool manipulation
DATA: PROGRAM(30) VALUE 'ZTESTPROG',
TAB LIKE TEXTPOOL OCCURS 50 WITH HEADER LINE.
*Read textpool
READ TEXTPOOL PROGRAM INTO TAB LANGUAGE SY-LANGU state 'A'.
*Delete textpool
DELETE TEXTPOOL program LANGUAGE 'E'.
*Add entry to text pool
READ TEXTPOOL PROGRAM INTO TAB LANGUAGE SY-LANGU state 'A'.
DELETE TEXTPOOL program LANGUAGE 'E'.
TAB-ID = 'S'. TAB-KEY = 'DATYP'. TAB-ENTRY = 'Date Type'.
APPEND TAB.
SORT TAB BY ID KEY.
INSERT TEXTPOOL PROGRAM FROM TAB LANGUAGE SY-LANGU.