‎2007 Oct 22 4:57 PM
Hi Experts,
I am looking for an exhancement (Function Exit / Badi ) which will should be trigegred when user presses SAVE button in PO .(Say me22n)
As I couldn't find suitable exit / badi....I thought of using the enhancement point provided for ME22N in the PAI module.Please correct if there is any issue upto here.
&----
*& Module EVENT_PAI_FINISHED INPUT
&----
text
----
MODULE event_pai_finished INPUT.
ENHANCEMENT-POINT EVENT_PAI_FINISHED_01 SPOTS ES_LMEVIEWSF01 INCLUDE BOUND.
CALL METHOD call_view->handle_event( 'BEFORE_TRANSPORT' ).
CALL METHOD call_view->handle_event( 'PAI_FINISHED' ).
ENDMODULE. " EVENT_PAI_FINISHED INPUT
Then to implement the enhancement point by creating a BADI implemetation ..when we are enetering the enhancement spot name ES_LMEVIEWSF01 under the create implementations section of SE19 transctaion with NEW BADI......and when we pressed cretae implementation button...nothing is happening..I mean neither BADI is getting created...nor thorwing any error message......
Please suggest me how to follow.......You can find above code in the include
LMEVIEWSF01 at line no 188........
Earlier response will be appreciated.....
Thanks ina dvance and reward points are garunteed....
Regards,
Sampath
‎2007 Oct 22 4:58 PM
Hi,
You can use the function exit EXIT_SAPMM06E_012 & EXIT_SAPMM06E_013..which will trigger when the save button is pressed
Thanks
Naren
‎2007 Oct 23 9:38 AM
Hi Naren ,
Thanks for your reply. While saving exit 12 or exit 13 will be triggered ONLY when we make changes in standard PO item TABS.
Let's say standard PO has 10 TABS at ITEM level. We are adding one more custom TAB there adding to that our client interest is not to include this TAB fields in EKPO structure. Hence we have to create the TAB by using screen exit option and we successfully created the TAB.
Now take a case that we oopen ME22N with a PO no..then user did not make any changes in all the 10 standard TABS but make changes in only custom TAB...in that case exit 12 or exit 13 will not get triggered....Because they will be triggered only when you make changes to the fields which will be in EKKO or EKPO....as we are not supposed to extend EKPO ....those two exits will not be handy for us.......
We even tried in existing BADI's ....but no BADI or exit will be getting triggering when we do not make any changes which effect EKKO and EKPO structure....
Please let us know . if you have any idea to counter this unique problem.
We also request you to please let us know ,if you ahve any idea, about implementing the this particular enhancement spot. Usually we can do it by SE19. But this particular spot is not allowing us to create one......
Anyway Thanks .....Let's flow the discussion...
Regards,
Sampath
‎2007 Oct 23 6:35 AM
Hi sampath.,.,.,
These r the exits.,..,
EXIT_SAPMM06E_006
EXIT_SAPMM06E_007
EXIT_SAPMM06E_008
EXIT_SAPMM06E_009
EXIT_SAPMM06E_012
EXIT_SAPMM06E_013
EXIT_SAPMM06E_014
EXIT_SAPMM06E_016
EXIT_SAPMM06E_017
EXIT_SAPMM06E_018
While saving.,.,EXIT_SAPMM06E_012 and EXIT_SAPMM06E_013 will get triggerd
Try using EXIT_SAPMM06E_013.,,.it will solve ur purpose.,.,it was somehow the same requirement as mine.,.,IN my case it worked fine.,.,
And one more thing.,.,Never use Enhancement Spots where you can Have Exits or BADI's,
SAP follows a strict order.,.Badi's/Exits.,.,if not found then only Enhancement Spots
Regards
Debasish
‎2007 Oct 23 9:37 AM
Hi Debhasis,
Thanks for your reply. While saving exit 12 or exit 13 will be triggered ONLY when we make changes in standard PO item TABS.
Let's say standard PO has 10 TABS at ITEM level. We are adding one more custom TAB there adding to that our client interest is not to include this TAB fields in EKPO structure. Hence we have to create the TAB by using screen exit option and we successfully created the TAB.
Now take a case that we oopen ME22N with a PO no..then user did not make any changes in all the 10 standard TABS but make changes in only custom TAB...in that case exit 12 or exit 13 will not get triggered....Because they will be triggered only when you make changes to the fields which will be in EKKO or EKPO....as we are not supposed to extend EKPO ....those two exits will not be handy for us.......
We even tried in existing BADI's ....but no BADI or exit will be getting triggering when we do not make any changes which effect EKKO and EKPO structure....
Please let us know . if you have any idea to counter this unique problem.
We also request you to please let us know ,if you ahve any idea, about implementing the this particular enhancement spot. Usually we can do it by SE19. But this particular spot is not allowing us to create one......
Anyway Thanks .....Let's flow the discussion...
Regards,
Sampath