I have a requirement where we are calling a subscreen from a normal screen and the in that subscreen we are calling a model dialog box.
I have created one custom button in that model dialog box i,e CANCEL.We are calling model dialog box from subscreen.
Once user see the model dialog box and want to close it,he will press close button,in that case we want to user back in the subscreen and the model dialog box should be closed.
Can u please help me how to do this.
Maybe I do not understand the problem, but it seems to me that you are describing exactly how it would work normally. Is it acting different from the way you describe?
Also if you are simply needing to display a message or a small amount of data, there are SAP written function modules to display messages and data. You can find many of them by searching for function modules that start with POPUP_TO*