Skip to Content
author's profile photo Former Member
Former Member

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

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.

sshot-108.png (110.0 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 12, 2016 at 06:40 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2016 at 08:49 AM

    Thnank you Stephen

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.