2014 Aug 04 12:27 PM
Hello Experts,
I'm having a requirement, I've to restrict Release of PO from ME29N & ME28 if there is no attachment for that particular PO.
1) I've done it for ME29N by using BADI ME_PROCESS_PO_CUST~CHECK which is working.
2) when i'm trying to restrict the same For ME28 by using exit M06E0004 which is working Fine. But The Problem Is ICON(Services For Object )
And The Tab-- Release Strategy Are Disabled..In ME29N
So Please Suggest How To Validate ME28..
Thanks In Advance.
Regards,
Hardik B
2014 Aug 05 5:54 AM
Dear Hardik,
I'm Also Facing The Same Issue For ME28. Do You Found Any Solution, Please Let Me Know..
Thanks In Advance,
Regards,
Uday...,
2014 Aug 05 11:57 AM
Dear Hardik,
Try With Below Code:::Activate The Exit M06E0004
TYPES: BEGIN OF ty_toa01,
object_id TYPE saeobjid,
END OF ty_toa01.
DATA: wa_toa01 TYPE ty_toa01.
DATA: wa_ekknu LIKE LINE OF it_ekknu,
WA_BEKPO LIKE LINE OF IT_BEKPO.
e_cekko = i_cekko .
if sy-tcode = 'ME28'.
CLEAR: WA_BEKPO.
READ TABLE IT_BEKPO INTO WA_BEKPO INDEX 1.
IF wa_BEKPO-ebeln IS NOT INITIAL.
SELECT SINGLE object_id FROM toa01 INTO wa_toa01 WHERE object_id = wa_BEKPO-ebeln.
IF wa_toa01-object_id IS INITIAL.
MESSAGE 'Attachement Required' TYPE 'E'.
ENDIF.
ENDIF.
ENDIF.
But experts Writing the Above Code release strategy will determined in ME29N.
But icon Services For Objects : is missing Please Suggest Me To Make It Visible
Thanks In Advance
Regards,
uday..,
2014 Aug 06 6:28 AM
Hi Uday,
Thanks for reply, it was very helpful answer.
But still i'm facing the issue for that icon, the icon is missing from all the T-Codes : ME23N, MIGO, ME29N. I'm not getting what is happening, my code is also same as yours....
Have you found anything for that... if yes please let me know
Experts please help on this...
Thanking you,
Hardik B
2022 Sep 16 6:31 AM
Hi Hardik
I required the validation code for ME29N using BADI ME_PROCESS_PO_CUST~CHECK which you have already done successfully & working.
Kindly do the needful asap.
Thanks in advance
Indrajit