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

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

Former Member
0 Likes
1,515

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

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
Read only

Former Member
0 Likes
925

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.

Read only

Former Member
0 Likes
925

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

Read only

Former Member
0 Likes
925

hi

chk this FM

<b>READ_FORM_ELEMENTS</b>