04-14-2014 8:02 AM
Hello Experts,
I've a requirement in which I've to validate ME21N for PO Date < sy-datum. So which METHOD of which BADI I've to implement to get this done.
Thanks in advance..
Best Regards,
Hardik B
04-14-2014 9:57 AM
Hi Hardik,
Please try writing your code in method POST of BAdI ME_PROCESS_PO_CUST.
If you want to search for a BAdI for a particular T-code, Go to t-code SE24. Enter class name as cl_exithandler, put a break-point on method GET_INSTANCE of this class and come out of it. Enter the t-code for which you want to find a BAdI. Once the program stops in the debugger, you can find the BAdIs and user exits in the exit_name parameter of the method get_instance.
Regards,
Dnyanesh.
04-14-2014 9:57 AM
Hi Hardik,
Please try writing your code in method POST of BAdI ME_PROCESS_PO_CUST.
If you want to search for a BAdI for a particular T-code, Go to t-code SE24. Enter class name as cl_exithandler, put a break-point on method GET_INSTANCE of this class and come out of it. Enter the t-code for which you want to find a BAdI. Once the program stops in the debugger, you can find the BAdIs and user exits in the exit_name parameter of the method get_instance.
Regards,
Dnyanesh.
04-14-2014 10:37 AM
BADI - ME_PROCESS_PO_CUST
METHODS - As per requirement. Can try PROCESS_HEADER / CHECK.
Thanks
Abhinab
04-14-2014 10:37 AM
Hi Sir,
I tried it but it not triggering. None of the method of ME_PROCESS_PO_CUST is triggering.
Best Regards,
Hardik B
04-14-2014 10:45 AM
Is your implementation of the BADI, filter dependent?
Please check for the same..
Thanks
Abhinab
04-14-2014 11:00 AM
Did you activate your implementation of the BAdI, also this BAdI does not allow multiple implementation, so check if there is already an active implementation.
Regards,
Raymond
04-14-2014 11:06 AM
Hello Sir,
Thanks for reply, Yes Sir, there is already an active implementation of this badi.
So what is the other solution to this get job done.
Best Regards,
Hardik B
04-14-2014 11:25 AM
Did you create an implementation of this BAdI? Please create an enhancement implementation of this BAdI.
Go to t-code SE19->Enter BAdI name->On the left hand corner of toolbar you have Enhancement Implementation button->Create Implementation.
Follow the steps and put a break point in the method and then check.
Regards,
Dnyanesh.
04-14-2014 12:10 PM
First ask if you are allowed to add your code in the existing Implementation (If this is a customer implementation of course) Else look for other tool like good old customer exit EXIT_SAPMM06E_012 of enhancement MM06E005, but first solution is more appropriate.
Regards,
Raymond
04-14-2014 11:16 AM
04-14-2014 11:35 AM
Also,
If you check the properties of this BAdI you will find that the Multiple Use checkbox is not checked. So you cannot re-implement this BadI. Please check the overview of the implementations of this BAdI. If it is already implemented, use the same enhancement implementation, and write your code in it. If you create another implementation, the BAdI will not trigger.
Please check.
Regards,
Dnyanesh.
04-14-2014 12:19 PM
Yes, Raymond is right. Please make sure someone else's implementation is not affected by your coding. Else, you can follow the User exit approach as mentioned by Raymond.
Regardsm
Dnyanesh.