cancel
Showing results for 
Search instead for 
Did you mean: 

Alternative Screen in Infotype Screen Control

Former Member
0 Kudos

Dear Experts:

In the "Infotype Screen Control", I plan to use 2 screens: standard and alternative. (For a specific condition, alternative screen should be displayed. Otherwise, the infotype should display the standard screen).

However, SAP always refers to the standard screen. Can somebody tell me how to use the alternative screen?

The path is as follows:

(SPRO --> Personnel Management --> Personnel Administration --> Customizing User Interfaces --> Change Screen Modifications)

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Widuri,

It is possible to use an alternative screen as you have mentioned.

You need to maintain a feature for the same.

You can navigate to the corresponding view via img as you have mentioned or directly access t588m via sm30.

I will give you an example.

take the case of module pool MP000100.

The standard screen is 2000.

And there are screens specific to country.

there is a feature P0001 corresponding to this view.

This feature maintains the ocountry specific entries whicha re directly reflected on the 'Variable key' field of t588m.

The first entry for MP000100 corresponds to the standard screen 2000.It also refers to the feature p0001 where the variable key has to be read.

In case of the country canada, 07 is maintained against canad in P0001.For the vaiable key 07, we maintain 2007 as the alternative screen.

similarly different screens are maintianed for different countries and the screen is designed accordingly.

In your case , first create a feature 'PXXXX' and assign the values depending on the selction condition.

then make the first entry in t588m as

Mod. Pool Std screen Feature Variable key Alt.screen

MPXXXX00 2000 PXXXX 2000

And then depending on the variables you have maintianed in the feature,maintian that may entries in t588m below the first entry.

Mod. Pool Std screen Feature Variable key Alt.screen

MPXXXX00 2000 01 2010

MPXXXX00 2000 02 2020

.

.

.

.

.

.

.

And then you can have your screens designed according to your requirements.

Hope this has answered your query.

If not,

le me know the part where you face diffuclty.

I will be glad to assist you further.

Thank you,

Jose

Former Member
0 Kudos

Hi Jose:

Thank you for your reply. Sorry I forgot to explain in the beginning that actually I have created a feature (actually it's 'Z0019') and I have assigned the values (A and B) as well.

The module pool that we use is ZP001900 (instead of MP001900) and we have created 2 alternative screens (0200 and 0300 since we need custom fields). We do not use standard screen 2000. Again, sorry for the confusion.

The case is as follows:

If the variable key is A, then display screen 0200.

If the variable key is B, then display screen 0300.

Our config is as follows:

Mod. Pool Screen Feature Variable key Alt.screen

ZP001900 0200 Z0019 200

ZP001900 0200 A 200

ZP001900 0200 B 300

The problem is: the screen always refers to 0200, never 0300 (for case B).

I really appreciate your help and would assign points.

Former Member
0 Kudos

Hi,

I understood your issue.

It seems all your configurations are fine....

check if you have activated the feature...

try activating the feature from pe03--the initial screen itself.

goto pe03-->enter your feature name and activate it from the same screen.

I belive this should work for you.

Kindly let em know the result.

thank you,

Jose

Former Member
0 Kudos

Hi Jose:

I have activated the feature. However, the alternative screen still was not displayed. What are the conditions that trigger the system to display the alternative screen?

Another option that we came up:

Because the alternative screen was not displayed, we tried combining all the custom fields (in screen 0200 and 0300) in one screen (0400). Thus the config is as follows:

Mod. Pool Screen Feature Variable key Alt.screen

ZP001900 0400 Z0019 400

ZP001900 0400 A 400 --> and modify the fields that we want to hide / display

ZP001900 0400 B 400 --> and modify the fields that we want to hide / display

If, for example, there are 10 fields in one screen, and for variable key A, we only want to display fields 1-5, and variable key B should display fields 6-10. However, when we displayed the 6th - 10th fields, they did not appear at the top of the screen (as in the case of fields 1-5) but they are slightly lower than field 1 or 2.

Please refer to the following illustration:

Infotype Screen using:

Variable Key A Variable Key B

===========================================================

Field 1

Field 2

Field 3 Field 6

Field 4 Field 7

Field 5 Field 8

Field 9

Field 10

===========================================================

Can you tell me how to move field 6 up? Since it should be displayed in the same line as field 1.

Thank you for your help.

Former Member
0 Kudos

Hello Widuri

you can make two subscreens & depending on your requirement call the subscreens one with fields 1-5 & other with 6-10 , in this case field 6 will be displayed at same level as field 1.

currently i hope you made two boxes for the fields & are making the complete box invisible(box1 with fields 1-5 & box 2 with fields 6-10) if not then try out makin box & all its fileds invisible & inactive.

reward points if helpful

Former Member
0 Kudos

Hi,

The system gets hold of the alternative system as follows.

Initially the table T582a is queried for the concerned infotype.

You have a field called 'single screen' in the table.The standard screen of the infotype is specified here.the system gets hold of the standard screen from the Single Screen field of table t582a.

then the table t588m is queried for the obtained screen and the modulepool of the infotype.

It then takes the feeature into account and then gets the alternative screen according to the value returned by the feature.

This is how the alternative screen is triggered.

Kindly check your entries in v_t582a table for the concerned infotype and make sure that you have specified the standard screen number(0200) in your case.

I suggest you proceed with your earlier way(200 and 300).

Kindly try with these entries.

Make sure you maintian single screen filed in v_t582a as 0200.

and the entries in t588m as

ZP001900 0200 Z0019 200

ZP001900 0200 B 300

try with these entries and let em know ur results

Thank you,

Jose

Answers (0)