cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide the phone number for the US Permanent Address

Former Member
0 Kudos

I'm configurering the Personal Profile and my customer wants the phone number (communication type, area code and phone number) to be mandatory for the emergency address, but hidden for the permanent address. They should have the option to fill out 3 telephone numbers with only the

first being mandatory.

I have made a z-version of HRESS_CC_PER_DTL_ADDRESS_US and added the elements (COM1, AREA1, TELN1....2,3).

In V_T588MFPROPC I have marked the fields like this:

Version: 10

Subtype:1

Structure: P0006

Field Name: COM1 (AREA1, TELN1....)

Check in unused

But the fields are still visible for both addresses.

I'm not sure if I have to enter COM, AREAC and TELNR (without the numbers) or the ones with the numbers (COM1...) in V_T588MFPROPC.

When I mark AREAC and TELNR as unused (and add the fields in the z-configuration), only TELNR is hidden!

Anybody knows how to get rid of the phone numbers for only one subtype?

Accepted Solutions (1)

Accepted Solutions (1)

sagarjoshi
Advisor
Advisor
0 Kudos

First please check my blog so that you can understand what can be done in which layers

http://scn.sap.com/community/erp/hcm/employee-self-service/blog/2012/06/13/summary-of-configuration-...

The problem is that the telephone fields in US screen structure HCMT_BSP_PA_US_R0006 are named differently compared to P0006 and this is the reason your settings do not work (e.g. there is no field called AREAC in P0006 structure). The mapping between fields is done via conversion class.

So your options:

1. Implement BAdI HRPAD00INFTYUI and makes sure that you set the parameter field_attributes as you wish in method output_conversion. You can hide fields of UI structure for a particular subtype.

2. Create seperate UI configurations (copy of HRESS_CC_PER_DTL_ADDRESS_US). Hide fields based on subtype in UI configurations and assign them using HRESS_CC_PER_CONFIG.

Hope this answers.

Former Member
0 Kudos

Thank you very much for your answer - I will try your suggested solution.

Btw. I have read your blog several times - it is very good.

Former Member
0 Kudos

Hi Sagar

I just read the discussion:

http://scn.sap.com/thread/3170848

that tells that it will not be possible making two subtype variations until EHP6.

Have you succeded creating separate UI configurations based on subtype and assigned them using HRESS_CC_PER_CONFIG in EHP5?

sagarjoshi
Advisor
Advisor
0 Kudos

The other thread was talking about different configurations for Overview screen (biz cards).

In EHP6 it is possible to create seperate bizcard blocks per subtype.

For detail/edit screens it is possible to have multiple configurations based on subtype in EHP5 as per your requirement.

Also please check the complete thread. It is possible to hide certain fields (based on subtype) in Overview screen using customizing or BAdI

Former Member
0 Kudos

Thank you very much, it solved my problem.

Answers (1)

Answers (1)

Former Member
0 Kudos

If you run out of ideas/luck with V_T588MFPROPC you can probably use the application configuration (that I'm not sure what is called) or the component configuration (or a copy of it) to hide the address altogether.

Br Jan