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

Get text symbols from another program

Former Member
0 Likes
3,087

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.

1 ACCEPTED SOLUTION
Read only

former_member195698
Active Contributor
0 Likes
1,517

You can use READ TEXTPOOL A statement to get the information in your report B

Regards,

Aj

3 REPLIES 3
Read only

Former Member
0 Likes
1,517

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

Read only

former_member195698
Active Contributor
0 Likes
1,518

You can use READ TEXTPOOL A statement to get the information in your report B

Regards,

Aj

Read only

Former Member
0 Likes
1,517

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.