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

If condition..

reetesh
Explorer
0 Likes
581

Hi All,

I am unable to get the desired out put from this 'IF' condition, the scenario is if I put ABC in f_name and execute the program without giving l_name it should print 'ABC XYZ' but it is not working...

Kindly help

parameters: f_name(20) type c.

l_name(20) type c.

write:/ f_name.

l_name.

if f_name eq 'ABC'.

write:/'ABC XYZ'.

endif.

4 REPLIES 4
Read only

Former Member
0 Likes
563

hi

Reetesh

try like this

parameters: f_name(20) type c.

l_name(20) type c.

write:/ f_name,

l_name.

if I_name is initial.

write:/'ABC XYZ'.

endif.

plzzz reward if usefull dontforget to reward

Read only

Former Member
0 Likes
563

Hi,

Its working fine. try like this:

parameters: f_name(20) type c,

l_name(20) type c.

if f_name eq 'ABC'.

write:/'ABC XYZ'.

endif.

write:/ f_name,

l_name.

Regards,

Bhaskar

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
563

Hi,

I am able to get the output

ABC

ABC XYZ

with the below code.

parameters: f_name(20) type c,

l_name(20) type c.

write:/ f_name, l_name.

if f_name eq 'ABC'.

write:/'ABC XYZ'.

endif.

Read only

0 Likes
563

Thanks Guys,,

Jayanti it is working now I wonder what was wrong... ))