Hi all, i need solve this error of date e: 01.2008  -1 = 00.2008 (error)

Hi all, mi case is this:
i have an InfoObject called ZCALPROCE,  this concatenate month.year,  but this InfoObject its DATA TYPE is NUMC character string,  and i got a query that evaluate 3 months continuously, when i execute this query in the input variable i write  01.2008 (this must evaluate for example 01.2008 , 12.2007, 11.2007)  appears an error that says: value 00.2008 is not valid for the variable ,  what can i do please i need a solution cause its a very importan information, thanks friends !
Jorge Ayllon

Hi Jorge,
I can give you a work around for this.
Create a variable of type date.
Data : DATE1 type datum.
concatenate (read input variable from the user input) 01 into date1 .
date1 = date1 - 1.
first month would be date1+0(6) .
do the same for next two months also.
hope this helps
PV

Similar Messages

  • Can anyone solve this error? 0xc 19a0013

    can anyone solve this error? 0xc 19a0013 my black ink cartridge will not print and its full. i've cleaned the heads and still no black.  please help.

    Hello family1023, and welcome to the HP Forums, I hope you enjoy your experience!
    I see you are experiencing print system issues.  I would love to try and help you, but I do need a little information first. I am linking a few HP Support documents below that will show you how to find your product number. Also, please include which operating system you are using. Also, if you're using Windows, please include whether your operating system is 32-bit or 64-bit. With this information and the product number we can provide you with accurate information.
    How Do I Find My Model Number or Product Number?
    Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    Which Windows operating system am I running?
    Is the Windows Version on My Computer 32-bit or 64-bit?
    Please let me know what you find, and thanks for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • How to solve this error using OSX Server's bots

    Plz help me.
    My remote repository is SVN version controll system.
    when I started integration using bot in OSX Server. this error was pisplayed on a log.
    how to solve this error to integrate my project using OSX Server.
    Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildBundle.m:466 77537310 +61ms] Will NOT send email notifications because notifyCommitterOnFailure is NO Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildBundle.m:470 77537310 +0ms] Posting email notification for bot run with type com.apple.notifications.BotFailed Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildBundle.m:471 77537310 +0ms] Sending email to committers = (null) Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildBundle.m:1033 77537310 +0ms] Posting notification of type com.apple.notifications.BotFailed Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildHelper.m:199 77537310 +0ms] Posting notification for bot run GUID f87f0098-f8ca-4bfa-945e-cbb11a2f6abb of type com.apple.notifications.BotFailed Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Info>: [CSRemoteServiceClient.m:151 77537310 +0ms] Connecting to https://localhost:4443/svc to execute [https]Request{AuthService.enterMagicalAuthRealm()} Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Info>: [CSRemoteServiceClient.m:151 77537310 +45ms] Connecting to https://localhost:4443/svc to execute [https]Request{XCBotService.postNotificationForBotGUID:andRunGUID:andNotificati onType:additionalEmails:(c6189ca0-0649-0649-c01e-81c4d0b52dd9,f87f0098-f8ca-4bfa -945e-cbb11a2f6abb,com.apple.notifications.BotFailed,( ))} Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildBundle.m:601 77537310 +84ms] Deleting work queue item: cf7fe6b8-4df8-b723-4794-50fbf27955ed Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Info>: [CSRemoteServiceClient.m:151 77537310 +0ms] Connecting to https://localhost:4443/svc to execute [https]Request{XCWorkQueueService.deleteWorkQueueItemWithGUID:(cf7fe6b8-4df8-b7 23-4794-50fbf27955ed)} Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildBundle.m:929 77537310 +13ms] Marking build bundle complete with status failed and sub-status internal-checkout-error Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Info>: [CSRemoteServiceClient.m:151 77537310 +0ms] Connecting to https://localhost:4443/svc to execute [https]Request{AuthService.enterMagicalAuthRealm()} Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildHelper.m:97 77537310 +55ms] Updating bot run with GUID f87f0098-f8ca-4bfa-945e-cbb11a2f6abb Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildHelper.m:102 77537310 +0ms] Updating bot run (f87f0098-f8ca-4bfa-945e-cbb11a2f6abb): { guid = "f87f0098-f8ca-4bfa-945e-cbb11a2f6abb"; status = failed; subStatus = "internal-checkout-error"; } Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Info>: [CSRemoteServiceClient.m:151 77537310 +0ms] Connecting to https://localhost:4443/svc to execute [https]Request{XCBotService.updateBotRun:({ guid = "f87f0098-f8ca-4bfa-945e-cbb11a2f6abb"; status = failed; subStatus = "internal-checkout-error"; })} Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildHelper.m:108 77537310 +121ms] Updating bot with GUID c6189ca0-0649-0649-c01e-81c4d0b52dd9 Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildHelper.m:117 77537310 +0ms] Updating bot with latest bot run GUID key Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildHelper.m:124 77537310 +0ms] Updating bot (c6189ca0-0649-0649-c01e-81c4d0b52dd9): { guid = "c6189ca0-0649-0649-c01e-81c4d0b52dd9"; latestFailedBotRunGUID = "f87f0098-f8ca-4bfa-945e-cbb11a2f6abb"; latestRunStatus = failed; latestRunSubStatus = "internal-checkout-error"; } Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Info>: [CSRemoteServiceClient.m:151 77537310 +0ms] Connecting to https://localhost:4443/svc to execute [https]Request{XCBotService.updateBot:({ guid = "c6189ca0-0649-0649-c01e-81c4d0b52dd9"; latestFailedBotRunGUID = "f87f0098-f8ca-4bfa-945e-cbb11a2f6abb"; latestRunStatus = failed; latestRunSubStatus = "internal-checkout-error"; })}

    Hello,
    You need to make sure both names match exactly

  • Pl solve this error

    how to solve this error
    Unreachable Statement After Jump Statement EXIT:
      PERFORM get_item_category1
        TABLES    gt_comm_pr_frg_rel
                  gt_comm_prmat
        USING     ls_orderadm_i_wrk
        CHANGING  item_category_group1.
    subsequent coding
      IF lt_orderadm_i_wrk IS INITIAL.
        SELECT SINGLE * FROM comm_pr_frg_rel
               INTO lt_comm_pr_frg_rel
               WHERE product_guid = ls_orderadm_i_wrk-product.
        IF sy-subrc EQ 0.
          SELECT SINGLE * FROM comm_prmat
                  INTO lt_comm_prmat
                  WHERE frg_guid = lt_comm_pr_frg_rel-fragment_guid.
          IF sy-subrc EQ 0.
            item_category_group1 = lt_comm_prmat-item_cat_group.
          ENDIF.
        ENDIF.
      ENDIF.
      EXIT.

    im getting the error in slin
    .....the part of code is as folows
    DATA: lt_comm_pr_frg_rel TYPE  comm_pr_frg_rel,
            lt_comm_prmat      TYPE  comm_prmat.
      DATA    item_category_group1 TYPE crmt_item_cat_group.
      CLEAR item_category_group1.
    Store the data into the global internal tables for the first time.
      IF gt_comm_pr_frg_rel IS INITIAL.
        SELECT * FROM comm_pr_frg_rel
          INTO CORRESPONDING FIELDS OF TABLE gt_comm_pr_frg_rel
          FOR ALL ENTRIES IN lt_orderadm_i_wrk
          WHERE product_guid = lt_orderadm_i_wrk-product.
        IF sy-subrc = 0.
          SELECT * FROM comm_prmat
            INTO CORRESPONDING FIELDS OF TABLE gt_comm_prmat
            FOR ALL ENTRIES IN gt_comm_pr_frg_rel
            WHERE frg_guid = gt_comm_pr_frg_rel-fragment_guid.
        ENDIF.
      ENDIF.
      IF lt_orderadm_i_wrk IS INITIAL.
        SELECT SINGLE * FROM comm_pr_frg_rel
               INTO lt_comm_pr_frg_rel
               WHERE product_guid = ls_orderadm_i_wrk-product.
        IF sy-subrc EQ 0.
          SELECT SINGLE * FROM comm_prmat
                  INTO lt_comm_prmat
                  WHERE frg_guid = lt_comm_pr_frg_rel-fragment_guid.
          IF sy-subrc EQ 0.
            item_category_group1 = lt_comm_prmat-item_cat_group.
          ENDIF.
        ENDIF.
      ENDIF.
      EXIT.
    Get the Item category
      PERFORM get_item_category1
        TABLES    gt_comm_pr_frg_rel
                  gt_comm_prmat
        USING     ls_orderadm_i_wrk
        CHANGING  item_category_group1.
      item_category_group = item_category_group1.
    ENDFUNCTION.
    *&      Form  get_item_category
         -->LT_COMM_PR_textREL
         -->LT_COMM_PRMtext
         -->LS_ORDERADMtextRK
         -->ITEM_CATEGOtextROUP
    FORM get_item_category1
          TABLES   lt_comm_pr_frg_rel    STRUCTURE comm_pr_frg_rel
                   lt_comm_prmat         STRUCTURE comm_prmat
          USING    ls_orderadm_i_wrk     TYPE crmt_orderadm_i_wrk
          CHANGING item_category_group1   TYPE crmt_item_cat_group.
      DATA: ls_comm_pr_frg_rel      TYPE comm_pr_frg_rel,
            ls_comm_prmat           TYPE comm_prmat .
    Get item category group of product
      LOOP AT lt_comm_pr_frg_rel INTO ls_comm_pr_frg_rel
        WHERE product_guid  = ls_orderadm_i_wrk-product .
        READ TABLE lt_comm_prmat INTO ls_comm_prmat
          WITH KEY frg_guid = ls_comm_pr_frg_rel-fragment_guid.
        IF sy-subrc = 0.
          item_category_group1 = ls_comm_prmat-item_cat_group.
          EXIT.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    "get_item_category

  • How can I solve this error message? Some of your photos, including the photo "IMG_0374.jpg", were not copied to the iPad "(my name's) iPad" because they cannot be displayed on your iPad.

    how can I solve this error message? "Some of your photos, including the photo “IMG_0374.jpg”, were not copied to the iPad “(my name’s) iPad” because they cannot be displayed on your iPad."
    There were 273 photos in the event syncing from my Mac, but only the last 103 made it to the ipad. Most of the photos were taken by an iphone. I would appreciate any thoughts or insights - thanks.

    Adrian-
    That error message suggests the photo is somehow corrupt.
    Do you have the Apple Camera Connection Kit?  You can set up a USB thumb drive with MS-DOS FAT-32 format and copy your photos to it into a folder named DCIM.  Assuming they have an 8 character plus suffix name, the iPad will recognize them and give you the option of transferring them via the Kit's USB adapter.
    Once they are transferred, you can find out if there is a problem with any.
    Fred

  • How to solve this error java.util.MissingResourceException

    Hi Friends,
    I had developed one web dynpro application by using  Internationalization - I18N of WebDynPro (Java)  Application (Blog)   but I got one error that is
    <b>java.util.MissingResourceException: Can't find bundle for base name com.sap.example.language.lang, locale en_US</b> 
    Actually i created two properties file
    1. lang_en.properties
    2. lang_ta.properties
    I stored this two properties file in this package com.sap.example.language
    and this my code in DOInit()
    sessionLocale =  WDClientUser.getCurrentUser().getLocale();
    resourceHandler = ResourceBundle.getBundle("com.sap.example.language.lang",sessionLocale);
         catch (WDUMException e)
         e.printStackTrace();
         wdContext.currentContextElement().setUsername_label(resourceHandler.getString("testview.username"));
         wdContext.currentContextElement().setPassword_label(resourceHandler.getString("testview.password"));
    How to solve this error?
    Guide me.
    Advance Thanks,
    Balaji

    Hi Friends,
    I had developed one web dynpro application by using Internationalization - I18N of WebDynPro -Java Application (Blog) but I got one error that is
    <b>java.util.MissingResourceException: Can't find bundle for base name com.sap.example.language.lang, locale en_US</b>
    Actually i created two properties file
    1. lang_en.properties
    2. lang_ta.properties
    I stored this two properties file in this package com.sap.example.language
    and this my code in DOInit()
    sessionLocale = WDClientUser.getCurrentUser().getLocale();
    resourceHandler = ResourceBundle.getBundle("com.sap.example.language.lang",sessionLocale);
    catch (WDUMException e)
    e.printStackTrace();
    wdContext.currentContextElement().setUsername_label(resourceHandler.getString("testview.username"));
    wdContext.currentContextElement().setPassword_label(resourceHandler.getString("testview.password"));
    How to solve this error?
    Guide me.
    Advance Thanks,
    Balaji

  • When I start iTunes a message whith error (-42032). How do I solve this error?

    When starting iTunes a it appears a messages with error (-42032). How do I solve this error?

    1. delete this songs from your liblary
    2. go File -> Add File to Liblary... (Ctrl+O) or File -> Add Folder to Liblary

  • When i want to download an app in app store give me an error number and i could not down load.how i can solve this error number?

    When i want to download an app in app store give me an error number and i could not down load.how i can solve this error number?

    Hi Amir.09395340646,
    Welcome to the Support Communities!
    What app are you trying to download? Is it iPhoto for iOS?  What error message are you receiving? The first thing I would suggest is to log out of your iTunes Store account on your iPhone. Then restart the device and log in again. 
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/HT1311?viewlocale=en_US
    If the above did not resolve your issue, follow the troubleshooting steps in the article below.
    The link includes the complete details and screenshots, but I've highlighted a few points for you:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    - Make sure that your iOS software is up to date by connecting your iOS device to iTunes and clicking on Check for Update in your device's Summary page in iTunes.
    - Check and verify that you are in range of a Wi-Fi router or base station. If you are on a 3G capable device, make sure that cellular data is turned on from Settings > General > Cellular.
    - Check to make sure you have an active internet connection. You can check the User Guide for your device for help with connecting to the internet.
    - Check to make sure other devices (portable computers, for example) are able to connect to the Wi-Fi network and access the internet.
    - Try resetting (turning off and then on again) your Wi-Fi router
    - If the issue still persists see, iOS: Troubleshooting Wi-Fi networks and connections or iOS: Troubleshooting Wi-Fi networks and connections.
    I hope this information helps ....
    - Judy

  • Ajax submit failed: error = 403, forbidden----how can solve this error

    Ajax submit failed: error = 403, Forbidden--how can solve this error to create a new eprintcenter account

    I am having the SAME problem.  This is so frustrating.   If i try to log on with teh user account I already have, I get the above message.  If i try to create a new accoutn it says the account is already existing.  If i click on forgot password, nnothing happens.  HELP!  I am stuck in a loop!!

  • What is this Configuration Error: 1  = I must reinstall the AI every time again and again and loose so much time! How can I solve this error?

    What is this Configuration Error: 1  = I must reinstall the AI every time again and again and loose so much time! How can I solve this error?
    please answer on my email too
    [email protected]

    Nobody can tell you anything without proper system info or other technical details. The simply answer probably is that you are running your system with insufficient user privileges and system restore or some security tools are blocking stuff/ erasing your install.
    Mylenium

  • How to solve this error JBoss Server start time............

    How to solve this error JBoss Server start time............
    10:45:38,484 INFO [TomcatDeployer] deploy, ctxPath=/JobWorkInvoice, warUrl=.../deploy/JobWorkInvoice.war/
    10:45:38,640 ERROR [STDERR] log4j:ERROR A "org.jboss.logging.util.OnlyOnceErrorHandler" object is not assignable to a "org.apache.log4j.spi.ErrorHandler" variable.
    10:45:38,640 ERROR [STDERR] log4j:ERROR The class "org.apache.log4j.spi.ErrorHandler" was loaded by
    10:45:38,640 ERROR [STDERR] log4j:ERROR [WebappClassLoader
    delegate: false
    repositories:
    /WEB-INF/classes/
    ----------> Parent Classloader:
    java.net.FactoryURLClassLoader@d5f9b9
    ] whereas object of type
    10:45:38,640 ERROR [STDERR] log4j:ERROR "org.jboss.logging.util.OnlyOnceErrorHandler" was loaded by [org.jboss.system.server.NoAnnotationURLClassLoader@5d173].
    10:45:38,687 ERROR [STDERR] log4j:ERROR Could not create an Appender. Reported error follows.
    10:45:38,687 ERROR [STDERR] java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender
    10:45:38,687 ERROR [STDERR]      at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:174)
    10:45:38,687 ERROR [STDERR]      at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:149)
    10:45:38,687 ERROR [STDERR]      at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:162)
    10:45:38,687 ERROR [STDERR]      at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:424)

    The error message suggests that your system is running out of memory. How much memory is available for OC4J on this box?
    You may also see problems like these when any of the following Jar files in your classpath :
    <li>$OH/jlib/repository.jar
    <li>$OH/j2ee/home/jazn.jar
    <li>$OH/j2ee/home/oc4j.jar
    <li>$OH/j2ee/home/jazncore.jar
    <li>$OH/jlib/infratool.jar
    Thanks,
    EJ

  • How to solve this error from window phone 80073cf9 lumia 630.

    any one know how to solve this error from window phone 80073cf9  lumia 630.

    Hello Muhammad,
    We appreciate the post, but this forum is for Windows Store and Phone Developer related questions. Your question can best be answered through the
    Windows Phone support page.
    Thanks!
    -Jonathan
    Windows Store Developer Support
    Office Store Developer Support

  • What all is needed for this type of Flash Design Studio

    What all is needed for this type of Flash Design Studio.
    There are a couple of sites out there that use both flash and
    shockwave. I am looking ot get somethign like this started and need
    some help getting pointed in the right direction. here are some
    examples:
    http://www.uberprints.com/studio/
    http://www.customavenue.com/online-design-studio/online-design-studio.html
    https://www.youdesignit.com/youdesignit.cfm
    http://www.pixeltees.com/make

    Rclarkhaddock,
    > What all is needed for this type of Flash Design Studio.
    There
    > are a couple of sites out there that use both flash and
    shockwave.
    Of the examples you showed, I saw Flash (Adobe Flash),
    Shockwave (Adobe
    Director), and JavaScript, but never a combination on the
    same site. (It
    might make sense to combine Flash with JavaScript or
    Shockwave with
    JavaScript, but not really to combine Flash with Shockwave.)
    > I am looking ot get somethign like this started and need
    some help
    > getting pointed in the right direction.
    Any of the above technologies will do it. You could also use
    a Java
    applet or even a .NET solution of some kind, so the choice
    you take will
    depend largely on what platform you want to support and code
    for. This sort
    of project will require significant amounts of custom
    programming. My
    personal approach would be to use Flash, mainly because of
    the popularity of
    the plugin. The Shockwave example looks beautiful, and I
    started out years
    ago using Director, but fewer people nowadays have the
    Shockwave plugin
    installed. It doesn't look like any of the sites shown use 3D
    modeling,
    which is the only relevant feature that Shockwave has over
    the other
    approaches. JavaScript (probably some Ajax approach) would
    work -- as
    seen -- but then you're dealing with compatibility issues
    among various
    JavaScript implementations in the great variety of browsers
    out there.
    Flash minimizes that, in my opinion.
    All you really "need" to produce what you've seen is Flash
    and some sort
    of database back end (MySQL, say), which means you'll need a
    bit of
    middleware (PHP, ASP, Cold Fusion, etc.) to act as your
    ambassador between
    Flash and the database.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • When using nant i was told "excepted point(.) and coma(;)".how to solve this error

    hi
      i am using nant and for my code 
                var symmetricKey = new RijndaelManaged() { Mode = CipherMode.CBC, Padding = PaddingMode.Zeros };
              it is ok when i compile it  by visual studio,but when i use nant i was told"excepted point(.) and  coma(;)".
             how to solve this error?
          any help would be appreciated
    best regards
    martin

    anyway now i realized that since i used .Net Frame work 2.0, and i should use like this
     RijndaelManaged symmetricKey = newRijndaelManaged();
                symmetricKey.Mode = CipherMode.CBC;
                symmetricKey.Padding = PaddingMode.Zeros; and i cannot use "var" i've solved this problem and it could be helpful if some one who have the same problem

  • How to solve this error in tasql

    hi all
    i used this code:
    SELECT GacFirstDetailAccountRef,
    [1] AS title1,
    GacSecondDetailAccountRef,
    [2] AS title2,
    GacThirdDetailAccountRef,
    [3] AS title3,
    GacFourthDetailAccountRef,
    [4] as title4,
    GacFifthDetailAccountRef,
    [5] as title5,
    GacSixthDetailAccountRef,
    [6] as title6,
    credit,
    debit
    FROM
    select vi.*,ar.DetailID,da.Title
    from VIBudjetCalc vi
    CROSS APPLY (VALUES (GacFirstDetailAccountRef,1),(GacSecondDetailAccountRef,2),(GacThirdDetailAccountRef,3),(GacFourthDetailAccountRef,4),(GacFifthDetailAccountRef,5),(GacSixthDetailAccountRef,6))ar(AcctRef,DetailID)
    INNER JOIN Gac.GacDetailAccount da
    ON da.Code = ar.AcctRef
    )t
    PIVOT (MAX(Title) FOR DetailID IN ([1],[2],[3],[4],[5],[6]))p
    but i see this error:
    Msg 325, Level 15, State 1, Line 23
    Incorrect syntax near 'PIVOT'. You may need to set the compatibility level of the current database to a higher value to enable this feature. See help for the SET COMPATIBILITY_LEVEL option of ALTER DATABASE.
    how to solve it.
    please help me
    thanks
    Name of Allah, Most Gracious, Most Merciful and He created the human

    The reason is because your compatibility level is less that 90
    Here's an alternative that works in all versions
    SELECT MAX(CASE WHEN DetailID = 1 THEN AcctRef END) AS GacFirstDetailAccountRef,
    MAX(CASE WHEN DetailID = 1 THEN Title END) AS title1,
    MAX(CASE WHEN DetailID = 2 THEN AcctRef END) AS GacSecondDetailAccountRef,
    MAX(CASE WHEN DetailID = 2 THEN Title END) AS title2,
    MAX(CASE WHEN DetailID = 3 THEN AcctRef END) AS GacThirdDetailAccountRef,
    MAX(CASE WHEN DetailID = 3 THEN Title END) AS title3,
    MAX(CASE WHEN DetailID = 4 THEN AcctRef END) AS GacFourthDetailAccountRef,
    MAX(CASE WHEN DetailID = 4 THEN Title END) as title4,
    MAX(CASE WHEN DetailID = 5 THEN AcctRef END) AS GacFifthDetailAccountRef,
    MAX(CASE WHEN DetailID = 5 THEN Title END) as title5,
    MAX(CASE WHEN DetailID = 6 THEN AcctRef END) AS GacSixthDetailAccountRef,
    MAX(CASE WHEN DetailID = 6 THEN Title END) as title6,
    credit,
    debit
    FROM
    SELECT v.credit,v.debit,v.AcctRef,v.DetailID,da.Title
    FROM
    select credit,debit,GacFirstDetailAccountRef AS AcctRef,1 AS DetailID
    from VIBudjetCalc
    UNION ALL
    select credit,debit,GacSecondDetailAccountRef AS AcctRef,2 AS DetailID
    from VIBudjetCalc
    UNION ALL
    select credit,debit,GacThirdDetailAccountRef AS AcctRef,3 AS DetailID
    from VIBudjetCalc
    UNION ALL
    select credit,debit,GacFourthDetailAccountRef AS AcctRef,4 AS DetailID
    from VIBudjetCalc
    UNION ALL
    select credit,debit,GacFifthDetailAccountRef AS AcctRef,5 AS DetailID
    from VIBudjetCalc
    UNION ALL
    select credit,debit,GacSixthDetailAccountRef AS AcctRef,6 AS DetailID
    from VIBudjetCalc
    )v
    INNER JOIN Gac.GacDetailAccount da
    ON da.Code = v.AcctRef
    )t
    GROUP BY credit,debit
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
    thanks deear
    i run your code but i see 2653 row
    when i run this code:
    select * from vibudjectcalc
    i see 5683 rows
    how to solve it
    Name of Allah, Most Gracious, Most Merciful and He created the human

Maybe you are looking for