Learner Access using Org Hierarchy
Hi
Recently created an org hierarchy so we can utilise the self enrollment functionality for specific parts of the organisation against certain courses etc.
However, when we have assigned the relevent learner access the class is not appearning within expected users catalogue. Is there any concurrent process or switch that anyone may be aware of that we need to invoke in order to have Oracle populate the employees against the hierarchy or has anyone else experienced a similar issue.
Regards
Carl
You assume correctly.
Obviously I can unrestrict the class and make it available to all within the catalogue, the point is to make it available to only certain parts of the organisation and make it self enrollment.
I believe the issue is that the new org hierarchy has no employees/positions attached to it therefore applying learner access has no effect. I was hoping someone else may have experienced a similar issue and that there might be a simple step to populating the hierarchy that we have missed
Cheers
Carl
Similar Messages
-
Reporting by org hierarchy with drill down by each level of reports to...
Hello,
I'm trying to determine how to aggregate reporting by org hierarchy. Utlimately to report on opportunities at the highest level (CEO; all opportunities below CEO) then a second drill down report that shows summary by Level 2 (all those who report to the CEO), then again by Level 3 drill down which would be those who report to somone in Level 2. In all instances I want the report to show all records that ultimately roll up to that level (thus include direct reports alll of their direct and indirect reports )
Level 1
CEO $10,000,000 200 Optys
Level 2
Sales Leader 1 $ 3,000,000
Sales Leader 2 $ 2,000,000
Sales Leader 3 $ 1,500,000
Sales Leader 4 $ 3,500,000
Level 3
<ul><li>- rollup of all that report to Sales Leader 1 (and so on) aggregated by first level of direct reports ($3,000,000)
Sales Mgr 1.1 $ 1,000,000
Sales Mgr 1.2 $ 500,000
Sales Mgr 1.3 $ 750,000
Sales Mgr 1.4 $ 250,000</li>
</ul>
I'd appreicate any help you can send my way.
Thanks, AaronHi Aaron,
I have come across this and found that using the "Reports To" hierarchy and "Territory Team" hierarchy are not sufficient. I implemented this as a solution for one of our clients and it works very well:
I have modified the user entity and renamed 4 standard fields:
• Business Unit renamed to "Primary Line of Business"
• Business Unit Level 1 renamed to "BU Group"
• Business Unit Level 2 renamed to "Business Unit"
• Business Unit Level 3renamed to "Team"
Not all fields go through into analytics so I had to use these fields which are available in the Opportunity-Product History subject area. The downside is that they have to be text boxes so restrict access to who can populate these. From this you can get 4 hierarchy levels and drill from one to the next. The record owner then becomes the lowest level in your report and it can look something like this:
Level 1
Primary Line of Business
Level 2
BU Group
BU Group
Level 3
Business Unit
Business Unit
Business Unit
Level 4
Team
Team
Team
Team
Level 5
Sales Person 1
Sales Person 2
Sales Person 3
Sales Person 4
Sales Person 5
Obviously it would appear side by side in the report..
Thanks -
How to Limit Learner Access by Person Type
My goal is to have a course or class for which only employees can self-enroll (contingent workers may not enroll). I am using the 11.5.10.2 EBS applications, where Learner Access can be controlled by individual learner or by position or job within an organization hierarchy. The OTA_EVENT_ASSOCIATIONS table corresponds to this structure, with columns for Job ID, Position ID, and Organization ID. Has anyone come up with a solution for defining learner access more flexibly? I found one Oracle Support note, 731227.1, where database triggers control administrative functionality within OLM, and I was wondering if triggers might also be useful for controlling who can enroll in a course (if person type is contractor, display a message, etc). I would be very interested to learn about creative solutions from the community. Thank you.
Unfortunately, I haven't heard of a good custom solution for 11.5.10, but I know of one creative extension using Learner Groups coupled with eligibility profiles in R12 that I thought was good. I can provide you with contact info for the developer that built it at a company that I used to work for if you're interested.
-
Nakisa Org Hierarchy view setup
Hi,
Does anyone have any information on setting up the Org Hierarchy view in TVN? Currently I only have a single, blank box displaying on the Nakisa webpage in the Org view (under Position tab).
Also, I'm looking for the full document set and a config manual (other than the installation guide and administrator guide available after installation).
Any assistance will be greatly appreciated.
Dirk.Hi David,
Usually these fields are stored by default. They are a standard set of names that are used by the BAPIs that get and return the data from SAP. These are:
OrgUnit Hierarchy:
Hierarchy ID: Object_ID
Parent ID: ParentNo
Element ID: Object_ID
Position Derived:
Hierarchy ID: Object_ID
Parent ID: <blank>
Element ID: EmployeeID
Sucession:
Hierarchy ID: Object_ID
Parent ID: <blank>
Element ID: Object_ID
Youalso need to make sure the link settings are also populated.
If you have already used these and only get part of the structure your SAP user ID may not have the required authorisations to view all of the structure. Nakisa can recommend how to setup the user.
Good luck.
Luke -
Hi
I am looking to use OEPE to allow me to adapt a RAD approach to the web part of our applications while keeping our CI builds consistant.
We use WebLogic 10.3 with struts 1.2.9, Spring 2.5, Hibernate 3.X and maven 2.
I am using Eclipse 3.5 SR1 with OEPE version Oracle Enterprise Pack for Eclipse 11.1.1.3.0
I created a test Dynamic Web Application using maven 2 and this works OK with a test WebLogic Server 10.3. I then deleted this from the WebLogic Server so I could try using it with OEPE.
I deploy this Dynamic Web Application using OEPE (via autogenerated_ear_) to WebLogic Server
My initial problems were classpath errors where it seems that my Maven dependent jars were NOT picked up by my web application. To overcome this I copied the maven dependencies to <my web app>\src\main\webapp\WEB-INF\lib
I could then use my initial struts action but failed with:
Root cause of ServletException.
java.lang.IllegalAccessError: tried to access method org.springframework.web.struts.ActionSupport.getWebApplicationContext()Lorg/springframework/web/context/WebApplicationContext; from class com.myco.springtxn.web.struts.SaveNewCakeAction_beaVersion0_7
at com.myco.springtxn.web.struts.SaveNewCakeAction_beaVersion0_7.execute(SaveNewCakeAction.java:31)
at com.myco.springtxn.web.struts.SaveNewCakeAction.execute(SaveNewCakeAction.java)
CakeService cakeService = (CakeService) getWebApplicationContext().getBean("cakeService");
Some more data:
TRACE:
Saving Cake with name oepe cake and description copied in jars
<24-Oct-2009 21:13:16 o'clock BST> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@d9f6cb - appName: '_auto_generated_ear_', name: 'sdw', context-path: '/sdw', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@148bedb[
POST /sdw/saveNewCake.do HTTP/1.1
Accept: */*
Referer: http://localhost:7001/sdw/enterCake.do
Accept-Language: en-gb
Content-Type: application/x-www-form-urlencoded
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; NGD_build; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Content-Length: 41
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: refresh=; JSESSIONID=dG4BKjLBdL3LWMPkJG3r1Tw64hjpBMWwvplvypkGZlTYhb6cJD9M!-36198065; ADMINCONSOLESESSION=7gyTKjLQgQfNlPlQ1cBydQXgHcgljjQn8tnHL4Qn5GWr8pLWZG0W!1523650153
]] Root cause of ServletException.
java.lang.IllegalAccessError: tried to access method org.springframework.web.struts.ActionSupport.getWebApplicationContext()Lorg/springframework/web/context/WebApplicationContext; from class com.myco.springtxn.web.struts.SaveNewCakeAction_beaVersion0_7
at com.myco.springtxn.web.struts.SaveNewCakeAction_beaVersion0_7.execute(SaveNewCakeAction.java:31)
at com.myco.springtxn.web.struts.SaveNewCakeAction.execute(SaveNewCakeAction.java)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.utils.FastSwapFilter.doFilter(FastSwapFilter.java:66)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
>
I AM USING;
1. Operating System - Windows XP Professional
2. Eclipse Version - 3.5.1
3. WLS Version - 10.3
4. Brief app shape description. Dynamic Web App
5. The .classpath a
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="oracle.eclipse.tools.weblogic.lib.system">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Spring2.5">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
<attribute name="owner.project.facets" value="oracle.struts;spring.core"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/Struts">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
<attribute name="owner.project.facets" value="oracle.struts"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
web app cache
<webapp-structure>
<registeredFiles>
<entry>
<string>currentBuild</string>
<path-set>
<pathsSet class="linked-hash-set">
<string>index.jsp</string>
<string>META-INF/MANIFEST.MF</string>
<string>pages/cakeSavedInfo.jsp</string>
<string>pages/enterCake.jsp</string>
<string>pages/welcome.jsp</string>
<string>WEB-INF/applicationContext.xml</string>
<string>WEB-INF/config/struts-config.xml</string>
<string>WEB-INF/tld/c.tld</string>
<string>WEB-INF/tld/fmt.tld</string>
<string>WEB-INF/tld/struts-bean.tld</string>
<string>WEB-INF/tld/struts-html-el.tld</string>
<string>WEB-INF/tld/struts-html.tld</string>
<string>WEB-INF/tld/struts-logic.tld</string>
<string>WEB-INF/tld/struts-tiles.tld</string>
<string>WEB-INF/web.xml</string>
<string>WEB-INF/weblogic.xml</string>
<string>WEB-INF/classes/com/myco/springtxn/web/controller/CakeController.class</string>
<string>WEB-INF/classes/com/myco/springtxn/web/controller/spring/AnnotatedSpringCakeController.class</string>
<string>WEB-INF/classes/com/myco/springtxn/web/struts/CakeForm.class</string>
<string>WEB-INF/classes/com/myco/springtxn/web/struts/EnterNewCakeAction.class</string>
<string>WEB-INF/classes/com/myco/springtxn/web/struts/SaveNewCakeAction.class</string>
<string>WEB-INF/classes/com/myco/springtxn/web/util/Logging.class</string>
<string>WEB-INF/lib/SpringTxnServices-0.0.1-SNAPSHOT.jar</string>
<string>WEB-INF/lib/spring-2.5.6.jar</string>
<string>WEB-INF/lib/commons-logging-1.0.4.jar</string>
<string>WEB-INF/lib/commons-lang-2.4.jar</string>
<string>WEB-INF/lib/hibernate-core-3.3.1.GA.jar</string>
<string>WEB-INF/lib/antlr-2.7.2.jar</string>
<string>WEB-INF/lib/commons-collections-3.1.jar</string>
<string>WEB-INF/lib/dom4j-1.6.1.jar</string>
<string>WEB-INF/lib/xml-apis-1.0.b2.jar</string>
<string>WEB-INF/lib/jta-1.1.jar</string>
<string>WEB-INF/lib/slf4j-api-1.5.2.jar</string>
<string>WEB-INF/lib/hibernate-annotations-3.4.0.GA.jar</string>
<string>WEB-INF/lib/ejb3-persistence-1.0.2.GA.jar</string>
<string>WEB-INF/lib/hibernate-commons-annotations-3.1.0.GA.jar</string>
<string>WEB-INF/lib/hibernate-entitymanager-3.4.0.GA.jar</string>
<string>WEB-INF/lib/javassist-3.4.GA.jar</string>
<string>WEB-INF/lib/hibernate-validator-3.1.0.GA.jar</string>
<string>WEB-INF/lib/slf4j-log4j12-1.5.2.jar</string>
<string>WEB-INF/lib/log4j-1.2.14.jar</string>
<string>WEB-INF/lib/SpringLegacyModule-0.0.1-SNAPSHOT.jar</string>
<string>WEB-INF/lib/struts-1.2.9.jar</string>
<string>WEB-INF/lib/commons-beanutils-1.7.0.jar</string>
<string>WEB-INF/lib/commons-digester-1.6.jar</string>
<string>WEB-INF/lib/commons-fileupload-1.0.jar</string>
<string>WEB-INF/lib/commons-validator-1.1.4.jar</string>
<string>WEB-INF/lib/oro-2.0.7.jar</string>
<string>WEB-INF/lib/xalan-2.5.1.jar</string>
<string>WEB-INF/lib/struts-el-1.2.9.jar</string>
<string>WEB-INF/lib/standard-1.0.6.jar</string>
<string>WEB-INF/lib/jstl-1.1.2.jar</string>
<string>WEB-INF/lib/spring-webmvc-struts-2.5.6.jar</string>
<string>WEB-INF/lib/spring-beans-2.5.6.jar</string>
<string>WEB-INF/lib/spring-core-2.5.6.jar</string>
<string>WEB-INF/lib/spring-context-2.5.6.jar</string>
<string>WEB-INF/lib/aopalliance-1.0.jar</string>
<string>WEB-INF/lib/spring-web-2.5.6.jar</string>
<string>WEB-INF/lib/spring-webmvc-2.5.6.jar</string>
<string>WEB-INF/lib/spring-context-support-2.5.6.jar</string>
</pathsSet>
</path-set>
</entry>
</registeredFiles>
</webapp-structure>Got back to testing this (been busy in my day job). I realised that I had not tested hot deployment. So I switched on FastSwop by adding the following the the weblogic.xml (of the web applicatiion):
Gives
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; NGD_build; .NET CLR 1.1.4322; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Content-Length: 22
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: JSESSIONID=T6PTK7yS3jdJzzLsP5nNB6TNCyLFMcYxZf8j1rRRGBXZ8hSbBQT2!580994594
]] Root cause of ServletException.
java.lang.IllegalAccessError: tried to access method org.springframework.web.struts.ActionSupport.getWebApplicationContext()Lorg/springframework/web/context/WebApplicationContext; from class com.myco.springtxn.web.struts.SaveNewCakeAction_beaVersion0_8
at com.myco.springtxn.web.struts.SaveNewCakeAction_beaVersion0_8.execute(SaveNewCakeAction.java:31)
at com.myco.springtxn.web.struts.SaveNewCakeAction.execute(SaveNewCakeAction.java)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
Truncated. see log file for complete stacktrace
>
I find this sad since using tomcat I can hot deploy without any problem -
I am new at Captivate 8 and I have created a learning project using an existing power point presentation. I have added a button that will allow my students to view a video on the subject. When I run the project in Preview the button works but when I publish it, it stops working.
I added an Interactions button and in the Actions on Success I open an URL or file. I have placed the video on our web server. In the URL I point to our web server "http://www.wmabhs.org/Media/Add Client 3rd Party Coverage.mp4". If I run this from any browser it works. So what do you think I have done wrong?
-
WRT54G configuration for internet access using Lacie Network Space Max
Please HELP!!!!
I have tried for the past 2 weeks trying to configure my router WRT54G so it allows me to access the Lacie over the internet without luck. I have followed every instructions from Lacie and every other FAQs and help on the internet, still no luck. I have spent numerous days with Lacie tech support and they could not figure it out - why my router would not allow me access over the internet. I am hoping that the big guns here can help me.
I have a number of laptops connected wirelessly to my local network and every laptop can access the Lacie NAS hardwired to one of the ports on my router. My entire system works wonderful locally.
The Lacie has been assigned a static IP of 192.168.1.199
My local network has a starting IP of 192.168.1.150 and ends at 192.168.1.199
My router's IP is 192.168.1.99
I have assigned port forwarding for my Lacie (192.168.1.199) for ports
20, 21, 25, 80, and 443.
I have tried other setups but no help. Please help!!!
Happy New Year!!!
Solved!
Go to Solution.Scrooge... thanks!
My NAS has ftp enabled. Access to the network is excellent throughout my local network. Every PC, wirelessly, can access everything on the NAS without any problem. Even when using the web browser using the IP or the dyndns.org assigned to the NAS. (I signed up for a free dynDNS)
The NAS can be accessed throughout the local network using explorer (under the network directory) and also by mapping the drive. The NAS can also be access using the web browser by either through its assigned IP (192.168.1.199) or by using the NAS's dyndns.org web address (web access requires login since it accesses the Network Space Max web page) - both by http and/or by ftp
My problem is accessing it through the internet outside my local network, i.e. from my work place or any other place away from home. The ability to access my data away from home is what I really wanted to be able to do.
"Open the setup page of the router and go to Status tab. Note down the Internet IP address.
Open the Internet browser and in the address bar type http://Internet_IP_address:21 or ftp://Internet_IP_address .
See if that works for ftp server."
Using the router's IP address for both format, http and ftp - I am not getting connected, even in my local network. Using NAS's static IP 192.168.1.199, I am able to access only using the ftp format. http://192.168.1.199:21 does not take me anywhere, but without the :21 takes me to the login page.
Again, thanks for all your help.... I am lost and I need your HELP!
v/r,
abelts -
I bought a new imac running Loin with Office 2011. I am the only mac in the office and the Server we use to access emails runs exchange 2003 and my IT person says the imac is not compatible with the server. The server does not want to let me access using any email software other than webmail access through our website. It looks as though 2011 is not compatible with 2003 per some searches online, but what are some options I have to gain full access again? I purchased parallels in hopes that this my help and I am able to use remote desktop connection to log on to server but can not drag and drop files I need. There is a shared drive on that Server we all use to exchange files.
The two main issues are gaining access to my email again and ability to drag and drop files from mac to pc. I hope this is enough info to get some solutions.
PS - IT person says my iMac's IP is what his server does not understand so that is why I can not login.Office 2011 is not compatbile with Exchange 2003.
I suggest you post further Office related questions on Microsoft's own forums for their Mac software:
http://answers.microsoft.com/en-us/mac -
How-do-i-configure-guest-wifi-access-using-2504-wlc-fortigate-utm-l3-device
Dear All
I have a 2504 Wireless Controller with multiple radios attached. I currently have a "private" WLAN configured (taking ip from windows server based DHCP of Range 192.1681.0/24 ) and working, but I need to add a Guest/Public WLAN which should take the IP from Other DHCP Configured on Fortigate UTM of range 172.16.0.0/24.
We have one SG300 switch in the office and the rest are basic switches.
Our firewall/router is a Fortigate UTM 240D
Find the attached network diagram for the issue.
Is there a SIMPLE way to enabling guest access that doesn't require VLANS (or are VLANS easier than I'm making them)?
Thanks.
- See more at: https://supportforums.cisco.com/discussion/12473186/how-do-i-configure-guest-wifi-access-using-2504-wlc-fortigate-utm-l3-device#sthash.aj1XcWI0.dpufComplete these steps in order to configure the devices for this network setup:
http://www.cisco.com/c/en/us/support/docs/wireless-mobility/wireless-vlan/70937-guest-internal-wlan.html
Configure Dynamic Interfaces on the WLC for the Guest and Internal Users
Create WLANs for the Guest and Internal Users
Configure the Layer 2 Switch Port that Connects to the WLC as Trunk Port -
Using a hierarchy but also showing work orders that are not in hierarchy
good morning bi people,
i have a requirement to show data from a hierarchy which includes Operation and Maintenance information. for example it has an account broken into labour/material/trucking and below this is the pm acivity type and secondary cost element (concatenated). this hierarchy is a manually created hierarchy that is uploaded to BW and is not in ECC. The users do not want to see the concatenated field at the end of the hierarchy, but instead, want to see the Work Orders that have the PM activity types.
At the present time, we have the report using the hierarchy but we need the work orders to replace the pm activity type/secondary cost element concatenated field. the work order field is a free characteristic and when we drag in the work order in analyzer, it works correctly.
1) is this possible to use the hierarchy and somehow map the work order field to the end of the hierarchy within crystal?
2) do you have a suggestion to change the hierarchy, without being a manual nightmare?
all conversations are welcome.
ErikGood Day Ingo,
i have created a word document with screen shots of the hierarchy from BW, a screen shot of the BEx showing the free characteristic of Maintenance Order and a screen shot of the crystal report with the PM Activity type concatenated to the Cost Element. Once again, we do not wish to see the concatenated field, but rather see the Maintenance orders that have a PM Activity type the same as the concatenated field.
here is the link.
https://docs.google.com/viewer?a=v&pid=explorer&chrome=true&srcid=0B1j5hXTptfntYWI1MDUzNGEtY2MxNy00YmMzLWJjZjEtZDA4OGZiYmMyNzFh&hl=en&authkey=CKq4xcgJ
thanks Ingo,
Erik -
Dump - Access using NULL object reference is not possible!!!
Hi,
I'm using the BCS class for sending HTM format email so i use the below code for that its working,
DATA: gr_document TYPE REF TO cl_document_bcs,
gr_document = cl_document_bcs=>create_document(
i_type = 'HTM'
i_text = t_html
i_importance = '5'
i_subject = gc_subject ).
Next task is to send the image so i'm creating an another object to the same class, below code
*Image from MIME
DATA: o_mr_api TYPE REF TO if_mr_api.
DATA is_folder TYPE boole_d.
DATA l_img1 TYPE xstring.
DATA l_img2 TYPE xstring.
DATA l_loio TYPE skwf_io.
DATA: lo_document TYPE REF TO cl_document_bcs.
IF o_mr_api IS INITIAL.
o_mr_api = cl_mime_repository_api=>if_mr_api~get_api( ).
ENDIF.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/tick.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img1
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/Delete.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img2
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
*Convert XSTRING to ITAB
DATA :lt_hex1 TYPE solix_tab,
lt_hex2 TYPE solix_tab,
ls_hex LIKE LINE OF lt_hex1,
lv_img1_size TYPE sood-objlen,
lv_img2_size TYPE sood-objlen.
CLEAR : lt_hex1, lt_hex2, ls_hex, lv_img1_size, lv_img2_size.
WHILE l_img1 IS NOT INITIAL.
ls_hex-line = l_img1.
APPEND ls_hex TO lt_hex1.
SHIFT l_img1 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
WHILE l_img2 IS NOT INITIAL.
ls_hex-line = l_img2.
APPEND ls_hex TO lt_hex2.
SHIFT l_img2 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
*Findthe Size of the image
DESCRIBE TABLE lt_hex1 LINES lv_img1_size.
DESCRIBE TABLE lt_hex2 LINES lv_img2_size.
lv_img1_size = lv_img1_size * 255.
lv_img2_size = lv_img2_size * 255.
*Attach Images
clear: lo_document.
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img1' " Attachment Title
i_attachment_size = lv_img1_size " Size of Document Content
i_att_content_hex = lt_hex1 " Content (Binary)
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img2' " Attachment Title
i_attachment_size = lv_img2_size " Size of Document Content
i_att_content_hex = lt_hex2 " Content (Binary)
but it throws the dump " Access using NULL object reference is not possible" when i tries to access for method add_attachment...
Thanks,
SivaYes there is commit work after that, Below code
gr_document = cl_document_bcs=>create_document(
i_type = 'HTM'
i_text = t_html
i_importance = '5'
i_subject = gc_subject ).
*Image from MIME
DATA: o_mr_api TYPE REF TO if_mr_api.
DATA is_folder TYPE boole_d.
DATA l_img1 TYPE xstring.
DATA l_img2 TYPE xstring.
DATA l_loio TYPE skwf_io.
DATA: lo_document TYPE REF TO cl_document_bcs.
IF o_mr_api IS INITIAL.
o_mr_api = cl_mime_repository_api=>if_mr_api~get_api( ).
ENDIF.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/tick.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img1
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
CALL METHOD o_mr_api->get
EXPORTING
i_url = '/SAP/PUBLIC/ZDEMO/Delete.png'
IMPORTING
e_is_folder = is_folder
e_content = l_img2
e_loio = l_loio
EXCEPTIONS
parameter_missing = 1
error_occured = 2
not_found = 3
permission_failure = 4
OTHERS = 5.
*Convert XSTRING to ITAB
DATA :lt_hex1 TYPE solix_tab,
lt_hex2 TYPE solix_tab,
ls_hex LIKE LINE OF lt_hex1,
lv_img1_size TYPE sood-objlen,
lv_img2_size TYPE sood-objlen.
CLEAR : lt_hex1, lt_hex2, ls_hex, lv_img1_size, lv_img2_size.
WHILE l_img1 IS NOT INITIAL.
ls_hex-line = l_img1.
APPEND ls_hex TO lt_hex1.
SHIFT l_img1 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
WHILE l_img2 IS NOT INITIAL.
ls_hex-line = l_img2.
APPEND ls_hex TO lt_hex2.
SHIFT l_img2 LEFT BY 255 PLACES IN BYTE MODE.
ENDWHILE.
*Findthe Size of the image
DESCRIBE TABLE lt_hex1 LINES lv_img1_size.
DESCRIBE TABLE lt_hex2 LINES lv_img2_size.
lv_img1_size = lv_img1_size * 255.
lv_img2_size = lv_img2_size * 255.
*Attach Images
create object lo_document type cl_document_bcs.
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img1' " Attachment Title
i_attachment_size = lv_img1_size " Size of Document Content
i_att_content_hex = lt_hex1 " Content (Binary)
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'png' " Document Class for Attachment
i_attachment_subject = 'img2' " Attachment Title
i_attachment_size = lv_img2_size " Size of Document Content
i_att_content_hex = lt_hex2 " Content (Binary)
"Add document to send request
CALL METHOD gr_send_request->set_document( gr_document ).
TRY.
CALL METHOD gr_send_request->SET_SEND_IMMEDIATELY
EXPORTING
I_SEND_IMMEDIATELY = 'X'.
* CATCH CX_SEND_REQ_BCS INTO BCS_EXCEPTION .
**Catch exception here
ENDTRY.
DATA: LO_SENDER TYPE REF TO IF_SENDER_BCS VALUE IS INITIAL.
TRY.
LO_SENDER = CL_SAPUSER_BCS=>CREATE( SY-UNAME ). "sender is the logged in user
* Set sender to send request
gr_send_request->SET_SENDER(
EXPORTING
I_SENDER = LO_SENDER ).
* CATCH CX_ADDRESS_BCS.
****Catch exception here
ENDTRY.
"Send email
CALL METHOD gr_send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = gv_sent_to_all ).
IF gv_sent_to_all = 'X'.
WRITE 'Email sent!'.
ENDIF.
"Commit to send email
COMMIT WORK.
"Exception handling
CATCH cx_bcs INTO gr_bcs_exception.
WRITE:
'Error!',
'Error type:',
gr_bcs_exception->error_type.
ENDTRY. -
Need Recommendation of Online Sources in Learning to Use the Relational DBs
Please recommend some online sources in learning to use the relational databases; such as the ways relational databases are different from flat files, how to retrieve data from relational database tables. Thank you.
Actually I figured the OP was looking for a source that would instruct one in building ones own database rather than using an existing one.
Myself I would just buy a book (or read the one I already have.) I wouldn't expect to find to many sources like that online althoug one might find some college course materials for a class. -
No internet access using manual TCP/IP settings after 10.4.6
I stopped being able to access the internet with manual TCP/IP settings in the Network Preferences after updating from 10.4.5 -> 10.4.6.
When I change settings to use DHCP everything works fine, but I need to get the manual settings working as I use them quite often when configuring/setting-up routers.
This happens with both the AirPort and Ethernet interfaces, so it doesn't matter which interface I use to connect through.
My network Locations with manual TCP/IP settings have worked fine with 10.4.5, under the same networking hardware (routers, cables, etc...).
This occurs both at home (with my Linksys wireless router) and at work (with a DrayTek router).
At home, this problem occurs with both my PB12 and my wife's iBook12, after the 10.4.6 update was applied.
At work, all Windows laptops can connect to the internet using manual TCP/IP settings, but not my PB12.
Example of my settings:
- IP: 192.168.1.99
- Mask: 255.255.255.0
- Router: 192.168.0.1
- DNS: <empty>
- Domains: <empty>
Already tried, without success:
- verified disk -> no errors found on disk!
- repaired permissions, using Disk Utility, rebooted and tested -> no connection!
- tried with DNS=192.168.0.1 -> no connection!!
- tried with DNS=[my ISP primary dns] -> still nothing!!!
- even tried reapplying the combo update 10.4.5 -> of course, it didn't let me, as I'm now in 10.4.6!
Any thoughts or ideas to fix it and make it work in 10.4.6?
... other than archive&install, in order to downgrade!
PB12'' @ 1,33 GHz w/ 768MB RAM Mac OS X (10.4.6)Yes, buy I also state in my original post that I:
- tried with DNS=[my ISP primary dns] -> still nothing!!!
but yes, I probably should have titled it "No network access using..." (posting as 4:30 AM was probably not the best idea :D)
I understand I might have been a bit clumpsy posting my problem and appreciate everyone's corrections to what I wrote, but trust me that I have done a lot of tests and spent many hours on this... Bear in mind that I am using a network Location with manual definitions that was working before the update!
Anyway, as it happens, the likely culprit now seems to be more of a 3rd party software's inability to deal with 10.4.6 rather than the 10.4.6 itself!
I've disabled/unistalled/turnned off/deleted (depending on the app) anything NOT Apple that had anything to do with networking, be it for monitoring, controlling or managing (just to name a few: Little Snitch, Menu Meters, BrickHouse, etc, etc, etc...).
The Location with the manual settings is now working fine (at least at the office).
Over the next week or so I'll incrementaly re-install those 3rd party tools (which were most likely not up-to-date anyway) and see if something breaks at some point... but won't put much effort into it -- just happy to see it working again!
I'm closing this for now, as I don't have any more time for it (work is pilling up!)... If I manage to find out which version/app combination was causing the problem I'll post it back here! -
My BB9810 refuse to load OS7.1 software on my phone after the download has completed. My phone has freezed/stucked since morning. Pls urgent help/assistant needed as I can not access/use my phone for over 24hrs now.
Hi there,
Use the method described in the link below to get back up and running:
http://supportforums.blackberry.com/t5/Device-software-for-BlackBerry/How-To-Reload-Your-Operating-S...
I hope this info helps!
If you want to thank someone for their comment, do so by clicking the Thumbs Up icon.
If your issue is resolved, don't forget to click the Solution button on the resolution! -
How to use Vendor Hierarchy in Vendor Rebate Agreements
Hi Friends,
I need to use vendor hierarchy in vendor rebates agreements.
Here are some inputs from my end so far I have done:
Customizing Settings for vendor hierarchy and rebate agreement (agreement type 3000 and condition types A003/ A004) have been done.
While creating the PO after creating rebate agreement (MEB1) I am able to see all higher partner functions (2A,2B,2C,2D) at header level in PO under partners.
I have (say ) 3 vendors V1, V2, V3 (V1 being highest) set up in vendor hierarchy (MKH1).
My requirement is; if my company make any rebate agreement with vendor at any node below the highest in the vendor hierarchy then that business volume should be taken in consideration for rebate purpose with the vendor at higher level while making any agreement with him.
I request you to please let me know how to set up this.Hi lvshaolong,
Thanks a lot for your reply.
I believe I have not misunderstood the business scenario.
But may I request you to tell me the process steps for the senario you told which is "Normally , you define condition with highest node in hierachy and then you can refer to it when you do biz with the lower nodes". How vendor rebate process takes place this scenarion (I mean process flow).
This might help me to find some solution further.
More input from my end:
When I am creating the PO against a vendor included in the vendor hierarchy(after agreement), rabate condiion A003 or A004 is not appearing in pricing and hence during BV comparison,system does not find any data to update.
Regards,
Munish
Maybe you are looking for
-
SAP Easy DMS Error in Searching a Document.
Hello Guru, A user can log in in SAP Easy DMS, but when doing the search on it he gots error pop-up message "The parameters is incorrect" how can we solve this he cannot search any document in his easy DMS.
-
Erased all content on 3G but now won't sync with iTunes. Error states, "This iPhone cannot be used because the Apple Mobile Device service is not started." I don't want phone service on this old 3G. Just want to use it as an iTouch. Any suggestions?
-
Hello, I´m building a Windows 8.1 (with Update 1)-Image for my Company and want to customize IE11. Everything works fine, beside two things: 1. In my IEAK-Package I add Google as search provider and set it to default. The IE-branding-package is appli
-
SharePoint workspace shows error of the total file size limitation has been reached
Hi, An error occurs while syncing to a doc library : why I am having this error can you please advise? How can I avoid this in future? Thanks Gaurav Gaurav Vekaria
-
ALV grid disable right click options
Hi experts, Iam working on <b>normal</b> ALV grid. In the output of the ALV, if we click right click, we can see 'Cut', 'Copy text', 'Insert with Overwirte' options. How can i disable(or remove) these 3 options? Pls give me suggestions Reward guarant