07-17-2010 10:10 AM
Hi,
If PO is released than automatically mail should be sent to authorized person.
How i can achieve this using BADI.Please suggest.And where i have to write the code.
07-18-2010 10:32 PM
Hello Priyank
If you are already working on ERP 6.0 the the BAdI of choice is ME_PROCESS_PO_CUST. Below I describe schematically how you implement your requirement:
METHOD IF_EX_ME_PROCESS_PO_CUST~OPEN.
me->md_trtyp = id_trtyp. " NOTE: Define MD_TRTYP as instance attribute
" NOTE: Presumably IF ( id_trtyp = 'H' ). => means PO is created
ENDMETHOD.
" Closing Processing
METHOD IF_EX_ME_PROCESS_PO_CUST~CLOSE.
CHECK ( me->md_trtyp = 'H' ). " implies PO has been created
CALL METHOD me->send_email( ).
ENDMETHOD.
Regards
Uwe
07-18-2010 10:32 PM
Hello Priyank
If you are already working on ERP 6.0 the the BAdI of choice is ME_PROCESS_PO_CUST. Below I describe schematically how you implement your requirement:
METHOD IF_EX_ME_PROCESS_PO_CUST~OPEN.
me->md_trtyp = id_trtyp. " NOTE: Define MD_TRTYP as instance attribute
" NOTE: Presumably IF ( id_trtyp = 'H' ). => means PO is created
ENDMETHOD.
" Closing Processing
METHOD IF_EX_ME_PROCESS_PO_CUST~CLOSE.
CHECK ( me->md_trtyp = 'H' ). " implies PO has been created
CALL METHOD me->send_email( ).
ENDMETHOD.
Regards
Uwe
07-27-2010 7:53 AM
HI,
Thanks for ur helpful reply..Can u tell me BADI should be used if PR is relesed..
07-27-2010 8:49 AM
Hello Priyank
You will find all relevant BAdIs for POs and PReq's in package ME. Have a look at:
ME_REQ_POSTED ( Purchase Requisition Posted )
Regards
Uwe