on 08-12-2015 4:47 PM
Hi All,
I have extended the MDGM data model (version 7) by a new entity type (Reuse Option) but the BADI is not getting triggered (BAdI: Extension of the API with Customer-Specific Segments - MDG_BS_MAT_API_SEGMENTS_EXT).
I followed the http://scn.sap.com/docs/DOC-27859 guide in order to try to achieve this.
The data is stored in the staging table....but then never gets moved to my new database table when it is deleted from the staging table at approval. As a breakpoint will not work in the check and save method because it's a WF-BATCH job...I put a breakpoint in the read method and it never stopped so I'm assuming the whole BADI is not getting called.
I'm thinking that maybe my filter is wrong!?
What does MAT_API_SEGMENT_EXT_FILTER refer to?
Or is there any other reason the BADI would not be getting called?
Appreciate any help on this.
Ben
Hello Benjamin,
We could get to know that only by debugging.
As Ingo has already suggested, the only way to debug something which is getting triggered as a part of activation step is to go via BUS2250 and execute ACTIVATE_2 method.
Activation is set as background process for the standard delivered workflow in BRF+ decision tables.
BR,
Avinash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, some comments:
* CHECK is also called when you press the check (or submit/...) button in the UI
* You can also trigger the activation by loading the BUS2250 into transaction SWO1, instantiate with the CR number and execute methode ACTIVATE_2 - basically the same happens during activation
* You could put a break-point into the places in CL_MDG_BS_MAT_API where the BAdI is called and check whether maybe the filter values are not correct
Regards, Ingo Bruß
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've started debugging CL_MDG_BS_MAT_API and have found that the importedparameter IT_MAT_SEGMENTS_EXT is empty. This is the reason it's not calling my BADI.
Why would IT_MAT_SEGMENTS_EXT not have any values? Is there something I've missed?
The document might not be entirely helpful as we're running MDG 7 and not 6. But there isn't an updated document so I'm stuck for clues!
Well, many reasons for an empty IT_MAT_SEGMENTS_EXT: Some error in
The guide wasn't updated because there was no change to the process.
Did you already implement the guide 1:1 in a sandbox system (same example)?
Was there any issue?
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.