10-31-2008 11:09 AM
Hi,
I am doing U.E on Purchase Requisition i.e m06b0001.
Actually my requirement is when i am entering in the cost center and glaccount in ME51n. We are getting the correct approvers and its triggering to the inbox of approvers.
Now when i am entering only costcenter without glaccount the approvers are not getting the inbox and its showing error.
please see the below code
select single kostl
sakto
from ebkn
into (v_kostl,v_sakto)
where banfn = i_eban-banfn.
if sy-subrc = 0.
select single *
from zmm_release_actk
into wa_zmm_release_actk
where costcenter = v_kostl.
look into G/L act table to find approvers*
if sy-subrc = 0.
select single *
into wa_zmm_release_gl
from zmm_release_gl
where costcenter = v_kostl
and glaccount = v_sakto.
if sy-subrc = 0.
if both G/L act and costcenter are present then it should consider*
the approvers from both the ztables.*
if i_frgco = wa_zmm_release_actk-relcode1.
actor_tab-otype = 'US'.
actor_tab-objid = wa_zmm_release_actk-userid1.
endif.
..............
10-31-2008 11:12 AM
hi,
It is clear from your logic that approvers will recieve mail only when both cost center and g/l account are used.
then how can you expect that to trigger with only one condition.
10-31-2008 11:12 AM
hi,
It is clear from your logic that approvers will recieve mail only when both cost center and g/l account are used.
then how can you expect that to trigger with only one condition.