cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Hiding fields with BADI /RPM/OBJECT_SERVICES not working

Former Member
0 Likes
279

Hi All,

I'm trying to hide the "Initiative Type" field on the Create New Initiative screen under Portfolio Management in xRPM.

I have implemented BADI /RPM/OBJECT_SERVICES and added the following code:

method /rpm/if_ex_object_services~get_field_info.

  data: ls_field_description like line of it_field_description.

  read table it_field_description with key fieldname = 'INITIATIVE_TYPE' into ls_field_description.

  check sy-subrc = 0.

  ct_field_description = it_field_description.

  loop at ct_field_description into ls_field_description where fieldname eq 'INITIATIVE_TYPE'.
    move '' to ls_field_description-visible.
    move '' to ls_field_description-enabled.
    modify ct_field_description from ls_field_description.
  endloop.

endmethod.

I have debugged the process and the ct_field_description values are changed but the field still displays.

Any ideas?

Thanks,

Gregor

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Likes

Thanks for the info guys

schneidertho
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Gregor,

we have tried something similar for the item template and it did not work. The BAdi is not inteded to be used for that purpose as Piyusha has described. Nevertheless you might be able to hide the field through Java web dynpro configuration. We have managed to do it through this.

It is a bit difficult to describe it step-by-step here. But basically you could try the following: copy the standard iView/Page (delta link). Configure the copied iView through the portal content.

Most likely you will get an error which stops you from going to the relevant screen (something like object not found / context not read...). You will have to set a breakpoint in /RPM/BUCKET_GETLIST and ensure that this function module returns a list of buckets. Best is to compare how the function module is 'normally' called and then populate the importing parameters the same way during configuration through portal content with help of the debugger.

I hope this idea helps a bit.

Best regards

Thorsten

0 Likes

Hello Brett,

You can hide the INITIATIVE_TYPE field in the overview screen in Initiative creation. However, it cannot be hidden from the top of the screen. This is to allow user to change the Initiative type when he is in the create screen.

Regards,

Piyusha