Skip to Content
avatar image
Former Member

MDG Cross entity validation using enrichment spot is not executed.

I have configured the enrichment sport for cross entity validations and used BRF to validate the data, but looks like validations are
not executed. I have the check activated for the step in the configuration and I can see my custom class is being picked in method GET_ENRICHMENTS of class CL_USMD_DQ_ACCESS_ENRICHMENT for that request type and step. I have flag relevant selected and option “Execute Always” (will change this to “Execute when data changed).

I am trying to figure out if SAP MDG standard code will execute my custom class code or not. I had put break point in my custom class constructor and this is called when an instance for enrichment is created in method GET_ENRICHMENTS of class CL_USMD_DQ_ACCESS_ENRICHMENT. However my code in below method is not executed (and hence BRF is not called)

IF_USMD_ENRICHMENT_FEEDER~GET_ADAPTER_DATA

IF_USMD_ENRICHMENT_FEEDER~IS_RELEVANT

Now I am trying to figure out a place from where these enrichment class methods will be executed. I feel this will be from EXECUTE_ENRICHMENT
of class CL_USMD_DQ_ACCESS_ENRICHMENT. But this method is also not executed when I hit on Check button. Am I looking wrong standard class?

Is there anything I am missing in configuration? Or we need to implement any SAP note? I tried to find one, but no luck.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 09, 2014 at 07:41 PM

    Hello,

    I'm a little confused as to how you used BRF+ validations in the cross-entity BAdI? These are two separate objects. BRF+ validations are built for single entities and are only called when an entity is changed. Cross-entity BAdI is called every time data is changed.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 18, 2014 at 01:18 PM

    Hi All, I had been OOO for some time, this issue has been resolved, there
    was another enhancement conflicting with this design.

    Add comment
    10|10000 characters needed characters exceeded