‎2020 May 23 9:02 PM
Hello Experts,
Is there any way to sort the standard BADI implementation sequence through BADI_LAYER.
There are 11 standard implementations already. I have created one implementation for my logic. I want to call my custom implementation first. Currently standard implementations are being called.
Thanks
Bikash
‎2020 May 24 8:46 AM
That's very old and it was superseded with BADI_SORTER. What is your SAP product version? Do you have BADI_SORTER?
Please tell us more about the sort value you have defined, the sort values of other implementations, and what kind of order is defined for the concerned BAdI definition.
‎2020 May 24 5:48 PM
Please use the COMMENT button for comments, questions, adding details, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.
‎2020 May 24 6:33 PM
Hello Sandra,
Yes we have BADI_SORTER. The BADI which I am trying to implement is CTS_REQUEST_CHECK. There are already 11 standard implementations. I am implementing with my logic. I want to trigger my BADI implementation first.
Thanks
‎2020 May 24 8:37 PM
CTS_REQUEST_CHECK is not migrated to enhancement spots so I guess you may only use BADI_LAYER.
So, your question is about the whole procedure to create an implementation of BADI_LAYER to sort implementations of CTS_REQUEST_CHECK.
The procedure is explained here: https://help.sap.com/viewer/product/SAP_NETWEAVER_AS_ABAP_752/7.52.5/en-US?q=Sorting%20Classic%20BAd...
What did you try until now, what is your difficulty?
NB: there are already some questions/answers in the forum.
NB: instead of using BADI_LAYER, don't you want to define a standard sorting? (you define the order numbers for each implementation; or just enter a negative number like -10 for your custom implementation; 0 will be considered for others if nothing is entered)