Problem while running BEx Query

Hi All,
I had reqiurement of calculating the difference of the two dates.I calculated Date Difference but I am getting problem when I run the Query.
The problem is " I am finding the difference between Schedule Line Date and Posting Date. There are some blank spaces in the cube over Schedule Line Date and also over Posting Date. While running the Query Blank Space is taken as # symbol and while calculating the differences it is giving the differences in Lakhs."
Can anybody help me to solve the problem " To remove the # symbol and calculate the differences properly".
Thanks in advance.
With Regards
Mahi

Hi,
Use the Boolean concept like below:
I hope you are using formula varibles to get Dates into the formula.
Lets assume fv1 is formulavarible on Schedule line date and FV2 is Formula varible on Posting date.
(FV1 == '' OR FV2 == '') * 0 + (FV1 <> '' AND FV2 <> '') * (FV1-FV2).
With rgds,
Anil Kumar Sharma .P

Similar Messages

  • Problem while opening Bex query on the web

    Hello BW experts,
    I have a problem while opening Bex query from my SAP Favorites.See below.
    When i double click on the query, i get the following page, with the server name KBWS01QX.
    But, from RSRT Tcode, select the query > query display as HTML > Click on ABAP Web , click execute as shown below, it is going to the correct URL as in the 2nd screen shot below.
    My question is why is it going to the wrong URL when i open it from  SAP Favorites menu?
    I want it to open the same URL as it opened from RSRT(which is the right one)
    What is the Config needed to make it to work from SAP favorites.
    Any help would be appreciated.
    Thanks alot.
    SV

    Hello,
    Thank you all for your responses.
    See below some additional info.
    From RSRT, this time I clicked on JAVA WEB, and i get the below URL, which is the same URL i was getting when i executed the query from SAP favorites.
    http://kbws01qx.xxxxxxx.com:50000/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=ZCONSUMPTION
    Also, i have executed the Function module : RSBB_URL_PREFIX_GET and i get the below values.
    It seems that it is trying to connect to Java portal something services may be, but i want it to open in ABAP web only.
    Please help.

  • MDX Error in WebI while running Bex Query

    Dear Experts,
    In my System BO XI R3.1 Enterprise and Integration kit For SAP has installed.
    While creating query with Efashion and MS Acess files query is running fine.
    But in case of BI queries(InfoCube or BEx Query) it is giving "Select Dimension 1 CrossJoin Dimension2...."Error(10901).
    Test Connection of BI (The server is responding)is working fine.
    How to solve the issue?
    Thanks in Advance
    Venkat P

    Hi Venkat,
    Obviously there is something wrong with your query.
    What happens if you parse the MDX using the BW transaction MDXTEST  - does it work ok?
    You need to try and identify at what point the query is failing, i.e. is it caused at the BW layer or is it a problem at the XI3.1 application layer...?
    I hope this is a very helpful answer to you.
    Kind regards,
    John

  • Problem while running a query on multiprovider

    Dear all,
    I have created a query to generate the balance sheet in FIGL using standard virtual cube 0FILGL_V01 and a custom transactional cube which gets plan data through BPS. The custom plan cube is an exact copy of the 0FIGL_V01 (plan value is populated in 0val_flow KF). These two cubes are conncected using a multiprovider. In the identification tab in the mutliprovider definition I have selected both the data targets for all characteristics.
    Now when I create a query for balance sheet using GL account no and plan and actual value of cumulative balance KF I get the following error.
    Error 'Field symbol has not yet been assigned.' in RSDRC_CUBE_DATA_GET_RFC could not be caught.
    When i run the query in the RSRT transaction it shows 'Some Key figure have exception aggregation.'
    I'll be very grateful if somebody could explain how to about removing this error. Thanks a lot.
    Regards,
    Sumit

    Hi Sumit,
    Try this OSS note:905083
    Import Support Package 16 for 3.5 (BW 3. 50 Patch 16 or SAPKW35016) into your BW system. The Support Package is available once Note 0872275 "SAPBWNews BW Support Package 16 NetWeaver'04 Stack 16", which describes this Support Package in more detail, has been released for customers.
    Before you implement the correction, you must carry out the following actions:
    1. Use Transaction SE37 to create the RSDRC_RAISE_EXCEPTION function module in the RSDRC function group (Short text = Terminator 2). This function does not have any parameters.
    2. In the RSDRC_CUBE_DATA_GET_RFC function module, under 'Tables', add the new entry E_T_MESG of the TSMESG type and this new entry is optional.
    3. The T100 messages DBMAN 003,004 and 005 complete the correction:
    a) 003: Unknown error in part cube RSDRC_CUBE_DATA_GET_RFC = &1
    b) 004: Non-catchable error '&1' in RSDRC_CUBE_DATA_GET_RFC.
    c) 005: The following error occurred in RSDRC_CUBE_DATA_GET_RFC for part cube = &1.
    In urgent cases you can implement the correction instructions.
    To make information available in advance, the notes mentioned may already be available before the Support Packages are released. However, in this case the short text still contains the words "preliminary version".
    Hope this helps.
    Assign points if useful
    Venkat

  • Problem while running a query on a multiprovider

    Dear all,
    I have created a query to generate the balance sheet in FIGL using standard virtual cube 0FILGL_V01 and a custom transactional cube which gets plan data through BPS. The custom plan cube is an exact copy of the 0FIGL_V01 (plan value is populated in 0val_flow KF). These two cubes are conncected using a multiprovider. In the identification tab in the mutliprovider definition I have selected both the data targets for all characteristics.
    Now when I create a query for balance sheet using GL account no and plan and actual value of cumulative balance KF I get the following error.
    Error 'Field symbol has not yet been assigned.' in RSDRC_CUBE_DATA_GET_RFC could not be caught.
    When i run the query in the RSRT transaction it shows 'Some Key figure have exception aggregation.'
    I'll be very grateful if somebody could explain how to about removing this error. Thanks a lot.
    Regards,
    Sumit

    Hi Sumit,
    Try this OSS note:905083
    Import Support Package 16 for 3.5 (BW 3. 50 Patch 16 or SAPKW35016) into your BW system. The Support Package is available once Note 0872275 "SAPBWNews BW Support Package 16 NetWeaver'04 Stack 16", which describes this Support Package in more detail, has been released for customers.
    Before you implement the correction, you must carry out the following actions:
    1. Use Transaction SE37 to create the RSDRC_RAISE_EXCEPTION function module in the RSDRC function group (Short text = Terminator 2). This function does not have any parameters.
    2. In the RSDRC_CUBE_DATA_GET_RFC function module, under 'Tables', add the new entry E_T_MESG of the TSMESG type and this new entry is optional.
    3. The T100 messages DBMAN 003,004 and 005 complete the correction:
    a) 003: Unknown error in part cube RSDRC_CUBE_DATA_GET_RFC = &1
    b) 004: Non-catchable error '&1' in RSDRC_CUBE_DATA_GET_RFC.
    c) 005: The following error occurred in RSDRC_CUBE_DATA_GET_RFC for part cube = &1.
    In urgent cases you can implement the correction instructions.
    To make information available in advance, the notes mentioned may already be available before the Support Packages are released. However, in this case the short text still contains the words "preliminary version".
    Hope this helps.
    Assign points if useful
    Venkat

  • Problem while creating BEx Query

    Hi all,
    I have to calculate the difference between Receipt Date and Schedule Line Date in the Query level. The thing is both are Characteristics.
    I want to know how to calculate the difference.
    Can anyone help me to solve this problem.
    Thanks in Advance
    Mahi

    Hi Mahi,
    Create a variable on receipt date and schedule line date of type replacement path.
    Create a calculated key figure which basically subtracts value of variable defined for receipt date and variable defined for schedule line date.
    Hope that helps.
    Regards
    Mr Kapadia

  • Database Error while running the query.

    Hi,
    While running the query in webi rich client i am having a "database error IES 10901 and WIS 10901" , it is showing that the data source name not found and default driver is not specified.
    I am trying to generate report from efashion universe which is in .unx format, same client version and universe is running fine on another machine (webi rich client).
    PS: The above mentioned universe is running fine on my BI launch pad, the problem is with webi rich client only.
    Please help!!

    Hi,
    Which Database your are using .
    As explained by Yuvraj You need to install driver for specific database .
    Ask for client or (your Database ) driver from administrator .
    After installation you can see your database Driver in following path
    Control Panel\System and Security\Administrative Tools\Data Sources (ODBC)
    See in Drivers Tab .
    If you are using oracle & client is install on your system then Check TNS Names File in NETWORK folder .

  • Error message while running a query

    Hello experts,
    While running a query I am getting an error message as :
    Abort error 'connection closed (no data) in RSRDC_CUBE_DATA_GET_RFC could not
    Abort system error in program SAPLRRK0 and form RSRDR; SRRK0F30-01-
    please advice what are these errors, cause and resolution for these errors.
    Thanks,
    Anamika

    Hi Anamika,
             If you are running your query in Web Portal, it seems your web portal is not defined in RFC connection with system. Ask BASIS to connect it.
             Also, You can run your report in RSRT with ABAP Web option and check if it is working on ABAP engine.
    Regards,
    Harpal
    Edited by: Harpalsinh Gohil on Aug 17, 2009 2:53 PM

  • While running the query how much time it will taken, I want to see the time

    Hi Folks
    I would like to know ... While running the query how much time it will be taken, I want to see the time? in WEBI XI R2.....
    Plz let me know  the answer.......

    Hi Ravi,
    The time a report runs is estimated based on the last time it was run. So you need to run the report once before you can see how long it will take. Also it depends on several factors... the database server could cache some queries so running it a second time immediately after the first time could be quicker. And there is the chance of changing filters to bring back different sets of data.
    You could also schedule a report and then check the scheduled instance's status properties and view how long a report actually ran.
    Good luck

  • No Data Shown because an error occurred while running the query

    Discoverer 10gR2 using Plus on Firefox:
    I have one workbook. The first sheet summarizes by Vendor. Parameters are Type, Category, Vendor (all optional) and mandatory date range.
    The second sheet summarized by Vendor and Model. Parameters are Type, Category, Vendor, Model (all optional) and mandatory date range.
    All parameters except the extra "Model" are shared between the sheets.
    When I run the Vendor sheet, parameters pop up, I put in dates and leave the rest blank. Results display. Yeah!
    When I then run the Model sheet, parameters pop up again (because it has one more parameter). Dates carry forward, leave the rest blank. I get the error No Data Shown because an error occurred while running the query. Refreshing does not help.
    If I click back to the Vendor sheet, then come back to the Model sheet, no parameter screen and the query runs.
    Booooo.
    Have tried multiple DBs, multiple EULs, multiple underlying data sources, replacing the offending parameter with a whole new one, no difference.
    Has any body run into this behavior? Is there an answer?
    -- Ron Olcott, Business Intelligence Product Manager

    What about trying this. On the parameter definition, you have a section on the bottom left of the Parameters window, called "Do you want to allow different parameter values for each worksheet?". When you say in your posting that all but the Model parameter is shared, I assume you mean that you have set this section value to "Allow only one set of paratmeter values for all worksheets". Try setting this to "Allow different parameter values for each worksheet". See if that might make a difference for you. If that works, you may have to leave the option at this, as the lesser of your evils. From my limited experience, the "Allow only one set of parameter mvalues for all worksheets" is a bit flaky in how it works. So I pretty much have gone to always saying to allow different parameter values for each worksheet. Hope this helps a bit. If worse comes to worse, if you have not done so already, log a service request with support and see what they say. Good luck.
    John DIckey

  • Displaying messages while running BEx queries.

    Hi Experts,
    Can any one explain me is there any possibility to display some popup messages while running BEx queries?
    Regards,
    Anusha

    Hi there,
    You can do taht with user exit variables with the code something like this:
      WHEN 'YOUR_VARIABLE'.
        if i_step = 2.
        LOOP AT eto_charsel INTO ln_charsel.
    *some validation of your own
          if ln_charsel-low NE '1'.
    *call function to send a message, in this case, an error message
             CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
               EXPORTING
                 i_class  = 'ERROR!'
                 i_type   = 'E'
                 i_number = '000'
                 i_msgv1  = 'Please connect again and'
                 i_msgv2  = 'use the Revision Layout'.
                 RAISE no_processing.
          endif.
        ENDLOOP.
        endif.
    Diogo.

  • Hi Experts , I am currently facing problems while running restricted version copy .. The log says 0 location products copied and that the process has has timed out. the error message is /SAPAPO/MVM_INT_SVC_CO_VER_LCW reported exception in task DP00014, th

    Hi Experts , I am currently facing problems while running restricted version copy in sap apo .. The log says 0 location products copied and that the process has timed out. the error message is " /SAPAPO/MVM_INT_SVC_CO_VER_LCW reported exception in task DP00014 " , then ending in time limit exceeded. could anyone explain why this happens. please note even if the log says 0 location products copied , in reality they have have been partially copied.
    Regards
    Jerel

    Hi, thank you for your replies, I found out few things about my servlet, and its portability
    and i have few questions, although i marked this topic as answered i guess its ok to post
    I am using javax.servlet.context.tempdir to store my files in that servletcontext temporary directory. But i dont know how to give hyperlink
    of the modified files to the user for them to download the modified files.
    What i am using to get the tempdir i will paste
    File baseurl = (File)this.getServletContext().getAttribute("javax.servlet.context.tempdir");
    System.out.println(baseurl);
    baseurl = new File(baseurl.getAbsolutePath()+File.separator+"temp"+File.separator+"files");
    baseurl.mkdirs();so i am storing my files in that temp/files folder and the servlet processes them and modifies them, then how to present them as
    links to the user for download ?
    and as the servlet is multithreaded by nature, if my servlet gets 2 different requests with same file names, i guess one of them will be overwritten
    And i want to create unique directory for each request made to the servlet , so file names dont clash.
    one another thing is that i want my servlet to be executed by my <form action> only, I dont want the user to simply type url and trigger the servlet
    Reply A.S.A.P. please..
    Thanks and regards,
    Mihir Pandya

  • Problem while running client program in Netbeans4.0

    Hi,
    I am facing the following problem while running a client program in Nebeans4.0.
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x7C9012B4
    Function=RtlInitAnsiString+0x1B
    Library=C:\WINDOWS\system32\ntdll.dll
    Current Java thread:
    at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
    at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:770)
    at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1059)
    at java.net.InetAddress.getAllByName0(InetAddress.java:1009)
    at java.net.InetAddress.getAllByName0(InetAddress.java:981)
    at java.net.InetAddress.getAllByName(InetAddress.java:975)
    at weblogic.rjvm.RJVMFinder.getDnsEntries(RJVMFinder.java:370)
    at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:181)
    - locked <0x1007ff78> (a weblogic.rjvm.RJVMFinder)
    at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:125)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:291)
    at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:234)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:135)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at AcfClient.getHomeRef(AcfClient.java:73)
    at AcfClient.forceSession(AcfClient.java:43)
    at AcfClient.main(AcfClient.java:34)
    Dynamic libraries:
    0x00400000 - 0x00406000      C:\Data\j2sdk1.4.2_04\jre\bin\java.exe
    0x7C900000 - 0x7C9B0000      C:\WINDOWS\system32\ntdll.dll
    0x7C800000 - 0x7C8F4000      C:\WINDOWS\system32\kernel32.dll
    0x77DD0000 - 0x77E6B000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77E70000 - 0x77F01000      C:\WINDOWS\system32\RPCRT4.dll
    0x77C10000 - 0x77C68000      C:\WINDOWS\system32\MSVCRT.dll
    0x08000000 - 0x08138000      C:\Data\j2sdk1.4.2_04\jre\bin\client\jvm.dll
    0x77D40000 - 0x77DD0000      C:\WINDOWS\system32\USER32.dll
    0x77F10000 - 0x77F56000      C:\WINDOWS\system32\GDI32.dll
    0x76B40000 - 0x76B6D000      C:\WINDOWS\system32\WINMM.dll
    0x6BD00000 - 0x6BD0D000      C:\WINDOWS\system32\SYNCOR11.DLL
    0x10000000 - 0x10007000      C:\Data\j2sdk1.4.2_04\jre\bin\hpi.dll
    0x00390000 - 0x0039E000      C:\Data\j2sdk1.4.2_04\jre\bin\verify.dll
    0x003B0000 - 0x003C9000      C:\Data\j2sdk1.4.2_04\jre\bin\java.dll
    0x003D0000 - 0x003DD000      C:\Data\j2sdk1.4.2_04\jre\bin\zip.dll
    0x02DA0000 - 0x02DAF000      C:\Data\j2sdk1.4.2_04\jre\bin\net.dll
    0x71AB0000 - 0x71AC7000      C:\WINDOWS\system32\WS2_32.dll
    0x71AA0000 - 0x71AA8000      C:\WINDOWS\system32\WS2HELP.dll
    0x71A50000 - 0x71A8F000      C:\WINDOWS\System32\mswsock.dll
    0x76F20000 - 0x76F47000      C:\WINDOWS\system32\DNSAPI.dll
    0x76FB0000 - 0x76FB8000      C:\WINDOWS\System32\winrnr.dll
    0x76F60000 - 0x76F8C000      C:\WINDOWS\system32\WLDAP32.dll
    0x66210000 - 0x66219000      C:\WINDOWS\system32\netware\NWWS2NDS.DLL
    0x50D50000 - 0x50D95000      C:\WINDOWS\system32\NETWIN32.DLL
    0x50D00000 - 0x50D15000      C:\WINDOWS\system32\CLNWIN32.DLL
    0x50DF0000 - 0x50E10000      C:\WINDOWS\system32\LOCWIN32.DLL
    0x50DB0000 - 0x50DD9000      C:\WINDOWS\system32\NCPWIN32.dll
    0x71AD0000 - 0x71AD9000      C:\WINDOWS\system32\WSOCK32.dll
    0x66220000 - 0x6622C000      C:\WINDOWS\system32\netware\NWWS2SLP.DLL
    0x1C000000 - 0x1C007000      C:\WINDOWS\system32\NWSRVLOC.dll
    0x76C90000 - 0x76CB8000      C:\WINDOWS\system32\imagehlp.dll
    0x59A60000 - 0x59B01000      C:\WINDOWS\system32\DBGHELP.dll
    0x77C00000 - 0x77C08000      C:\WINDOWS\system32\VERSION.dll
    0x76BF0000 - 0x76BFB000      C:\WINDOWS\system32\PSAPI.DLL
    Heap at VM Abort:
    Heap
    def new generation total 576K, used 497K [0x10010000, 0x100b0000, 0x104f0000)
    eden space 512K, 89% used [0x10010000, 0x10083158, 0x10090000)
    from space 64K, 57% used [0x100a0000, 0x100a9478, 0x100b0000)
    to space 64K, 0% used [0x10090000, 0x10090000, 0x100a0000)
    tenured generation total 1408K, used 129K [0x104f0000, 0x10650000, 0x14010000)
    the space 1408K, 9% used [0x104f0000, 0x10510438, 0x10510600, 0x10650000)
    compacting perm gen total 4096K, used 2122K [0x14010000, 0x14410000, 0x18010000)
    the space 4096K, 51% used [0x14010000, 0x14222828, 0x14222a00, 0x14410000)
    Local Time = Fri Aug 26 10:26:03 2005
    Elapsed Time = 2
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode)
    # An error report file has been saved as hs_err_pid1280.log.
    # Please refer to the file for further information.
    Can anyone pls let me know what could be the problem.
    Thanks in adv.

    Hi,
    This type of error
    java.lang.NoClassDefFoundError: javax/naming/Context
    will occur when the client program could not able to locate lib/j2EE.jar file.
    So set the classpath correctly and make sure that you have correctly defined the JAVA_HOME environment variable in .bat script.
    Hope this will help you.
    Regards,
    Anil.
    Technical Support Engineer.

  • Error while integrating BEx Query with Cognos

    Hi all,
    we have made 999 rows and 150 columns..
    but we r unable  to integrate it with cognos if we remove free characteristics....
    and it thows me the following error
    1.BAP-ERR-0002 a BAPI error has occured in the function module RFC_READ_TABLE. NOT_AUTHORIZED
    2.error when generating data provider
    3.Query is too large
    Please do reply immediately with the correct solution
    Regards
    Madhavi

    Hi Vani Reddy
    Jus one quick finding are there any new patches upgrade taken place in your system . its in generally occurs because patch issues please refer the following note  1325527.
    it may helps you in this reg.
    Hope its clear a little..!
    Thanks
    K M R
    ***Even if you have nothing, you can get anything.
    But your attitude & approach should be positive..!****
    >
    vani reddy wrote:
    > Hi All,
    >
    > While executing Bex Query user is getting below error message after 20 mins and coming out of BEx.
    >
    >
    >
    > Error Group
    >
    > RFC_ERROR_SYSTEM_FAILURE
    >
    > Message
    >
    > An exception that could not be cought occured.
    >
    > Thanks in advance
    > Vani
    Edited by: K M R on Aug 12, 2009 2:14 PM

  • Strange problem while execution of query....

    Hi Friends
    I am facing a strange problem while executing the query.
    I have one query ,its old one ,till yesterday everday it was working fine ,
    But today i am trying to execute that query ,execution process takes very long time ,finally no response from bw server.
    its an important report in our company
    I checked query , Every thing is ok ,bze i haven't made any changes
    So i need some suggetions  .like where can i check and what can i do?
    ASAP ....  So Please ...its very urgent....
    EVERY THING AND ANY THING WILL BE REWARED
    Thanks in advance
    RK

    Hi
    Stefan
    Thank you for your valuable suggestion
    the problem is solved
    Already i  assigned  points.
    Thnaks & Regards
    RK

Maybe you are looking for