Skip to Content
author's profile photo Former Member
Former Member

Access class concept: application/foundation layer

Hi everybody,

I need some help regarding the acces class concept in MDG.

"The master class is the one beeing called by the MDG framework. Its object instance actually depends on the current software layer is it running in. In the MDG foundation layer, it is a reference of class CL_MDG_BS_FND_ACCESS whereas in the MDG application layer it is a reference of class CL_MDG_BS_ECC_ACCESS..." from SAP Guide - Extend the MDG Business Partner

While debugging I found out the object instance is always of class CL_MDG_BS_ECC_ACCESS - even if I'm just creating a business partner (and no customer/supplier). In this case - for my understanding - it should be of of class CL_MDG_BS_FND_ACCESS?

So I'm wondering: is it always running on application layer?

In the master class CL_MDG_BS_BP_ACCESS_MASTER-DELIVER_ACCESS_CLASS_NAME

it's checking for the required access class in line 23:

* if customer or supplier (EhP5 or EhP6) is active then use ECC access class

IF cl_abap_switch=>get_switch_state( 'MDG_BS_BP_SWITCH_01' ) = 'T'. "On

...


This seems to be always true. Is this a general system setting? Meaning sth like: the system is using customer and supplier functions, therefore just use application layer?

Kind regards,

Hannes



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 23, 2015 at 07:35 PM

    Hey Hannes,

    The way the Suppier (Vendor) and Custom MDG works is it always creates the Business Partner first. Depending on your version of MDG it might be slightly different, but the CL_MDG_BS_ECC_ACCESS is always called in order to save the BP.

    Once BP is saved, based on your CVI configuration, a Supplier or Customer would be created copying big chunk of the BP and enhancing it with the specific data from the Change Request.

    Hope that explains why the class is always called 😊

    Regards,

    Boris

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.