Use of an application view for SAP R/3

Hello,
I created an Application View of my SAP R/3 backend and integrated it into Weblogic
Workshop.
I fire a request to the BAPI through the App View, but nothing happens. I thought
I get a response through the response event??? Maybe someone has an idea... here
the code:
import weblogic.jws.control.JwsContext;
import MySAPControllerControl.MySAPServiceRequest;
import MySAPControllerControl.MySAPServiceResponse;
import MySAPControllerControl.MySAPEventEvent;
* @jws:target-namespace namespace="com.js.sap"
public class SapService
* @jws:control
private MySAPControllerControl SAPController;
/** @jws:context */
JwsContext context;
* @jws:operation
public void CallSapConnector()
try
MySAPControllerControl.MySAPServiceRequest.PurchaseOrderGetDetail peter
= new MySAPControllerControl.MySAPServiceRequest.PurchaseOrderGetDetail();
peter.PURCHASEORDER = "4500006374";
peter.ITEMS = "X";
SAPController.MySAPService(peter);
catch(Exception ex)
System.out.println(ex.getMessage());
private void SAPController_onMySAPServiceResponse(java.lang.String requestID,
MySAPServiceResponse.PurchaseOrderGetDetailResponse PurchaseOrderGetDetailResponse)
String a = PurchaseOrderGetDetailResponse.PO_ITEMS.toString();
System.out.println(a);
System.out.println(requestID);
private void SAPController_onMySAPEvent(MySAPEventEvent.BAPI_PO_GETDETAIL
BAPIPOGETDETAIL)
System.out.println("Event:" + BAPIPOGETDETAIL.ITEMS);
private void SAPController_onAsyncServiceResponse(java.lang.Object asyncResp)
private void SAPController_onEvent(java.lang.Object event)
private void SAPController_onAsyncServiceError(java.lang.String asyncError,
java.lang.String asyncError2)
thanks for any response!
regards, uggar

can u pls tell me how u solved it
I am working on  Production system  when I go to rsa5 it displaying the msg
No valid application component hierarchy exists
Message no. R8053
Diagnosis
Currently no application component hierarchy ("APCO_MERGED", database table RODSAPPL and RODSAPPLT) exists in the system. This is required in BW so that the DataSources can be displayed correctly in the source system tree.
Procedure
Copy the application component hierarchy from the Content using transaction RSA9.
In development system I went to RSA9 & transferred the application componet then its asks or pkg name I have given the pkg  name also before use the datasrcs , I have transported the same thing to production before transporting the datasrcs but in production the application component herarachy did not get transported I think that why its giving the msg No valid application component hierarchy exists but my datasrcs got transported ,pls suggest me what has to be done
Should I import the same request in to production again
Or shall I run rsa9 again & transfer the application component hierarchy again & transport it to production id I do this will already transported datarscs have any effect in production

