Is it possible to add a pushbutton to a subscreen?
Hi,
I have a screen enhancement and we woud like to add a button to the
enhancement subscreen. However, I am not allowed to define an ok code
field in the subscreen.
Do we normally add buttons to enhancement screen? If not what is the work around.
tjhinkh
Hi,
You cant define an OK_CODE in the subscreen. You have to use the PAI of the Mainscreen to capture the OK_CODE.
_________________
Cheers!
Sgabaper
Use a PAI module and check for sy-ucomm. However, if this is a screen-exit in a standard SAP program and the screen flow is controlled dynamically, you could get an error message saying "Function code XXX not allowed here" although it works just fine. Then you should check the topic:
/forums/viewtopic.php?t=7400
you should also check if there is a user exit in this enhancement that passes in the Ok code for you to handle.