cancel
Showing results for 
Search instead for 
Did you mean: 

Error when calling an outbound plug from BADI

0 Kudos

Hello,

I modified the BADI "COM_PARTNER_BADI", so that it checks if the partners of a service requests (created in web ui) are related to each other (via table "but050").

If they are not related, the BADI calls an outbound plug the method "BP_ACCOUNT_SEARCH" to open a pop up, used to search for business partners.

The problem is that a dump occurs ("OBJECTS_OBJREF_NOT_ASSIGNED") in the outbound plug at this line:

lr_partner_set ?= me->typed_context->btpartnerset->collection_wrapper->get_current( ).

In debugging I noticed, that the "me" is empty.

So I guess the outbound plug doesn't know it's context because it's called by a BADI?

Cann you tell me how I can get the data from the service request, whose partners are checked by the BADI?

Thank you very much and best regards

Chris

Accepted Solutions (0)

Answers (0)