Unable to resolve the query

Hi
I have the following table.
Complex No
Complex Amount
Child Invoice
Invoice Amount
Invoice Date
123
9000
245
2000
1-Oct-13
123
456
3000
01-Nov-13
123
567
4000
31-Oct-13
My requirement is to generate the following report
Complex No
Complex Amount
Till Date
Future Date
123
9000
6000
3000
Where Till Date is the sum of Amount of Invoice Dated <= 31-OCT-13 and Future Dated is the sum of amount of invoice dated > 31-OCT-13.
Can anyone help me with the query?

with t as (
           select 123 complex_no,9000 complex_amount,245 child,2000 invoice_amount,date '2013-10-01' invoice_date from dual union all
           select 123,null,456,3000,date '2013-11-01' from dual union all
           select 123,null,567,4000,date '2013-10-31' from dual
select  complex_no,
        sum(complex_amount) complex_amount,
        sum(case when invoice_date <= last_day(sysdate) then invoice_amount end) till_date,
        sum(case when invoice_date > last_day(sysdate) then invoice_amount end) future_date
  from  t
  group by complex_no
COMPLEX_NO COMPLEX_AMOUNT  TILL_DATE FUTURE_DATE
       123           9000       6000        3000
SCOTT@orcl >
SY.

Similar Messages

  • Unable to process the query

    We have some custom entries in the file 'custom.ini' that are stored in
    the Sybase database.
    When I start a query for these custom attributes then I get the
    following error message:
    "Unable to process the query. Ensure that the database connection is up.
    For more information, see the error message documentation at
    http://www.novell.com/documentation."
    The database connection is up and running because when I start a query
    of a standard attributes of ZfD then I get a result.
    I get this error message just on custom entries.
    I have enable the debug logs, how explaned on the documentation, but
    without positive results.
    Any ideas?
    Pete

    Pete,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • DA0003: Exception CS, Unable to run the query execute

    Hi all,
    I try to use a stored procedure as data provider but i get this error
    DA0003: Exception CS, Unable to run the query execute
    I use BusObj Full Client 6.5 pointing to SQL2005.
    I choose stored procedure as data providers of a new report, then choose the Oledb connection to the database in which the sproc is saved (this sproc executes some queries, all on the same db). Then I fill in the parameter of the sproc and when i click OK I get this error.
    The sp works fine if executed from a query tool. Basically it queries BusObj Security Domain in order to get the documents a single user has linked (both enabled and disabled). It doesn't do nothing exceptionall except using some table variables... I tried also with this simple func:
    CREATE FUNCTION [dbo].[Yesterday] (@date int)
    RETURNS int AS BEGIN
       DECLARE @Yesterday int
       SET @yesterday = convert(varchar, DATEADD(dd, -1, convert(datetime, str(@date), 112) ), 112)
       RETURN(@Yesterday)
    END;
    But it returns the same error!
    I tried changing middleware to the DB from oleDB to ODBC but in this case it doesn't prompt me for parameters and when i click execute it fails saying the sproc expects a parameter...
    I have no idea of what the cause may be... Can anybody help please?

    Hi Alberto,
    Could you please test the following solutions to resolve the issue.
    Solution1:
    Test the issue by inserting the following parameter in .SBO file.
    <Parameter Name="Force SQLExecute">Always</Parameter> .
    Solution2
    Just put SET NOCOUNT OFF in the end of the stored procedure SQL.
    If the above doesnu2019t works then please try the following solution.
    Solution3
    Make the new connection from the scratch using ODBC connection and test the issue.
    I hope this will help you.
    Regards,
    Sarbhjeet Kaur

  • I am unable to update software or backup my devices. Apple techs unable to resolve the issue after hours of phone support over the course of several months.

    I am unable to update software, transfer purchases, sync, or backup any of my 3 devices. I have tried using iTunes on other computers, uninstalling iTunes with tech support walking me through, using a different user on my computer, deleting photos off of my devices, using an ethernet cable instead of connecting with wifi, uninstalling my antivirus software and firewall, and had my laptop examined by several techs who all determined there was nothing wrong with the laptop that explains what has been going on. I am also unable to view or download purchases on iTunes.  Clicking the Itunes store results in a blank white screen. I get various error messages, including -9886. Apple techs and now the engineers have been unable to resolve the issues thus far, even after several hours of phone support over the course of several months (about 5 hours this month alone). I have done everything they've suggested, even when they've suggested I do something over again, and I'm becoming frustrated. I would greatly appreciate any advice you can offer. Thank you in advance for your time.

    Hi there
    Sorry for hijacking your thread as put by Dahveed. However I have resolved my issue so I thought I'll share it with the rest of you.
    I checked for the error 3194 in youtube and I found some good videos that tell you how to resolve the problem. The issue I was facing was the actually (I know because I have resolved it now) the communication between my computer and apple server which can be fixed as following (if you are using windows):
    There is file in following directory:
    C:\Windows/system32/drivers/etc/hosts
    The file normally has no extension and it is in file format. You need to open it and make sure that every line that has apple server id starts with "#". In my case one of the line started directly with the ip address and then gs.apple.com.
    Perform your restore/update after that and hopefully it should be resolved (mine did).
    Cheers

  • [nQSError: 77030] Oracle BI Presentation Server Connection Error: Unable to resolve the address for cn.

    Hi Experts,
    When I use Agent functionality to send email in BIEE 11.1.1.7.0, it will generate the following error message as below:  Are you facing the same problem ? Please help me,Thanks very much.
    Global Error: [nQSError: 77030] Oracle BI Presentation Server Connection Error: Unable to resolve the address for cn.
    Error Codes: AXSBMN8D:
    The operation completed successfully.

    Can you try doing telnet to SMTP server from where BI server is installed and let us know the outcome.Just want to check if any firewall is blocking
    telnet hostname portnumber
    Thanks,

  • REP-0495: Internal Error - Unable to tokenize the query.

    Hi
    I am getting error when I run xml reports .
    log file is as follow
    Receivables: Version : 11.5.0 - Development
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    FLUNARD module: UFlex-Debtors Trial Balance
    Current system time is 27-JAN-2010 13:10:22
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_START_DATE='1999/01/01 00:00:00'
    P_END_DATE='31-JAN-09'
    P_CHART_OF_ACCOUNTS_ID='50268'
    P_ORG_ID='103'
    XML_REPORTS_XENVIRONMENT is :
    /applprod/oracle/prdora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    XENVIRONMENT is set to /applprod/oracle/prdora/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    REP-0495: Internal Error - Unable to tokenize the query.
    Report Builder: Release 6.0.8.25.0 - Production on Wed Jan 27 13:10:30 2010
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter Username:
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 1929569.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 27-JAN-2010 13:10:49
    Thanks
    Rahul

    I suggest opening a case with Cisco TAC.  This could be an issue with the device itself.
    Please remember to select a correct answer and rate helpful posts

  • Unable to resolve the domain

    The app server is:
    Sun GlassFish Enterprise Server v2.1 (9.1.1) (build b60e-fcs)
    I'm running:
    Sun Convergence 1.0-14.01 (built June 9 2010 - 23:49:24)
    Sun Java(tm) System Messaging Server 7u3-17.01 64bit (built Jun 8 2010)
    Sun Java(tm) System Calendar Server 6.3-19.01 (built Aug 26 2009)
    Sun IM - 8u2-02.04
    This is in the iwc.log:
    AUTH: ERROR from com.sun.comms.client.security.auth.modules.impl.SunAuthCallBack  Thread httpSSLWorkerThread-443-1 at 2010-08-18 17:31:53,397 - Unable to resolve the domain school.edu  Failed. could not find:school.edu under o=schoolThe base dn is o=school
    under this is o=school.edu
    under this is People, etc.
    The directory is a replica of our production dir - and runs on our testmail.school.edu box along with all (or most) of Comms Suite 7. Accounts have addresses like [email protected] I have used testmail.school.edu as the default domain in the configuration steps for each application.
    If I add an associatedDomain with the value "school.edu" for o=school.edu (under o=school) in addition to the existing sunPreferredDomain and associatedDomain values which are testmail.school.edu, the error goes away - but IM doesn't work unless I login with a uid like "[email protected]" instead of just "me".
    If I do not have an associatedDomain of "school.edu" for o=school.edu (under o=school), I can login with uid me - and everything works - but that error is there.
    Thanks,
    s7

    shjorth wrote:
    starman7 wrote:
    What is the URL used to access the Convergence instance e.g. http://testmail.school.edu/iwc?
    Yes /iwc - and then it redirects to: /iwc_static/layout/login.html?lang=en-us&14.01_234924&svcs=abs,im,mail,calendarWhat is the entire URL?testmail.school.edu
    which redirects to:
    https://testmail.school.edu/iwc
    which ends up here:
    It's https://testmail.school.edu/iwc_static/layout/login.html?lang=en-us&14.01_234924&svcs=abs,im,mail,calendar
    >
    me@x1$ /opt/sun/comms/messaging64/sbin/imsimta test -domain
    DOMAIN_MAP> verify
    %DMAP-E-DOMAINMULTDEF, Domain 'testmail.school.edu' multiply defined by entries with DNs 'o=school.edu,o=school' and 'o=school.edu,o=school'Have you set both "sunPreferredDomain: testmail.school.edu" and "associatedDomain: testmail.school.edu" on the "dn: o=school.edu,o=school" entry?Yes. assocatedDomain of school.edu might not have been set when I ran the imsimta test domain.
    >
    %DMAP-E-NODOMAINNAME, Domain entry with DN 'o=business,o=school' does not have a domain name
    %DMAP-E-NODOMAINNAME, Domain entry with DN 'o=ESGDomainsRoot,o=business,o=school' does not have a domain name
    %DMAP-E-NODOMAINNAME, Domain entry with DN 'o=VISDomainsRoot,o=business,o=school' does not have a domain name
    %DMAP-E-NODOMAINNAME, Domain entry with DN 'o=SharedDomainsRoot,o=business,o=school' does not have a domain name
    %DMAP-E-NODOMAINNAME, Domain entry with DN 'o=ESG,o=siroe.com,o=SharedDomainsRoot,o=business,o=school' does not have a domain name
    %DMAP-E-NODOMAINNAME, Domain entry with DN 'o=VIS,o=siroe.com,o=SharedDomainsRoot,o=business,o=school' does not have a domain name
    %DMAP-E-NODOMAINNAME, Domain entry with DN 'o=DEF,o=VIS,o=siroe.com,o=SharedDomainsRoot,o=business,o=school' does not have a domain nameThe above entries appear to be those added by Delegated Administrator when you select "add sample domain" during configuration.
    iim.policy.modules = "iim_ldap_schema2"
    iim_ldap.schema2.domain_config_root = "o=school" ( - should that be o=school.edu,o=school - ?)"o=school" is correct.
    What do you have configured for "default.domains" in the Convergence httpbind.conf file (i.e. the one in /opt/sun/comms/iwc/config)?I have:
    default.domains=testmail.school.edu
    When you added "associatedDomain: school.edu" to the "dn: o=school.edu,o=school" entry and logged in with "uid" only, you were actually logged in as "[email protected]".
    Since you don't have school.edu in the default.domains setting above, IM didn't work.
    So in this scenario you would need to set:
    default.domains=testmail.school.edu school.edu
    I tried this while having the school.edu as an associtedDomain to: dn: o=school.edu, o=school and while it worked I saw different errors -
    AUTH: ERROR from com.sun.comms.client.security.sso.impl.SunBaseIdentitySSOProvider  Thread httpSSLWorkerThread-443-6 at 2010-08-21 10:35:08,239 - Exception while performing SSO against OpenSSO AQIC5wM2LY4Sfcxkv948H6xWMQstUSYrTMc8WxxfpnKkdJQ.*AAJTSQACMDMAAlNLAAk5OTM0MTM5MzIAAlMxAAIwMQ..* Session was not obtained.
    AUTH: ERROR from com.sun.comms.client.web.sso.SSOFilter  Thread httpSSLWorkerThread-443-6 at 2010-08-21 10:35:08,241 - Exception while performing Sigle Sign On com.iplanet.sso.SSOException: AQIC5wM2LY4Sfcxkv948H6xWMQstUSYrTMc8WxxfpnKkdJQ.*AAJTSQACMDMAAlNLAAk5OTM0MTM5MzIAAlMxAAIwMQ..* Session was not obtained.
    AUTH: ERROR from com.sun.comms.client.security.sso.impl.SunBaseIdentitySSOProvider  Thread httpSSLWorkerThread-443-0 at 2010-08-21 10:35:35,826 - Exception while performing SSO against OpenSSO AQIC5wM2LY4Sfcxkv948H6xWMQstUSYrTMc8WxxfpnKkdJQ.*AAJTSQACMDMAAlNLAAk5OTM0MTM5MzIAAlMxAAIwMQ..* Session was not obtained.
    AUTH: ERROR from com.sun.comms.client.web.sso.SSOFilter  Thread httpSSLWorkerThread-443-0 at 2010-08-21 10:35:35,831 - Exception while performing Sigle Sign On com.iplanet.sso.SSOException: AQIC5wM2LY4Sfcxkv948H6xWMQstUSYrTMc8WxxfpnKkdJQ.*AAJTSQACMDMAAlNLAAk5OTM0MTM5MzIAAlMxAAIwMQ..* Session was not obtained.
    AUTH: WARN from com.sun.comms.client.protocol.delegate.agent.LoginContextAgent  Thread httpSSLWorkerThread-443-0 at 2010-08-21 10:35:35,874 - Subject not found in session, creating one
    AUTH: INFO from com.sun.comms.client.security.auth.modules.impl.SunAuthCallBack  Thread httpSSLWorkerThread-443-0 at 2010-08-21 10:35:35,945 - User LoginID is me123
    AUTH: INFO from com.sun.comms.client.security.auth.modules.impl.SunAuthCallBack  Thread httpSSLWorkerThread-443-0 at 2010-08-21 10:35:36,089 - User domain is school.edu
    AUTH: INFO from com.sun.comms.client.security.auth.modules.impl.SunBaseIdentityLoginModule  Thread httpSSLWorkerThread-443-0 at 2010-08-21 10:35:36,498 - UserName: me123  Login success!!
    AUTH: INFO from com.sun.comms.client.security.auth.CommsUserInitContext  Thread httpSSLWorkerThread-443-0 at 2010-08-21 10:35:36,639 - Loading user entry from LDAP
    AUTH: INFO from com.sun.comms.client.security.auth.CommsUserInitContext  Thread httpSSLWorkerThread-443-0 at 2010-08-21 10:35:36,855 - User entry loaded successfully
    PROTOCOL: WARN from com.sun.comms.client.protocol.delegate.agent.ClientOptionsAgent  Thread httpSSLWorkerThread-443-0 at 2010-08-21 10:35:37,134 - No domain found for Domain name  testmail.school.edu
    AUTH: INFO from com.sun.comms.client.web.IwcCookieManager  Thread httpSSLWorkerThread-443-0 at 2010-08-21 10:35:37,139 - Preferred language for user is en
    PROTOCOL: WARN from com.sun.comms.client.protocol.delegate.UserPrefsCommandDelegate  Thread httpSSLWorkerThread-443-4 at 2010-08-21 10:35:39,011 - get_allprefs.iwc : Service is not enabled : smime
    PROTOCOL: WARN from com.sun.comms.client.protocol.delegate.agent.ClientOptionsAgent  Thread httpSSLWorkerThread-443-4 at 2010-08-21 10:35:39,048 - client preferences not found for domain: school.edu
    PROXY_MAIL: INFO from com.sun.comms.client.web.services.sun.MailServiceProxy  Thread httpSSLWorkerThread-443-0 at 2010-08-21 10:35:40,682 - Performing Sun Mail Authentication
    ADDRESS_BOOK: INFO from com.sun.comms.client.ab.coresrv.DBHandler  Thread httpSSLWorkerThread-443-3 at 2010-08-21 10:35:41,667 - Got DBPluginMap so will go back to one default.domains (dropping school.edu) and no school.edu associateDomain for dn: o=school.edu, o=school.
    Is there a way I can login w/ uid only, and not need that school.edu associatedDomain, and not see either error in the log?
    I also see this:
    AUTH: ERROR from com.sun.comms.client.web.sso.SSOFilter  Thread pool-1-thread-3 at 2010-08-21 10:53:55,032 - Error obtaining Admin Password. Input length must be multiple of 8 when decrypting with padded cipher
    Regards,
    Shane.

  • Unable to execute the query after transpoting to Quality in BI7.0

    Hi Friends,
    We are facing problem while executing the query in BI 7.0 after transporting to Quality system.
    Whenever we are clicking on the query in Analyser after transporting to quality, it is throwing an error like "Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION" and " system error in program SAPLRRI2 and form DIM_FAC_SRDATE-02" and it is disconnecting from BI system.
    The transport went successfully to quality system.
    Please do the needful regarding the above errors.
    Thanks
    Rama

    Hello,
    I resolved the problem. I removed all the variables in the query did another "Query Check" and the error message was clearer.
    There were missing infobjects in the Multi-Provider.  When I fixed this the error was gone.
    Thanks.

  • Unable to ececute the query through RSRT in GRQ.

    Hi Xperts,
    i have created a query in development server and tested in RSRT and i found tha the query is working fine(i am getting the value in query output).
    But after tranporting that query to Quality server,when i tried through RSRT it is not working...the queryt taking longer time and i am not getting any query output.
    can any one please help me on this?
    reg,
    sat

    hi ,
    1. Try 'Generate the report' for your   your query in tcode - RSRT2 , before executing the query in quality system .
    If this  doesnot solves your issue , then try this :-
    1. go to tcode- RSCRM_BAPI .
    2. You will get the infoareas , drill down to your query from the corresponding infoarea .
    3..Execute the query over there. 
    4. Have a 'OLAP check'  of  the query to find any inconsistencies .
    Regards,
    Lokesh

  • Unable to refresh the query

    Hi All,
    In my system MS office visio was installed and by that day i am unable to refresh query and its giving error "The macros 'Sapbex.xla!queryrefresh' cannot be found".
    I have checked the file sapbex.xla and ffound in the path c:\program files\sap\frontend\bw . Please suggest ASAP.
    Regards
    Sunil

    un answered.

  • Unable to resolve the classpath error in Web Dynpro DC

    Hi,
    While building a new Web Dynpro DC we got the following build errors:
    The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.security.api.IUser. Fix the classpath then try rebuilding this project. ND1_MTRACK_DTrvlMgmtmindtree.com     
    We have already added the external jar files by following the steps mentioned in this blog /people/marion.schlotte/blog/2007/12/19/simplify-dc-structures-for-external-libraries
    The respective dependancy of the J2EE library dc was added to the WD component but the issue still persists.
    Please help us in resolving this error.
    Best Regards
    Gaurang

    Hi Gaurang,
    Were you able to resolve your issue?
    Hope the following links help:
    /message/7579461#7579461 [original link is broken]
    Re: Required JAR files:
    Regards,
    Dao

  • Unable to find the query

    hello all!!!!!
    i had posted a query in the last fortnight and i dont remember the date. the subject was "how to deploy an application developed in JDeveloper". i have gone through 12-13 pages but could not find it. i have to go through the answer once again. how can i search for that query? i did not find any search option for the threads.
    please help

    Do you mean this:
    deploying a web application
    You can just click your own name on the left of your post and you see all the latest posts you did.
    Regards
    Edit: John was a little faster then me :-)

  • Rep-0496 unable to parse the query

    Hi ,
    i am using developer 2000 2.1,
    i am getting this error when i have tried to use the joins.
    please change this below sql query to work in report 2.1.
    select distinct table1.t$mitm bandPartsRoutingMitm, table2.t$dsca task,trim(table1.t$tano ||' '||table2.t$dsca) Description,table3.task  from table1
    join table2 on table1.t$cwoc = table2.t$cwoc
    and table1.T$MITM='7366X55'
    left outer join table3 on trim(table1.T$MITM)=table3.part
    and trim(table3.t$srln$c)=  'Q444442'
    and table3.Band='MMMT'
    and  table3.task =trim(table1.t$tano ||' '||table2.t$dsca);
    it is working fine in SQL developer.
    please help me.
    Thanks,
    Sateesh.

    Hi, Sateesh,
    Unless you post some sample data (CREATE TABLE and INSERT statements) for all the tables, and the results you want from that data, all I can do is guess at solutions.  Guessing is not a very good way to solve problems.
    My best guess right now is:
    SELECT DISTINCT
            tables_1_2.bandPartsRoutingMitm
    ,  tables_1_2.task
    , tables_1_2.workCenterDescription
    ,       table3.task_3
    FROM (  -- Begin in-line view tables_1_2
             SELECT  table1.t$mitm  bandPartsRoutingMitm
             ,      table2.t$dsca  task
             ,     TRIM (  table1.t$tano
                        || ' '
                        || table2.t$dsca
                        )  workCenterDescription
             FROM    table1
             ,       table2
             WHERE   table1.t$cwoc  = table2.t$cwoc
             AND     table1.T$MITM  = '7366X55'
            )   tables_1_2
    ,       table3
    WHERE   table3.part                = TRIM (tables_1_2.bandPartsRoutingMitm
    AND     TRIM (table3.t$srln$c (+))   =  'Q444442'
    AND     table3.Band                = 'MMMT'
    AND     table3.part                = '7366X55'
    AND     table3.task                  = tables_1_2.workCenterDescription
    is how this site is displaying the outer join indicator, a + sign inside  parentheses .
    You can't really have a view with parameters, but you can do something almost as good: create a global temporary table to hold what would be the parameters, and join to that global temnporary table.

  • When I try to connect to wireless internet, I get Error-105, "Unable to resolve the server's DNS address". I've tried everything from resetting including a full software update and nothing has fixed it. What should I do?

    I've tried resetting the router, resetting my airport on my laptop, unplugging the router, restarting my computer, updating all my software (including from snow leopard to mountain lion) replacing the dns ip address, and restarting the browsers. It won't let me use wi-fi on any of the browsers (chrome, firefox, safari), but will allow me to use internet through the ethernet cable.
    This happened earlier today when for my job I tried to clear some expired certificates and I removed the expired ones that were on my firefox (I now use chrome) and the internet crashed soon afterwards. While I was deleting the certificates, I also got the "blue screen of death" sort of thing that popped up and shut my computer down.
    I have no idea what to do and my laptop is no longer under warranty. Can anybody help me?

    Please read this whole message and be sure you understand all of it before doing anything. Back up all data before making changes to your settings.
    Write down the server addresses.
    Click Cancel to close the Advanced sheet. Unlock the preference pane, if necessary, by clicking the lock icon in the lower left corner and entering your password. Open the DNS tab again and change the server addresses to the following:
    8.8.8.8
    8.8.4.4
    That's Google DNS. Click OK, then Apply.
    In Safari, select
    Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data
    and confirm. If you’re using another browser, empty the cache. Test. Any difference?
    Notes:
    1. If you lose Internet access after making the above change to your network settings, delete the Google servers in the Network preference pane, then select the TCP/IP tab and click Renew DHCP Lease. That should restore the original DNS settings; otherwise restore them yourself.
    2. I’m not advocating Google or anything else as a DNS provider; the server addresses are offerred merely for testing purposes. There may be privacy and technical issues involved in using that service, which you should investigate personally before you decide whether to keep the settings. Other public DNS services exist.

  • Unable to resolve the exception  READ_REPORT_LINE_TOO_LONG in Abap program.

    Hi,
      I am getting the exception READ_REPORT_LINE_TOO_LONG in my abap program.Given below is the full analysis of the exception and then the program code :-
    Error Analysis :-
      An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_READ_SRC_LINE_TOO_LONG', was
      not caught in
    procedure "K_KKB_FIELDCAT_MERGE" "(FUNCTION)", nor was it propagated by a
      RAISING clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    There was an attempt to read program "ZANI_TEST_INTERACTIVE_ALV" from the
      database.
    The READ REPORT statement allows you to copy a program text into an
    internal table. The occupied line length in the program text must not
    exceed the width of the internal table.
    The internal table "\FUNCTION=K_KKB_FIELDCAT_MERGE\DATA=L_ABAP_SOURCE[]" is 72
      characters wide. The program line is
    91 characters wide.
    Program Code :-
    *& Report  ZANI_TEST_INTERACTIVE_ALV
    REPORT  ZANI_TEST_INTERACTIVE_ALV.
    TABLES: LFA1.
    TYPE-POOLS: slis.
    DATA: it_lfa1 TYPE TABLE OF lfa1,
          wa_lfa1 TYPE lfa1,
          it_fieldcat TYPE slis_t_fieldcat_alv.
    SELECTION-SCREEN BEGIN OF BLOCK input WITH FRAME TITLE input.
      SELECT-OPTIONS: acc_no FOR LFA1-LIFNR.
    SELECTION-SCREEN END OF BLOCK input.
    START-OF-SELECTION.
      IF NOT acc_no IS INITIAL.
        SELECT * FROM LFA1
          INTO CORRESPONDING FIELDS OF TABLE it_lfa1
          WHERE LIFNR IN acc_no.
      ELSE.
        SELECT * FROM LFA1
          INTO CORRESPONDING FIELDS OF TABLE it_lfa1.
      ENDIF.
      PERFORM form_build_fieldcatalog USING 'IT_LFA1' CHANGING it_fieldcat.
      PERFORM form_display_alv USING it_lfa1 it_fieldcat.
    *&      Form  form_build_fieldcatalog
          text
         -->P_0058   text
         <--P_IT_FIELDCAT  text
    form form_build_fieldcatalog  using    p_it_tabname TYPE slis_tabname
                                  changing p_it_fieldcat TYPE slis_t_fieldcat_alv.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          I_PROGRAM_NAME               = sy-repid
          I_INTERNAL_TABNAME           = p_it_tabname
        I_STRUCTURE_NAME             =
        I_CLIENT_NEVER_DISPLAY       = 'X'
          I_INCLNAME                   = sy-repid
        I_BYPASSING_BUFFER           =
        I_BUFFER_ACTIVE              =
        CHANGING
          ct_fieldcat                  = p_it_fieldcat
        EXCEPTIONS
          INCONSISTENT_INTERFACE       = 1
          PROGRAM_ERROR                = 2
          OTHERS                       = 3
      IF sy-subrc <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    endform.                    " form_build_fieldcatalog
    *&      Form  form_display_alv
          text
         -->P_IT_LFA1  text
    form form_display_alv using p_it_lfa1 LIKE it_lfa1  p_it_fieldcat TYPE slis_t_fieldcat_alv.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
        I_INTERFACE_CHECK                 = ' '
        I_BYPASSING_BUFFER                = ' '
        I_BUFFER_ACTIVE                   = ' '
          I_CALLBACK_PROGRAM                = sy-repid
        I_CALLBACK_PF_STATUS_SET          = ' '
        I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
        I_CALLBACK_TOP_OF_PAGE            = ' '
        I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
        I_CALLBACK_HTML_END_OF_LIST       = ' '
        I_STRUCTURE_NAME                  =
        I_BACKGROUND_ID                   = ' '
        I_GRID_TITLE                      =
        I_GRID_SETTINGS                   =
        IS_LAYOUT                         =
          IT_FIELDCAT                       = P_it_fieldcat
        IT_EXCLUDING                      =
        IT_SPECIAL_GROUPS                 =
        IT_SORT                           =
        IT_FILTER                         =
        IS_SEL_HIDE                       =
        I_DEFAULT                         = 'X'
        I_SAVE                            = ' '
        IS_VARIANT                        =
        IT_EVENTS                         =
        IT_EVENT_EXIT                     =
        IS_PRINT                          =
        IS_REPREP_ID                      =
        I_SCREEN_START_COLUMN             = 0
        I_SCREEN_START_LINE               = 0
        I_SCREEN_END_COLUMN               = 0
        I_SCREEN_END_LINE                 = 0
        I_HTML_HEIGHT_TOP                 = 0
        I_HTML_HEIGHT_END                 = 0
        IT_ALV_GRAPHICS                   =
        IT_HYPERLINK                      =
        IT_ADD_FIELDCAT                   =
        IT_EXCEPT_QINFO                   =
        IR_SALV_FULLSCREEN_ADAPTER        =
      IMPORTING
        E_EXIT_CAUSED_BY_CALLER           =
        ES_EXIT_CAUSED_BY_USER            =
        TABLES
          t_outtab                          = p_it_lfa1
        EXCEPTIONS
          PROGRAM_ERROR                     = 1
          OTHERS                            = 2
      IF sy-subrc <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    endform.                    " form_display_alv
    Please suggest a solution for this problem.. Thanks in advance.

    hi,
    it is getting because of fieldcat hear ur internal table is having all fields in lfa1, lfa1 is having more fileds alv cont display that much fields at a time . for that u are getting that messgae .  u can solve this problem by  filling fieldcat table manuvally insted of by FM 'fieldcat_merge'.  fill filedcat table some fields which are need to display by manuvally.
    thanq,
    rajesh.k

Maybe you are looking for

  • Is it possible to update ipad 1 to ios7?

    I'm gonna update my iPad (1st release) to iOS7. is it possible? Tnx

  • Installation of Oracle Apps 11i

    I have purchased Oracle Apps 11i(One month license) around two months back. Will it be a problem if I install after 30 days of purchase?(I have back dated the host by two months. The Host Name is Ciber. I tried to load Vision demo on WIN NT6.0 SP6 by

  • Diskwarrior 3.0.3 rev 39 hangs on file/folder comparison in 10.4.6

    I've read just about every post relating to Diskwarrior here, but this seems to be a new wrinkle. Recently I took my G4 Powerbook (15" aluminum 1.25 GHz) from 10.3.9 in steps up to 10.4.6. No problems, did all the recommended things (repair permissio

  • With large files Illustrator CS3 will not generate preview-picture, why?

    When Illustratorfiles (size from 8 meg and up) are saved as saved as eps-files the program gives a warning that it can not create a tiff-file as preview fot the file. If I save the files as Illustrator 8 open in in 8 and saved there is not problem. (

  • JMS on the log

    I have an application with an MDB in the ejb module. It listen message from a servlet. It works fine. But sometime in the server.log appear this: MQJMSRA_MC1101: constructor:Created mcId=70:xacId=3960385740166673664:Using xacf config={imqDefaultUsern