Why would this select statement give an error?

*LOOKUP Z_HELPER
*DIM TGT1 : ACCOUNT="AA_1070100"
*DIM CATEGORY="ACTUAL"
*DIM TIME="2011.JAN"
*ENDLOOKUP
*SELECT(%TGTDEST2%, "[ID]", TARGETDESTINATION, "[UNIQUEIDENTIFIER]"=LOOKUP(TGT))
UniqueIdentifier is a property of Targetdestination dimension. Here is the error its giving:
Validation status of executable file: Failed
- Unclosed quotation mark after the character string '=LOOKUP(TGT'. in:select [ID] from mbrTARGETDESTINATION where [UNIQUEIDENTIFIER]"=LOOKUP(TGT
Validation status of syntax: Failed
- Invalid syntax found; see statements in red

Nilanjan, I changed TGT to TGT1, still same thing.  Here is the big picture outcome I am trying to achieve.
Reporting App
Entity   Costcenter    Shipto   Time          Category  Account    Signed data
ABC        CO1             USA    2011.jan      Actual     ACT123       200
So data is coming in like this, the business wants to set up rules such as.....when Costcenter is CO1 AND Shipto is USA AND Entity is ABC....Change the shipto from USA to INDIA. These rules have to be able to be updated by a business user, So I cant hardcode these rules. My manager doesnt want to use Stored procedures, so here is what I did....
Z_Helper App(Non reporting App)
Entity Costcenter Shipto   signeddata (other required dimensions are just dummy values)
ABC     CO1            USA       9
Now how does 9 get linked to INDIA? I created a new dimension called TARGETDESTINATION. it has ID(which is nothing but shipto country values), and a property called UNIQUEIDENTIFIER. Unique Identifier basically just assigned a unique value to that shiptocountry member row.
So now I need to write a script logic in reporting app that will look up signed data of 9 in this example, and I was thinking use a select statement to pull INDIA from TARGETDESTINATION dimension.
Let me know if you have any suggestions. thanks.

