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

data varibale operation help req

Former Member
0 Likes
354

Hi

well plz tell me how to replace a variable with 0.

as there is a variable where its coming out to be -ive,so in output format ,i have to pass 0 for that,as -ive values has to be obsulteded.

plz reply me soom.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
336

Hi Vipin ,

Try this.

if v_sign eq ' - '.

value = 0.

endif.

Reward If Useful.

Regards,

Chitra

2 REPLIES 2
Read only

Former Member
0 Likes
337

Hi Vipin ,

Try this.

if v_sign eq ' - '.

value = 0.

endif.

Reward If Useful.

Regards,

Chitra

Read only

former_member386202
Active Contributor
0 Likes
336

Hi,

Check that variable is less than zero,

then use replace statement to replace the value of that variable to zero.

Ex.

If lv_var LT 0.

REPLACE ALL OCCURRENCES OF 'ab' IN lv_var WITH '0'.

endif.

Regards,

Prashant