Skip to Content
Author's profile photo Siva rama Krishna Pabbraju

Redirect Customer related GUI transactions (XD01/XD02) to MDG Customer Maintenance


While I was surfing through few S/4 systems, I came across a behavior in a system (1511), whenever I have executed the transaction XD01 or XD02, it is redirected to transaction ‘BP’

Initially I thought it was a configuration, later I figured it out as SAP hard coding.


Recently I got a requirement to redirect XD01/XD02 to MDG Customer Maintenance Screens as we have implemented MDG  and Business wanted either create/change has to happen from MDG Portal not from backend XD01/XD02 transactions.

I recalled that I have seen behavior of redirecting XD01 transaction to BP somewhere, later I understood that it is not a part of configuration but it is S/4 HANA code.

I have used BADI to call piece of code mentioned below to redirect XD01 to MDG Customer Maintenance Screen.

My Approach towards the Solution:

**–Get the Base URL of the System
DATA(lv_url) = cl_nwbc=>url_base(  ).
**–Concatenate SAP MDG Customer Role to URL CONCATENATE lv_url ‘~roletest/SAP_MDGC_CL_MENU_04/?sap-nwbc-node=root’
INTO lv_url.

**–Call the URL
CALL METHOD cl_nwbc=>url_launch( lv_url ).

**–Exit the Current Transaction


Extra Notes:

With this Similar Approach, we can redirect all GUI transactions for Customer/Vendor/Material/FI related transaction to MDG Portal.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Michelle Crapo
      Michelle Crapo

      Excellent!!!!   Great way to get around a very strange issue.

      Just Curious - Did you communicate with SAP Services before this?   Did you get the response it is working as per requirement?  It seems like an issue other customers might have.

      Anyway - you got it!   I'm bookmarking for future use.

      Thank you for sharing!


      Author's profile photo Former Member
      Former Member

      Hi Raju,

      As part of S/4 Hana All customer master and Vendor master Tcodes routed to BP tcode.


      Once MDG is in place on S/4 or ERP system, All Master data changes should start from MDG.
      Always business user should start from NWBC screen as single point of entry.

      Once MDG is in place, Backend Tcodes ie XD01 or XK01 and BP to be restricted based on authorization. This Tcodes access will not be provided for normal users.

      I would suggest NOT TO redirect from XD01 to MDG customer screen. Try to keep MDG practices in place by keeping NWBC as starting point for the search, create and workflow inbox for CR approvals.