Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Reply from swap_smart on May 30 at 12:28 PM Hello Ganesh, Check declaration type of exporting parameter it_usernames. Pass the variable of same type as it_usernames instead of ls_usr21-blame. Regards, Swapna
| | | ---------------Original Message--------------- From: GesaHHH Sent: Monday, May 30, 2016 12:11 PM Subject: How To Get Pernr From Username? I have done this code, but I get this error: 500 SAP Internal Server Error ERROR: Type conflict when calling a function module. (termination: RABAX_STATE) //Can anyone help me Data: lt_usr21 TYPE TABLE OF usr21, ls_usr21 LIKE LINE OF lt_usr21, lt_adrp TYPE TABLE OF adrp, ls_adrp LIKE LINE OF lt_adrp. . SELECT bname FROM usr21 INTO TABLE lt_usr21 where bname = u_uname. LOOP AT lt_usr21 INTO ls_usr21. ls_usr21-bname = u_uname. ENDLOOP. CALL FUNCTION '/OSP/GET_PERNR_FRM_R3_USERNAME' EXPORTING it_usernames = ls_usr21-bname " List of Mendocino Users IMPORTING et_pernr_list = ls_adrp-addr_pers " it_pernr " List of SAP User Pernrs et_return = it_return " Table with BAPI Return Information . | | Reply to this email to post your response. __.____._ | In the Spotlight Become a blogger at Toolbox.com and share your expertise with the community. Start today. _.____.__ |