2015 Sep 04 6:16 PM
Hi experts.
I have been working with determination with bopf.
My Determination is called in all modification screen.
I need it be called only when the user click in a nwbc menu option specific.
How can i know what menu is clicked by the user to put in my code?
If i need create a event to menu please send a tutorial.
I have a TM guide but i didnt find how to do it.
For example in sap ecc the abap use sy-ucomm but how to do it in bopf inside a determination?
Thanks.
Hi experts.
I have been working with determination with bopf.
My Determination is called in all modification screen.
I need it be called only when the user click in a nwbc menu option specific.
How can i know what menu is clicked by the user to put in my code?
If i need create a event to menu please send a tutorial.
I have a TM guide but i didnt find how to do it.
For example in sap ecc the abap use sy-ucomm but how to do it in bopf inside a determination?
Thanks.
2015 Sep 07 7:09 AM
Hello Ronaldo,
"determinations" are intended to be used to handle side effects. They do not offer any parameters that allows consumers to hand over details. If you would like to execute logic immediately as soon as a user clicks on a menu option, an "action" would be more suitable. There are different ways of modeling:
If you however have a real side effect and thus you would like to keep the determination, you might need some kind of customizing that can be evaluated in your determination and that is maintained upfront by the consumer.
Best regards
Tilmann
2015 Oct 27 8:31 AM
For your requirement, create a Custom Action on that Node using BOPF workbench. Put all the logic in the Action class Execute method. After this, go to the Customizing Config of the UI and click the Button. In the properties of the button mention the Name of Action. Tada ! your logic will trigger only when user clicks on the button, else not.