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: 

SAP Script - How to check a text element is empty in Script.

Former Member
0 Kudos

Hello Friends,

I like to display a text element when it is not empty, otherwise I like to display some other text.

I know how to read text element in Script, but

How to check a text element is empty in Script

Thank you for your time.

Senthil

3 REPLIES 3

Former Member
0 Kudos

Hi Senthil,

Inside text element, we print the variables.

Variables actually gets printed in the form.

if the variable contains value the variable gets printed on script. if not, then variable not gets printed.

hope this helps.

Former Member
0 Kudos

If its empty usually it will not have a entry in STXH table.

Or you can call READ_TEXT function and count the lines of the table using DESCRIBE statement.

regards,

Ravi

Note : Please mark all the helpful answers

Former Member
0 Kudos

hi

chk this FM

<b>READ_FORM_ELEMENTS</b>