2012 Jun 07 5:41 AM
i am using BADI me_process_po_cust for send mail at the time of release PO.
how it will handle in case of TWO level strategy?
i am unsing the condition in the interface POST.
select single * from ekko into wa_ekko where ebeln = IM_EBELN.
if sy-tcode = 'ME29N' and wa_ekko-FRGRL = ' '.
but at the time of release PO ekko-FRGRL = 'X'.
???????????????????????????????????????????
Thanks and regards
Karan
2012 Jun 08 4:59 AM
2012 Jun 07 6:24 AM
Hi
Better to use BADI me_purchdoc_posted . In this Badi you get release strategy value in im_ekko-frgke.And using that value you can write your logic for mailing.
2012 Jun 07 6:30 AM
Hi,
Suppose,there are 2 levels of approval. The first level has been released.
The the field FRGZU will be set to 'X' and field FRGRL will be equla to 'X'
When second level is also released then,
FRGZU = 'XX' and FRGRL will be space.
The field FRGRL tell you when the PO is completely released.
The field FRGZU tells you how many levels have been released. If the value is 'XX', 2 levels are released.
Thanks,
Shambu
2012 Jun 07 9:23 AM
Hi,
Put FRGZU <> space. it will handle multilevel release strategy.
Thx
2012 Jun 08 4:59 AM
2012 Jun 08 5:02 AM
It would be helpful to others, if you specify what you did to solve this.
Thanks,
Shambu
2012 Jun 23 8:37 AM
hi shambu
sorry for delay in response. i have solve it like this.
if sy-tcode = 'ME29N' and IM_EKKO-FRGKE = 'G'.
elseif sy-tcode = 'ME28N' and IM_EKKO-FRGKE = 'G'.
export G = IM_EKKO to MEMORY ID 'ZFLAG1'.
call Mail send transaction.
endif.
Thanks and regards
Rahul
SAP Certified Consultant
2013 May 23 3:33 AM
Hi Rahul,
can you please tell me what all the possible values & meanings for EKKO-FRGKE are? I don't have access to SAP documentation or the tables?
Regards,
George