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

Program text element not read

Former Member
0 Likes
2,750

Hi!

My question may be easy but please pardon as I am new to ABAP. I have created a new text element for main program so that the string I need to write will not be hardcoded within the program. The text elements are activated and so is the program, and inlcude program where the text element is called. But when I run the program and check during debug, the variable where I assign the text element is always empty. Is there anything else that need to be done in order for the program to use the text elements?

Cholen

10 REPLIES 10
Read only

PeterJonker
Active Contributor
0 Likes
2,206

Can you post the code how you are assigning the text to the variable (include the declaration of the variable as well).

Maybe we can then see why this is happening. Your query is to general to be able to answer.

Thanks

Read only

Former Member
0 Likes
2,206

Hi,

check the data type of the variable.

Read only

Former Member
0 Likes
2,206

Below is the code. When the text is hardcoded, it works. When I use the text element 206, fv_subj is empty.

Read only

0 Likes
2,206

It is working for me and I have done exactly what you did.

Are you 100% sue that your text-206 is activated ?

Please go again in the program menu bar to goto textelements textsymbols and click in that screen the activate button . Only there you can activate them.

If you activate the program in se38 in your sourcecode view the text symbols will NOT get activated.

Read only

0 Likes
2,206

i agree with Peter.

i think you can have 2 scenario:

1-text elements not actives

2-text elements active but your TEXT-206 contains only your variable part and bkpf-xblnr is empty

Read only

0 Likes
2,206

Hi,

please check the name of your text element.

Between text-206 and text-2O6 there is only a little optical difference.

Regards,

Klaus

Read only

Former Member
0 Likes
2,206

I have ensured that they are activated. Additional object LIMU REPT for reports texts is also showing in my transport request so I think I have done that correctly.

The main program is copied from a standard SAP R* program, does that matter in this issue?

Read only

0 Likes
2,206

What is the original language of the program, could you try to translate the text elements (SE63 or menu navigation)

Regards,

Raymond

Read only

asim_isik
Active Participant
0 Likes
2,206

Hi Cholen ,

My suggest is to check text element language and your current system language for example text origin language is DE and your system language is EN it ll show empty you have to maintenance for EN language of the text element

Read only

Former Member
0 Likes
2,206

The original language is DE. As work around, I tried to logon with DE, I also see the text elements. I also went to the program, there's go to - translation, and did that for DE to EN but I still have the issue.