Application Development 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: 

User Exit on Purchase Requisition

Former Member
0 Kudos

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.

..............

1 ACCEPTED SOLUTION

GauthamV
Active Contributor
0 Kudos

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.

1 REPLY 1

GauthamV
Active Contributor
0 Kudos

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.