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

multiply 2 field in an add screen set

Hi @Bill Froelich (again 😊),

I have to show a field with the result of the multiplication of other two fields:

Field A : amount (decimal field) value added by user;

Field B : Price (decimal field determinated by Update Rule that returns a numeric field from a complex table);

Field C : Total price (decimal determinated by Update Rule (screen 1);

Screen 1

Example:

Field A : 10

Field B : 6,57

Expected Value on Field C : 65,7

I almost figured out how to do this, but the field C is not always refreshed when I change Field A or B value.

sadfsadf.png (8.6 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2016 at 06:46 AM

    Instead of taking the value from screenset property, i would suggest to use SCREENFIELDVALUE function and pass the field name.

    Example: PROD

    SCREENFIELDVALUE

    Name of the field(FieldA)

    SCREENFIELDVALUE

    Name of the field(FieldB)

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Thanks for this advice ---> "set to Low detail" Former Member. I did not know how to debug correctly the rule before you told me.



      So from the debug I figured out that I try to get the screen field value from a field with an update rule. So I just copy that rule in my field C and now it is working.

  • Posted on Aug 11, 2016 at 06:04 PM

    What client are you trying to use? Have you tested in the ATE that is part of the Editor and turned on rule debugging to see if the rule is firing and what values it is finding?

    --Bill

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 12, 2016 at 05:58 PM

    Giacomo,

    Hi. How did you setup your Field C for your Transaction Property that uses this Update rule?

    You have a Transaction1 that points to ScreenSet1 that your update rule is using. That Transaction1 has properties for your Field C.

    Is the Transaction -> Properties -> Field C setup for Initial Value : Rule - Before Data Entry or Rule - After Data Entry or something else?

    Regards,

    Mark Pe
    SAP Platinum Support Engineer

    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.