MSS Teamviewer Eventing problem
Hi,
I am working on Teamviewer eventing. Here is my complete JSP page code. All I am trying to do is pass the data from client event back to server side Dynpage. I am getting an error on bottom status bar that "objected expected" on the line "var inputfield = eval(func("pernr"));" Can anyone tell what could be the problem ?
<jsp:useBean id="myBean" scope="application" class="com.wrigley.evt.EvtBean" />
<hbj:content id="myContext" >
<hbj:page title="PageTitle">
<hbj:form id="myFormId" >
<hbj:inputField
id="pernr"
type="string"
maxlength="20"
value=""
visible="FALSE"
jsObjectNeeded="true">
</hbj:inputField>
</hbj:form>
</hbj:page>
</hbj:content>
<script language="javascript">
EPCM.subscribeEvent("urn:com.sap.pct.hcm.orgmanagement:CurrentObject", "objectChanged", receiveEvent);
function receiveEvent(Evt) {
var pernr = Evt.dataObject;
var funcName = htmlb_formid+"_getHtmlbElementId";
func = window[funcName];
var inputfield = eval(func("pernr"));
if (inputfield)
inputfield.setValue(pernr);
var form = document.all(htmlb_formid);
form.submit();
</script>
<%=myBean.getCW1()%>
Hi Sudheer,
You are missing the following line at the top of jsp page.
<%@ taglib uri="tagLib" prefix="hbj" %>
Also add the following lines to your portalapp.xml
<component-profile>
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld"/>
</component-profile>
Venkat: you are guessing?
Similar Messages
-
Hi,
I'm writing an WebDynpro application that needs to communicate with the MSS TeamViewer (version 60.1) via Portal Eventing.
I've got the two talking to each other when a selection is made in the TeamViewer using the following code
WDPortalEventing.subscribe("urn:com.sap.pct.hcm.orgmanagement:CurrentObject","objectChanged",
wdThis.wdGetTeamViewerEventAction() );
However when you first enter the Application I need a way of identifying who the currently selected employee in the TeamViewer is. As far as I can tell this is done using a callback event, so I've tried the following code:
WDPortalEventing.subscribe("urn:com.sap.pct.hcm.orgmanagement:CurrentObject","objectForcom.abc.App",
wdThis.wdGetInitialEventAction() );
WDPortalEventing.fire("urn:com.sap.pct.hcm.orgmanagement:CurrentObject","sendCurrentObject","com.abc.App");
The event seems to be firing ok as another iView on the page responds to it, however my application never recieves a response.
Has anyone managed to do this? Any other suggestions?
Thanks
IanHi ,
Does not the team viewer already have ther personnel number of all the employees in that list ?
The easier solution would be to just make use of the RFC in skills and not the whole essskl component as such. This way , you need not bother abt the clutter on how essskl related apps would respond for your changes. And when you use an RFC directly in mss team viewer component .. u need not bother abt passing pernr.. If you still want to use the same.. mebbe.. u can pass the select personnel number as a parameter(as a plu parameter or as a url parameter) to ess~skl.. and if the parameter value is present.. display the skill details
Regards
Bharathwaj -
Integrate BSP with the MSS Teamviewer
Hi,
does anybody know how to integrate a bsp application with the MSS teamviewer navigation - like other MSS services are integrated(i.e. receive Teamviewer event in BSP application)?
Thank you,
SergeHi sergey,
I also fedup in searching the integration functionality & finally built the 'TeamViewer' in BSP Page itself.
It's simple. Pick up your 'directly reporting employees' or 'All employees' from the Org structure using the fn module <b> RH_DIR_ORG_STRUC_GET </b> .
I hope the foll thread will be helpful.
/thread/132644 [original link is broken]
Rgds,
Jothi.
Message was edited by: Jothivenkatachalam.P -
InputField fire event problem in webDynpro
I have one validation or Fire Event problem with respect to Inputfield in web Dynpro.
I have one Input filed and created the context varible for that, then i mapped the context varible to the InputField, and i changed the context varible type as date.So , when i run the view , it will show the calender near to the text box to select the perticular date. On select of the perticular date. It will populate selected date in to the inputField.
On selection of the perticular date. Based on the date i want to generate the next 12 months date at runtime in different text boxes. But the only event available for the InputField is only "onEnter". This is not useful in my case, bcz on selection of the Date , the user may not use the Enter key. so , how can use the other events like onSelection or onChange events in the InputFields to reach my needs.
Any one give me the idea to solve this problem.
VijayHello Vishal,
You may also refer the sample code in the below link
<a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0c0dcacd-0401-0010-b4bd-a05a0b4d68c8">http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0c0dcacd-0401-0010-b4bd-a05a0b4d68c8</a>
Regards,
Sudeep. -
Hello again, I have yet another event problem. When I try to use this code I get an error saying Abstract class actionPerformed is not implemented in non- abstract class TableWindow. I'm not quit sure how I'm supposed to implement it.
Here is what I believe to be the relevant code. addWindowListener works but addFocusListener returns the error.
// Table window
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import javax.swing.*;
import javax.swing.event.*;
public class TableWindow extends Frame implements ActionListener
public TableWindow ()
Create Window
super ("Test Window");
setBackground (SystemColor.control);
setLocation (0, 0);
setLayout (new GridLayout (5, 5));
addWindowListener (new WindowAdapter ()
public void windowClosing (WindowEvent e)
try
if (Connected == true)
// Close the Statement
stmt.close ();
// Close the connection
con.close ();
catch (SQLException sqle)
dispose ();
System.exit (0);
tPane = new JTabbedPane ();
tPane.addChangeListener (new ChangeListener ()
public void stateChanged (ChangeEvent c)
//Status.setText ("Clicked");
tablePane = new JPanel ();
recordPane = new JPanel ();
recordPane.addFocusListener(new FocusListener()
public void focusGained(FocusEvent e)
Status.setText ("Clicked");
queryPane = new JPanel ();
TName1 = new TextField (25);
TName2 = new TextField (25);
TName3 = new TextField (25);
idField = new TextField (10);
idField2 = new TextField (10);
TitleField = new TextField (25);
TitleField2 = new TextField (25);
result = new TextArea ("Under Construction", 5, 30);
NewT = new Button ("New Table");
NewR = new Button ("New Record");
NewQ = new Button ("New Query");
NewT.addActionListener (this);
NewR.addActionListener (this);
NewQ.addActionListener (this);
TNameLabel1 = new Label ("Enter name of table here");
TNameLabel2 = new Label ("Enter name of table here");
TNameLabel3 = new Label ("Enter name of table here");
idLabel = new Label ("Enter movie ID here");
TitleLabel = new Label ("Enter title of Movie here");
TitleLabel2 = new Label ("Enter title of Movie here");
tablePane.add (TNameLabel1);
tablePane.add (TName1);
tablePane.add (NewT);
recordPane.add (TNameLabel2);
recordPane.add (TName2);
recordPane.add (idLabel);
recordPane.add (idField);
recordPane.add (TitleLabel);
recordPane.add (TitleField);
recordPane.add (NewR);
//recordPane.add (tableChoice);
queryPane.add (TNameLabel3);
queryPane.add (TName3);
queryPane.add (TitleLabel2);
queryPane.add (TitleField2);
queryPane.add (NewQ);
queryPane.add (result);
Status = new Label ("");
// make the window and add components to it
tPane.addTab ("Table", tablePane);
tPane.addTab ("Record", recordPane);
tPane.addTab ("Query", queryPane);
add (tPane, BorderLayout.CENTER);
add (Status, BorderLayout.SOUTH);
pack ();
setVisible (true);
public static void main (String args [])
ConnectToDatabase ("vdds");
TableWindow tw = new TableWindow ();
} -
MSS TeamView (Team Calendar) Colours
Hi All,
Have an issue where people who are colour blind cannot see leave request on the MSS TeamView Application.
Can change the colours in the portal theme to reflect different colours on the leave request/leave approval process, however the ess~lea/TeamView application uses the IGS and does not use the theme colour scheme.
I believe the colours are built in the RFC call which builds the graphical output.
Have tried to debug the RFC PT_ARQ_TEAMCALE_GET but I cannot see where the colours are set. THought that RFC PT_ARQ_EECALE_GET might set the colours (as it contains blue/red/green colour fields) but it doesn't seem to be call.
Please don't tell me how to change the theme colours in the Date Navigator as I've already tried this and it does not reflect on the ess~lea/TeamView app.
Thanks
BrianHi Experts,
I have an issue with TeamCalendar.
Its the Team Calendar in SAP HR Portal.
Runtime Technology : Java/Web Dynpro
Technical Name of iView : com.sap.pct.erp.mss.teamcalendar
Technical Name of Web Dynpro Application :sap.com/ess~lea/TeamView
Available as of : SAP NetWeaver 2004s
Data Origin : SAP ECC 5.0 and higher
RFC function module called:· PT_ARQ_TEAMCALE_GET
Software Component : EA-HR
Support : EP-PCT-MGR-HR
The calendar is displaying one column of days before every month of the calendar.
Can anyone help me out in this issue.
Thanks in advance.
You valuable answers will be rewarded.
Regards,
Ponneswari. -
EP6.0SP2: MSS teamviewer - portal runtime error
Hi all,
could you provide me with information how to solve this problem:
We implemented the BP MSS 60.1.2 . Now only a few iviews are working fine - he most of them occur this error:
Portal Runtime Error - ... - tcom/sap/pct/hcm/orgmanagementeventing/CKey.
The teamviewer is not working neither, here this error appears:
Portal Runtime Error - ... -
Component Name : null
Page could not create the iView
I have found some similar topics within the sdn forum, but the only solution mentioned there are to reimplement MSS 60.1.1 .
Is this the only solution for this foreseen ??
Thanks in advance for your help.
Sandra1st question would be.. does that iview in that path actually exist. If it does it may be worth delting it from the page and then adding it again. if it doesn't, well that's your problem.
If it does exit then try previewing it. Looking at the error (Component Name : null) it could be that the par file has not deployed properly, in which case it is basically pointing at java code that doesn't exist. If that is the case look for any .err files at OS level, rename then to .par and restart j2ee.
Paul -
IVew does not gets personal no from MSS TeamViewer.
Hi Experts,
I have a page in which I have Teamviewer and another iView. The first time the page loads the pesonal number is fetched from the teamviewer and passed to the iView but when i click the second selection (employee) next time from the teamViewer, nothing changes, the data remains the same in the iView. I have figured out that first time the page loads, the personal no is passed to the iView from the teamviewer, but on every subsequent selection, my method (below) does not return the personal no of the employee that has been selected from the teamviewer.
protected String getPerNo() {
String perno = null;
try
CKey cKey = CKey.retrieve(this, request, "P ");
request.getServletRequest().setAttribute("cKey", cKey);
perno = cKey.getObjectID();
temp = perNo;
cpCvBean.setTemp(temp);
if(perno == null)
throw new CpCvException("Unable to retrieve Personnel Number from Teamviewer");
catch(CpCvException me)
message = me.getMessage();
processError(message, me);
catch(Exception e)
message = e.getMessage();
processError(message, e);
return perno;
The codes are as following :
component----
import com.sapportals.htmlb.page.*;
import com.sapportals.htmlb.event.*;
import com.sapportals.portal.htmlb.page.*;
import com.sapportals.portal.prt.component.*;
import com.sapportals.portal.prt.resource.IResource;
import com.sap.pct.hcm.orgmanagementeventing.CKey;
import com.sapportals.portal.prt.session.*;
import java.math.*;
import java.util.*;
import java.util.Calendar;
import com.sapportals.portal.prt.service.jco.IJCOClientService;
import com.sap.mw.jco.JCO;
import com.sapportals.portal.prt.service.jco.IJCOClientPoolEntry;
import com.sap.mw.jco.IFunctionTemplate;
import com.sap.mw.jco.IRepository;
public class CpCv extends PageProcessorComponent {
public DynPage getPage(){
return new CpCvDynPage();
public static class CpCvDynPage extends JSPDynPage{
private CpCvBean cpCvBean = null;
private CpCvErrorBean cpCvErrorBean = null;
protected IPortalComponentRequest request;
protected IPortalComponentSession session;
protected IPortalComponentContext context;
protected IPortalComponentProfile profile;
protected String message = "";
protected String perNo = "No Data";
protected String userId;
protected String sapSystem;
private final static int INITIAL_STATE = 0;
private final static int OUTPUT_STATE = 1;
private final static int ERROR_STATE = 2;
private int state = INITIAL_STATE;
// variabler for test
private boolean gender=true;
JCO.Function function = null;
protected String temp = "saurabh";
public void doInitialization(){
System.out.println("cpCv - Code is rendered: " + Calendar.getInstance().getTime().toString());
state = INITIAL_STATE;
getPortalParams();
perNo = getPerNo();
cpCvBean = new CpCvBean();
cpCvErrorBean = new CpCvErrorBean();
session.putValue("cpCvBean", cpCvBean);
session.putValue("cpCvErrorBean", cpCvErrorBean);
// fill your bean with data here...
connect();
}// end doInitialization
protected void getPortalParams() {
request = (IPortalComponentRequest) this.getRequest();
session = request.getComponentSession();
context = request.getComponentContext();
if (request.getParameter("PERNR") != null) {
perNo = request.getParameter("PERNR");
profile = context.getProfile();
IUserContext userContext = request.getUser();
userId = userContext.getUserId();
sapSystem = profile.getProperty("SystemId");
System.out.println("cpCv - Sapsystem is: " + sapSystem);
System.out.println("cpCv - For signum " + userId + " we got personal number " + perNo);
}// end getPortaParams
protected String getPerNo() {
String perno = null;
try
CKey cKey = CKey.retrieve(this, request, "P ");
request.getServletRequest().setAttribute("cKey", cKey);
perno = cKey.getObjectID();
temp = perNo;
cpCvBean.setTemp(temp);
if(perno == null)
throw new CpCvException("Unable to retrieve Personnel Number from Teamviewer");
catch(CpCvException me)
message = me.getMessage();
processError(message, me);
catch(Exception e)
message = e.getMessage();
processError(message, e);
return perno;
protected void connect() {
getPortalParams();
//-----------data fetched from backend system
}// end processError
}// end class cpCvDynPage
}// end class cpCv
jsp----
<%@ taglib uri="tagLib" prefix="hbj" %>
<%@ page import="com.sapportals.htmlb.*" %>
<%@ page import="com.sapportals.htmlb.enum.*" %>
<%@ page import="com.saurabh.pct.hcm.CpCvBean" %>
<%@ page import="com.sapportals.htmlb.htmlcontainer.*"%>
<jsp:useBean id="cpCvBean" scope="session" class="com.saurabh.pct.hcm.CpCvBean" />
<hbj:content id="cvContext" >
<hbj:page title="PageTitle">
<%
// targetURL is the URL to this page, at this position in the portal object model
String targetURL = componentRequest.createComponentURL(componentRequest.getNode(), null);
// build unique java script function name - this way we never collide with anybody else...
String jsFunctionName = "ecfForm_" + componentRequest.getComponentContext().getValue("COMPONENT_ID");
%>
<%
// clearButtonId holds the ID of the clear Button
String clearButtonId = null;
out.println("perno1 = " + cpCvBean.perNo);
%>
<hbj:form id="cvFormId" >
<%
FormLayout fl01 = new FormLayout();
cvFormId.addComponent(fl01);
fl01.setWidth("600px");
fl01.setDebugMode(false);
FormLayoutRow row01 = fl01.addRow();
row01.setPaddingTop("10px");
row01.setPaddingBottom("5px");
Image i011 = new Image(cpCvBean.getLogoURL(), "Picture logo_116px.gif");
i011.setWidth("118px");
i011.setHeight("26px");
i011.setAlt("logo");
TextView tv011 = new TextView ("tv011");
tv011.setEncode(false);
tv011.setText("<font size="+2"></font>");
FormLayoutCell cell011 = fl01.addComponent(1,1, i011);
cell011.setHorizontalAlignment(CellHAlign.LEFT);
cell011.setPaddingLeft("5px");
FormLayoutCell cell012 = fl01.addComponent(1,2, tv011);
cell012.setHorizontalAlignment(CellHAlign.RIGHT);
FormLayoutRow row02 = fl01.addRow();
row02.setPaddingTop("5px");
row02.setPaddingBottom("30px");
TextView tv012 = new TextView ("tv012");
tv012.setEncode(false);
tv012.setText("<font size="+1"><b>Details</b></font>");
FormLayoutCell cell021 = fl01.addComponent(2,2, tv012);
cell021.setHorizontalAlignment(CellHAlign.RIGHT);
FormLayout fl0 = new FormLayout();
cvFormId.addComponent(fl0);
fl0.setWidth("600px");
fl0.setDebugMode(false);
FormLayoutRow row001 = fl0.addRow();
FormLayout fl15 = new FormLayout();
fl15.setWidth("110px");
fl15.setDebugMode(false);
FormLayoutRow row151 = fl15.addRow();
//row151.setPaddingTop("10px");
//row151.setPaddingBottom("5px");
</hbj:form>
<script language="JavaScript">
EPCM.subscribeEvent( "urn:com.sap.pct.hcm.orgmanagement:CurrentObject", "objectChanged", <%=jsFunctionName%> );
function <%=jsFunctionName%> ( evt ) {
document.all.<%=clearButtonId%>.click();
</script>
</hbj:page>
</hbj:content>
portalapp.xml----
<?xml version="1.0" encoding="utf-8"?>
<application>
<application-config>
<property name="ClassLoadingPolicy" value="5.0"/>
<property name="DeploymentPolicy" value="5.0"/>
<property name="AuthenticationPolicy" value="5.0"/>
<property name="ServicesReference" value="htmlb, jco, jcoclient, landscape"/>
<property name="SharingReference" value="com.sap.pct.hcm.orgmanagementeventing, com.sap.pct.hcm.hcm_util"/>
</application-config>
<components>
<component name="default">
<component-config>
<property name="ClassName" value="com.saurabh.pct.hcm.CpCv"/>
<property name="SecurityZone" value="com.sap.portal.ep50/ep50_safety"/>
</component-config>
<component-profile>
<property name="FMQualMp" value="Z_HR_GET_QUAL_MP_CV"/>
<property name="FMPhoto" value="ZHRWPC_RFC_EP_READ_PHOTO_URI"/>
<property name="FMPersData" value="Z_H_MP_READ_INFTY_CV"/>
<property name="SystemId" value="SAP_R3_HumanResources"/>
<property name="FMQual" value="Z_HR_GET_QUAL_NEW"/>
<property name="QualGroup" value="30000362"/>
<property name="QualGroup1" value="30561390"/>
<property name="FMPosDesc" value="Z_READ_POSDESC_NEW"/>
<property name="LangSkills" value="30000847"/>
<property name="FM9990" value="Z_GET_PERS_IT9990"/>
<property name="FMABTME" value="Z_EES_GET_ABOUT_ME2"/>
<property name="FM9991" value="Z_GET_PERS_IT9991"/>
<property name="FMEVTS" value="Z_GET_PERS_ATTEND"/>
<property name="PAR_DEPENDENCIES" value="com.sap.pct.hcm.orgmanagementeventing,com.sap.pct.hcm.hcm_util"/>
<property name="tagLib" value="/SERVICE/htmlb/taglib/htmlb.tld">
<property name="inheritance" value="final"/>
</property>
</component-profile>
</component>
</components>
<services/>
</application>Hi Saurabh,
Were you able to solve this issue ? We r also facing the same problem. Pls suggest.
Thanks and Regards,
Vinod Venugopal -
Events problem with (Java and ActiveX)
Hi,
I use an ActiveX component with Java and i've got a problem with events.
Java classes were generated with Bridge2Java (IBM).
In order to manage events I added a listener in my application :
javaMyActiveX = new MyActiveX();
javaMyActiveX.add_DMyActiveXEventsListener(new _DMyActiveXEventsAdapter());
I also added a constructor in the _DMyActiveXEventsAdapter class and I fill the body of methods.
The ActiveX generates two types of events :
- The ones are directly generated by methods.
- The others are generated by a thread.
With MS Products (VB, Visual C++, Visual J++), I catch all events.
With java (jdk 1.4), I catch only events generated by methods.
Can anyone help me.I'm not 100% sure, but the last time I used that bridge, it only worked if you ran your Java app within a Microsoft VM.
-
Help needed with Image Events problem
Hi there I'm writing what I thought was a simple script to convert a folder full of images from jpg to tiff. But the script fails when trying to convert the first image in the folder. Instead of converting the image, Preview opens with the image shown and I get this error message: error "The variable ImageRef is not defined." number -2753 from "ImageRef".
I have seen some posts about other people having the same problem, but I haven't seen any solutions.
Here's the script.
on run
tell application "Finder"
set PicturesFolder to ((path to home folder) as string) & "Pictures:SenseCam" as alias
set Photographs to (get entire contents of PicturesFolder) as alias list
end tell
tell application "Image Events"
launch
repeat with Photo in Photographs
if (Photo as string) ends with "jpg" then
set ImageRef to open Photo
save ImageRef in Photographs as TIFF
close ImageRef
end if
end repeat
end tell
tell application "Finder"
repeat with Photo in Photographs
delete Photo
end repeat
end tell
end run
Thanks in advance for any help.
JohnHello
You may try something like the modified code below.
Noticiable changes :
#1 - Removed the parentheses. Your original code won't yield alias list but a list of finder objects, which is the reason why Preview opens the image. (The statment 'open finderObject' behaves the same as double clicking it in Finder)
#2 - Only delete the original jpeg files which are converted to tiff.
#3 - Build new path for converted image.
#4 - Save in new path. (When saving image in a format other than its original format, always save the image to a new file and do not attempt to overwrite the source file.)
cf.
http://www.macosxautomation.com/applescript/imageevents/08.html
on run
tell application "Finder"
set PicturesFolder to (path to home folder as string) & "Pictures:SenseCam:" as alias
set Photographs to get entire contents of PicturesFolder as alias list -- #1
end tell
set DonePhotos to {} -- #2
tell application "Image Events"
launch
repeat with Photo in Photographs
set Photo to Photo's contents
set oldPath to Photo as string
if oldPath ends with ".jpg" then
set newPath to oldPath's text 1 thru -5 & ".tif" -- #3
set ImageRef to open Photo
save ImageRef as TIFF in newPath -- #4
close ImageRef
set end of DonePhotos to Photo -- #2
end if
end repeat
end tell
tell application "Finder"
delete DonePhotos -- #2
end tell
end run
Hope this may help,
H -
iCal on my iPad worked fine for a while. Now, many of my all day events (but not all of them) are showing up a day early on my iPad on week view. Everything is fine on all other devices (iPhone, MacBook) and all is fine on iPad on day, month and list view. All timed events are in the right place. But all day events in week view are a disaster and turning off the iPad isn't helping. Any advice?
Did you travel out of your home time zone and first notice the problem then? I spent an hour and a half on the phone with Apple Care while I was in the Central zone (I live in Eastern) and nothing the supervisor suggested worked (deleting the account, resetting, turning ipad off, etc). They'd bumped me up to a supervisor because the regular guy had no idea. Supervisor said no one on the internal tech board had seen that particular problem. The final assumption was it was a software glitch on my ipad--the advice was a complete restore which was going to have to wait until I returned home because he said it would take too long over the Verizon mi-fi I was using while traveling. Anyway--I got home to Eastern time, immediately pulled out the ipad to do the restore and all the all-day events were in the right place and have remained in the right place since then. My best guess is that it's a time zone issue but it doesn't make much sense. All my timed events stayed right where they were supposed to be the whole time (time zone support turned off).
-
Creation of an event : problem with the container
Hi Gurus,
I'm facing a problem in creation of an event.
I'm in SAP ECC 6.0 for a migration project from 4.6B
In an ABAP program I'm trying to create an event in order to launch a workflow.
1st step : Set datas in the container -> In INTERNAL_TABLE I have 5 lines.
swc_set_table event_container 'INTERNAL_TABLE' t_cnp_container.
2nd step : Create an event :
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
objtype = w_wf_objtype
objkey = w_wf_objkey
event = w_wf_event
creator = applicant
start_recfb_synchron = 'X'
TABLES
event_container = event_container
EXCEPTIONS
objtype_not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
WRITE sy-subrc.
ENDIF.
Now when I check my container with SWI2_FREQ I see that INTERNAL_TABLE has just one ligne, the rest disapears.
I have this problem only when I set an internal table in an container
I don't know why, but it perfectly works on 4.6B.
Thanks a lot
WalidHi,
I dont see a point in having this statement
swc_set_table event_container 'INTERNAL_TABLE' t_cnp_container. Infact it is not needed !!
SWE_EVENT_CREATE like any other FM, take a
lt_var type standard table of SWCONT.
ls_var type SWCONT.
fill your ls_var with all fields and append it to lt_var each time and pass lt_var to event_table of SWE_EVENT_CREATE. It should work !!
However, suggested way is to use SAP_WAPI_CREATE_EVENT instead of SWE_EVENT_CREATE from ECC 5.0 onwards. There are fe concerns with SWE_EVENT_CREATE mainly with respect to commit and persistancy. Better we should use SAP_WAPI* as much as possible from ECC 5.0.
Try above and Good Luck !!
Regards
Krishna Mohan -
Mac OS / classpath / custom event problem
I'm having a bit of trouble with a particular classpath
anomaly, and I have a feeling that it might be a Mac thing.
Not sure if anyone else can reproduce this, but I managed to
make a custom event and a class that extends the EventDispatcher
once. Since then, Flash has refused to admit that any class
associated with a custom event exists - mostly producing the error
1046. Even after you take out any references to the event
dispatcher or a custom event, the class is ignored.
All my classes are kept in a single 'Packages' folder with
sub folders that I include in the import statement (I've
triple-checked the classpath settings, the import statements, and
the classes themselves - I have probably a hundred or so other
classes that are fine, and all referenced in the same way, some
that extend EventDispatcher, some that don't.
I come across this a few times now - once I was able to fix
it by putting the .as file in the same folder as my first custom
event, but this no longer works.
I'm running Mac OS X 4.11 on two computers - both have the
same trouble.
I've tried copying the classes to other folders and changing
the package/import path accordingly - no go.
Even stranger, if you copy and paste to a new .as file, and a
different package folder, the problem persists in that Flash claims
the revised Package statement (to reflect the new location) does
not reflect the position of the file - when it clearly does.
I haven't had this problem with any other home-grown class -
only those that reference a custom event.
It sounds like it should be pilot error, and I've spent a
long time trying to spot a silly mistake. But as this problem has
recurred a few times now, I'm beginning to think it isn't me.
Anybody else experience similar classpath problems with AS3
on a Mac? Anybody have any suggestions?I am also a newbie and my answer could be wrong.
But from the looks of it, You are Unable to load performance pack.
The solution is "Please ensure that libmuxer library is in :'.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
I hope BEA or someone can tell you the file name of libmuxer. And make sure it is in the Folder where the script is searching/looking.
Good luck.
fred -
Hi,
I read the blog posted by Jocelyn Dart-<b><i>Raising ABAP OO Events for Workflow</i></b>...
<b>/people/jocelyn.dart/blog/2006/07/27/raising-abap-oo-events-for-workflow
When I tried the same using my own Class, I am getting some problem.
Well, I created my Class with two Attributes
1) <i>M_POR</i>(Persistent Object Reference Attribute)
2) <i>PERNR</i>(Employee Number)
And I created a Constructor with one parameter.
And I also coded the remaining standard methods as per that blog - <b><i>USING ABAP OO Methods in Workflow Tasks</i></b>.
Finally I activated my CLASS and each individual method.
I created one small report that raises ABAP OO Event as mentioned in the blog with the below mentioned code.
<i>report yworkflowtrigger_ooabap.
data : ls_ywftest1_key type p_pernr,
lv_objtype type sibftypeid,
lv_event type sibfevent,
lv_objkey type sibfinstid,
lr_event_parameters type ref to if_swf_ifs_parameter_container,
lv_param_name type swfdname,
lv_visit_date type datum.
lv_objtype = 'YWFTEST1'.
lv_event = 'STARTEVENT'.
Set up the LPOR Instance id
ls_ywftest1_key = '00000024'.
move ls_ywftest1_key to lv_objkey.
try.
call method cl_swf_evt_event=>raise
exporting
im_objcateg = cl_swf_evt_event=>mc_objcateg_cl
im_objtype = lv_objtype
im_event = lv_event
im_objkey = lv_objkey
IM_EVENT_CONTAINER =
catch cx_swf_evt_invalid_objtype .
catch cx_swf_evt_invalid_event .
endtry.</i>
I switched on my event trace and tried raising the Event. But event is not raised even after execution of this code. I checked the SY-SUBRC value at the ENDTRY, But this seems perfect(SY-SUBRC = 0).
Why is my event not getting triggered even after the execution of above code?
Is there anything which I have missed.
We are on <b>ECC 5.0</b>
Regards,
<i><b>Raja Sekhar</b></i>I missed this tip in that blog.
"<i><b>Tip! Just as for Business Object events, the COMMIT WORK statement is crucial when raising a Workflow event - without this the event will not be raised.</b></i>"
Regards,
<i><b>Raja Sekhar</b></i> -
Client Eventing Problem with URL Iview
Hi,
I am new to EP and have a basic client eventing question. We are trying to integrate a URL Iview from a partner product with a standard Iview downloaded from Iviewstudio. This standard Iview is capable of handling client events from other Iviews in the standard package. We want to re-use this Iview with the same event (same functionality) to be able to handle events from the partner URL Iview.
The partner Iview and our portal are on different servers.
We are using the following Javascript but it doesnt seem to raise the event.
EPCM.storeClientData('urn:com.sap.bor:BUS0010','objid',LocId));
EPCM.storeClientData('urn:com.sap.bor:BUS0010','AllKeys','objid');
EPCM.raiseEvent('urn:com.sap.bor:BUS0010','select','','/irj/servlet/prt/portal/prtroot/...'
We were able to debug and find that the data was being stored in the Data Bag. However the event is not being raised at all. It seems that it just gets stuck somewhere in the Raise event. We even put a javascript alert after the raise event but it doesnt seem to reach there at all.
Could you give me a few pointers as to what the problem might be.
Thanks in advance.
Message was edited by: Mayank BhatnagarHi,
let's have a look at two quotes of the PDK documentation.
"Using the EPCF from your JavaScript, you can send messages to JavaScript code embedded in other iViews."
"Isolated iViews are iViews that are not inlined into a portal page, but referenced using an IFRAME. To make the EPCF available in such iViews, the EPCF JavaScript as well as the EPCF applet are included into each generated frame."
From my point of view, this only can work automatically with content provided by the portal.
Therefore, this can't work with isolated URL iViews generated with the wizards. Imagine a google iView, running in an iFrame. Google is called by the portal, but it's simply standard google HTML output - displayed in the portal.
To provide the capability of the EPCF, the epcf javascript file has to be included in the "partner URL iView"'s source. I tried this and it worked. However, this is not a highly sophisticated solution
If the partner iView's server is running in a different domain, there are further issues to be considered (keyword: java script origin policy)
If anybody has corrections or can provide a good solution, don't hesitate.
Maybe you are looking for
-
Hi I am very new to updating my iPod touch and this is the first time I've used the iCloud. However, I am having problems accessing any apps on my iCloud such as photos, reminders etc. I've set it up on my iPod touch successfully and I can sign in on
-
Apple Wireless Mouse and Keyboard lose connection running games in Vista
I installed Windows Vista Ultimate for playing games on my iMac. During games the *wireless Apple keyboard and wireless Might Mouse seem to loose connection at random intervals.* Looks like the bluetooth connection is lost (?, this is a guess). After
-
Acrobat 8 Pro - partial printing under Windows 7 x64 - any ideas?
Hi, I've recently installed Acrobat 8 Professional as part of the CS3 Master Collection on a PC running Windows 7 x64. Now, I'd read up about this in advance and found the dll file adobepdf.dll_64 prior to installation, but I was never asked for it.
-
IPhoto keeps loading for hours +no responding+ HELP
Hi My iPhoto keep loading for long time like searching for the picts, and dont stop. Untill I quit...Please help.... I have around 6000 picts, and i dont want to think that I have lost all the albums I created...and how I organized it... What can I d
-
Why doesn't my MacBook show up in AirDrop on my iPhone 5S?
So I downloaded Yosemite yesterday. I was very excited to be able to AirDrop between my MacBook & my iPhone 5S, but it doesn't seem to be working properly. My iPhone shows up in AirDrop on my Mac, but my Mac doesn't show up on my iPhone. I can send f