Access Timebased publishing in WebDynpro?
Hello All,
I need to validate the documents from KM before showing them in my Web Dynpro application depending on the Time based publishing properties.
I read the documentation on SDN for the same and tried using this example -
http://etower.towersemi.com/irj/portalapps/com.sap.portal.pdk.km.repositoryservices/docs/repositoryservices.html#timebased%20publishing
However which JAR file or some other references do I need to make for accessing this class - ITimebasedPublishServiceManager
Please help.
Thanks in advance,
Regards,
Samta
Message was edited by:
Armin Reichert
Hi everyone,
I figured it out... We need to include the following -km.shared.repository.service.timebasedpublish_api.jar for this.
Thanks,
Samta
Similar Messages
-
Access ABAP table in Webdynpro Java application
Hi All
Is it possible to access ABAP table in Webdynpro Java application
Please provide your input
Thanks
Karthi D.Hi you will connect to the remote SAP system, the
backend, using an Adaptive RFC MOdel. To access database tables, you can make use of existing functions in terms of RFC function modules. For each function module you need, the system generates a corresponding Java proxy class. All the generated proxy classes and interface are bundled together in the RFC model and treated as part
of your Web Dynpro project
In WebDynpro java you RFC by using Model :
Adaptive RFC Model
1. automatically adapts to changes in function module signature
2 provides support for data types and extensibility
3.support for different structure definitions in different backend
systems (release dependent structures, custom adaptation)
Basic principles and guidelines
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11c3b051-0401-0010-fe9a-9eabd9c216de
See this blog
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/faq%2b-%2bmodels%2b-%2badaptive%2brfc
http://help.sap.com/saphelp_nw04s/helpdata/en/6a/11f1f29526944e8580c5e59333d96d/frameset.htm
Thanks,
Tulasi -
Access Portal groups in webdynpro ABAP component
Hi Experts,
I have a requirement to access portal group in web dynpro ABAP application and based on whether user is assigned to particular group or not further processing for application will be done.
Are there any UME API or some other API's available to access portal groups in Webdynpro ABAP component?
Thanks in Advance..!!
Regards,
Shruti ShahThis might be a question better suited to the portal forum. The WDA Portal APIs do not have such functionality. You might be able to take the Java Portal APIs and wrap them in a web service so that they are callable from ABAP.
-
Accessing portal roles in webdynpro for java
Hi,
Please let me know how to access portal roles in webdynpro for java.
Rgds,
PatanaHi ,
Please use this API to access the portal roles:
IRoleFactory fact=UMFactory.getRoleFactory();
Also see this code to get more information of role using code:
IRoleFactory rolef=UMFactory.getRoleFactory();
IRoleSearchFilter searchfilterrole= rolef.getRoleSearchFilter();
ISearchResult searchResult = rolef.searchRoles(searchfilterrole);
while(searchResult.hasNext())
String unq=(String) searchResult.next();
IRole role1=rolef.getRole(unq);
String roleName = role1.getDisplayName();
String roleID = role1.getUniqueID();
// Once you get the informationof role you can use it in your application as per your requirement.
Also please note that:
You should add "com.sap.security.api.jar" to your project`s java build path for getting the Portal Security API's.
I hope this solves the problem. Please revert back incase you need any further informationon this.
Thanks and Regards,
Pravesh -
Can we access PI tables from WebDynpro Java via PI 7.1?
Hi Experts
Is it possible to fetch PI Tables (to display monitoring and alerts as dashboard on portal) from Java Stack. I got some javadocs API SAP Netweaver for PI 7.1 but i don't know how far it can help me in solving my purpose of fetching and displaying the PI monitoring data on Portal.
https://www.sdn.sap.com/irj/sdn/javadocs
Please advise if J2EE access to PI Tables is possible or RFC is the suggested solution to fetch PI Monitoring data.
Thanks
NehaHi Neha,
You can access PI tables from Webdynpro Java application using RFC or Webservices. Create RFC or Webservices which will fetch data from the PI tables.Create the required JCO's and the Webdynpro java application which uses the Adaptive RFC model or Adaptive Webservice Model to connect to the ECC system.
I found a document that speaks about fetching data from SXMB_MONI Standard Table https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b050ff4f-84c3-2b10-3d99-8f9c44f57a17
Hope this is useful.
Regards,
Seema Rane. -
MOVING DATA FROM MICROSOFT ACCESS, EXCEL, PUBLISHER AND WORD TO AN IMAC G5
I HAVE INHERITED AN IMAC G5 RUNNING MAC OSX. CAN I CONVERT MY MICROSOFT ACCESS, EXCEL, PUBLISHER AND WORD FILES FROM MY HP PAVILION RUNNING WINDOWS 98 SE TO RUN ON THIS IMAC?
Please do not post in ALL CAPITAL LETTERS.
It looks like you are SHOUTING AT EVERYONE.
That said... you can purchase Microsoft Office for Mac and use your Word and Excel files as you normally would on any Windows PC.
Microsoft Access and Publisher will require you to use Microsoft Windows and Microsoft Office for Windows. You'd need to install Virtual PC for Mac on your G5 to use Windows and Office for Windows.
It'll likely be slow and painful. -
Problem accessing BI Publisher.
Hi,
Am a newbie trying to learn OBIEE. Am facing issues accessing BI Publisher. When I access BI Publisher as an Administrator, it lets me in but all that I could see in the 'Reports' tab is that there are 2 folders 'Shared Folder' and 'My Folder' and both of them are empty. I have the 'Schedules' folder disabled. I checked the privileges of the 'Administrator' and everything seems fine. I have even double checked the Services and nothing seems wrong. Please let me know what am I missing here...I did install the tables, but not from the button on the Admin page. For some reason I could not get the button to do anything. So it could be that they are not installed correctly or that something else did not happen.
And it appears that I am using BIEE security. So how do I schedule the reports? do I need to grant Administrator some roles in OBIEE? -
Hello,
I am new to OBIEE, I have installed 10.1.3.3 successfully. Now I'm able to design rpd and create all kind of reports & dashboards but I am not able to access my BI publisher and the error message is
An error occurred during execution of "connect". No connection could be made because the target machine actively refused it. [Socket:764]
Error Details
Error Codes: ETI2U8FA
Can anyone help me with this?
AaronHi,
BI Publisher will get installed automatically when you choose 'complete' and use the pre-configured OC4J container.
I would suggest to activate the default rpd first (paint.rpd) and try to access BI Publisher:
<servername>:<port number>/xmlpserver and log on with Administrator/Administrator.
If this succeeds, then your installation is OK. When you create a new rpd be sure then that you assign the right BI Publisher roles to the users (see the installation Guide). i.e.: XMLP_ADMIN should be assigned to the Administrator. For this in OBI Administration tool create a Group XMLP_ADMIN without specific rights and assign the Administrator user to that group.
Regards -
Allow anonymous access to Publisher Diagnostics?
Does anyone know of a way to allow access to Publisher Diagnostics without having to enter credentials? Long story short, I'd like to turn off authentication for the publisher diagnostics page of our published content redirector servers. Please let me know if anyone knows how to do that. Thanks.
Yes, that was very helpful. Thanks!
Just in case that site dissapears and someone else needs this info, here it is:
If you don’t see the “Anonymous Access” menu option in the “Settings” menu, it might not be turned on in Central Admin/IIS. You can manually navigate to “_layouts/setanon.aspx” if you want, but the options will be grayed out if it hasn’t been enabled in IIS
First get to your portal. Then under “My Links” look for “Central Administration” and select it.
In the Central Administration site select “Application Management” either in the Quick Launch or across the top tabs
Select “Authentication Providers” in the “Application Security” section
Click on the “Default” zone (or whatever zone you want to enable anonymous access for)
Under “Anonymous Access” click the check box to enable it and click “Save”
NOTE: Make sure the “Web Application” in the menu at the top right is your portal/site and not the admin site.
You can confirm that anonymous access is enabled by going back into the IIS console and checking the Directory Security properties.
Now the second part is to enable anonymous access in the site.
Return to your sites home page and navigate to the site settings page. In MOSS, this is under Site Actions – Site Settings – Modify All Site Settings. In WSS it’s under Site Actions – Site Settings.
Under the “Users and Permissions” section click on “Advanced permissions”
On the “Settings” drop down menu (on the toolbar) select “Anonymous Access”
Select the option you want anonymous users to have (full access or documents and lists only)
Now users without logging in will get whatever option you allowed them.
A couple of notes about anonymous access:
You will need to set up the 2nd part for all sites unless you have permission inheritance turned on
You must do both setups to enable anonymous access for users, one in IIS and the other in each site -
Time based publishing with WebDynpro ?
Hello All,
I need to validate the documents from KM before showing them in my Web Dynpro application depending on the Time based publishing properties.
I read the documentation on SDN for the same and tried using this example -
<a href="http://etower.towersemi.com/irj/portalapps/com.sap.portal.pdk.km.repositoryservices/docs/repositoryservices.html#timebased%20publishing">http://etower.towersemi.com/irj/portalapps/com.sap.portal.pdk.km.repositoryservices/docs/repositoryservices.html#timebased%20publishing</a>
However which JAR file or some other references do I need to make for accessing this class - ITimebasedPublishServiceManager
Please help.
Thanks in advance,
Regards,
SamtaHi everyone,
I figured it out... We need to include the following -km.shared.repository.service.timebasedpublish_api.jar for this.
Thanks,
Samta -
How to use jcifs to access SMB share via webdynpro app ?
Hello All,
I am trying to access a protected intranet share via my webdynpro application. I have uses jcifs api to access the jcifs functions. However, I am stuck with running the application on webAS as it gives a runtime exception java.lang.NoClassDefFoundError: jcifs/smb/SmbFile .
I included the jcifs jar into a lib project and also deployed it onto the j2ee engine. Compilation works fine now, but it fails it runtime. Can someone please tell me what is the best way to use external libraries i.e jars in one's application so that it has no runtime errors on j2ee engine ?thkx Mahesh for the info, i had been trying the destination service method for some time now
but there is a portal runtime exception when i try
destinationService.getDestinationNames("RFC") or for WebService or HTTP
i check the default trace and this is the error stated there
Caused by: com.sapportals.portal.prt.servlets_jsp.server.compiler.CompilingException: /usr/sap/<>/<>/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_util.jar(com/sap/security/core/server/util0/IDException.java):20: class IDException is public, should be declared in a file named IDException.java
(source unavailable)
/usr/sap/<>/<>/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_util.jar(com/sap/security/core/server/util0/IDMessage.java):48: class IDMessage is public, should be declared in a file named IDMessage.java
(source unavailable)
/usr/sap/<>/<>/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_util.jar(com/sap/security/core/server/util0/IDExceptionMessage.java):10: class IDExceptionMessage is public, should be declared in a file named IDExceptionMessage.java
(source unavailable)
/usr/sap/<>/<>/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_util.jar(com/sap/security/core/server/util0/ExternalizableException.java):19: class ExternalizableException is public, should be declared in a file named ExternalizableException.java
(source unavailable)
/usr/sap/<>/<>/j2ee/cluster/server0/bin/ext/security.class/tc_sec_saml_util.jar(com/sap/security/core/server/util0/LogUtil.java):26: class LogUtil is public, should be declared in a file named LogUtil.java
(source unavailable)
5 errors
Please help regarding this. -
Using MS Access as backend in Webdynpro Application
hi guys,
I am creating a application in webdynpro in which i want to use MS Access as Backend, so can u please tell how to use MS Access as backend.
What all needs to be done and where the database file needs to be stored etc. please give me all the details...
thanks in advance
Gaurav MakinHi Gaurav,
It is pretty easy to use the MSAccess as a back end from the webdynpro applications. Take the driver as a JDBC-ODBBC driver and creat the alias name for the database server to use as a data source.Select the model as a Beanmodel while creating a model in the Webdynpro explorer.
please find the below code which will help you lot.
Please let me know if you need any further information.
package com.accenture.radar.project;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import javax.naming.InitialContext;
import javax.sql.DataSource;
@author suvarna.chittoor
To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments
public class ProjectBean {
private String name;
private String description;
private String du;
private String saveOrUpdate;
static DataSource dataSource;
private Connection connection;
private ResultSet rs;
private ArrayList duArrayList =new ArrayList();
private ArrayList projectArrayList =new ArrayList();
public ProjectBean()
try
//code to look up the datasource
InitialContext initialContext = new InitialContext();
dataSource = (DataSource)initialContext.lookup("jdbc/aliasforradar");
catch(Exception e)
System.err.print("Error Message"+e.getMessage());
public static Connection getConnection() throws SQLException, ClassNotFoundException
System.err.println("In Get Connection");
java.sql.Connection connection = null ;
try
connection = dataSource.getConnection();
catch (SQLException e)
System.err.println(e.getMessage());
throw e;
System.err.println("After getting Connection from the datasource");
return connection;
public void getDUInformation()throws SQLException, ClassNotFoundException
connection = getConnection();
PreparedStatement ps= connection.prepareStatement("select distinct name from du");
rs=ps.executeQuery();
while(rs.next())
duArrayList.add(rs.getString("name"));
ps.close();
connection.close();
public void saveProjectDetails() throws SQLException, ClassNotFoundException
Connection connection = null;
if(saveOrUpdate.equalsIgnoreCase("Save"))
connection = getConnection();
PreparedStatement ps =
connection.prepareStatement(
"insert into project values(?,?,?)");
ps.setString(1, getName());
ps.setString(2, getDescription());
ps.setString(3, getDu());
ps.executeUpdate();
connection.close();
ps.close();
else
connection = getConnection();
PreparedStatement ps =connection.prepareStatement("update project set du=?,description=? where name='"name.trim()"'");
ps.setString(1,du);
ps.setString(2,description);
ps.executeUpdate();
connection.close();
ps.close();
public void getProjectDetails() throws SQLException, ClassNotFoundException
Connection connection = null;
connection = getConnection();
PreparedStatement ps=connection.prepareStatement("select name,description,du from project");
rs=ps.executeQuery();
while(rs.next())
Project_HelperClass proj= new Project_HelperClass();
proj.setName(rs.getString("name"));
proj.setDescription(rs.getString("Description"));
proj.setDu(rs.getString("du"));
projectArrayList.add(proj);
ps.close();
connection.close();
public void getProjectInformation()
throws SQLException, ClassNotFoundException {
Connection connection = null;
connection = getConnection();
PreparedStatement ps =
connection.prepareStatement("select description,du from project where name='"name"'");
rs = ps.executeQuery();
while(rs.next())
this.description=rs.getString("description");
this.du=rs.getString("du");
connection.close();
ps.close();
@return
public String getDescription() {
return description;
public void deleteProject() throws SQLException, ClassNotFoundException
Connection connection = null;
connection = getConnection();
PreparedStatement ps=connection.prepareStatement("delete from sme_support where project = '"name"'");
ps.executeUpdate();
PreparedStatement ps1=connection.prepareStatement("delete from wbse where project = '"name"'");
ps1.executeUpdate();
PreparedStatement ps2=connection.prepareStatement("delete from supervisor where project = '"name"'");
ps2.executeUpdate();
PreparedStatement ps3=connection.prepareStatement("delete from du_lead where project = '"name"'");
ps3.executeUpdate();
PreparedStatement ps4=connection.prepareStatement("delete from project where name = '"name"'");
ps4.executeUpdate();
connection.close();
ps.close();
ps1.close();
ps2.close();
ps3.close();
ps4.close();
@return
public String getDu() {
return du;
@return
public ArrayList getDuArrayList() {
return duArrayList;
@return
public String getName() {
return name;
@param string
public void setDescription(String string) {
description = string;
@param string
public void setDu(String string) {
du = string;
@param list
public void setDuArrayList(ArrayList list) {
duArrayList = list;
@param string
public void setName(String string) {
name = string;
@return
public ArrayList getProjectArrayList() {
return projectArrayList;
@param list
public void setProjectArrayList(ArrayList list) {
projectArrayList = list;
@return
public String getSaveOrUpdate() {
return saveOrUpdate;
@param string
public void setSaveOrUpdate(String string) {
saveOrUpdate = string;
Thanks and regards
Ratnakar reddy alwala -
Accessing XML Publisher Reports from Java application
How to accesss the XDO Reports from Java application?
I am wondering that we need to get the URL for accessing the report and call the URL with in Java program?
Is that right? Is there any other option? Any help is greatly appreciated.You need to write some class based on the BI Publisher APIs taking data, template, output format, etc.
Pehaps the following Blog of Tim Dexter shines some light on your question
http://blogs.oracle.com/xmlpublisher/2007/02/27#a166
Marcos -
Access Dictionary Tables in Webdynpro
Hi
I have created a database table in Dictionary Perspective.
Also i have created a dc for webdynpro. I need to access the data and insert the data in the database tables from webdynpro application.
How can i do that. Pls help.
Regards
Sonal ManglaHi Sonal,
Check this
<a href="http://help.sap.com/saphelp_nw70/helpdata/en/69/f9bc3d52f39d33e10000000a11405a/frameset.htm">http://help.sap.com/saphelp_nw70/helpdata/en/69/f9bc3d52f39d33e10000000a11405a/frameset.htm</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ded11778-0801-0010-258f-ac3b9408a194">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ded11778-0801-0010-258f-ac3b9408a194</a>
regards
Sumit -
Accessing Km document in webdynpro application
Hi All,
Is it possible to access the file which is uploaded in KM through webdynpro code?
Can anybody help in this?
Regards,
V KarthiThank you anagha for the link.
But i'm facing some issue with the code .i think there is a problem in typecasting the Iuser and moreover whn i try to print the sap user i'm getting the following error.
"sapUser Transient data: *************************************************************************** * com.sap.security.core.persistence.imp.PrincipalDatabag Tue Jun 23 10:13:29 GMT05:30 2009 * UniqueID: USER.R3_DATASOURCE.J2EE_GUEST * Type: USER * Home data source: R3_DATASOURCE * Private id part: J2EE_GUEST * * Existence not checked. * * "com.sap.security.core.usermanagement"|->"j_authscheme" (no time limit)="anonymous" *************************************************************************** Persistent data: *************************************************************************** * com.sap.security.core.persistence.imp.PrincipalDatabag Tue Jun 23 10:13:29 GMT05:30 2009 * UniqueID: USER.R3_DATASOURCE.J2EE_GUEST * Type: USER * Home data source: R3_DATASOURCE * Private id part: J2EE_GUEST * * Principal exists. * * Direct parents: * GRUP: GRUP.SUPER_GROUPS_DATASOURCE.EVERYONE * GRUP.R3_ROLE_DS.SAP_J2EE_GUEST * GRUP.SUPER_GROUPS_DATASOURCE.Anonymous Users * ROLE: * "com.sap.portal.dsm"|->"DebugControlFlag" (no time limit)= * "com.sap.security.core.usermanagement"|->"mobile" (no time limit)= * "com.sap.security.core.usermanagement"|->"uniquename" (no time limit)="J2EE_GUEST" * "com.sap.security.core.usermanagement"|->"title" (no time limit)= * "com.sap.security.core.usermanagement"|->"telephone" (no time limit)= * "com.sap.security.core.usermanagement"|->"salutation" (no time limit)= * "com.sap.security.core.usermanagement"|->"jobtitle" (no time limit)= * "com.sap.security.core.usermanagement"|->"fax" (no time limit)= * "com.sap.security.core.usermanagement"|->"department" (no time limit)= * "com.sap.security.core.usermanagement"|->"lastname" (no time limit)="J2EE_GUEST" * "com.sap.security.core.usermanagement"|->"locale" (no time limit)= * "com.sap.security.core.usermanagement"|->"timezone" (no time limit)= * "com.sap.security.core.usermanagement"|->"firstname" (no time limit)= * "com.sap.security.core.usermanagement"|->"email" (no time limit)= * "com.sap.security.core.usermanagement"|->"referenceuser" (no time limit)= * "$serviceUser$"|->"SERVICEUSER_ATTRIBUTE" (no time limit)= * "com.sapportals.portal.navigation"|->"uipmode" (no time limit)= *************************************************************************** ep5User WPUser default_namespace: com.sap.security.core.usermanagement [email protected]f WPUser: (J2EE_GUEST)[[email protected]271] UME user object Transient data: *************************************************************************** * com.sap.security.core.persistence.imp.PrincipalDatabag Tue Jun 23 10:13:29 GMT+05:30 2009 * UniqueID: USER.R3_DATASOURCE.J2EE_GUEST * Type: USER * Home data source: R3_DATASOURCE * Private id part: J2EE_GUEST * * Existence not checked. * * "com.sap.security.core.usermanagement"|->"j_authscheme" (no time limit)="anonymous" "
Can you please provide me the sample code for accessing the KM document through webdynpro?
Regards,
V Karthi
Maybe you are looking for
-
Change item category of BOM component
Hi, Our user wanted to change the item category for BOM components through transaction IB12 using LSMW.Wanted to confirm whether it is possible to change item categoryof BOM component from "N" to "L" through LSMW.What exactly will be effected because
-
Images not resizing properly when relinking/updating
Hi all, I'm currently using InDesign CS on OS10.5.5 Until last week, I was using CS on OS10.4.? Can anyone tell me if the reason my images no longer update/relink to the correct size in InDesign is an issue with running cronky old CS on Leopard? I kn
-
how can i run the adobe acrobat?
-
Just what does indexing do? I clicked on a photo & asked the program to find a similar photo & the reply was that I would get better results if I indexed first. Now the crazy part I went to the PSE 10 manual & did a text search but the stupid manua
-
Error 1335, installation stops
Installation of Elements 11 stops with an error message: Error 1335, cabinet file Data 2.cab is corrupt or cannot be used. I ran Adobe Support Advisor and got no result. What do I do next?