cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding Infotype 2 fields

Former Member
0 Kudos

Hi Experts,

    Our client wants to hide SSN and Bithdate fields in infotype 0002 for certain users. I know we can use  user exit PBAS0001 but our client doesn't want to core modification. Any alternative solution? Please advice.

Thanks

Jacob

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks for everyone,

       I have copied standard screen 2010  and gave alternative screen 2012 with Variable Key 10FR. And I gave return value 10FR in the P0002 feature under specific company code decision but still didn't work. When I looked at the screen status in PA30 still calling screen number 2010 instead of 2012. My question is how do I create Variable Key? Just pick any number or do I need to find it somewhere in the program? Please let me know.

Thanks

Jacob

Former Member
0 Kudos

Hi Jacob,

You only need to adapt feature P0002 and table T588M.

Did you activate your feature after your modiffication? You must savec AND activate.

Regards,

Christophe

Former Member
0 Kudos

Hi Jacob,

If you are talking about the variable key in T588M, it is filled using the feature that is mentioned in the collumn before.  In case of infotype 0002 this will most likely by P0002.

Via this feature you can determine the variable key and determine which screen will be shown.

Kr,

Tom

<removed by moderator>

Message was edited by: Oxana Noa Zubarev

Former Member
0 Kudos

Variable Key can be any number as long as you use this variable key number to link between basic screen and the screen variant using P0002 feature.   I think you didn't activate you feature.  Steps are  1. Copy & Keep Alt screen 2010 with Mod Pool MP000200 Screen 2000 with variable Key 10FR.  3. Now hide your fields for variable key 10FR same alt screen 2010. 2. Under feature ITBLD - Otherwise - Molga - 10(US) - Company Code - Return value - '10FR'. 3. Activate Feature p0002.  Regards, Arpit

Answers (5)

Answers (5)

Former Member
0 Kudos

Now it's working fine. The way I expected,Thanks everyone. I have one more question for you. Is there any way, we can assign custom User Group insted of standard user group 'USERG'? Will that be availble from decision tree? Please let me know.

Thanks

Jacob

Former Member
0 Kudos

Hi,

Press F1 in the field which you want to hide from IT0002 and click on "technical Information" then system will give the field name. table name , Program name (module Pool, screen number etc..

Now go to SM30 and give the table name V_T588M and  module Pool name MP000200.

Nowdouble click on your  screen number (example 2000). once you click system will show you all the fields which is relavent to IT0002 and the screen 2000.

now you can make decision click on HIDE redio button to hide the field from IT0002.

Regards,

Dinesh

Former Member
0 Kudos

Option 1. You can use feature p0002 with below combination.  USERG     User group BTRTL     Personnel Subarea PERSG     Employee Group PERSK     Employee Subgroup  Or   PERNR     Personnel Number  PS: To get "User Group" OR "Pernr" fields you have to change structure for P0002 feature. System will consider it as a "Repair".  Option 2. Create a small routine & add that to standard p0002 feature.  Regards, Arpit

former_member185000
Active Contributor
0 Kudos

Hi Jacob,

Why don't you use Screen modifications to achieve your custom requirement?

T588M table will help you to hide the required fields and you can use the feature to modify and display it according to different groups of employees.

Thanks,

Madhav.

Former Member
0 Kudos

It depends of your criteria to identify the users but the best way is to use table T588M and feature P0002 with decision field USERG (user group)

Former Member
0 Kudos

Hi Christophe,

     Particularly what user group you talking about? Is that an authorization User Group? If you have more details, that will be great. Please let me know.

Thanks

Jacob

Former Member
0 Kudos

Hi Jacob,

User group is the UGR parameter. It can be defined for each user. (transaction SU01 tab parameters).

To use it in feature P0002, you must check if field for decision USERG is active for this feature (transaction PE03, feature P0002, select attributes then button Struct.)

Before try to use the UGR, don't forget to check if it's already used in your system for other functionality.

Hope this can help you,

Regards,

Christophe