cancel
Showing results for 
Search instead for 
Did you mean: 

Agentry App. How to get Decimal Number Property of Transaction in the Java Code.

Former Member
0 Kudos

Hi All

I have Agentry App

I have Edit Trascation with 4 string properies and 1 Decimal Number Property.

I have Java part of application where I pass value of transaction to the SAP BAPI.

The problem is that I can't get value of Decimal Number Property

Double calcval = user.getDouble("transaction.CALCVAL");

returns 0 and

String calcval = user.getString("transaction.CALCVAL");

returns ""

but I see value of CALCVAL and it is not null.

How can I understand why user.getXXXX("transaction.CALCVAL") returns empty value?

When I read other transaction values like MATNR, MEINH using getString I get a real correct value.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

the field "CALCVAL" is part of your transaction, but "CountNum" is. Can you try: user.getDrouble("transaction.CountNum");

Answers (1)

Answers (1)

Former Member
0 Kudos

Thnank you Stephen

But I actually thought that in the case of incorrect field name Agentry generates an exception, rather than ignore it.