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

Currency Convert

Former Member
0 Likes
619

Hi all

i need to subtotal the field &BSEG_WRBTR& and i need to dat only by passing that value to another field..i am not supposed to add directly...i declred the variable as int,char,float & num but the variable is not taking...please help....the requirement is subtotal of &BSEG_WRBTR& through another variable

with regards

vijay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
599

Hi Vijay,

I recommend the second suggestion of Ramesh: declare the data type using TYPE bseg-wrbtr.

Doing this way you will get exactly the same type for your subtotal without regarding which type it is (by the way, its currency and internally managed as packed).

Good luck!

Fernando

Hi all

i need to subtotal the field &BSEG_WRBTR& and i need to dat only by passing that value to another field..i am not supposed to add directly...i declred the variable as int,char,float & num but the variable is not taking...please help....the requirement is subtotal of &BSEG_WRBTR& through another variable

with regards

vijay

4 REPLIES 4
Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
599

Hi,

Declare it as packed , then i will do..

Cheers,

Simha.

Read only

Former Member
0 Likes
599

u need to declare the field as PACKED.

data: v_wrbtr type p decimals 2.

or else.

data: v_wrbtr type wrbtr.

Read only

Former Member
0 Likes
600

Hi Vijay,

I recommend the second suggestion of Ramesh: declare the data type using TYPE bseg-wrbtr.

Doing this way you will get exactly the same type for your subtotal without regarding which type it is (by the way, its currency and internally managed as packed).

Good luck!

Fernando

Read only

dev_parbutteea
Active Contributor
0 Likes
599

HI,

put type p lenght 13 decimals 2