cancel
Showing results for 
Search instead for 
Did you mean: 

SAP ABAP

Former Member
0 Kudos

hi all ,

in my report in the codeline

lv_decm = wa_qamv-toleranzob.

<lfs_field> = lv_decm.

i want if the value of field wa_qamv-toleranzob is equal to zero . the output in the respective column should be blank .

<lfs_field> is a fiels symbol , the output table is <lfs_table>,

and lv_decm TYPE p DECIMALS 2.

and qamv-toleranzob is of type FLTP.

if i m assinging the value of lv_decm to a local varialble n then assigning it to fiels symbol the out put is * insteat of field so how to get the output as blank.

thanks

himanshu

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member196280
Active Contributor
0 Kudos

Do it like this,

IF wa_qamv-toleranzob NE '0'.

lv_decm = wa_qamv-toleranzob.

ENDIF.

<lfs_field> = lv_decm.

Regards,

SaiRam

Former Member
0 Kudos

hi

by applying ur meathod its coming as 0.00 n i want it blank .

himanshu

Former Member
0 Kudos

Hi Himanshu,

For ur output to be blank....set that value to SPACE.

Let me know if it works.

Thanks & Rewards,

Sudheer.

Former Member
0 Kudos

Hi ,

If that is internal table field is integer type set it to 0 or if it is character type set it to ' ' after matching the condition. So when u display in the output it will appear either 0 or blank .

Set it according to ur condition .

Regards