on 09-19-2011 5:12 PM
Hi Experts,
we created a WebDynpro for ABAP application for portal. The application will modify/update few fields in backend sap HR table PA0006 (infotype 6) . The end user (portal user) should be able to update his data in backend with the iview created on this application.
I have below two questions in my mind.
1. Do we need portal eventing for this? It's a single iview in portal which will fetch and update his data through this WebDynpro for ABAP application.
2. It is for 10 countries of almost 1000 users (with same userid in portal and backend). How can I make sure that the enduser updates and fetch his records only. The SSO is already set up between Portal and Sap ECC system. Do I need to again pass the enduser portal id to the sap in coding to fetch and update the data or sso will take care of itself.
Thanks
Ajay
Dear Ajay
Regardin question 1)
Not sure what you mean with "portal eventing" ??
If it is just an iView linked to a WD4A, why do you want to capture any portal event ?
Please specify.
Otherwise you won't need to process any portal event at all.
Regarding question 2)
10 countries of almost 1000 users ???
And you want to use a single user ID for this ?
You really need to check your license requirements for this.
Please contact your sys admin for that matter
Kind Regards
/RIcardo Quintas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ajay,
There is no need of separate portal event to update your records.
And about 2nd question,
if you are maintaining SSO, then every portal user id will be linked to one R/3 user id. So in your webdynpro coding,
fetch the pernr based on portal user id by using below function module.
DATA V_EMPID TYPE PERSNO.
DATA IEE_TAB TYPE PERNR_US_TAB.
DATA WEE_TAB LIKE LINE OF IEE_TAB.
CALL FUNCTION 'HR_GET_EMPLOYEES_FROM_USER'
EXPORTING
USER = SY-UNAME
BEGDA = SY-DATUM
ENDDA = SY-DATUM
IV_WITH_AUTHORITY = 'X'
TABLES
EE_TAB = IEE_TAB
.
LOOP AT IEE_TAB INTO WEE_TAB.
IF SY-TABIX = 1.
V_EMPID = WEE_TAB-PERNR.
ENDIF.
ENDLOOP.
****NOW PERNR WIL BE IN IEE_TAB-PERNR
use the above code in wddoinit method, then do your rest of code with above pernr.
FYI , always update the hr related tables with FM like HR_Infotype_operation. Dont use modify or update or insert statements.
Thanks and Regards
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.