cancel
Showing results for 
Search instead for 
Did you mean: 

'EPCM' is undefined in Portal

Former Member
0 Kudos

Dear All,

EP7.0, netweaver7.0(2004s) SP9.

I have created one url iview,which points the .html file in KM.

In that file there is one link which has link to another iview in another workset, but

in same role.

When I login to the portal, I am getting the Javascript error 'EPCM' is undefined.

When I click on the link, it is highlighting the role and

workset and iview. But it is not opening the iview.

The content is opening in the same iview.

Now I am getting javascript error 'EPCM' is undefined

For the above error, i have done the following steps

1. Added *.js in config tool,

2. Restarted the server.

3. Changed the framework.level = 1 in sys Admin->sys Config->service Config ->Application->epcfloader

4. Restarted the server.

But still no luck. Can you please give some more info on the above.

Thanks in advance

Ponnusamy P

Accepted Solutions (1)

Accepted Solutions (1)

former_member193577
Active Contributor
0 Kudos

Hi,

Please make sure you do 2 things:

1. make sure that you are using the fully qualified domain, for example:

iltlvh101.tlv.sap.corp:50000.

2. add the portal address to the trusted site in internet explorer:

Tools->internet options->security->sites.

This should solve this.

Regards,

Tal.

Former Member
0 Kudos

Hi Tal,

Thanks for your answer.

I have already done the same.

1. I am using only the fully qualified domain name only.

www.myportal.com:50100/irj/portal

2. I have added the

https://www.myportal.com:50101/irj/portal

http://www.myportal.com:50100/irj/portal

But no luck.

As I said earlier, I have created an url iview and the file is of .html type.

Is any thing else need to be done and any coding must be added to html file.

Thanks again

Ponnusamy P

0 Kudos

Hi,

Try adding this in your HTMl file:

This works in 2004

<SCRIPT src="/irj/portalapps/com.sap.portal.epcf.loader/script/standard/js13_epcf.js?6.0801"></SCRIPT>

And for EP7 it should be:

<SCRIPT src="/irj/portalapps/com.sap.portal.epcf.loader/script/optimize/js13_epcf.js?6.45000903"></SCRIPT>

Greetings,

Praveen Gudapati

Former Member
0 Kudos

Hi Praveen,

Thanks for your answer.

I tried with your lines of code in my .html, now I am getting

Error: Permission denied

Can you explain me what needs to be done.

Thanks

Ponnusamy P

0 Kudos

Hi,

Try this code in your HTML:

EPCM.relaxDocumentDomain();

Check this for more:

Greetings,

Praveen Gudapati

Former Member
0 Kudos

Hi Praveen,

Very thanks and I have rewarded the Points.

Solved the Problem. But one more thing, Here is my code

<html>

<head>

<SCRIPT src="/irj/portalapps/com.sap.portal.epcf.loader/script/optimize/js13_epcf.js?6.45000903"></SCRIPT>

<script type="text/javascript">

EPCM.relaxDocumentDomain();

EPCM.doNavigate("http://www.ahsdevportal.com:50100/irj/portal?navigationtarget=roles%3aportal_content/com.apollo.ahsl/com.apollo.role/com.apollo.my_ahs/com.apollo.home/com.sap.km.discussiongroups",0,"","","","","")

</script>

</head>

<body>

a HREF="http://www.ahsdevportal.com:50100/irj/portal?navigationtarget=roles%3aportal_content/com.apollo.ahsl/com.apollo.role/com.apollo.my_ahs/com.apollo.home/com.sap.km.discussiongroups" onclick="return EPCM.doNavigate('http://www.ahsdevportal.com:50100/irj/portal?navigationtarget=roles%3aportal_content/com.apollo.ahsl/com.apollo.role/com.apollo.my_ahs/com.apollo.home/com.sap.km.discussiongroups',0,'','','','','')">

This is an HTML Link /a

</body>

</html>

All things works fine, but the problem is on click of the above link (This is an HTML Link), it should go to the next view, but what happens, it directly go to the iview when the portal login page loads.

Can u please find out where my coding gone wrong.

Thanks again

Ponnusamy P

0 Kudos

Hi,

EPCM.doNavigate needs only the navigation path and not the way you did. So just this should work:

EPCM.doNavigate('ROLES://portal_content/myRole/myIView')

http://help.sap.com/saphelp_nw70/helpdata/en/43/0029d0e7371aa2e10000000a422035/frameset.htm

When the NavigationTarget you are navigating to does not exist or not reachable for navigation (Invisible in Navigation), then also this behaviour can occur.

So test with different NavigationTargets to check this behavior.

Just access this url to test from your browser, if it shows what you want:

http://www.ahsdevportal.com:50100/irj/portal?navigationtarget=roles%3aportal_content/com.apollo.ahsl...

Greetings,

Praveen Gudapati

Former Member
0 Kudos

Hi Praveen,

I think you have misunderstood my requirement. The link works fine.

Now whats my problem is,

OnClick of the link(This is an HTML Link) in my coding it should go to the

particular iview, but what happens, before onclick, the link goes to that iview.

My requirement is it should to go to that iview, only after i click on that link.

Thanks again,

Ponnusamy P

0 Kudos

Hi,

After relaxDocumentDomain javascript code you have this code, which you should remove:

EPCM.doNavigate("http://www.ahsdevportal.com:50100/irj/portal?navigationtarget=roles%3aportal_content/com.apollo.ahsl/com.apollo.role/com.apollo.my_ahs/com.apollo.home/com.sap.km.discussiongroups",0,"","","","","")

Greetings,

Praveen Gudapati

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi All,

The problem is solved. If anyone faced the same problem can go through this posts.

In each reply, Praveen have given the solution for each problem

Thanks

Ponnusamy P

Former Member
0 Kudos

Hopefully Praveen can help me then ... I am getting the EPCM undefined error message when I connect to the login screen of our 2004s portal, and then once logged in, I get no navigation or anything and a bunch of error messages ... all seem to be related to EPCM cannot be found.

The portal works for many users, including my self, but not on a certain machine.

I therefore don't believe it has anything to do with the portal settings, or J2EE settings, and I know it is not a portal user problem, cause I can sign in with the username on my machine and it works.

The only place it is not happening is on the specific user's machine ... only problem is the IE settings seem to be correct (or at least the same as on my machine).

Any assistance would be appreciated.

Cheers,

Andrew

Former Member
0 Kudos

Hi,

Can I know the SP level of your EP.

If it less than SP11 in EP7.0, this problem may occur in IE7.0.

Ponnusamy P

Former Member
0 Kudos

I think we're on SP12, but the problem is in IE6 (6.0.2800.1106 SP1 to be exact)

Cheers,

Andrew