cancel
Showing results for 
Search instead for 
Did you mean: 

Portal eventing for single ivew on webdynpro for abap application?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

former_member199125
Active Contributor
0 Kudos

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