07-03-2014 7:32 AM
Hi all,
Hold button in me21n screen is deactivated by using (me_hold_po),but my requirement is to hide or deactivate the hold button based on plant.
alread i gave code as ch_allowed = space.How to hide the hold for certain plants.???????
07-03-2014 7:57 AM
HI Anitha,
Inside IS_ALLOWED method use internal table IM_BEKPO, from this you will get WERKS(plant).
Based on plant value set value for CH_ALLOWED.
read IM_BEKPO into WA_BEKPO index 1.
if sy-subrc = 0.
if WA_BEKPO-WERKS = '0001'.
CH_ALLOWED = ''.
endif.
endif.
07-03-2014 7:44 AM
check the attribute of the that method
IM_EKKO Importing Type EKKO
IM_BEKPO Importing Type MMPUR_BEKPO
plant you will find at item level then you can give the condition for plant by checking at item level.
07-03-2014 7:51 AM
Thanks for ur repli yogesh,
I can find bekpo-werks at item level.In interface is_allowed method IF_EX_ME_HOLD_PO~IS_ALLOWED under that may i give that condition or what way.
07-03-2014 7:45 AM
07-03-2014 7:57 AM
HI Anitha,
Inside IS_ALLOWED method use internal table IM_BEKPO, from this you will get WERKS(plant).
Based on plant value set value for CH_ALLOWED.
read IM_BEKPO into WA_BEKPO index 1.
if sy-subrc = 0.
if WA_BEKPO-WERKS = '0001'.
CH_ALLOWED = ''.
endif.
endif.
07-03-2014 8:16 AM
THANX FOR UR REPLI SREE,
in data declaration.
DATA: WA_EKPO LIKE IM_BEKPO.
am getting following error.
wa_ekpo cannot be converted to the like type of im_bekpo.
07-03-2014 8:20 AM
07-03-2014 8:32 AM
07-03-2014 8:40 AM