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

difference between quantities

Former Member
0 Likes
642

hi all..

I am making a module pool in which i have to find the differnece of two quantities and save in ztable.

problem arises when negative value occurs...

for that i give difference-field of type char. but it save negative values in ztable but does not diplay when i retrieve it in module pool.

please help..

4 REPLIES 4
Read only

vinod_gunaware2
Active Contributor
0 Likes
546

Hi

Convert character to number or float and then do calculation.

Then reassign the value to character.

Use casting.

regards

vinods

Read only

0 Likes
546

Take the type of diff field as the quantity field (instead of character field)...

Read only

Former Member
0 Likes
546

1 st check the variable where u store the -ve value from ztab, variable have same type as in ztable...

Read only

Former Member
0 Likes
546

Hi,

Use standard data element MENGEP for the quantity fields in your Z table.

Hope it helps.

Regards,

Shashank