Similar Messages

  • Unable to create a new view for SAP UI5 in NWDS

    Hi UI5 Profis,
    I'm just getting started with SAP UI5 and wanted to create and run my first application using the UI5 Tools wirh NWDS. After having installed NWDS and the UI5 Tools
    I create new SAP ui5 project, but the wizard always run into error, when I want to create new view.
    Did someone already have the same issue?
    Thanks in advance,
    BR,
    Berenger

    Hi Berenger,
    Which is your NWDS version?
    It seems there is a bug on view creation with 1.8.8 version:
    1814417 - Patched version 1.8.8 of UI Development Toolkit for HTML5
    http://service.sap.com/sap/support/notes/1814417
    Kind regards

  • How to assign SmartForms to Application Forms for SAP ISU

    Hi Experts,
    We are going to use PWB for bill printing in SAP ISU.
    I have worked with ECC6.0 for PWB and seen that there is an option available to assign Smart Forms to the Application form in EFRM with selecting SmartForm option available in a dropddown. And for transaction EFCS creating FormClass the checkbox is available to make it usable for SmartForms.
    But we are using SAP R/3 4.6C. But these option i am not able to see in 4.6C.
    Can anyone guide how we can use and assign SmartForms for Release 4.6C.
    Thanks in advance.
    Ankur

    Thanks for the reply, but what about doing DML on other tables in other schemas. The DBA has created roles and granted permission to the user and they can do DML thru SQL plus without problem but when same operation is attempted thru Oracle forms ORA-40508 and object does not exist errors come up.
    How does a forms knows which tables in the database (under their own schema or on others to which they have been granted rights to) are availabel. Is there a property setting in the pallate or something in forms runtime which would recognize varoius users and then let them do DML on various tables under their or others's schema.
    Thanks in advance

  • How to use Results from Another Query for SAP BW universes

    Hi Everyone,
    I have two SAP BI universes.In my First universe I have Sales Doc no (dimension) and Orderqty (Measure) and in my second universe I have Sales Doc no(Dimension) and BillQty (Measure).
    Here in my first dataprovider I have 1200 rows of data and in second dataprovider I have 75,000 rows. The report should fetch only the BillQty details that matches to corresponding  Sales doc no in first data provider.
    I want to place all these fileds into a single report like as shown.
    (Datarpovider1)                (Datarpovider1)                    (Datarpovider2)
    *Sales Doc No*               Orderqty                           BillQty
    Here I am able to generate single report using merge dimension but it is leading to performance issues. I want to restrict the values at query level by passing the First dataprovider Sales doc no to second Data provider Sales doc number using Results from Anothery Query feature so that It can fetch only the matching records.
    I tried it but it was giving the follwing error:
    A filter contains a wrong value. You cannot run this query. (Error: WIS 00007)
    How Can I get rid of this error. Can we use Results from Anothery Query option for OLAP universe. Are there any limitation on it.
    All this I am doing in Webi Rich Client.
    Appreciate your help
    Thanks &in Advance
    Kiran Saka

    Hi Kiran,
    I think the filter has a wrong operand. For example, a filter with an empty constant, or a filter that deals with numeric values is defined with an alphanumeric value.Check out for this.
    Regards,
    Neeraj

  • Use Backup (Alternate) List View for Favorites/Wishlist

    Can anyone tell me, is it possible to use the alternate/backup list view item from a web app for the favorites/wishlist?  Right now, when some ads a webapp item (from within the detail view) to favorites, I'm getting the regular list view layout when I use {module_favorites,a,0,0} on the user account page.
    Thanks!
    Brian

    Couldn't find a way to use an alternate view so I reworked things with CSS.

  • How to write the CORRECT code to use Application View in WLI8.1

    Hi, guys,
    I try to use the WLI 8.1 released version now. and I deploy a Weblogic MQSeries
    dapter 8.1 on WLI 8.1. And have create a Application view which detail is like
    this:
    ID demo_testadapter_conn110
    Name conn110
    Description connect to MQServer 110 machine
    State Deployed
    Adapter Instance mqdemo_testadapter_conn110__Default
    And I create send/get message services in the defined Application view, and
    they are work because I test the services in WLAI design console.
    Then I try to write client code to use the deployed application view referenced
    by aiuser(adapter).pdf document. And my code is like this :
    Hashtable props = new Hashtable();
    // set the properties
    props.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    props.put(Context.PROVIDER_URL, "t3://localhost:7001");
    props.put(Context.SECURITY_PRINCIPAL, "mqadmin");
    props.put(Context.SECURITY_CREDENTIALS, "weblogic");
    InitialContext initialContext = new InitialContext(props);
    com.bea.wlai.client.ApplicationView appView = new ApplicationView(initialContext,"testadapter_conn110");
    //com.bea.wlai.client.ApplicationView appView = new ApplicationView(initialContext,"mqdemo_testadapter_conn110__Default");
    ConnectionRequestInfoMap map = new ConnectionRequestInfoMap();
    //add ConnectionSpec properties
    //map.put("prop_name","prop_value");
    //put the connectionspec to a EIS
    //appView.setConnectionSpec(map);
    // Create a request document using the definition stored for this
    // Application View at deployment time.
    IDocumentDefinition requestDocumentDef = appView.getRequestDocumentDefinition("sendmsg");
    SOMSchema requestSchema = requestDocumentDef.getDocumentSchema();
    DefaultDocumentOptions options = new DefaultDocumentOptions();
    options.setForceMinOccurs(1);
    options.setRootName("ROOTNAME");
    options.setTargetDocument(DocumentFactory.createDocument());
    IDocument requestDocument = requestSchema.createDefaultDocument(options);
    // Fill in the request with some data. What you fill in depends on
    // the definition of the request document (i.e. its schema)
    requestDocument.setStringInFirst("//ROOT/data/Format","value");
    requestDocument.setStringInFirst("//ROOT/data/Content","this is a test");
    // Invoke the service and retrieve the response document
    IDocument responseDocument = appView.invokeService("sendmsg", requestDocument);
    // Dump the response document out as XML
    //System.out.println("GetSomeData: " + responseDocument.toXML());
    But when I run this code, a jndi exception occured:
    <2003-8-4 ÏÂÎç14ʱ43·Ö20Ãë CST> <Error> <HTTP> <BEA-101017> <[ServletContext(id=8732241,name=rootapp
    ,context-path=/rootapp)] Root cause of ServletException.
    javax.naming.NameNotFoundException: Unable to resolve 'AI_GLOBAL_testadapter_conn110_ApplicationView
    ' Resolved ; remaining name 'AI_GLOBAL_testadapter_conn110_ApplicationView'
    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:186)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
    and you can see I set the application view name like "testadapter_conn110" in
    my code, I use "conn110" and also applicaiton ID to try, also occur this excption.
    In the JDK document, the constructor of com.bea.wlai.client.ApplicationView
    showed I should use the 'Name' of the Application View to create a object, but
    it also throw a jndi exception.
    What's the problem ? Hope you guys can help me!!
    Regards,
    shannon

    Shannon,
    Obviously the stack-trace says that u r having some jndi lookup problems...
    just curious check if the JNDI tree of the hosting server (You can check it using
    the admin console) to see if u have your application view is binded.. maybe the
    app view is not binded properly..
    +arvind
    "Shannon Lee" <[email protected]> wrote:
    >
    Hi, guys,
    I try to use the WLI 8.1 released version now. and I deploy a Weblogic
    MQSeries
    dapter 8.1 on WLI 8.1. And have create a Application view which detail
    is like
    this:
    ID demo_testadapter_conn110
    Name conn110
    Description connect to MQServer 110 machine
    State Deployed
    Adapter Instance mqdemo_testadapter_conn110__Default
    And I create send/get message services in the defined Application view,
    and
    they are work because I test the services in WLAI design console.
    Then I try to write client code to use the deployed application view
    referenced
    by aiuser(adapter).pdf document. And my code is like this :
    Hashtable props = new Hashtable();
    // set the properties
    props.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
    props.put(Context.PROVIDER_URL, "t3://localhost:7001");
    props.put(Context.SECURITY_PRINCIPAL, "mqadmin");
    props.put(Context.SECURITY_CREDENTIALS, "weblogic");
    InitialContext initialContext = new InitialContext(props);
    com.bea.wlai.client.ApplicationView appView = new ApplicationView(initialContext,"testadapter_conn110");
    //com.bea.wlai.client.ApplicationView appView = new ApplicationView(initialContext,"mqdemo_testadapter_conn110__Default");
    ConnectionRequestInfoMap map = new ConnectionRequestInfoMap();
    //add ConnectionSpec properties
    //map.put("prop_name","prop_value");
    //put the connectionspec to a EIS
    //appView.setConnectionSpec(map);
    // Create a request document using the definition stored for this
    // Application View at deployment time.
    IDocumentDefinition requestDocumentDef = appView.getRequestDocumentDefinition("sendmsg");
    SOMSchema requestSchema = requestDocumentDef.getDocumentSchema();
    DefaultDocumentOptions options = new DefaultDocumentOptions();
    options.setForceMinOccurs(1);
    options.setRootName("ROOTNAME");
    options.setTargetDocument(DocumentFactory.createDocument());
    IDocument requestDocument = requestSchema.createDefaultDocument(options);
    // Fill in the request with some data. What you fill in depends
    on
    // the definition of the request document (i.e. its schema)
    requestDocument.setStringInFirst("//ROOT/data/Format","value");
    requestDocument.setStringInFirst("//ROOT/data/Content","this is a
    test");
    // Invoke the service and retrieve the response document
    IDocument responseDocument = appView.invokeService("sendmsg", requestDocument);
    // Dump the response document out as XML
    //System.out.println("GetSomeData: " + responseDocument.toXML());
    But when I run this code, a jndi exception occured:
    <2003-8-4 ÏÂÎç14ʱ43·Ö20Ãë CST> <Error> <HTTP> <BEA-101017> <[ServletContext(id=8732241,name=rootapp
    ,context-path=/rootapp)] Root cause of ServletException.
    javax.naming.NameNotFoundException: Unable to resolve 'AI_GLOBAL_testadapter_conn110_ApplicationView
    ' Resolved ; remaining name 'AI_GLOBAL_testadapter_conn110_ApplicationView'
    at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:186)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
    and you can see I set the application view name like "testadapter_conn110"
    in
    my code, I use "conn110" and also applicaiton ID to try, also occur this
    excption.
    In the JDK document, the constructor of com.bea.wlai.client.ApplicationView
    showed I should use the 'Name' of the Application View to create a object,
    but
    it also throw a jndi exception.
    What's the problem ? Hope you guys can help me!!
    Regards,
    shannon

  • Dynamic command execution fails in Crystal report viewer for parameters

    We are using the Crystal Report Viewer for the .Net Application on the client side.The reports are designed using Crystal Report XI R2.
    The issues that we are currently encountering is that, we are unable to load the combo-boxes in the pop-up for the parameters.
    All the reports have multiple commands and the variables are of 'dynamic' type.
    When the dialog box for requesting the pop-up comes up, It comes up empty even though they are linked to the respective commands.
    Also,For reports having multiple parameters we are unable to give a single dialog box to get in all the parameters.It appears as a series of prompts.
    Both,these issues are not encountered when the reports are launched via the Crystal reports developer tool.

    Hello Varun,
    I recommend to post this questionin the [dedicated NET forum|SAP Crystal Reports, version for Visual Studio;.
    This forum is monitored by qualified technicians and you will get a faster response there.
    Thank you for your understanding,
    Falk

  • Olive Mobile Viewer for tablet gives error message when downloading n Chicago Tribune for offline reading.

    When attempting to download the Chicago Tribune for offline reading using the olive mobile viewer for tablets, I get the message "An error occurred while downloading pleas try again.

    We don't support the "Olive Mobile Viewer" this is an application used by the Tribune to display their site. The Tribune help can be found at
    https://members.chicagotribune.com/help/
    "Feel free to call us at 1-800-TRIBUNE (1-800-874-2863), or email Bill Adee, VP/Digital Development & Operations (billadee at tribune.com).
    You can also get help via our Twitter or Facebook pages."

  • Application View : project , Invisible fields how can I active them again?

    Dear Gurus,
    in Application view : Project I cannot see and I cannot select from the setting 2 fileds :
    Grouping and Search Field, They seems disappeared!!!!,
    In other application view for example : Last Used Project the fileds are visbile!,
    I tryed to change the settings but I don't know what I can do because the fields aren't present ...
    somebody can help me?
    Best regards
    Lonati Vanessa

    Hi Vanessa,
    Probably in Application view: Projects, the UI elements which you have mentioend are suppressed.
    You can undo this by going to the context menu and and restoring the UI elements.
    Regards,
    Niraj

  • Crystal Reports background processing for SAP Business One 8.8

    Dear Partners,
    I have an SDK program developed in SAP Business One SDK that works in 2007, it calls crystal reports externally and can be executed as a background task using the windows schedular or from the command prompt.
    My problem is it does not work under SAP Business One SDK 2008 PL18 with SQL Server 2008, Visual Studio 2008.
    I receive the following message after this line in my code,"oReport.PrintToPrinter(CopyNo, False, 0, 0)".
    'CrystalDecisions.CrystalReports.Engine.LogOnException: Logon failed.
    Error in File XX_Report_Ver_0.01 {1A6620A2-5D73-49D2-9347-32ED068AA64E}.rpt:
    Unable to connect: incorrect log on parameters. ---> System.Runtime.InteropServices.COMException (0x8004100F): Logon failed.
    Error in File XX_Report_Ver_0.01 {1A6620A2-5D73-49D2-9347-32ED068AA64E}.rpt:
    Unable to connect: incorrect log on parameters.
       at CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetLastPageNumber(RequestContext pRequestContext)
       at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
       --- End of inner exception stack trace ---
       at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
       at CrystalDecisions.ReportSource.EromReportSourceBase.
       at CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
       at BGProductionRpt.ECR_Common.ECR_PrintReport(Int32 CopyNo) in C:\SDK Development\8.8\test\XX_Rpt\ECR_Common.vb:line 485'
    My Question is what Crystal Reports libraries or other method should I be using ?
    Crystal Reports 2008 for SAP Business One eg. 51038978.zip - downloaded from portal obviously dosn't contain the CrystalDecisions libraries.
    Crystall Reports 2008 - cr2008_sp3_fullbuild, cr2008fp33.exe, cr2008fp33_mm, cr2008fp33_clickonce - also download from the portal, the cr2008_sp3_fullbuild does contain the crystal decisions libraries.
    Finally other choices are crystal reports included with the visual studio 2008 and crystal reports full version direct from Business Objects.
    I have tried different versions of crystal decision libraries- eg, 12.0110 or 12.02 but still no joy.
    Also if I manage to get the report to fire what should the client be running eg, if they have the Crystal Reports 2008 for Business One do they also need to install the Crystal Reports Run time - cr2008fp33_clickonce.
    Any help would be appreciated.
    Thanks.

    Hi John
    Since the SDK works in 2007 it will be using the OLD DB access method.
    Change the Crystal report to use an OLE DB datasource rather than the SAP Business One data source.
    Regards
    Rob

  • Install agent on solaris 10 using agent deploy application?

    Hi all,
    I have installed 10g grid control on solaris 10 with new repository database on same machine.
    The OMS, and agent is running on grid host.
    Now I want to add other hosts (targets) into grid. For this, I have to install agent on target hosts. I am using agent deploy application method for installation of agent.
    It is giving error
    Istall --> Failed
    "Pre-Install Script is Not Executed, Install is Failed, Run root.sh is Not Executed, Post-Install Script is Not Executed, Collection of Logs is Success"
    version for agent and OMS is 10.2.0.1 and for repository database is 10.1.04
    any idea, how to troubleshoot this?

    Did you get answer? I had same problem on agent 10.2.0.4 deployment on linux 2.6.9-55.ELsmp.

  • BO Integration Kit for SAP License: Free for SAP Customers?

    Dear everyone,
    Can someone confirm me a news which I heard from an employee of Business Objects that based on a latest speech of Leo Apotheker (co-CEO of SAP), all SAP customers would be able to use the BO Integration Kit for SAP for free?
    Any restrictions on this license? Is this true?

    Hi Ryan.
    As the answer pls see information from this SAP Note:
    1398245 - Information about the licensing requirements for SAP Integration Kit - is it free to customers?
    regards,
    Yessen Sypatayev

  • "Application Help" for Solution Manager 4.0 pre SP 12 required

    Hello,
    where on the web I can find the application help for the SAP Solution Manager 4.0 in the version relevant for me (SP 10)?
    On help.sap.com I only find the help for SAP Solution Manager 4.0 SP12. But in SP12 there are some screens which are not in SP10. Therefore the help for SP12 does not tell me how to do it on SP10 (activating EWA).
    Where do I find the application help for SAP Solution Manager 4.0 SP10?
    Regards

    Hi,
    in the SAP Knowledge Shop for Customers and Partners (http://www.sap.com/company/shop) you can still order the Documentation DVD for SAP Solution Manager 4.0 with the material number 50077327. I expect this to be the one you are searching for.
    best regards
    Carsten

  • How Attributes declared in Component level can be used in All the views

    How Attributes declared in Component level can be used in All the views
    For Example :
    say :             context type ref to if_wd_context_node.
    is declared at component controller level and check box public is checked !!
    How can we use this any view in same WDP Component..
    For suppose : in this case
    We want to get the ref of child node using above declared attribute..
    How is it possible?
    Say in detail

    You can do this by doing the exact same like you did with the if_wd_context_node.
    1. Define attribute in Comp Controller and set it PUBLIC.
    2. Access the attribute over the reference of the comp controller, i.e. wd_this within the comp controller itself or wd_comp_controller within somewhere else in the component.
    So if you have, lets say, this defined as attribute in your comp controller:
    Z_MY_TABLE_REF  [X] TYPE REF TO [X] PUBLIC   CL_WD_TABLE.
    And then you want to catch the reference into a local variable within a method or the like within a view:
    DATA: lo_my_table_ref TYPE REF TO CL_WD_TABLE.
    lo_my_table_ref = wd_comp_controller->z_my_table_ref.
    Lekha has already said so as well, I don't really understand where the problem is
    Cheers, Lukas

  • Business Package for SAP SRM

    Hi experts,
    We have installed SAP ECC 6.0 with SRM addon on 2 differents mandants.
    Does someone knows if this configuration allows the use of the "Business Package for SAP SRM" into the SAP Portal ?
    After reading the on line documentation for SRM business package ( <a href="http://help.sap.com/saphelp_srm50/helpdata/en/dd/458a6764e84ff6b5e809b51c930678/frameset.htm">http://help.sap.com/saphelp_srm50/helpdata/en/dd/458a6764e84ff6b5e809b51c930678/frameset.htm</a> ), I feels that SRM plugin is not sufficient.
    Does someone can confirm ?
    Thanks in advance

    Hi Jean-Philippe,
    as far as I know, the business packages and the portal integration can only be
    used in a full SRM environment. The addon is restricted to several scenarios,
    specifically for Self Service Procurement.
    If you want to use all the features, you need to go for a full SRM Implementation.
    Cheers,
    Claudia

Maybe you are looking for