2012 Nov 26 10:57 AM
Hi Experts,
I need to create an RFC , that should be called from some external program.
When the following RFC is called, it will be provided with USERID, MOBILE NUMBER, OFFICE NUMBER from SAP HR Master Records
I am supposed to check, if the USERID exists in SAP or not.
If it exists i need to use that information and update the UserID with that data
If the user ID doesnt exist i need to pass a message that userID doesnt exist in SAP as a error message.
I am supposed to use BAPIRET2 for this.
Please help me out, on the data elements i need to use for the importing parameters and how i need to proceed on the source code.
Thanks in advance, this will be a great help.
Thanks again.
Regards,
SG
2012 Nov 26 11:55 AM
Hi,
First you find what SAP Standard T-code you used to Updating or Creating this Master Record
(help of functional consultant)
Regards
Smruti Ranjan
Hi Experts,
I need to create an RFC , that should be called from some external program.
When the following RFC is called, it will be provided with USERID, MOBILE NUMBER, OFFICE NUMBER from SAP HR Master Records
I am supposed to check, if the USERID exists in SAP or not.
If it exists i need to use that information and update the UserID with that data
If the user ID doesnt exist i need to pass a message that userID doesnt exist in SAP as a error message.
I am supposed to use BAPIRET2 for this.
Please help me out, on the data elements i need to use for the importing parameters and how i need to proceed on the source code.
Thanks in advance, this will be a great help.
Thanks again.
Regards,
SG
2012 Nov 26 11:08 AM
Hi Snigdha,
You can use the BAPI "BAPI_ADDRESSORG_CHANGE" for the Updation of the USERID, MOBILE NUMBER, OFFICE NUMBER from SAP HR Master Records into the USER MASTER.
Thanks,
Vijay.
2012 Nov 26 11:16 AM
Hi Vijay,
Thanks for the immediate reply.
Am i supposed to use this bapi as an associated type in the import parameters?
Let me also make clear that, Userid, officenum, mbl num, fax will be passed as export parameters from an external source, and in our rfc we are supposed to check, if the userid exists in sap and update the information.
please also tell me, where i need to update the information?
Thanks!!
2012 Nov 26 11:26 AM
As menioned by Venakt You can make use of those FM's to Check the USer ID.
thank you,
Vijay.
2012 Nov 26 11:18 AM
Check the below FMs
BAPI_USER_EXISTENCE_CHECK
/RSC/SI_SUSR_USER_CHECK_EXIST
/RSC/SI_BAPI_USER_EXIST_CHECK
UACC_CHECK_RFC_USER_EXISTS
hope this helps
2012 Nov 26 11:55 AM
Hi,
First you find what SAP Standard T-code you used to Updating or Creating this Master Record
(help of functional consultant)
Regards
Smruti Ranjan
2012 Nov 26 12:02 PM
2012 Nov 26 12:02 PM
2012 Nov 26 12:02 PM