Similar Messages

  • Why does this select statement fail.....

    declare
    t_name varchar2(100):='america';
    begin
    execute immediate '
    select * from'|| t_name;
    end;

    Because it looks like you need to add a space after 'from' and add an INTO CLAUSE?
    introduction to bulk pl/sql enhancements in 9i

  • Regarding this select statement

    hi,
    i am not getting value i write like this select statement
    plz check error in this code.
    TABLES: VBAK,
    vbrk.
    TYPES: BEGIN OF TYP_VBAK,
          VBELN TYPE VBELN_VA,
          VBTYP TYPE VBTYP,
          VGBEL TYPE VGBEL,
          END OF TYP_VBAK,
           BEGIN OF TYP_VBRK,
              VBELN TYPE VBELN,
              WAERK TYPE WAERK,
              VKORG TYPE VKORG,
              KNUMV TYPE KNUMV ,
              FKDAT TYPE FKDAT,
              LAND1 TYPE LLAND,
              NETWR TYPE NETWR,
              KUNRG TYPE KUNRG,
              EXNUM TYPE EXNUM,
              MWSBK TYPE MWSBP,
              END OF TYP_VBRK.
    DATA: GT_VBAK TYPE TABLE OF TYP_VBAK,
          IT_VBRK TYPE standard TABLE OF TYP_VBRK WITH HEADER LINE.
         LS_VBRK TYPE TYP_VBRK,
      SELECT VBELN
             WAERK
             VKORG
             KNUMV
             FKDAT
             LAND1
             NETWR
             KUNRG
             EXNUM
             FROM VBRK INTO CORRESPONDING FIELDS OF TABLE IT_VBRK
             WHERE VBELN = '0090060045'.

    Check from SE16 whether vbeln = 0090060045 is present in VBRK or not.
    Regards,
    Joy.

  • Why this select statement is failing

    Hi to all experts.
    Im not able to understand why this select statement is not fetching the record with this parameters. When i give the same parameters in se11 table t512w.. It has one record, but here the sy-subrc Value is 4.
    select  * from t512w where molga EQ '15'
             and lgart in g_lgart01
           and endda gt pn-endda
       and begda lt pn-endda.

    Dear Mohamed,
    This Select Statement is bound to Fail. When you are doing a select * from T512W, you intend to get a single record from T512W into the work area T512W which you have declared using TABLES statement. So, here you need to use Select single instead of Select *
    If you want more data, then you declare an internal table, say gt_t512w type standard table of t512w and use "
    Select from T512W
    Into TABLE GT_T512W
    WHERE ........
    Hope this solves your problem.
    Regards,
    Amit Sharma

  • RE: [Adobe Reader] when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? i

    HelloThank's for your helpsI hope this document is helpfulBest Regards,
    Date: Sun, 22 Jun 2014 17:10:17 -0700
    From: [email protected]
    To: [email protected]
    Subject:  when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th
        when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help m
        created by Anoop9178 in Adobe Reader - View the full discussion
    Hi,
    Would it be possible for you to share the document?
    Regards,
    Anoop
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6485431#6485431
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
         To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • All my excel files were converted to pdf. Why would this happen and how do i stop it from doing so?

    All my excel files were converted to pdf. Why would this happen and how do i stop it from doing so?

    shloimypt wrote:
    All my excel files were converted to pdf. Why would this happen and how do i stop it from doing so?
    Relax, they weren't converted to PDF.
    You can tell by right clicking ANY of them and choosing "Properties". You'll see there that they're STILL .xls or .xlsx files. The "association" has changed and Windows now indicates that they open with Reader, which isn't right.
    Where it says "Open With" under the General tab, you can click "Change" and re-select Excel as the default app to open thim.
    See: http://helpx.adobe.com/acrobat/kb/application-file-icons-change-acrobat.html

  • HT1583 it burned in idvd and all seemed ok but when it finished saying the project was finished when I played it on the tv it had not burnt the whold project why would this be thanks

    I was burning a slideshow from iphoto and went to idvd and it burned ok and finished and said it was ok, but when I played it in the tv it did not play the whole project
    why would this be. cheers vic

    Hi
    Strange - But needs lot's of more info to make it possibly to suggest any reason. Me no mind reader at all.
    • What Video Codec was used
    • What Video editor
    • How did You get material into iDVD
    • What did You select in iDVD
    frame rate
    video format
    encoding quality
    burn speed (set down ?)
    • Brand of DVD used
    • Type of DVD used
    And all vital info You can think relevant.
    Yours Bengt W

  • Why below MERGE sql statement is throwing error  on 10g?

    Version: Ora 10g R2
    Why below MERGE sql statement is throwing error on 10g?
    SQL> merge into sess_stats
    using
    select a.name, b.value from v$statname a, v$sesstat b where a.statistic#=b.statistic# and b.sid=:sid  and (a.name like '%ga %' or a.name like '%direct temp%')
    ) curr_stats
    on (sess_stats.name=curr_stats.name)
    when matched then
         update set diff=curr_stats.value-sess_stats.value, value=curr_stats.value
    when not matched then
         insert (name, value, diff) values (curr_stats.name, curr_stats.value, null)  2    3    4    5    6    7    8  SQL> SP2-0734: unknown command beginning "on (sess_s..." - rest of line ignored.
    SQL> SP2-0734: unknown command beginning "when match..." - rest of line ignored.
    SQL>   2    3

    First of all, thank you all for your feedback!
    first, I try remove the blank lines at those two places ( before curr_stats and after on) and it works.
    then, again I try to set sqlblanklines on, and it works as well!
    Edited by: PhoenixBai on Nov 10, 2009 10:54 PM

  • Since I upgraded to Adobe Created Cloud, my photo editing processes are taking more than 10 times longer than they used to.  Why would this be?

    Since I upgraded to Adobe Created Cloud, my photo editing processes are taking more than 10 times longer than they used to.  Why would this be?

    You will likely get better program help in a program forum
    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Reviewing my bill i saw a LOT of text messages from a odd number sent to my number, BUT i never received them. Why would this be??

    Reviewing my bill i saw a LOT of text messages from a odd number sent to my number, BUT i never received them. Why would this be??

    Why did you give your granddaughter the password?
    FOR ASSISTANCE WITH ORDERS - iTUNES STORE CUSTOMER SERVICE
    For assistance with billing questions or other order inquiries, please refer to our online support page by clicking here: http://www.apple.com/support/itunes/store/. If you cannot find the answers you are seeking in our robust knowledge base, you can contact us by visiting the following URL http://www.apple.com/support/itunes/store/, clicking on the appropriate Customer Service topic, then using the contact button or email form at the bottom of the page. Responses to emails will be provided as soon as possible.
    Phone: 800-275-2273 How to reach a live person: Press 0 four times
    Hours of Operation: Mon-Fri: 9am-5pm ET
    Email: [email protected]
    How to report an issue with Your iTunes Store purchase
    http://support.apple.com/kb/HT1933
    iTunes Purchase Problems: How to Report a Problem to iTunes Support
    http://tinyurl.com/7tscpa7
    How to Get a Refund from the App Store
    http://gizmodo.com/5886683/how-to-get-a-refund-from-the-app-store
    Canceling a Digital Subscription
    http://gadgetwise.blogs.nytimes.com/2011/10/14/qa-canceling-a-digital-subscripti on/
     Cheers, Tom

  • Despite adding more storage = 20GB my devices tell me that I can not take any photos/video, why would this be?

    Despite adding more storage = 20GB my devices tell me that I can not take any photos/video, why would this be?

    Because the issue is that you don't have sufficient available space on your phone, not that you don't have enough space in your iCloud account.  Adding storage in iCloud does not give you more space on your phone.
    You can check your available space by going to Settings>General>Usage.  You'll need to delete or sync some data off your phone to freee up more space.

  • When i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th

    when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ?
    if you can help me thank's
    [email address removed by host]

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • HT201317 My photos are syncing from my iPhone, to the iCloud PhotoStream and to our iPad, but it is no longer syncing to my computer (Microsoft, not Apple).   Why would this happen and how can I get it resolved?

    My photos are syncing from my iPhone to the iCloud PhotoStream and to our iPad, but they are no longer syncing to our home computer (Microsoft operating system, not Apple).   Why would this happen and how can I get it resolved?  I have since tried to remove and reinstall the iCloud application in my computer's control panel.  I have verified that I am using the latest Apple operating system and the latest iTunes.  I have reset my photo stream.  Not sure what else to try...   I was also having an issue with my calendar where it would sync from my computer to my iPhone but not vice versa.  Somehow in all the resetting that's resolved, but the photo issue is not.   Again - photos are going into the photostream, but not wirelessly being put into the file on my computer.

    To change the iCloud ID on your device you have to go to Settings>iCloud, tap Delete Account, provide the password to turn off Find My iPhone when prompted, then sign back in with the ID you wish to use.

  • All the sudden my iPod shuffle no longer shows up in my devices on my computer nor does iTunes show it?  Why would this happen? How can i fix this? Anyone know?

    All the sudden my iPod shuffle no longer shows up in my devices on my computer nor does iTunes show it?  Why would this happen? How can i fix this? Anyone know?

    Start with the "Shuffle not recognized" section in this Apple support document.
    http://support.apple.com/kb/TS1412#q2
    B-rock

  • My Boyfriend has lost all of his contacts on his phone after down loading the new iphone soft wear why would this happen and how can he get them back                          how can you get back your contacts after down loading the new iphone soft wear

    My boyfriend has lost all of his contacts on his phone after downloading the new iphone softwear. why would this happen and how can he get it all back

    You don't have to post the same question at one minute intervals.  Somebody will answer it, but perhaps not in 60 seconds.

Maybe you are looking for