Webi @Prompt create MDX error

We are running a Web Intelligence report on an Universebased on a SAP BI7.0 query , when i use prompt filter result, it return MDX error. If i swich back to constant value , no errro occur. Please help...

This is the error message,
A database error occured. The database error text is: The MDX query SELECT  { [Measures].[D3FGYPFVIEMBV1Z91MAAZTTSA] }  ON COLUMNS , NON EMPTY CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( [0CALMONTH].[LEVEL01].MEMBERS,  { [0VENDOR__0COUNTRY].[Aruba] }  ), [0PLANT].[LEVEL01].MEMBERS ), [0MATERIAL__0MATL_GROUP].[LEVEL01].MEMBERS ), [0MATERIAL                     MC0].[LEVEL01].MEMBERS ) ON ROWS FROM [0PUR_C01/QR_0PUR_C01_TOPN] SAP VARIABLES [!V000004] INCLUDING [0ITM_CAT].[0] [!V000002] INCLUDING [0CALMONTH].[200204] : [0CALMONTH].[200912] [!V000003] INCLUDING [0PLANT].[0101] [VAR_TOPN] INCLUDING 10 failed to execute with the error Value Aruba for characteristic 0VENDOR__0COUNTRY unknown. (WIS 10901)
The universe is connect to BW query and this BW query have filter within. When parameter prompt, i need to select filter containt at BW query and webi filter.
[0VENDOR__0COUNTRY].[Aruba] is the prompt webi filter
i have test webi prompt by connect to BW infocube, its works.

