Skip to Content
1

How to give Hyper Link to Custom Message in sap MDG

Mar 07, 2017 at 07:37 PM

590

avatar image
Former Member

Hi Experts,

I have a requirement to give hyper link (directly go to that mandatory attributes to fill) to Custom error message in sap MDG UI (Customer and Vendor Governance) , when we click on check button or press enter. As of now it's working for SAP Standard Messages in SAP MDG.

Please help to resolve this requirement.

Thanks

Sachin Kapoor

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Rohit Singh Mar 08, 2017 at 03:43 AM
0

Hi Sachin,

I am not sure whether this feature is supported by Standard Framework ( For Vendor & Customer ). As it's a BOL framework whether you provide the Error Messages through BRF+ or you provide in the BADI.

Also if you provide Mandatory fields at Data Model level, still the hyperlink is not coming.

This is what I believe & the reason behind is BOL framework.

Till that time, you can convince you client by saying, "Providing hyperlink is not supported & we are still working on :-)"

If it is possible by any means, I will also be glad.

Regards,

Rohit Singh

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Dear Rohit,

We have raised this issue to SAP and waiting their reply.

Thanks

Sachin Kapoor

0
Hasan Hüseyin Akhuy Mar 10, 2017 at 09:13 PM
0

Hey Sachin,

you have to redefine Feeder class method.At the moment it is almost impossible do it via BRF+ or within the BADI. This functionality needs webdynpro instances.Fastest way should be within the Feeder class...

BR,

Hasan

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Dear hasan,

In Feeder class (Error internal table FPMGB_T_MESSAGES-REF_NAME, we can pass Attribute name and we can get hyperlink- This is I know), But this should not be recommended , because Feeder Class gets executed every times once you do anything on UI, and more over we can not restrict code of Feeder class on the base of Entity. and also I have 50 Custom Error messages to be displayed on screen.

So Please let me know if you have any other solution.

Thanks

Sachin Kapoor

0
avatar image
Former Member Mar 13, 2017 at 10:36 AM
0

Hi All,

I am able to give hyper link for custom messages through BADI - USMD_RULE_SERVICE ( Method Name - CHECK_ENTITY).

1 - We have ET_MESSAGE type USMD_T_MESSAGE, In the error table we have attribute(ROW), so we have to fill Row also for the same. And How to fill Row is :-

lv_row = cl_mdg_bs_key_row_map_service=>set_key( is_key = lr_key

iv_entity = lv_entity_tr "'AD_POSTAL'

iv_fieldname = 'RFE_POSTL' ).

l_message-row = lv_row.

2 - How to populate lr_key is :- using create_data_reference and once u populate lr_key with primary key attribute then fill the attribute with the values.

example:- In my case as Entity is 'AD_POSTL', so lr_key will have structure-attribute

a - Addrno , b - Bp_header, c- ad_nation. accordingly fill value in both the attributes.

3 - This code will run on the base entity_type i.e

I_ENTITYTYPE = Entity Name

Thanks

Sachin Kapoor

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Very Nice piece of Info Sachin

I am filling the ROW but only raising the USMD message with ROW.

Thanks I will use it with your technique to raise the Error Message.

-Rohit

0
Former Member

Hello Sachin,

Even I am facing similar issue. Can you please elaborate the steps for creating lr_key.

Thanks,

Hardik

0
Former Member

Dear Hardik,

Please see step number 2 for your query.

I am able to give hyper link for custom messages through BADI - USMD_RULE_SERVICE ( Method Name - CHECK_ENTITY).

1 - We have ET_MESSAGE type USMD_T_MESSAGE, In the error table we have attribute(ROW), so we have to fill Row also for the same. And How to fill Row is :-

lv_row = cl_mdg_bs_key_row_map_service=>set_key( is_key = lr_key

iv_entity = lv_entity_tr "'AD_POSTAL'

iv_fieldname = 'RFE_POSTL' ).

l_message-row = lv_row.

2 - How to populate lr_key is :- using create_data_reference and once u populate lr_key with primary key attribute then fill the attribute with the values.

example:- In my case as Entity is 'AD_POSTL', so lr_key will have structure-attribute

a - Addrno , b - Bp_header, c- ad_nation. accordingly fill value in both the attributes.

3 - This code will run on the base entity_type i.e

I_ENTITYTYPE = Entity Name

Thanks

Sachin Kapoor

0