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

BRF+ derivations to be exceuted only once

Dear Sdners,

I have a requirement where I need to default certain attributes in Material Master during create using BRF+.

But now once the attribute is defaulted user can change the value for those attributes.But since my BRF+ executes during check/save/submit,it again overwrites user value with default value.

E.g Based on CR type I am defaulting Base unit of measure to "EA" using a rule in BRF+.Now user changes the value from EA to KG.but when user click on check or save or submit again KG is overwritten to EA by BRF+ rule.

How to specify condition that BRF+ should only default once .



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 19, 2016 at 02:36 PM

    Hi Neethu,

    two possible ways based on your scenarion:

    1- In case you want to take a decision to default value for Base unit of measure only if it is blank, you can have the logic to check if Base Unit of measure IS INITIAL then only run the logic else let the user entered value prevail.

    2- You can have a static variable in your abap logic calling BRF+ where you can set a flag once the BRF+ has been called in a particular transaction. If this static flag is set means your BRF+ logic has already been exceuted once and should not run again until the completion of current transaction.

    Nabhish Saxena

    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.