cancel
Showing results for 
Search instead for 
Did you mean: 

Quantity Field....

Former Member
0 Kudos

Hi all,

I have a requirement where i need to calculate the difference between 2 fields ie.,

gv_diff_qty = gw_rseg-menge - gw_ekpo-ktmng.

So, My question is wat should be the variable gv_diff_qty type to be declared in the report...

Thanks.

Zaf...

Accepted Solutions (1)

Accepted Solutions (1)

former_member196299
Active Contributor
0 Kudos

hi ,

make sure the types of gv_diff_qty , gw_rseg-menge and gw_ekpo-ktmng should be same .

Regards,

Ranjita

Answers (4)

Answers (4)

Former Member
0 Kudos

data: gv_diff_qty type p decimals 2.

or

data: gv_diff_qty type menge.

Former Member
0 Kudos

Hi,

Declare it as a Quantity field,

In the RSEG, you will have a Quantify field, so take that field type

Regards

Sudheer

Former Member
0 Kudos

Hi Khan,

Declare gv_diff_qty as either one of the types of gw_rseg-menge or gw_ekpo-ktmng.

DATA gv_diff_qty TYPE rseg-menge.

DATA gv_diff_qty TYPE ekpo-ktmng.

Thanks,

Vinay

Former Member
0 Kudos

decleare as pack.