cancel
Showing results for 
Search instead for 
Did you mean: 

Validating Mandatory fields in FPM Applications when clicking on SAVE button in toolbar

former_member5006
Participant
0 Kudos

Hi All,

Copied Create Initiative  functionality in PPM into Z Application . Here we have fields like Initiative Name , Planned Start and Planned Finish .

How to make this fields as mandatory and how to validate the mandatory fields when clicked  on save button ?

  when we clicked on create Initiative Button Below screen will appears

  • Here How to make this fields as mandatory ?
  • When we clicked on Save button   how to handle  validation of fields ?

Thanks & Regards,

Naveen

Accepted Solutions (0)

Answers (2)

Answers (2)

Dhivya
Active Participant
0 Kudos

Hi Naveen,

In case if you want the fields to be mandatory only in UI, then it is better to enhance the Feeder class GET_DATA method.

" Declare the Field property

  Data : ls_field_props TYPE /bofu/if_fbi_view_exitintf_run=>ts_field_property.

  

   ls_field_props-name = <lv_name>

   ls_field_props-mandatory = 'X'.



Regards,

Dhivya


Former Member
0 Kudos

Hi Naveen,

1. To make fields mandatory in Initiative -

  • Follow IMG path SAP Portfolio and Project Management > Portfolio Management > Global Customizing > Global Field Settings > Define Custom Field Configuration.
  • Object type: IPO
  • In UI Configuration: Select Field name, Activity (specific to Admin users / Write auth. users / Read / No Auth) and set values of Required as 'X True'.
  • If you don't specify any Activity, then it will be applicable to all users.

2. To perform any validation of field values -

  • Take the help of the development team as this will require enhancement.
  • For field or status validation at Portfolio Item level, I know that you have to develop an enhancement spot in class /RPM/CL_ITEM_D_API.

Hope this helps.

Best Regards,

Aditya Kotak