Display ERP object from business context of service request

Hi Experts,
I have a requirement to display a custom business object in ERP from the business context tab of the service request. The custom business object is added as a link to the service request. The display of standard BOR object works fine, but for the custom business object, when the user clicks on the link nothing happens.
I am using CRM 7.1 (CRM 7.0 with EHP1) and ECC 6.0, no EHPs.
Thanks in advance
Prabhas

If you are using JWSDP 1.3, here is how you can do it. However this is an internal API, specific to Sun's JAX-RPC implementation and may change in the future. Anyway, here is how you do it.
If you service endpoint implements javax.xml.rpc.server.ServiceLifecycle interface, then you can keep a copy of javax.xml.rpc.server.ServletEndpointContext in init() method. In the actual method invocation, you can obtain javax.xml.rpc.handler.MessageContext from the ServletEndpointContext. And then invoke getProperty on the message context to return HttpServletRequest as follows:
HttpServletRequest request =
(HttpServletRequest) messageContext.getProperty(
com
.sun
.xml
.rpc
.server
.http
.MessageContextProperties
.HTTP_SERVLET_REQUEST);
Hope this helps.
-Arun

Similar Messages

  • Link action profile generated mails to Business context of service ticket

    Hi,
    how to link action profile generated mails to business context of service ticket.
    The business context links emails sent manually from the e-mail function on the navigation bar, but automated emails that are sent using email actions (post processing frame work u2013 actions and action profiles), donu2019t get linked to the service ticket.
    Thanks in advance
    Madhav.

    Alternatively, if we could send all file attachments that would be a start, but ideally we'd like to send all the contents of the Business context as separate attachments.
    Thanks!
    Andrew G.

  • Transport error: "Only edit objects from package CL in local requests"

    I have made changes to an SAP original program as per Note 1096366 on SAP's service web site. The program is an Include program (LCLCMFMZ). I have assigned it a transport number, but it keeps trying to make the target local. When I change the target to DEV, it will not transport and I get the following error:
    "Only edit objects from package CL in local requests"
    Does anyone know what this error means?
    Thanks.

    Thanks Nick,
    but I think I have figured it out. I needed to create a transport of copies (from se09) and include this object in that transport (right click and choose 'Include object...'). Then back to se01 and display all transportable object (including transport of copies). Then select my transport of copies, choose a target system (from double clicking and going to properties). Only then would it let this object get transported.

  • Error : Only edit objects from package ZSD in local requests

    Hi Experts,
    We are modifying all Z-programs to unicode enabled programs in ECC6.0 Upgradation. While doing this we are not able to save it as a transportable request. It displays error as "Only edit objects from package ZSD in local requests".
    So can anyone tell me how to save it as a transportable request.
    Thanks,
    Ranjith C.

    Hi,
    two ways:
    1. change the transport type: create transport type copy in se01 and copy all mentioned objects to that transport
    2. better way: correct development class and transport layer
    case a.  target system was not definied (not known to TMS) or is empty
    case b.  source system (original system for objects) not known to TMS
    case c.  objects assigned to local package (former local development class)
    etc.
    If you don't understand this explanation, just use one of Z transport layers showed in stms, by changing the transport layer in the definition of the package (se80) to shown in STMS (link name from source to targed system)
    Kind regards,
    Mirek

  • Only edit objects from package ZPACKAGE in local requests

    Hi Experts,
    I was adding a secondary index to a Ztable present in a package ZPACKAGE. When I tried to save in a workbench request, I got the error message "You cannot use request XXXXXX". I then created a local change request where the target system is not mentioned in the transport request. I was able to save the index and later I mentioned the target system. When I tried to release the transport request, I get the message "Only edit objects from package ZPACKAGE in local requests". Kindly suggest what can I do save the changes in a transport request and release it.
    Thanks

    Check out the transport layer and target system for that transport layer. As someone suggested, talk to your basis.
    This is most common when you have the actual table in temp folder but the index stored in Zpackage.
    I would first check my objects package to make sure that they are in right package. If everything @ right place, then i will check the package transport layer and software component then check the 'use access' of the package. if the package is good then check the transport path and target systems for each transport later.

  • Edit objects from package ztms in local request

    Hi ,
    I am checking Inconsistancy check for a Transport Request, it showing error as , " Edit objects from package ztms in local request.". can anyone please help me in resolving this error.
    regards,
    Govind Nagotla

    Hi,
    the reason may be, that development class ZTMS has an invalid or unknown transport layer in table TDEVC (look at field PDEVCLASS), or the whole class is unknown in your system, if the object comes from a foreign home system!
    Regards,
    Klaus

  • ClassCastException while passing object from one context to another

    I am hoping that someone will bear with me as I think it is my knowledge of classloaders that is tripping me up. I am using Spring and have a SecurityContextImpl object that I want to pass from one web app (WA2) to another web app (WA1). In WA2 I do the following:
    ServletContext wa1Context = getServletContext().getContext("WA1");
    wa1Context.setAttribute("SPRING_SECURITY_CONTEXT" , SecurityContextImpl);WA1 then tries to get the SPRING_SECURITY_CONTEXT and cast it to a SecurityContext object. This is where I get the ClassCastException. I have:
    crossContext="true"in my context.xml fragment. My reading tells me that I may be able to get around this by copying all the spring jars into my Tomcat lib folder but I seem to have to copy so much in there (Spring, hibernate, atomikos etc.) that it does not seem to be a good solution; I gave up before copying all the dependencies it asked for. Is there another way around this problem?
    What I really want to do is find an easy way to copy this one object from WA2 into WA1.

    Thanks for taking the time to test this. I also tried with a String and was successful but still cannot get it to work with my SecurityContextImpl. I also tried passing a String wrapped in a custom bean with a single string property. I get the same ClassCastException. I think that using a String works because it is native to the JVM and somehow bypasses the class loading issue but as I say, my knowledge of classloaders is null.
    Here is the exact code I am running in WA1 and WA2:
    In WA2 (context is /forum):
    ServletContext servletContext = httpRequest.getSession().getServletContext().getContext("/");
    servletContext.setAttribute("SPRING_SECURITY_CONTEXT", httpRequest.getSession().getAttribute("SPRING_SECURITY_CONTEXT"));
    logger.debug("It was of type [" + httpRequest.getSession().getAttribute("SPRING_SECURITY_CONTEXT").getClass().getName() + "]");In WA1 (A JSP sitemesh decorator with context "/"):
    Object object = getServletContext().getAttribute("SPRING_SECURITY_CONTEXT");
    System.out.println("IN DECORATOR, OBJECT IS OF TYPE [" + object.getClass().getName() + "]");
    SecurityContext securityContext = (SecurityContext) object;The log output is:
    DEBUG uk.co.prodia.prosoc.security.spring.cas.login.CheckDecoratorKnowsAboutLogin  - It was of type [org.springframework.security.context.SecurityContextImpl]
    IN DECORATOR, OBJECT2 IS OF TYPE [org.springframework.security.context.SecurityContextImpl]

  • Problems returning complex objects from a php data service

    either the data services tool is buggy or i am doing something wrong. here is the code:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/halo"
         minWidth="1024" minHeight="768"
         xmlns:personservice="services.personservice.*"
         initialize="init()">
         <fx:Script>
              <![CDATA[
                   import mx.rpc.events.ResultEvent;
                   import mx.controls.Alert;
                   import mx.collections.ArrayCollection;
                   public var people:ArrayCollection;
                   private function init():void {
                        getPeopleInMyWorldResult.token = personService.getPeopleInMyWorld();
                   protected function getPeopleInMyWorldResult_resultHandler(event:ResultEvent):void {
                        people = new ArrayCollection(event.result as Array);
              ]]>
         </fx:Script>
         <fx:Declarations>
              <s:CallResponder id="getPeopleInMyWorldResult" result="getPeopleInMyWorldResult_resultHandler(event)"/>
              <personservice:PersonService id="personService"
                   destination="PersonService"
                   endpoint="http://localhost/photoapp/Test3-debug/gateway.php"
                   fault="Alert.show(event.fault.faultString)"
                   showBusyCursor="true"
                   source="PersonService"/>
         </fx:Declarations>
    </s:Application>
    <?php
    class Person {
         public $name;
         public $cars;
    class Car {
         public $year;
         public $make;
         public $model;
    class PersonService {
         public function getPeopleInMyWorld() {
              $person1 = new Person();
              $person1->name = "John Doe";
              $car1 = new Car();
              $car1->year = 2005;
              $car1->make = 'audi';
              $car1->model = 'A6 Quattro';
              $car2 = new Car();
              $car2->year = 1970;
              $car2->make = 'datsun';
              $car2->model = '510';
              $person1->cars = array($car1, $car2);
              $person2 = new Person();
              $person2->name = "Jane Doe";
              return array($person1, $person2);
    create a new "flex" project in FB Beta1 with a php server. Setup the application and php script as normal, then configure the return type for the getPeopleInMyWorld function. I created a new return type called "Person" and was quite please to see that FB automagically created a "Cars" class with the all the right properties.
    Unfortunately, if you run the code (try debug mode and put a breakpoint on the result handler) you'll notice that "john doe" has lost his cars and that you also get the silent (check console) error:
    TypeError: Error #1034: Type Coercion failed: cannot convert []@1226bc49 to mx.collections.ArrayCollection.
    any ideas??
    i can get this to work by using json, but it's extra work, the com.adobe.serializers.json.JSONDecoder has little documentation, and the method outlined above is just begging to work.
    so, how are the rest of you getting complex data back from your servers? json?? amfphp?? xml (but surely not)??
    also, since i'm here discussing data services, if any adobe ppl are about, please throw one extra voice behind the following feature requests:
    1) support for optional service call arguments (http://bugs.adobe.com/jira/browse/FB-19659)
    2) a button for automatically 'generating service calls' from within the data services panel.
    thanks,
    - e

    Thank you Gaurav for pointing me in the right direction. There was some debate in the blogs as to which data transferring method (amfphp, json, or xml) was best. See
    http://blogs.adobe.com/mikepotter/2006/07/php_and_flex_js.html
    and
    http://www.5etdemi.com/blog/archives/2006/12/clearing-the-fud-on-amfphps-speed-versus-json -and-xml/
    I used json yesterday
    php:  json_encode(array($p1, $p2));   // observation: you only have to encode once as opposed
                                          // to using amf on each array...
    FB:   private var jsonD:JSONDecoder = new JSONDecoder();
          var jsonString:String = {{{return result from service call}}}
          myPeople:ArrayCollection = jsonD.decode(jsonString, services.personservice.Person);
    Note that in FB you can use the services.personservice.Person class as an optional argument in the jsonD.decode function. This class can be automatically generated using FB's built-in data service's panel when you try to configure the return type (as I described above). The json data should unserialize correctly with Cars objects automagically created and everything (a huge time saver!!).
    It worked for me, though I'm not sure how deep the unserialization process is capable of going (objects within objects w/in objects, for example). Also I had some trouble with adobe's jsonDecoder; it had trouble eating (uhm parsing) hollow objects (i.e. objects with null properties), whereas the php_encode / php_decode handled these objects w/o fail.
    Anyway, will be reading up on amf. Tanx again Gaurav,
    - e

  • Copy of Business Transaction (CRM Service Request)

    Hi Forum,
    I created a transaction that uses the CRM Service Request as leading Transaction Category. I configured the IMG step "Copying Control for Business Transacation" in order to copy the transaction as a follow-up.
    The problem is that the transaction does not appear in the list when we choose the link  "create follow-up".
    Any idea ?
    Thanks a lot !!!

    1. Activate Copying Control of Activities
    CRM - Transactions - Settings for Activities - Activate Copying Control of Activities
    This will cause that only transactions defined in your Business Transaction Profile (which is assigned to your Business Role and defined in CRM - Interaction Center Webclient - Business Transaction - Define Business Transaction Profiles) are visible in dropdown list.
    2. Define Copying Control of Transaction Types
    CRM - Transactions - Basic Settings - Copying Control of Transaction Types - Define Copying Control of Transaction Types
    Here select Source Transaction and choose Target Transaction.
    Always follow CRM Best Practices documentation as all of the customizing steps are described there...
    Link - http://help.sap.com/bp_crmv12007/CRM_DE/HTML/index.htm

  • Installation Details from Charges tab in Service Request

    Hi,
    I have a question about filling out the installation details in the Charges tab of the service request form. While doing RMA I know that we can provide the return item instance details in the charges tab. But the question is if the returned item is a sub component I need to provide the Parent Instance details also. Where do I enter that on the charges tab? Is there a way to enter the parent instance information or not?
    Can you please suggest alternate solutions if any?
    thanks
    Praveen

    hi ,
    This is related to query,Sales Order from Service Request screen.
    go to tools...> quick order............> sales order
    rgds,
    vijay Thakre
    [email protected]

  • Any FM to Read Documents from transaction code CRMD_ORDER(Service Request)

    Hi All,
    Please advice, if any function module to read(extract) Document attached to a created Service Request using Transaction code "CRMD_ORDER". The document is stored in the header level "DOCUMENTS" tab. My requirement is to read the documents stored in this tab and then attach them to a mail. Please do help.
    Thanks
    Nagesh Thanneeru.

    Hi All,
    Can you please tell me what are the input parameters for this function module.
    This is for service order item type where the document is attached.
    Is there a function module to read these details.
    Regards,
    Dhruv

  • ODM not displaying system objects from remote machine

    Hi,
    When I connect to OID using ODM in the local machine, I was able to see the system objects. It seems everything is working. But when I access using a remote machine with same userid(orcladmin), I was able to connect to the machine but I cant see the system objects. Only menu available is Operation & crate objects which are under this menu.
    Any hints!!!
    Thanks

    Hi,
    Have a look:
    http://blogs.technet.com/b/askperf/archive/2012/04/18/task-scheduler-error-a-specified-logon-session-does-not-exist.aspx
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/a7853ac3-6c48-4615-896a-e306067ab804/net-use-via-powershell-returning-a-specified-logon-session-does-not-exist-it-may-already-have-been?forum=winserversecurity
    Regards,
    Rafic
    If you found this post helpful, please give it a "Helpful" vote.
    If it answered your question, remember to mark it as an "Answer".
    This posting is provided "AS IS" with no warranties and confers no rights! Always test ANY suggestion in a test environment before implementing!

  • Help with displaying an object from one class to a text box in another

    Hi everyone,
    Just a quick question
    I have a public class called Order which is in a processing folder;
    within this class I have a method which gets a sold basket (which is just a list of items sold)
    and adds it to another array list;
    public synchronized SoldBasket getOrderToPick()
    throws OrderException
    if (theWaitingTray.size()>0){
    thePickingTray.add(theWaitingTray.remove(0));
    System.out.print(""+toBePicked);
    return toBePicked;
    else{
    return null;
    The other class is a GUI which has a button called CHECK which is for the warehouse stock picker to see if any orders have been placed on the button I have this code;
    public void actionPerformed( ActionEvent ae ) // Interaction
    if ( theStock == null )
    theAction.setText("No conmection");
    return;
    String actionIs = ae.getActionCommand();
    try{
    if ( actionIs.equals( Name.CHECK ) ){
    theOutput.setText(""+theOrder.getOrderToPick());
    catch(OrderException e){
    System.out.print(e);
    However I am still getting a null pointer exception any ideas??
    Thanks !!

    I don't see enough information here to be able to answer this question. Try
    1) posting code here with code tags by using the CODE button above the Message window and checking your post with the Preview tab before posting it.
    2) Posting a small bit of code that compiles without need for other files, classes or non-standard classes and illustrates your problem, an SSCCE.
    Good luck.

  • Remove object from TR

    Hi Expert,
    I want to remove DTP from TR , I accidently collected before I info cube and MP.Trying to stay in sequence...is there any problem if you add this object later in another TR ???
    Please advice on this.Thanks in advance
    Edited by: ramshri on Aug 18, 2011 11:50 PM

    Hi
    Just go to SE03,
    Under the folder, REQUESTS/TASK---
    Select UNLOCK Objects,
    Then ENTER your Transport Request
    Click Execute button
    Click Yes
    Then go to SE09,
    Expand the PArticular request with sign '+" on left hand side
    Then , look for the technical name as DTP_
    Select that ..by placing cursor over there, and then choose the DELETE button below the MENU option on the top of the screen where there is small ICON.
    Then again in SE09, Select the MENU Request/Task, look for the Object List which is at the last, and then expand by clicking the right arrow, and select LOCK OBJECTS from the CONTEXT MENU
    or
    Select the particular REQUEST by placing the cursor on it, and PRESS CTRL+F3
    Then you can add it another request if you want else create another etc..do as you like.
    Hope this helps you

  • SAP Cloud For Customer : Integration of Service Request to CRM  Issue

    Hello Team,
    We have CRM integration using HCI working for most of the standard objects running. But for "Service Request" we are not able to see replication initiating from C4C to CRM. We have setup the required Communication Arrangement and artifact on HCI. Ping test gives 405 error which is as expected. But when we save the new ticket replication to CRM is not initiated.
    Kindly throw some light on this so as to understand why this replication is not initiated.
    Please let me know if any configuration missing to replicate "Service Request" from C4C to CRM.
    Thanks & Regards,
    Mithun

    Hi Ravi,
    We are not getting any messages under "Business Communication Monitoring" and web service messages monitoring.  
    Can you please suggest me which are the all configuration/activities require in cloud for customer for "Service Request".
    We have maintained the Transaction Type for "Service Request" in Code List Mapping too, however we are clueless where we have to maintain the "Item Category" for "Service Request" and map to which standard "Item Category" in cloud.
    What is the initiate point to trigger the "Service Request" from C4C to CRM?
    Many Thanks,
    Mithun

Maybe you are looking for

  • External mouse scrolling not working

    The scrolling function of my external mouse does not work when the MacBook Pro is not plugged in with its powercord. The mouse buttons seem to be functioning.  So does as an external keyboard. My wife has the same problem (using 10.6.2 OS). There are

  • Mounting two HP LP2475w monitors to a dual monitor stand: Still use Quick Release plates?

    I have owned one HP LP2475w for a few years and like it so much I bought another one (refurbished). I have been using two screens for many years, but decided to get a VESA-compatible stand that supports both. After a lot of searching I settled on thi

  • When I test the web dynpro page, the browser does not display it !

    Hi all, I have (SAP EHP 2 for SAP NetWeaver 7.0) trial version installed in my laptop.  Lately, I took course NET310 about web dynpro.  I started doing the exercises but when I test my work, the browser (Internet Explorer 8) does not display the page

  • Why won't Elements 9 trial download

    I am trying to download a trial version of photoshop elements 9 to see how I like it before buying it and no luck for 2 days getting it to download.  Called support and they were NO HELP AT ALL!!!  The man who could barely speak english said not much

  • Please give the meaning of this 9.2.0.7

    please give the meaning of this 9.2.0.7 each number represents what?