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: 

Hiding tab in zmsc2n

0 Kudos

Hi guys,

My requirement is to copy the msc2n transaction to zmsc2n and need to hide few subscreens in it. I'm new to module pool. Can you please help me how to acheive this requirement.

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

This can be achieved by creating transaction and screen variants, throught the transaction code SHD0.

  1. Create a transaction variant and a screen variant for the screen you want, hide the tab (checkbox invisible)
  2. Create the transaction code ZMSC2N (via transaction code SE93) as a "variant transaction", and assign the "transaction variant" created previously.
  3. Run ZMSC2N -> the tab should be hidden
10 REPLIES 10

Sandra_Rossi
Active Contributor

This can be achieved by creating transaction and screen variants, throught the transaction code SHD0.

  1. Create a transaction variant and a screen variant for the screen you want, hide the tab (checkbox invisible)
  2. Create the transaction code ZMSC2N (via transaction code SE93) as a "variant transaction", and assign the "transaction variant" created previously.
  3. Run ZMSC2N -> the tab should be hidden

0 Kudos

Thanks for your reply Rossi..

I will try and get back to you

0 Kudos

Hi Rossi,

I tried that everything is working fine but i don't see any option to grey out fields in the classification tab of MSC2N but i'm able to greyout fields in Basic data 1 subscreen.

Not hiding a tab but greying out fields, is another question. I guess the fields in the classification tab are the ones in an ALV Grid control. Screen variants may only act on dynpro elements, not on GUI controls.

0 Kudos

Oh ok Rossi..

Thanks for your wonderful help

0 Kudos

Hey Rossi..

I had an other problem. Save button is disabled in my screen whereas in MSC2N it is enabled. Is there any way to enable it.

Thanks in advance.

0 Kudos

If you didn't disable the save button via the screen variant, then the cause is maybe the standard which works differently based on the transaction code. For instance, there could be several transaction codes calling the same program, one for displaying, one for creating, etc., and the standard checks the transaction code to enable different buttons.

In that case, it's best to ask a new question (+ add a link to this thread for reference).

0 Kudos

Thanks for your help Rossi

matt
Active Contributor
0 Kudos

Please note, your requirement is to find a way to have the functionality of MSC2N but with a few subscreens hidden. Your requirement is not "to copy the msc2n transaction...". That is merely your proposed solution to the requirement. You need to be aware that copying SAP standard programs for your own purposes is very bad practice. There's always another way that's less risky - even changing the original SAP program is better than copying it.

Also - be new to a technology won't give you any special treatment here. There's really no point in mentioning it.

0 Kudos

Hi Matthew

Yes, of course, copying is bad practice. But business didn't want to change the transaction for all users. We need to acheive the above requirement to only certain users. Is there any other solution for this.