Quantcast
Channel: SCN : Unanswered Discussions - SAP Business Process Management
Viewing all articles
Browse latest Browse all 3160

Agent Not found Bus2009

$
0
0

Hi Good day,

 

i am designing a new workflow for the PR if the PRICE is >= 10000 i need to send a workitem to a user.

 

so i have written a method to get the agents from the table in the subtype of BUS2009.

 

 


when i test the method it is working 100% but when i do a manual test from workflow

it does not get the agents.


  l_purchaserequisition = object-key-number.
  l_i_bnfpo             = object-key-item.

select SINGLE bsart pstyp into  (l_bsart, l_pstypFROM eban
WHERE banfn = l_purchaserequisition
AND bnfpo = l_i_bnfpo.


IF l_price <= '10000'.
select SINGLE * from zpr_users where DOAUSER = sy-uname.
IF sy-subrc = 0.
  CONCATENATE 'US' zpr_users-DOAUSER INTO zpr_users-DOAUSER.
move : zpr_users-DOAUSER to l_approver.
CALL FUNCTION 'ISR_GET_USER_DETAILS'
   EXPORTING
     id_user_id           sy-uname
   changing
     is_user_data         = l_it_details .

  MOVE l_it_details-e_mail TO l_emailaddress.
ENDIF.
elseif Priceunit >= '10000'.
ENDIF.


  SWC_SET_ELEMENT CONTAINER 'Approver' L_APPROVER.
   SWC_SET_ELEMENT CONTAINER 'EMailAddress' L_EMAILADDRESS.


i know i might be doing not right with the binding.

this is how i did my bindingwf1 task.jpgwf1 task2 binding.jpg

thank you,

J.


Viewing all articles
Browse latest Browse all 3160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>