Similar Messages

  • Web ADI - Create Document Error

    Hi Guys,
    I am trying to opening create document from Oracle Web ADI responsibility. But the following error is showing
    404 Not Found
    Resource /OA_HTML/oracle.apps.bne.webui.BneApplicationService not found on this server
    Regards,

    Hi tyro;
    Metalink in maintance now.. Until it bring up can you check below and see its helpful:
    http://forums.tangosol.com/forums/thread.jspa?threadID=967015
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=922255&tstart=0
    also see:
    http://apps2fusion.com/at/kv/320-web-adi-custom-integrators
    Regard
    Helios

  • Create new object (measure) with IIF function on BW Olap universe:mdx error

    hello
    i have a universe based on a BEX query
    i want to create a new object (a measure) with the IIF(,,) function
    i created the following select:
    <EXPRESSION>IIF(@Select(Currency Type\CurrencyTypeCode)="10",@Select(Key Figures\RevenueGlobalCurrency),@Select(Key Figures\RevenueLocalCurrency))</EXPRESSION>
    defined as number
    where
    CurrencyTypeCode is a dimension (character format)
    RevenueGlobalCurrency and RevenueLocalCurrency are measure (number format)
    i always have a parse which is OK but
    when i want to  use the object on a webi report i always have an MDX error : ...invalid MDX with .... (WIS 10901)
    and advise ?
    Thanks

    Hi Didier,
    Thanks a lot for your help.
    Now it works : i do not understand why
    i explain:
    the correct syntaxe of my new measure is :
    <EXPRESSION>([Measures].[4FVLHG7OAJMNY9WC06X6JLOZQ], [0CURTYPE].[10])</EXPRESSION>
    it does not works with my "L01 currency type" BO dimension
    ([0CURTYPE].[LEVEL01])
    when i had :
    -my universe is based on a BW BEX query
    -my universe has been automaticaly generated with the assistant
    -the Currency Type Class was define as below:
           - 1 BO dimension object : L01 Currency Type =>
    [0CURTYPE].[LEVEL01]
           - 3 BO detail objects : L01 Currency Type techName =>
    [0CURTYPE].[LEVEL01].[TECH_NAME]
                                              L01 Currency Type Key =>
    [0CURTYPE].[LEVEL01].[[20CURTYPE]].[Value]
                                             L01 Currency Type Long Name =>
    [0CURTYPE].[LEVEL01].[[40CURTYPE]].[Value]
    i always had a wrong mdx syntax error on the webi report
    i updated the class with the follow
         - 1 BO dimension object : L01 Currency Type =>
    [0CURTYPE].[LEVEL01] (idem)
           - 3 BO detail objects : L01 Currency Type techName =>
    [0CURTYPE].[LEVEL01].[TECH_NAME]  (idem)
                                              L01 Currency Type Key =>
    [0CURTYPE].[LEVEL01].[NAME] (updated)
                                             L01 Currency Type Long Name =>
    [0CURTYPE].[LEVEL01].[DESCRIPTION] (updated)
    then it was working
    Then i tried to reproduce from scratch and now it also works with the previous version of the class.
    I do not understand anything
    Is there something like a cache file of the MDX query (in RSRT, cache mode is set to inactive for the bex query) ?
    ps: this is the same if a use webi under infoview (java) or webi rich client...
    Edited by: Frederic Nez on Jan 19, 2010 6:35 PM
    (edit : there is mistake in the post : objects are always between [] even if it is not dispay => change objects to code mode)

  • WEBI Prompt with preset values

    Hello All,
    I have a requirement to create a prompt in WEBI which would display like below..
    "Dollar Denomination"
    This should have a preset of values
    "1"
    "1000"
    "1000000"
    When user executes the WEBI, the prompt should allow to select one value from the list of three values.
    I tried creating a prompt in query filter using" In List" option, but the default values are not populated. If I click "Set default values" and enter the three, those three values are selected by default.
    I want uses to select one of the value from these three values given above.
    Thanks
    Karthik

    Hello Rohit,
    Thanks for your reply. I tried both the suggestions but failed with errors
    In Universe, I created a dimension under the section "Key Figures" and named it "Dollar Denomination"
    and my formula for that was
    @Select(Key Figures\Dollar Denomination) In List @Prompt('Select Unit:','N',{1,1000,1000000},mono,constrained)
    It fails with parsing "Parsing Failed: Invalid Definition(UNV0023)
    With WEBI:
    I created a query filter with "Dollar Denomination" (that was blank dimension in the universe) and selected "Equal to" and selected as "Prompt" -> Clicked on the little question button and selected the following
    Prompt properties:
    Checked:
    Prompt with list of values
    Keep last values selected
    Check "Set default values"
    and keyed in
    Ones
    Thousands
    Millions
    I click on "..." button and could see that there is a prompt
    "Enter Dollar Denomination" : Ones;Thousands; Millions
    and Ones is selected on the right hand side.
    But when I deselect it and type Thousands in search conditon, it fails with database error MDX query with member....
    Sorry, I could not attach any screenshot with this message, but both failed..
    any other suggestions would be appreciated..
    Thanks
    Karthik

  • BW-Query with hierarchy variable and webi-prompt

    Hi,
    I think I've got a quite simple question.
    I've got a SAP-BW-Query and a hierarchy variable, and some none hierarchy variables.
    All Variables work in the webi-prompt.
    For the none hierarchy variables I've got the chance to search for values in the LOV, but I can't search for
    values in the hierarchies.Can I enable this function to search?
    Kind regards
    Lars

    Hi
    I post the error once again. I made an easier query and i saw that last time the forum did some strange things.
    A database error occured. The database error text is: Die MDX-Abfrage
    SELECT { [Measures].[DC59N8GR349ETCCV3ZHIFFWGC] } ON COLUMNS
    FROM [ZTESTM01/Z_ZTESTM01_TEST5_VARIABLE]
    SAP VARIABLES [!V000002] INCLUDING [0FISCPER].[V62009001]
    konnte nicht ausgeführt werden. Fehler Specify a value for variable
    MMEP_FISCPER. (WIS 10901)
    The query runs perfect in RSRT.
    When i put the statement
    SELECT
    { [Measures].[DC59N8GR349ETCCV3ZHIFFWGC] } ON COLUMNS
    FROM [ZTESTM01/Z_ZTESTM01_TEST5_VARIABLE]
    SAP VARIABLES [!V000002] INCLUDING [0FISCPER].[V62009001]
    in MDXTEST, it gives a result.
    Best regards,
    Florian

  • Can we toggle the display of Key/Text in Webi prompt?

    Gurus,
    We have a BOBJ 4.0 and BW 7.1 system. We have developed a webi report on top of BW BEx query. We have created 3 variables in BW BEx Query and they appear as prompts in webi. The prompt variables in webi display both the key and text when the list of values are refreshed. The business wants to see the key first and the text later on the webi prompt. I have tried modifying the BEx query to say just 'Key' or 'Key and Text' but none seems to have any effect on webi.
    I have attached the screenshot from our webi prompt which displays all the material text first and the material number (key) next to it. Is there any option of bringing the key first and the text later in the webi prompt? Creating a universe or creating the prompts directly on the webi report is not an option at this time.
    Any help is greatly appreciated! Points will be rewarded!
    Thanks,
    G.

    Hi Nirupa,
    I am sorry if I wasn't clear in my requirement. The requirement is to have the Key display first and then the text next to it. If you see the attached screenshot, in the highlighted area, we have the text first and then the key next to it.
    I tried making many changes to the BEx variable and the BEx Query but this order of text first and key next in the prompts does not seem to change. Is there a way to change this behavior of the webi prompts? Again, all the 3 prompts are created on BEx query designer as variables and there are no variables created on webi.

  • BPC 7.5NW SP08: "unknown MDX error" message for simple dimension formula

    Hi everyone!!
    We are facing many different issues concerning dimension formulas and
    script logic. Maybe it's something related to SP08. For instance,
    consider the following:
    - there is a dimension named P_Account, with members Price, SalesCost,
    and others
    - there is a dimension named P_Product, which consists of a hierarchy,
    for instance: Prod1 with two children, Prod1A and Prod1B
    We want to set the following dimension formula in P_Product for Prod1 member:
    IIF([P_Account].CURRENTMEMBER.PROPERTIES("ID") = "Price", Null, 1)
    that is, we wanted to try to be able to avoid summing Price, returning
    Null for (Price, Prod1). Later we would try to replace "1" with the
    appropriate formula to sum children of Prod1 for all other members of
    P_Account. The result is an odd error: "MDX statement error: unknown MDX
    error" (or something similar, since I get the error message in portuguese).
    We have spent almost two days studying alternatives in SDN Forum, blogs,
    google, etc, trying to find a reason for the error but couldn't find it.
    Could anyone help on this one?
    Thanks!
    Luigi

    Hi everyone!
    After contacting SAP, we were asked to try to reproduce the error in APSHELL. I did the following:
    1) created another application set, copying APSHELL, named it TESTAPPSET;
    2) added two members to dimension P_ACCT (ID, ACCTYPE, SCALING, RATETYPE):
       (PRICE, INC, Y, END)
       (SALESCOST, INC, Y, END)
    3) saved to server and processed P_ACCT dimension successfuly
    4) added a UD dimension copied from P_Activity, named P_Product
    5) deleted all members of P_Product, processed the dimension sucessfuly
    6) added FORMULA property to P_Product, with size 200
    7) added three members to P_Product (ID, PARENTH1)
       (Prod1, "")
       (Prod1A, Prod1)
       (Prod1B, Prod1)
    8) saved to server and processed the dimension successfuly
    9) edited P_Product members and added the following as FORMULA for Prod1:
    IIF([P_ACCT].CURRENTMEMBER.PROPERTIES("ID") = "PRICE", Null, 1)
    Result was sucess!!
    10) edit P_Product again and removed the formula, saved to server and processed dimension successfuly;
    11) created an Application named SALES, type Financial Report, copied from PLANNING with dimensions
    12) edit dimensions, removed P_Activity and added P_Product to the list
    13) went back to step (9) and tried to add the formula again, saved to server and processed P_Product dimension. Result was success again!!
    So I imagined the issue might be caused by the user I was log in with. I went back to our application set, logged in as BPC_SYSADMIN and tried to set the formula again and it didn't work. User was not the problem.
    Since I had tried all the above creating everything with all UPPERCASE, I decided to try the following Formula
    IIF([P_ACCOUNT].CURRENTMEMBER.PROPERTIES("ID") = "Price", Null, 1)
    that is, P_ACCOUNT instead of P_Account. Result: success in processing dimension!!! And the formula worked as expected when I opened an Input Schedule to test it.
    When I check my dimension list in BPC Admin it says P_Account (mixed case), instead of P_ACCOUNT (all uppercase) since it was the way we created it.
    So, I spent 1hour to do the whole test, but it worked. I sent two questions/requests for correction or improvement to SAP:
    I) which case should be used in formulas? given I see P_Account in Dimension list, how should I know that I should write formulas with P_ACCOUNT, all uppercase?
    II) could BPC provide more descriptive error messages when processing dimensions and validating script logic? a simple error message such as "unidentified command or reference at P_Account" or anything similar would have saved us 4,5 days of work! it's a lot!
    Thank you guys for your support!!

  • All LOV's for Currency prompt not showing in Webi prompts

    Hello Experts,
    I have a scenario. My BW systems are undergoing upgrade. SO one is on 7.1 and the other on 7.3
    I have Business Objects BI 4.0,SP2 environments on top of both and MDX universes based on top of Bex queries. When i point my universe to BW 7.1 system, all the currency values(#,USD,NSD etc.) in the Currency prompt come up which are shown similar to BW currency prompt values in RSRT.
    When i point the same BOBJ universe to BW 7.3 environment to the same Bex query, some of the currency values at webi prompt level like USD,NZD are missing and dont show up whereas they show as it is in RSRT in the BW prompts.
    Any suggestions or ideas with this ?
    Thanks and regards,
    Abhishek

    HI,
    it doesn't look like an SAP Integration Kit issue to me, but instead an issue in regards to the Business Views. I would suggest you post the question into the Crystal REports forum.
    regards
    Ingo

  • Webi 3.1 - Making Webi Prompts appear on top of the Universe Prompts

    Hi,
    I have a report which uses some of the objects that are coded with @Prompt code  ( CPrmp1, FPrmp2, APrmp3 ...) at the universe level as well as some of the Webi prompts like a dimension Name is dragged into the query filter and is of type prompt.
    When the report is run the prompts appear in the below order -
    APrmp3
    CPrmp1
    FPrmp2
    Name        ( --- > Webi report filter  )
    Also as above the universe level prompts appear in the alphabetically order, but I do not want them to appear in aplhabetically order.
    I want the Name filter to appear first and then all the Universe level prompts below it in the below order -
    Name
    CPrmp1
    FPrmp2
    APrmp3
    Any inputs are appreciated
    Also when the report is open in the web mode i.e html, how can I make the Prompts appear on the left tab, like the Input Controls. I can see the Prompt on the left tab, but if opened on a collegues IE it does not appear and we have to select the Prompt option at the bottom from among the various options. So its there anyy specific setting, I am missing here .
    Thanks for the input's.
    Dipti

    Let meexplain you whole scenario.:
    Refer below snapshot:
    Here i placed report level prompt at the top.
    And once you run this report:
    Ordering has been changed in the report because always  it will take universe prompts first and then report level prompt.
    Resolution : As i meantioned earlier , create two different query in the report.
    Regards,
    Pranay

  • Pl/SQL is prompting "invalid number" error

    Hello Sir/Madam,
    I'm not very clear why pl/sql cursor is prompting "invalid number" error.
    I need to load single as well as multi Gas meter data for an automation process.  The procedure is loading single meter data fine, but when I add multi meter data to that table it is halting and prompting "invalid number".  I made sure that each record is unique. Define primary key based on three field ( they are: SERVICEPOINTID, METERID, and ENDDATE )
    in the sample file, they are in that order
    I would appricaite your help & explantions on this issue
    sample procedure code:
    CREATE OR REPLACE procedure GSO_SBX_ADMIN.row_add_v2 is
    rct_cnt number := 0;
        header_key gso_hourlylog_header.hrly_log_hdr_ky%TYPE;
        dailyorder_key gso_hourlylog_header.DLY_ORDER_KY%TYPE;
        customer_key gso_customer_log.CUST_KY%TYPE;
        channel_key gso_cust_channel_privs.CHNNL_KY%TYPE;
        custlog_key gso_customer_log.CUST_LOG_KY%TYPE;
        hourly_custlog_detail_key gso_hourly_cust_log_detail.HRLY_CUST_LOG_DTL_KY%TYPE;
        customer_name GSO_CUSTOMER_LOOKUP.CUST_NM%TYPE;
        row_processing_status VARCHAR2(100) := '';
        other_customerlog_issue VARCHAR2(5) := 'FALSE';
        ls_curr_user VARCHAR2(30) := 'GSO_PROCESS_IEE_INTO_GSO';
        record_processable VARCHAR2(5) := '';
        rec_processing_timestamp TIMESTAMP;
    begin
    for daily_gis_add in
            SELECT '', METERID, ENDDATE, HOURENDING, VOLUMEVALUE, CUSTOMERNAME, DEVICEID, CUSTOMERID, SERVICEPOINTID
            FROM GSO_IEE_STAGE gis where  trunc(gis.loaded_dt) = trunc(sysdate)
    loop
    insert into gso_iee_process_log
        VALUES
              rec_processing_timestamp,
              daily_gis_add.METERID,
              daily_gis_add.ENDDATE,
              daily_gis_add.HOURENDING,
              daily_gis_add.VOLUMEVALUE,
              daily_gis_add.CUSTOMERNAME,
              daily_gis_add.DEVICEID,
              daily_gis_add.CUSTOMERID,
              daily_gis_add.SERVICEPOINTID,
              customer_name,
              customer_key,
              channel_key,   
              dailyorder_key,
              header_key,
              custlog_key,
              hourly_custlog_detail_key,
              row_processing_status,
              SYSDATE
            commit;
          rct_cnt := rct_cnt + 1;
      dbms_output.put_line(' rowadded '|| rct_cnt);
    end loop;
    end;
    sample data:
    32096040001 11048610FGI 5/25/2013 10 AM 10 Tower Hill School 1104861000217112 257808404 32096110001 6/21/2013 10:40:18 AM
    26107010002 11086348FGI 5/25/2013 10 AM 10 Emily Bissell Hospital 1108634800050877 261070100 26107010002 6/21/2013 10:40:18 AM
    32101140001 11086356FGI 5/25/2013 10 AM 10 Delaware River Bay Authority 1108635600413231 321011400 32101140001 6/21/2013 10:40:18 AM
    31875230004 110680FGI 5/25/2013 10 AM 10 Arlon Inc. Gas 11068000021253 318752300 31875230004 6/21/2013 11:04:58 AM
    31875230003 110681FGI 5/25/2013 10 AM 10 Arlon Inc. Gas 11068100022092 318752300 31875230003 6/21/2013 11:04:58 AM
    Regards,
    Vani Sonti

    Hello,
    I've commented out or removed the fields that are not listed.. here is the modified code.. I just added the part where is was prompting errors..
    Yes, I tested just now and it is looping and printing all five record counters..
    CREATE OR REPLACE procedure GSO_SBX_ADMIN.row_add_v3 is
    rct_cnt number := 0;
    begin
    for daily_gis_add in
            SELECT '', METERID, ENDDATE, HOURENDING, VOLUMEVALUE, CUSTOMERNAME, DEVICEID, CUSTOMERID, SERVICEPOINTID
            FROM GSO_IEE_STAGE gis where  trunc(gis.loaded_dt) = trunc(sysdate)
    loop
    insert into gso_iee_process_log
       TIMESTAMP_ID,  PREMISEID,METERID,ENDDATE ,HOURENDING,VOLUMEVALUE ,
       CUSTOMERNAME,DEVICEID,CUSTOMERID,SERVICEPOINTID
        VALUES
              SYSDATE,
              daily_gis_add.METERID,
              daily_gis_add.ENDDATE,
              daily_gis_add.HOURENDING,
              daily_gis_add.VOLUMEVALUE,
              daily_gis_add.CUSTOMERNAME,
              daily_gis_add.DEVICEID,
              daily_gis_add.CUSTOMERID,
              daily_gis_add.SERVICEPOINTID
            commit;
          rct_cnt := rct_cnt + 1;
      dbms_output.put_line(' rowadded '|| rct_cnt);
    end loop;
    end;
    Vani

  • Memory Leak in web application created using j2ee

    Hi,
    Our company has one web application, provided by "X" vendor. this application has many JSPs and many TLDs used. The basic behaviour of the apoplication is to connect to the database (Oracle) get the information and show it to the user.
    We deployed this web application in Tomcat 5.0.25 in the windows environment. One thing we observed here is, when we login to the application the tomcat5.exe process increses its memory. and when we logout, it does not come down to the original position. similar things happen when we search for some of the data using there provided searches.
    We have some code developed which uses httpclient to login to this web application (created for performace testing). This code initially logs in 50 users which goes fine, then logs in 100 users which also goes fine but after this 100 users we ran the code for 50 users agian but this time it threw OutOfmemory exception:Java heap space error.
    we are observing the memory in the Task Manager in windows.
    Can anyone tell me what could be the cause of this? is it the web application causing problem or is tomcat caching some pages into the memory and is not releasing them?

    Hi,
    Few questions!
    1> Have you tweaked your jvm?
    2> What are the values given for Xms and Xmx?
    3> What is the size of XX:MaxPermGen?
    4> How much RAM is available on the system where you have deployed your app?
    5> Are you using pre-complied JSPs for faster response?
    6> Which JDK are you using?
    7> Have you tried using latest version of Tomcat?
    8> If these doesnt help, use any profiler to find the leak. <JProfiler, JVMTI, YourKit profiler etc>
    I hope answering these questions would help you :)
    njoy!

  • Invoke web service created from workshop

    Hi,
    I am trying to write a stand alone java client to connect to web service created
    from workshop( please see the attached wsdl file), but can't get it work. Did
    somebody know why. Here is my java client code :
    import java.net.URL;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.Call;
    import javax.xml.namespace.QName;
    import weblogic.webservice.context.WebServiceContext;
    import weblogic.webservice.context.WebServiceSession;
    import weblogic.webservice.context.WebServiceHeader;
    public class OrderTestClient {
    public static void main(String[] args) {
    try {
    // Setup the global JAXM message factory
    System.setProperty("javax.xml.soap.MessageFactory",
    "weblogic.webservice.core.soap.MessageFactoryImpl");
    // Setup the global JAX-RPC service factory
    System.setProperty("javax.xml.rpc.ServiceFactory",
    "weblogic.webservice.core.rpc.ServiceFactoryImpl");
    // create service factory
    ServiceFactory factory = ServiceFactory.newInstance();
    // define qnames
    //String targetNamespace = "http://localhost/orderweb";
    String targetNamespace = "http://www.openuri.org/";
    QName serviceName = new QName(targetNamespace, "newsmlorder");
    QName portName = new QName(targetNamespace, "newsmlorderSoap");
    //QName operationName = new QName("tns:newsmlorderSoap", "getUserAddress");
    QName operationName = new QNam("http://localhost:7021/orderweb/", "getUserAddress");
    URL wsdlLocation = new URL("http://localhost:7021/orderweb/newsmlorder.jws?WSDL");
    // create service
    Service service = factory.createService(wsdlLocation, serviceName);
    // create call
    Call call = service.createCall(portName, operationName);
    WebServiceContext wsContext = WebServiceContext.currentContext();
    WebServiceSession session =(WebServiceSession)wsContext.getSession();
    System.out.println(" Session : " + session.toString() );
    System.out.println(" == step 11 ===");
    // invoke the remote web service
    System.out.println(" == step 12 ===");
    String result = (String) call.invoke(new Object[] {"testPing"});
    System.out.println("test result : " + result);
    catch (Exception e) {
    System.out.println("test result : " + e.getMessage());
    [order.wsdl]

    Hi,
    I did not get any error, however the service call is always return null even though
    I hard code return String, so I knew it failed.
    I tried your following code and it worked. You mention that I have to download
    proxy.jar from workshop overview page, but I can't find it. Would you please tell
    me where to find the download menu in workshop.
    If I want to build a dynamic stand alone client to invoke service created from
    workshop ( my original approach), what should I do?
    I am trying to use workshop to handle multipart soap message (soap message with
    attachments), could you please send me a example ?
    Very appreciate your help!
    Thanks again.
    Lina
    Vimala Ranganathan" <[email protected]> wrote:
    >
    >
    >
    Hi Lina,
    Are you getting any errors?
    Did you happen to try with a static client? Is that working?
    (For static client you have to download the proxy jar from the workshop
    overview
    page and have it in the classpath)
    I have attacjhed the proxy jar and here is a sample client. Let me know
    how this
    goes.
    public class Test
    public static void main(String [] args)
         Newsmlorder_Impl m_proxyImpl = null;
         NewsmlorderSoap m_proxy = null;
         try
              m_proxyImpl = new Newsmlorder_Impl();
              catch (IOException ex)
              System.out.println("Error getting proxy");
              ex.printStackTrace();
              m_proxy = m_proxyImpl.getnewsmlorderSoap();
              GetUserAddress p = m_proxy.getUserAddress();
    Thanks a lot,
    Vimala Ranganathan
    "Lina Li" <[email protected]> wrote:
    Hi,
    I am trying to write a stand alone java client to connect to web service
    created
    from workshop( please see the attached wsdl file), but can't get itwork.
    Did
    somebody know why. Here is my java client code :
    import java.net.URL;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.Call;
    import javax.xml.namespace.QName;
    import weblogic.webservice.context.WebServiceContext;
    import weblogic.webservice.context.WebServiceSession;
    import weblogic.webservice.context.WebServiceHeader;
    public class OrderTestClient {
    public static void main(String[] args) {
    try {
    // Setup the global JAXM message factory
    System.setProperty("javax.xml.soap.MessageFactory",
    "weblogic.webservice.core.soap.MessageFactoryImpl");
    // Setup the global JAX-RPC service factory
    System.setProperty("javax.xml.rpc.ServiceFactory",
    "weblogic.webservice.core.rpc.ServiceFactoryImpl");
    // create service factory
    ServiceFactory factory = ServiceFactory.newInstance();
    // define qnames
    //String targetNamespace = "http://localhost/orderweb";
    String targetNamespace = "http://www.openuri.org/";
    QName serviceName = new QName(targetNamespace, "newsmlorder");
    QName portName = new QName(targetNamespace, "newsmlorderSoap");
    //QName operationName = new QName("tns:newsmlorderSoap","getUserAddress");
    QName operationName = new QNam("http://localhost:7021/orderweb/",
    "getUserAddress");
    URL wsdlLocation = new URL("http://localhost:7021/orderweb/newsmlorder.jws?WSDL");
    // create service
    Service service = factory.createService(wsdlLocation, serviceName);
    // create call
    Call call = service.createCall(portName, operationName);
    WebServiceContext wsContext = WebServiceContext.currentContext();
    WebServiceSession session =(WebServiceSession)wsContext.getSession();
    System.out.println(" Session : " + session.toString() );
    System.out.println(" == step 11 ===");
    // invoke the remote web service
    System.out.println(" == step 12 ===");
    String result = (String) call.invoke(new Object[] {"testPing"});
    System.out.println("test result : " + result);
    catch (Exception e) {
    System.out.println("test result : " + e.getMessage());

  • Problem consuming web service created by ABAP via standalone java client

    I'm trying to consume web service created by ABAP in R3 system via standalone java client. I should be getting a string reply after consumed the web service (ZSMS_INBOUND), but so far i received null. I cant find any exception or log to trace the problem. Any help would be appreciated. Is there anything wrong with my client calling the web service?
    public void myMethod{
              // TODO : Implement
              try{
                   Stub stub = (Stub)new ZSMS_INBOUNDServiceImpl().getLogicalPort();
                   stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,"http://mytest:8080/sap/bc/srt/rfc/sap/ZSMS_INBOUND?sap-               client=100&wsdl=1.1&mode=sap_wsdl");
                   inboundService = (ZSMS_INBOUND) stub;
                   BAPIRET2 str = inboundService.ZSMS_INBOUND(date, message, modemId, smsId, tel, time);
                   ackDeliveryArray<i> = str.toString();
              }catch (Exception e) {
                   e.printStackTrace();
    Generated following SAP help standalone proxy creation steps.
    ***files fr SEIs
    ZSMS_INBOUND.java   (interface)
    ZSMS_INBOUNDService.java  (interface)
    ZSMS_INBOUNDServiceImpl.java
    ZSMS_INBOUNDSoapBindingStub.java
    ***files fr Proxy classes
    ZSMS_INBOUND.java
    ZSMS_INBOUNDResponse.java
    BAPIRET2.java
    .... many more files
    the wsdl is as below (generated by ABAP):
    <?xml version="1.0" encoding="utf-8" ?>
    - <wsdl:definitions targetNamespace="urn:sap-com:document:sap:rfc:functions" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:n0="http://www.sap.com/webas/630/soap/features/authentication/" xmlns:sap="http://www.sap.com/webas/630/wsdl/features" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="urn:sap-com:document:sap:rfc:functions" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <wsdl:types>
    - <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:sap-com:document:sap:rfc:functions" targetNamespace="urn:sap-com:document:sap:rfc:functions" elementFormDefault="unqualified" attributeFormDefault="qualified">
    - <xsd:simpleType name="char1">
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="1" />
      </xsd:restriction>
      </xsd:simpleType>
    - <xsd:simpleType name="char10">
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="10" />
      </xsd:restriction>
      </xsd:simpleType>
    - <xsd:simpleType name="char17">
    + <xsd:restriction base="xsd:string">
      <xsd:maxLength value="17" />
      </xsd:restriction>
      </xsd:simpleType>
    - <xsd:simpleType name="char170">
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="170" />
      </xsd:restriction>
      </xsd:simpleType>
    - <xsd:simpleType name="char20">
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="20" />
      </xsd:restriction>
      </xsd:simpleType>
    - <xsd:simpleType name="char220">
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="220" />
      </xsd:restriction>
      </xsd:simpleType>
    - <xsd:simpleType name="char30">
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="30" />
      </xsd:restriction>
      </xsd:simpleType>
    - <xsd:simpleType name="char32">
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="32" />
      </xsd:restriction>
      </xsd:simpleType>
    - <xsd:simpleType name="char50">
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="50" />
      </xsd:restriction>
      </xsd:simpleType>
    - <xsd:simpleType name="date">
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="10" />
      <xsd:pattern value="\d\d\d\d-\d\d-\d\d" />
      </xsd:restriction>
      </xsd:simpleType>
    - <xsd:simpleType name="numeric3">
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="3" />
      <xsd:pattern value="\d*" />
      </xsd:restriction>
      </xsd:simpleType>
    - <xsd:simpleType name="numeric6">
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="6" />
      <xsd:pattern value="\d*" />
      </xsd:restriction>
      </xsd:simpleType>
    - <xsd:simpleType name="time">
    - <xsd:restriction base="xsd:string">
      <xsd:maxLength value="8" />
      <xsd:pattern value="\d\d:\d\d:\d\d" />
      </xsd:restriction>
      </xsd:simpleType>
    - <xsd:complexType name="BAPIRET2">
    - <xsd:sequence>
      <xsd:element name="TYPE" type="tns:char1" />
      <xsd:element name="ID" type="tns:char20" />
      <xsd:element name="NUMBER" type="tns:numeric3" />
      <xsd:element name="MESSAGE" type="tns:char220" />
      <xsd:element name="LOG_NO" type="tns:char20" />
      <xsd:element name="LOG_MSG_NO" type="tns:numeric6" />
      <xsd:element name="MESSAGE_V1" type="tns:char50" />
      <xsd:element name="MESSAGE_V2" type="tns:char50" />
      <xsd:element name="MESSAGE_V3" type="tns:char50" />
      <xsd:element name="MESSAGE_V4" type="tns:char50" />
      <xsd:element name="PARAMETER" type="tns:char32" />
      <xsd:element name="ROW" type="xsd:int" />
      <xsd:element name="FIELD" type="tns:char30" />
      <xsd:element name="SYSTEM" type="tns:char10" />
      </xsd:sequence>
      </xsd:complexType>
    - <xsd:element name="ZSMS_INBOUND">
    - <xsd:complexType>
    - <xsd:sequence>
      <xsd:element name="DATE" type="tns:date" />
      <xsd:element name="MESSAGE" type="tns:char170" />
      <xsd:element name="MODEMID" type="tns:char10" />
      <xsd:element name="SMSID" type="tns:char17" />
      <xsd:element name="TEL" type="tns:char20" />
      <xsd:element name="TIME" type="tns:time" />
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
    - <xsd:element name="ZSMS_INBOUNDResponse">
    - <xsd:complexType>
    - <xsd:sequence>
      <xsd:element name="RETURN" type="tns:BAPIRET2" />
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:schema>
      </wsdl:types>
    - <wsdl:message name="ZSMS_INBOUND">
      <wsdl:part name="parameters" element="tns:ZSMS_INBOUND" />
      </wsdl:message>
    - <wsdl:message name="ZSMS_INBOUNDResponse">
      <wsdl:part name="parameters" element="tns:ZSMS_INBOUNDResponse" />
      </wsdl:message>
    - <sap:Feature name="design_0" uri="http://www.sap.com/webas/630/soap/features/authentication/">
    - <sap:Property qname="n0:AuthenticationLevel">
      <sap:Option value="n0:None" />
      </sap:Property>
      </sap:Feature>
    - <wsdl:portType name="ZSMS_INBOUND">
      <sap:useFeature feature="tns:design_0" />
    - <wsdl:operation name="ZSMS_INBOUND">
      <wsdl:input message="tns:ZSMS_INBOUND" />
      <wsdl:output message="tns:ZSMS_INBOUNDResponse" />
      </wsdl:operation>
      </wsdl:portType>
    - <wsdl:binding name="ZSMS_INBOUNDSoapBinding" type="tns:ZSMS_INBOUND">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <wsdl:operation name="ZSMS_INBOUND">
      <soap:operation soapAction="" />
    - <wsdl:input>
      <soap:body use="literal" />
      </wsdl:input>
    - <wsdl:output>
      <soap:body use="literal" />
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>
    - <wsdl:service name="ZSMS_INBOUNDService">
    - <wsdl:port name="ZSMS_INBOUNDSoapBinding" binding="tns:ZSMS_INBOUNDSoapBinding">
      <soap:address location="http://mytest:8080/sap/bc/srt/rfc/sap/ZSMS_INBOUND?sap-client=100" />
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>

    I'm now able to consume the web service, but with the error as below:
    Warning ! Protocol Implementation [com.sap.engine.services.webservices.jaxrpc.wsdl2java.features.builtin.MessageIdProtocol] could not be loaded (NoClassDefFoundError) !
    Error Message is :com/sap/guid/GUIDGeneratorFactory
    BAPIRET2 mappingInfo:
      TYPE   TYPE   false   false   11
      ID   ID   false   false   11
      NUMBER   NUMBER   false   false   11
      MESSAGE   MESSAGE   false   false   11
      LOG_NO   LOG_NO   false   false   11
      LOG_MSG_NO   LOG_MSG_NO   false   false   11
      MESSAGE_V1   MESSAGE_V1   false   false   11
      MESSAGE_V2   MESSAGE_V2   false   false   11
      MESSAGE_V3   MESSAGE_V3   false   false   11
      MESSAGE_V4   MESSAGE_V4   false   false   11
      PARAMETER   PARAMETER   false   false   11
      ROW   ROW   false   false   11
      FIELD   FIELD   false   false   11
      SYSTEM   SYSTEM   false   false   11
    My java code is :
    public class MyTest {
         public static void main(String[] args){
              try{
                             Stub stub = (Stub)new ZSMS_INBOUNDServiceImpl().getLogicalPort();
                             stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY,"http://mytest:8080/sap/bc/srt/rfc/sap/ZSMS_INBOUND?sap-client=100");
                             ZSMS_INBOUND inboundService = (ZSMS_INBOUND) stub;
                             BAPIRET2 str = inboundService.ZSMS_INBOUND(param1,param2,param3,param4,param5,param6);
                             System.out.println(str.toString());
                             }catch (Exception e) {
                                  e.printStackTrace();

  • MDX Error for SAP Variables

    Hi All,
    We have used QAAWS for creating a dashboard in Xcelsius using Trigger cell for a selection variable in BI Query.When a different selection is maded for that variable getting the below error (In this case i have selected US for the variable)
    A database error occured. The database error text is: The MDX query SELECT { [Measures].[4FYOXRUNHMI2F3N8G0Q6GNC0I] } ON COLUMNS , NON EMPTY [0SALESORG].[LEVEL01].MEMBERS DIMENSION PROPERTIES [0SALESORG].[40SALESORG] ON ROWS FROM [ZGC0_M001/TEST_2] SAP VARIABLES [TEST_BO] INCLUDING US failed to execute with the error Unknown error. (WIS 10901)
    checked in MDXTEST giving  the query
    SELECT { [Measures].[4FYOXRUNHMI2F3N8G0Q6GNC0I] } ON COLUMNS , NON EMPTY [0SALESORG].[LEVEL01].MEMBERS DIMENSION PROPERTIES [0SALESORG].[40SALESORG] ON ROWS FROM [ZGC0_M001/TEST_2] SAP VARIABLES [TEST_BO] INCLUDING US
    It thrown an error saying the above query is invalid.
    Later i tried with the below query
    SELECT { [Measures].[4FYOXRUNHMI2F3N8G0Q6GNC0I] } ON COLUMNS , NON EMPTY [0SALESORG].[LEVEL01].MEMBERS DIMENSION PROPERTIES [0SALESORG].[40SALESORG] ON ROWS FROM [ZGC0_M001/TEST_2] SAP VARIABLES [TEST_BO] INCLUDING [0SALESORG].[US]
    Now it perfectly worked fine.
    Can any one let me know why a wrong MDX query is getting generated and how to rectify it?
    Regards,
    Pra

    Hi Ingo,
    Sorry for the late reply....
    Yes i am sending the Key values as the input for the variables.
    If you observe the 2 MDX Statements(the last line especially) .....i guess [SalesOrg] needs to get appended in the MDX Statement  for the Key values  that i input and as it is not happening it is throwing an error saying MDX error.
    Regards,
    Pra

  • Getting MDX Error.

    Hello Experts.
    I have created a query on GL. and made it externally visible to send the data into PCM. Now when i check in PCM Data bridge it is giving an error. its giving me and mdx error which says "Invalid MDX command with )". I have checked in MDX test in BW it is giving the same error.
    SELECT {[Measures].[4MOXVHUAY8XIP927RDRX7KKK2]} ON COLUMNS,
    NON EMPTY CrossJoin
    Descendants ([0GL_ACCOUNT].[All]),
    CrossJoin
    {[ZFISCPER4].[All]},
    {[ZRESBCENT].[All]}
    DIMENSION PROPERTIES MEMBER_NAME
    ON ROWS
    From [ZIC_GLPC1/ZREP_CUBE_MGL_DMAT]  
    Kindly help

    Hi,
    May help you:----
    Error While working with 2 hierarchy
    http://help.sap.com/saphelp_nw70/helpdata/en/ba/12533d6dd60610e10000000a114084/content.htm
    /people/reuben.cox/blog/2009/10/16/extracting-voyager-mdx-queries
    REgards,
    Suman

Maybe you are looking for