Application Development 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: 

How to display short text if long text is not available in me23n output pdf.

Former Member
0 Kudos

Hi all,

My requirement is if long text is not available in me23n , then short text has to be displayed in pdf output . I am using include texts for displaying long texts in smartforms.

How to check whether long text is availabe or not. I am not using any function modules (READ_TEXT).

Thanks in Advance.

5 REPLIES 5

Sandra_Rossi
Active Contributor

It seems that you did some research and you found out that READ_TEXT function module could be used to get the long text of a message. So, why do you say you're not using it? My answer is: use it!

Jelena
Active Contributor
0 Kudos

And it has been answered on SCN before how to find if a text exists. Use Google.

raymond_giuseppi
Active Contributor

When using a SAPscript text node: You can

  • Prevent error when not found ('No Error if Text Does Not Exist' checkbox)
  • Follow the node with a text node with the short text and a condition based on SFSY-SUBRC (system field, SFSY-SUBRC = 4 :Text module or include text not found)

So no need to use READ_TEXT in this case.

0 Kudos

Raymond, looks like the link is dead. And did you mean "Smartform text node"?

Thank you.

0 Kudos

Exactly, i was meaning 'using the text type Include Text of the text node to refer to a SAPscript text in a Smartform' and tried to add a link to Including SAPscript Texts