Application Development 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: 

Help with moving between custom screens in a Standard Transaction

Former Member
0 Kudos
106

All,

I'm working with a standard transaction, but in this transaction, the I'm having 2 tabs of customized screens. In each of the screen, I have 1 mandatory fields to be filled. If the user only fill in the mandatory field of the first screen and click save, I need to display an error message and also display the second screen automatically? How can I do this? I tried to use CALL SCREEN 9200 but the system keep displaying the error "Screen SAPLXQQM 9200 must not be in Include screen".

Can anyone help me on this one? Thanks in advance.

8 REPLIES 8

Former Member
0 Kudos
63

Try run FM SAPGUI_SET_FUNCTIONCODE with FUNCTIONCODE = OKCODE of need tab (you can get it in debug mode at variable sy-ucomm).

Run this FM after your check routine.

0 Kudos
63

I'm getting the same error "Screen ..... must not be an Include screen". What does this means?

0 Kudos
63

You must replace code CALL SCREEN 9200 from you program on call FM from my last post , cause this operator worked only with screen. Your 9200 screen is subscreen as I know.

Try do it - it's realy worked.

0 Kudos
63

Thanks Andrey,

But I did what you say by replacing the CALL SCREEN 9200 with your FM, I'm still getting the same error. Yes, 9200 is a subscreen. What am I doing wrong?

0 Kudos
63

Please, anyone?

0 Kudos
63

You must don't calling screen 9200. I mean delete lines code

CALL SCREEN 9200.

from your program.

This code can be placement in screen fiew logic only!

Instead, set code of needed tab of tabstrip using FM. Program process this command and automaticly call tab with your 9200-subscreen.

0 Kudos
63

Andrey,

I already said I have REMOVED the CALL SCREEN 9200 from the program. Again, I have replaced that code with the FM that you suggested... yet again, it's not working since my 9200 is a subscreen. Can the FM work with SUBSCREEN? If no, what is the way to call a subscreen after validation? Thanks in advance again.

Former Member
0 Kudos
63

Nevermind, I figured out.