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

how to save zero as a value

Former Member
0 Likes
928

i have created a enter form through module pool.and have given condition enter is saved only when it is greater than 0.now i want the entry to be saved as 0 also,but if m giving greater than equal to zero then it is taking zero as a blank value.kindly help how to save zero as a value.

8 REPLIES 8
Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
850

This looks like Requirement Dumping to me, which is against Forum Rules.

Please show what research you have done before posting

Read the Rules of Engagement.

Hope this helps..

Read only

0 Likes
850

i am searching it from last two days then only i have posted here.

Read only

Former Member
0 Likes
850

Hi,

are you using both the condition ?

what data type you mainatined?

Regards,

vijay

Read only

0 Likes
850

i am using quan as the data type and i have used GT 0 but now i want as GE 0,but when i am doing this then it is accepting entry as a blank value not as a value 0.

Read only

0 Likes
850

Hi,

could you please send ur program?

Regards,

vijay

Read only

0 Likes
850

LOOP AT ITAB INTO ITAB_WA WHERE  QUANTITY GT 0 .

ITAB_FINAL_WA-QUANTITY =  ITAB_WA-QUANTITY.

APPEND ITAB_FINAL_WA TO ITAB_FINAL.

endloop.

MODIFY ZBS_BRAND FROM TABLE ITAB_FINAL.

else.

message.

this is my code.it is working absolutely fine.but when i am editing it to be quantity GE 0 then also its working fine but it is not showing as 0 in front of brands in table,it is showing as blank field in quantity.

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
850

Did you tried the Conversion Exit Function Modules to the Quantity field.

I hope this solves your problem.

Read only

kumud
Active Contributor
0 Likes
850

Hi,

I just tried writing a test program to update a Z* database table with quantity 0 and it correctly displays the quantity as  0. I used the data element MENGE_D which is having QUAN as the data type.

I hope you are declaring the final work area and internal table of the same type as database. Thanks.

Regards,

Kumud