Hello Konstantin,
Thanks for quick reply.
I have already read the document. The problem is that, the document ( in this case ) is a quotation/RFX response which comes from an external system through XI/PI interface and in KSRM side, we create the quotation using BBP_PD_QUOTE_CREATE FM.
The point is, the quotation comes in awaiting approval state, in other words in approval mode.
If I add the button through FPM config, the button is displayed, but there is some problem with UIBB config and mode.
In the post exit of CNR_VIEW method buttonpressed, i added the code which needs to be performed on event ID of the button and i add some messages (W,I,E,A) type, but those are not displayed on screen. I found that mapper does not get refreshed in this case.
Hence i thought of adding button dynamically as once BADI is reached, the mapper gets refreshed.
Regards,
Yayati