Is it possible to add a pushbutton to a subscreen?

Question:
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
Answer:
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
Answer:
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

Answer:
you should also check if there is a user exit in this enhancement that passes in the Ok code for you to handle.

More Articles:

How can I lock a T-code?
Source code in tables?
grid display and restricting standard options?
Logo (Graphic) Printing?
Where can I found out the description for SY-LANGU?
Module Pool?