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

Convert data type ...

Former Member
0 Likes
498

Hi all,

I have a coding:

TYPES: BEGIN OF T_ITEM,

......

WRBTR LIKE BSEG-WRBTR, "Tax Amount(Document)

FWBAS(16), "Net Amount(Document)

....

END OF T_ITEM.

DATA : IT_ITEM TYPE TABLE OF T_ITEM WITH HEADER LINE.

DATA : temp LIKE BSEG-WRBTR.

......

.....

Now, I want to caculate with IT_ITEM-FWBAS,

eg: temp = temp + IT_ITEM-FWBAS.

....

But it error. Why, and how to correst it ... Pls help me

4 REPLIES 4
Read only

naimesh_patel
Active Contributor
0 Likes
466

Change the declaration of your FWBAS variable of the type.


TYPES: BEGIN OF T_ITEM,
......
WRBTR LIKE BSEG-WRBTR, "Tax Amount(Document)
FWBAS LIKE BSEG-WRBTR, "Net Amount(Document)
....
END OF T_ITEM.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
466

Hi,

Declare FWBAS also like BSEG-WRBTR.

Regards,

Satish

Read only

Former Member
0 Likes
466

Hi,

You can use as below :

FWBAS like BSEG-WRBTR.

Thanks,

Sriram Ponna.

Read only

0 Likes
466

Hi all,

Thanks for all, but if I don't want to change TYPES. How can !? Or can not !?