Skip to Content

How to give Hyper Link to Custom Message in sap MDG

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Mar 08, 2017 at 03:43 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 10, 2017 at 09:13 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • Mar 13, 2017 at 10:36 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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