cancel
Showing results for 
Search instead for 
Did you mean: 

How to access the Attachment tab in GRAC_UIBB_ACCESS_REQUEST component in GRC

rathish6
Explorer
0 Kudos
412

I need to set validation on attachments in GRC access control flow GRAC_UIBB_ACCESS_REQUEST. How can I access the attachments added by the user to validate a condition before submitting the request.

Accepted Solutions (0)

Answers (2)

Answers (2)

madhusap
Active Contributor
0 Kudos

Hi Rathish,

Required code logic in BADI to restrict attachments for access requests is in SAP note 2058231. However, in the latest versions this whole logic was missing and only the latest logic which SAP released via SAP Note 2580634 is available. Raise this to SAP as the logic should already be there.

Regards,

Madhu

rathish6
Explorer
0 Kudos

Hi Madhu,

Thanks for the advice, but the logic is present in my system and still the standard code is not triggering.

madhusap
Active Contributor
0 Kudos

Hi Rathish,

Can you provide more details on validation you are planning to implement?

If it is file type validation then it is already available as part of standard configuration parameters (Parameter 2401) which you can maintain and will be validated during request submission

Regards,

Madhu

rathish6
Explorer
0 Kudos

Hi Madhu,

Yes, it is file type validation. For this, I have tried using parameter 2401 as well but for that, I am facing a problem that I have the control never goes to the standard badi code i.e. IF_GRFN_DOCUMENT_BADI~BEFORE_CREATE of the class cl_grac_document_badi. But when I created an implementation for it then the control goes onto the implementation whenever the user presses the ok button while adding a new file in the attachment tab, it doesn't trigger on submission of the request. I need to implement a logic that should trigger at the submittion of the request.