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

alv grid problem quantity zero not displaying

Former Member
0 Likes
1,051

Hi

i am displaying quantity fields kwmeng and bmeng in alv, in code am subtracting the two quantities,

the final subtracted value is displaying in alv when it is >0, when it is equal to zero ,it is displaying blank .

Thanks

Srini

3 REPLIES 3
Read only

Former Member
0 Likes
684

Hi Srinivas,

See this link, it ll help you.

Value Display with Currency/Quantity Unit - ALV Grid Control - SAP Library

Cheers,

pravin

Read only

narendar_naidu
Active Participant
0 Likes
684

Hi srinivas,

What is the variable you r using for capturing the subtracted value.

Also Chk with the condition,GE in ur comparing value statement.

Regards,

Read only

Former Member
0 Likes
684

hi Srini

Declare the final subtracted field as type 'C', then

data: lv_sub_temp type kwmeng.

      

       lv_sub_temp = p1 - p2.

if lv_sub_temp gt 0.

  output-final = lv_sub_temp.

endif.

hope can help you.

Regards,

Archer