cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent : How to hide the field in (FPM) webdynpro-abap

Former Member
0 Kudos

Dear Experts,

i have requirement in FPM , my component is : FPM_FORM_UIBB  and Configration Name :ZHRESS_CC_PER_DTL_PERSDATA_SG

and Feeder Class is: CL_HRESS_PER_DETAIL_GENDER

my  requirement in my Personnel Profile under ESS, i need to hide the First Marriage field based on Marital Status field selection. i.e if Marital Status id

"Married" then i need to show the First Marriage field and make it Mandatory else i need to hide the First Marriage field.

now my problem is where i need to write the logic .

my Personnel Profile Screen is:

                      

Thanks in Advance,

SudhaSuma.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You have to use the Method "GET_DATA" from the Feeder-Interface.

In parameter CT_FIELD_USAGE indicate which field is to be made visible/mandatory.

And after that set the value for EV_FIELD_USAGE_CHANGED .

Let me know if this helps.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sudha,

Did your requirement got fulfilled?

Please let us know if you facing any issue.

If solved then please close the thread.

Former Member
0 Kudos

Hi Hitesh and Ram,

Thank you verymuch for your help.

i have Partially Solved the issue. what i have done is.

i just enhanced the GET_DATA method by creating Post-Exit method. and read the Field Catelog  and CS_DATA for data checking based on prev values i just updated (passing MANDATORY = 'X' & VISIBLE = 'X' property for FIELD_CATELOG.

but it is working Visible property well and for Mandotory property not working, it is displaying * infront but it is not working.(i.e it is not displaying Error msg, if there is empty value).

is there any other place (or) other way that i need to do.

Thank you,

Sudha.

Former Member
0 Kudos

Hi,

In your Form UIBB configuration.

Please select the Check Mandatory Checkbox.

Let me know if it helps.

Former Member
0 Kudos

Hi Hitesh,

Thank you verymuch, it is working fine.

 

Thank you,

Sudha.

former_member197475
Active Contributor
0 Kudos

Hi Sudha,

As Hitesh mentioned, do your logics in GET_DATA method and also do ensure to make the visibile property to the corresponding values(either 01 or 02),  ev_field_usage_changed = abap_true and

ev_data_changed = abap_true.

BR,

RAM.