Application Development 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: 

material net and gross weight - MARA table

Former Member
0 Kudos
3,007

Hi all

I am pulling material gross and net weight (fields BRGEW and NTGEW) from MARA table. The data type for these two fields is QUANT 13 with 3 decimals.

But I want to have the net and gross weight values with only one decimal value. How can I do this please help.

1 ACCEPTED SOLUTION

suresh_datti
Active Contributor
0 Kudos
830

you can declare another variable as

w_quant type p decimals 1

and move your table value to that field..

~Suresh

6 REPLIES 6

suresh_datti
Active Contributor
0 Kudos
831

you can declare another variable as

w_quant type p decimals 1

and move your table value to that field..

~Suresh

abdul_hakim
Active Contributor
0 Kudos
830

Hi,

<b>data: gross type p decimals 1,

net type p decimals 1.</b>

move your gross and net value to the above variables....

Cheers,

Abdul Hakim

0 Kudos
830

Thanks for the replies. But I am working in a smartform. The two fields are the global variables. I can not declare the variables as you have shown me. Do you guys know any data type of type P with 1 decimal.

Waiting.......

0 Kudos
830

hi

why dont you declare a global variable in smartform of the same type........??

0 Kudos
830

In smartform under Global Definitions can you tell me how can I declare these two fields....

0 Kudos
830

hi you could create a custom structure with the fields of which decimal length of 1 each and refer the same in SF.....

Cheers,

Abdul Hakim