Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

release strategy

Former Member
0 Likes
3,788

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,728

self resolved...

7 REPLIES 7
Read only

former_member16553
Active Participant
0 Likes
2,728

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.

Read only

Former Member
0 Likes
2,728

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

Read only

Former Member
0 Likes
2,728

Hi,

Put FRGZU <> space. it will handle multilevel release strategy.

Thx

Read only

Former Member
0 Likes
2,729

self resolved...

Read only

0 Likes
2,728

It would be helpful to others, if you specify what you did to solve this.

Thanks,

Shambu

Read only

0 Likes
2,728

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

Read only

0 Likes
2,728

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