Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV grid control in module pool

Former Member
0 Likes
550

Hi All,

Below is the problem I am facing, can anyone plz let me know the solution.

I am using ALV grid control on the subscreen.

If I enter material num and press enter on the grid control, it should validate the material num and display the material text.

If I enter wrong material number it should display error on the bottom line of the screen(say task bar). If I use 1) message e112(se), screen is terminated,

2) message i112(se), displaying message in the dialog box which users don't prefer.

3) message s112(se), It is displaying at the bottom, which is perfect, but program execution is not ending. I tried using 'leave screen' but giving error as leave screen cannot be used in subscreens. If I use 'leave program' it is terminating the screen.

Is there any other way to terminate the program flow but should come to the screen again.

Any ideas plz.

Hi All,

Below is the problem I am facing, can anyone plz let me know the solution.

I am using ALV grid control on the subscreen.

If I enter material num and press enter on the grid control, it should validate the material num and display the material text.

If I enter wrong material number it should display error on the bottom line of the screen(say task bar). If I use 1) message e112(se), screen is terminated,

2) message i112(se), displaying message in the dialog box which users don't prefer.

3) message s112(se), It is displaying at the bottom, which is perfect, but program execution is not ending. I tried using 'leave screen' but giving error as leave screen cannot be used in subscreens. If I use 'leave program' it is terminating the screen.

Is there any other way to terminate the program flow but should come to the screen again.

Any ideas plz.

2 REPLIES 2
Read only

Former Member
0 Likes
474

Hi,

Use 'LEAVE TO SCREEN <screen no>'.

Otherwise go & check the following link,

http://help.sap.com/saphelp_nw04/helpdata/en/10/e7dbde82ba11d295a40000e8353423/frameset.htm

Read only

Former Member
0 Likes
474

Hi,

Create a pushbutton on screen say EXIT & code as:

WHEN 'EXIT' .

CALL SCREEN 112.

Hope this helps.

Reward if helpful.

Regards,

Sipra