Unique ID to long

Hi,
When trying to access SAP Netweaver Administration, I’m getting the following error message “com.sap.sql.log.OpenSQLException: Cannot assign a java.lang.String object of length 93 to host variable 1 which has JDBC type VARCHAR(50).”
What I have concluded is, the Unique ID that identifies the user in AD, is to long, it contains 93 characters, and portal application is only expecting 50 maximum. Is this a limitation?
Thanks & Regards,
John

You should find another extranal system id in order to mantain uniqueness, but you could also use the name field (that supports 50 characters), but it deppends of which entity you are using.
Which is the entity? and...if the only way to insert data is by web services the you could use more than one field to verify uniqueness since you can query more than one field at the time.
Hope it helps
Kim.

Similar Messages

  • Repeated column in mapping error - Hibernate mapping

    Hi, I am relatively new to using Hibernate. I have two tables which I have tried to map unsuccesfully.
    Table 1:
    Primary Key(Instrument) -> Generated using function.
    Table 2:
    Primary Key(Instrument) -> Referenced from primary key of table 1
    Table 3:
    Primary Key(Instrument) -> Referenced from primary key of table 2
    Additional Column(Parent_Instrument) -> Referenced from the primary key of table 2
    So, two columns in Table 3 have to be mapped to the primary key of table 2.
    I have tried mapping them but am getting the following error:
    Caused by: org.hibernate.MappingException: Repeated column in mapping for entity: com.db.csb.model.securitycreation.entities.tradegate.WiBonds column: INSTRUMENT (should be mapped with insert="false" update="false")
         at org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentClass.java:652)
         at org.hibernate.mapping.PersistentClass.checkPropertyColumnDuplication(PersistentClass.java:674)
         at org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentClass.java:696)
         at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:450)
         at org.hibernate.mapping.RootClass.validate(RootClass.java:192)
         at org.hibernate.cfg.Configuration.validate(Configuration.java:1102)
         at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1287)
         at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)
         at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:807)
         at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:740)
         at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:131)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
         ... 32 moreThe following is my code:
    TABLE 2
    @Entity
    @Table(name="BOND_SPEC")
    @Id
         @GenericGenerator
         @GeneratedValue
         @Column(name="INSTRUMENT", nullable=false,insertable=false,updatable=false)
         public long getInstrument() {
              return instrument;
         public void setInstrument(long instrument) {
              this.instrument = instrument;
    @OneToMany
         @JoinColumn(name = "INSTRUMENT", nullable=false, insertable=false)
         public Set<WiBonds> getWiBonds(){
              return Wi_Bonds;
         public void setWiBonds(Set<WiBonds> Wi_Bonds){
              this.Wi_Bonds = Wi_Bonds;
    TABLE 3
    @Entity
    @Table(name="WI_BONDS")
         @Id
         @GenericGenerator(name = "fk_bondspec", strategy = "foreign", parameters = { @Parameter(name = "property", value = "BondSpec") })
         @GeneratedValue(generator = "fk_bondspec")
         @Column(name="INSTRUMENT", nullable=false,insertable=false,updatable=false)     
         public long getInstrument() {
              return instrument;
         public void setInstrument(long instrument) {
              this.instrument = instrument;
         @ManyToOne(targetEntity = BondSpec.class)
         @JoinColumn(name = "INSTRUMENT", nullable = false, insertable=false, updatable=false)
         public BondSpec getBondSpec() {
         public void setbondSpec(BondSpec bondspec) {
         @OneToOne(targetEntity = BondSpec.class)
         @JoinColumn(name = "PARENT_INSTRUMENT", nullable = false, insertable = false, updatable = false, unique=true)
         public long getParent_instrument() {
         public void setParent_instrument(long parent_instrument) {
         }What am I doing wrong?

    theraptor wrote:
    I probably didn't explain it correctly. I am trying to populate these tables with data about financial instruments.
    Table 2 and 3 share a primary key (INSTRUMENT). The primary key is generated in table 2, and the same value has to be later inserted into table 3. Sorry, I'm not following this at all. I don't think two tables should "share" a primary key. Both should have their own. Perhaps Table 3 would have a foreign key relationship with Table 2. OR the two tables should be one. But this notion of sharing doesn't sound right to me, and apparently Hibernate agrees. I think you have a bad design.
    Table 2 has a one to many relation with table 3. Then they can't share a primary key. It's 1:m, which you can easily model with Hibernate.
    (By many I mean it could be 0 as well, since hibernate does not provide a (one to 'maybe' one 'maybe zero) relation.Fine. Then it's a 1:m relationship. You've been thinking about it incorrect.
    Table 3 has an additional column PARENT_INSTRUMENT which is a foreign key to the the primary key of table 2.No. Wrong.
    Yes Instrument is financial in nature. However, I am not trying to model what you have spoken about above.Yes, I get it. Listen to Hibernate - your original idea is quite incorrect. Table 2 is 1:m with Table 3. Model it that way, and forget about this incorrect notion of "sharing a primary key". Give Table 3 its own auto generated key.
    %

  • Interface with variables

    Hello all, I have a problem that has stumped even the smartest software engineer I know. Why does the following slice of code always print out "This does not work as expected". It seems to me that the 'int' inside of the interface is implecitly final, but the compiler should throw a compiler error if that were the case. When I use the debuger packaged with JBuilder 9 the value of the 'int' is 1 as it should be when it gets to the condition, but it still enters the conditions as if it were a 0. Thank you in advance for your help.
    public class instanceOfInterface {
    public static void main(String argc[]) {
    interfaceDef2 id = new interfaceDef2() {
    public int someInt = 1;
    if (id.someInt == 1) {
    System.out.println("This works properly.");
    else if (id.someInt == 0) {
    System.out.println("This does not work as expected.");
    interface interfaceDef2 {
    public int someInt = 0;
    }

    No. Try the example by defining a base class with a
    non static field, extending this class and referencing
    the field with a reference to the subclass. Then
    assign the subclass reference to a superclass variable
    and do the same. You will see the same difference you
    see in this example. E.g.:
    public class TestFieldOverride {
    public static void main(String[] args) {
    Bar b = new Bar();
    Foo f = new Foo();
    Bar bf = f;
    System.out.println("Bar i = " + b.i);
    System.out.println("Bar getI = " + b.getI());
    System.out.println("Foo i = " + f.i);
    System.out.println("Foo getI = " + f.getI());
    System.out.println("BarFoo i = " + bf.i);
    System.out.println("BarFoo getI = " +
    = " + bf.getI());
    System.exit(0);
    }Question, do you know why this is permitted? It seems to me that this behavior, if actually used in real code would quickly create a maintance nightmare. I don't think that you even need to setup a strawman argument of 'what if every class you create has an i variable to show that this could easily be very confusing to a programmer.
    My only guess is so that you can create a private version of a variable that has the same name as a parent classes variable in a subclass. Thus reducing the pressure to create unique and very long names for the programmer. But for public/protected/default access member variable names shouldn't be avaliable for subclasses to override. Course it would probably break code to change it now. So it probably won't happen.

  • Time Capsule hangs at end of full backup, Disk Utility "not responding"

    I'm running a Mid 2011 iMac 27" with OSX 10.8.4 and using a WiFi connected 3TB Time Capsule (4th Gen).
    I've noticed that the Time Capsule seems to get stuck at the end of a full back-up (let's say 260 GB of 260 GB) and won't end, even after hours of being left alone.
    When I mount the Time Capsule Sparse Disk Image Bundle and then try to run Disk Utility, Disk Utility is shown as "Gathering Information," but the Finder and Activity Monitor list Disk Utility as "not responding."  (No disk information is shown in Disk Utility.) This happens both when I connect via WiFi to the Time Capsule and when I connect directly using an Ethernet cable.  If I don't mount the Sparse Disk Image Bundle, Disk Utility works fine, immediately showing my iMac's Hard Drive, so it only happens when the Time Capsule Sparse Disk Image Bundle is mounted.
    1.  Is Disk Utility truly "not responding" or is it just taking forever to load because of the 3TB hard drive?
    2.  If it truly isn't responding, what can I do to see if the TC needs to be "repaired"?
    3.  What's going on with my TC that it hangs up at the end of a full backup?
    Thanks.

    thefliss wrote:
    I see an occasional deep node traversal, but sounds like that can be normal.
    Not normal, exactly, but TM's way of handling a problem.  See below.
    Aug 17 21:35:50 Erics-iMac.local fseventsd[48]: event logs in /Volumes/Time Machine Backups 1/.fseventsd out of sync with volume.  destroying old logs. (86990 10 86991)
    Aug 17 21:35:50 Erics-iMac.local fseventsd[48]: log dir: /Volumes/Time Machine Backups 1/.fseventsd getting new uuid:
    Something went wrong with or on the TM drive (Time Capsule in your case), such as a power failure or abnormal disconnection, where OSX was unable to "close it out" properly, so is unsure if all the changes are in the File System Event Store.  If you're not familiar with the Event Store, see the blue box in How Time Machine works its Magic for details (it's talking about the one on your internal HD, but OSX keeps one on every drive/partition and disk image, including your TC backups.)
    Aug 17 21:36:07 Erics-iMac.local com.apple.backupd[1728]: Event store UUIDs don't match for volume: Macintosh HD
    That's one of the causes of a deep traversal.  The UUID (Universally Unique IDentifier, the long string of numbers and letters) for the Event Store on your internal HD doesn't match the one in TM's records from the previous backup, so it must do a deep traversal instead, comparing everything on your Mac to the latest (completed) backup.
    Aug 17 21:42:09 Erics-iMac.local diskarbitrationd[22]: mds [39]:22019 not responding.
    Aug 17 21:42:09 Erics-iMac.local diskarbitrationd[22]: fseventsd [48]:17923 not responding.
    Aug 17 21:42:15 Erics-iMac.local fseventsd[48]: disk logger: failed to open output file /Volumes/Time Machine Backups 1/.fseventsd/0000000000362fde (No such file or directory). mount point /Volumes/Time Machine Backups 1/.fseventsd
    Trouble talking to a disk.  The first two probably involve the TC, the third one definitely does -- it's trying to create the new Event Store.
    Aug 17 21:44:03 Erics-iMac.local com.apple.imfoundation.IMRemoteURLConnectionAgent[1789]: [Warning] Denying xpc connection, task does not have entitlement: com.apple.private.imcore.imremoteurlconnection  (IMTransferAgent:1786)
    Aug 17 21:44:03 --- last message repeated 1 time ---
    Aug 17 21:44:03 Erics-iMac.local com.apple.imtransferservices.IMTransferAgent[1786]: [Warning] Remote loader crashed for request: <NSMutableURLRequest http://init-p01md.apple.com/bag>
    Aug 17 21:44:03 Erics-iMac.local com.apple.imtransferservices.IMTransferAgent[1786]: [Warning] Bag loading failed! Error (__kIMRemoteURLConnectionErrorDomain:-1): The operation couldn’t be completed. (__kIMRemoteURLConnectionErrorDomain error -1.) (null)
    Out of my comfort zone, but sure looks like some sort of connection problem . . . with something.
    Aug 17 21:48:08 Erics-iMac.local com.apple.backupd[1728]: Deleted 3 backups containing 299.76 GB total; 300.65 GB now available, 209.78 GB required
    TM did (finally) connect, figured out how much sp it needed, and started deleting old backups to make room.  Since it did, actual copying would have started just after that was sent.
    Aug 17 22:07:03 Erics-iMac.local com.apple.SecurityServer[15]: Session 100018 created
    Aug 17 22:07:06 Erics-iMac.local ScopedBookmarkAgent[1853]: CFURLCreateByResolvingBookmarkData failed with error [Error Domain=NSCocoaErrorDomain Code=4 "The file doesn’t exist."].
    Aug 17 22:07:08 --- last message repeated 7 times ---
    Aug 17 22:07:08 Erics-iMac.local QuickTime Player[1845]: It does not make sense to draw an image when [NSGraphicsContext currentContext] is nil.  This is a programming error. Break on void _NSWarnForDrawingImageWithNoCurrentContext() to debug.  This will be logged only once.  This may break in the future.
    Aug 17 22:08:37 Erics-iMac.local WebProcess[1866]: objc[1866]: Object 0x7fec4841c8c0 of class NSUserDefaults autoreleased with no pool in place - just leaking - break on objc_autoreleaseNoPool() to debug
    Aug 19 16:35:11 Erics-iMac.local mds[39]: (/)(Warning) IndexQuery in bool preIterate_FSI(SISearchCtx_FSI *):Throttling inefficient file system query
    Most of that is also out of my area, but doesn't seem related to the TC or backups. 
    Hard to tell so far, but it looks like problem is on your network, or power, or with the TC.  Trying backups to a directly-connected external HD would be a quick way to confirm that, and especially if these are your only backups, a wise thing to do anyhow. 
    It's always prudent to keep "secondary" backups, more so if your main ones are on a network, and especially if there's the slightest doubt about them.  See Time Machine - Frequently Asked Question #27 for more info and some suggestions.
    And/or, start through the list in the green box in #D2 of Time Machine - Troubleshooting.

  • Why does my Macbook Pro use so much power in sleep?

    Hi everyone, forum newbie here
    My mid 2010 Macbook Pro (13.3" C2D 2.66ghz, 4GB etc) uses a lot of energy during sleep
    It drains between 2-5% per hour, which believe me is a lot. My battery lasts anything from 3-4 hours to 8 ish if I'm using it very little, so to deplete roughly 5% per hour is not that much less than the laptop uses when it's switched on... so what's going on here?
    I'm sure it's asleep all the time, not waking up for whatever reason, the blinking/breathing LED on the front side of the laptop glows and dims so I know it's in sleep mode.
    Can anyone help me? Thankyou!

    Your situation is not unique. Another long thread https://discussions.apple.com/thread/1758587?start=90&tstart=0 suggests that a solution is not yet forthcoming.
    You can, however, partially remedy the situation by (1) making sure your system is not too warm or hot - this really reduces the life of your battery; (2) Keep your unit charged for portions of the day; display quality is better while powered, and battery will keep more of its power; (3) In some cases, keeping your MBP connected to USB cables can leech power from your system; detach all cables before sleeping.
    Of course, this won't solve the problem, but it will improve things. If it's any consolation, many (but not all) Windowz units report the same problem.
    Post here if you have any comments, advice, or even feedback!

  • How to collect STATISTICS for my jsp pages

    Hola gurus.
    I'd like to collect statistics for my website, for example on my main page and certain other pages. Ideally I'd like to code it myself rather than using an external tool.
    Has anybody done this, or can u recommend an approach ?
    Here's my thoughts so far:
    1. Since I dont want to slow down the presentation of my pages, the first idea is to position the code after the </HTML> tag.
    <HTML>
    </HTML>
    <% MyGreatApp.addStatisticForPageVisit(pageName); %>
    So, even if the action of updating the statistics takes 1 second, my web page won't be delayed by 1 second (right ? or should I multi-thread it ?)
    2. I can keep a memory cache of pages viewed versus session id's, so that my statistics can reflect distinct user sessions (instead of "page visits" which can be misleading if a user clicks 50 times on the one page).
    Maybe there is a neat java caching class that I can use.
    3. I can then "save" my cache of statistics to the db periodically (say, every 5 minutes) to reduce db load. (?) I'm using mysql for my app already.
    Any help / guidance greatly appreciated !
    Thanks for the help java community you r great.

    Sure, we do it. Every time the user requests one of a certain set of pages, we write a record to a table in a database. That's all. No mucking about with threads or caches or anything like that. If you have a database setup where it takes 1 second to write a record, you need to get that fixed right away.
    As for session ID versus user ID, it depends on what you need. We just log the user ID so we can see who is using what applications, but your requirements may differ. There's nothing preventing you from logging both. Also, I do not know whether session ID's are unique over a long period of time, but logging the date and time of access should help you to deal with that problem if it exists. Basically, don't put too much logic into your logging code, just throw records out at the database. Any filtering or selection should be done on the back-end system that analyzes the logs.
    PC&#178;

  • Why does my MacBook Pro have so much trouble playing video people send me?

    Whether it's embedded, or a link to YouTube or some other site, for the past week or longer I've been having great trouble getting video -- even at the lowest quality setting -- to play straight through.
    Is it Mountain Lion?
    Is it something else I downloaded, or should have?
    Is it my ISP?
    How do I find out where to point the finger? (I figure it can't possibly be me . . . right?)

    Your situation is not unique. Another long thread https://discussions.apple.com/thread/1758587?start=90&tstart=0 suggests that a solution is not yet forthcoming.
    You can, however, partially remedy the situation by (1) making sure your system is not too warm or hot - this really reduces the life of your battery; (2) Keep your unit charged for portions of the day; display quality is better while powered, and battery will keep more of its power; (3) In some cases, keeping your MBP connected to USB cables can leech power from your system; detach all cables before sleeping.
    Of course, this won't solve the problem, but it will improve things. If it's any consolation, many (but not all) Windowz units report the same problem.
    Post here if you have any comments, advice, or even feedback!

  • Davinci Resolve 8.1.1 to Premiere CS5.5.2  import error

    Importing an XML from Resolve to Premiere gives me a "File import error"  "The importer reported a generic error."
    The XML from Resolve opens correctly in FCP7, and exporting that Resolve XML from FCP as an XML version 5 from FCP7 is correctly opened in Premiere.  Can anyone else verify they are getting the same result?
    thanks, 

    When I removed the offline clips in Premiere and re exported the XML file to Resolve, the resulting XML file from Resolve imported directly into Premiere, No import error, which is why I think having no offline media it might be a work around.
    Both the XML file from Resolve and FCP to Premiere has not caused any crashes on my end.
    I'm using FCP XML-Round-Trip from Resolve when rendering and using "render clip with unique filename"  As long as I render, then export the XML the conform works in Premiere, however the clip names in resolve reflect the original edit of the XML file from Premiere, and only in the file path is the corresponding Resolve renders.  I can not find a way to auto reconnect the resolve renders to the exported XML if moved to another suite with out manually doing every shot. Any thoughts?
    On a positive note, doing the above steps for removing offline media first in Premiere (I have not tested your suggestion yet of deleting offline files in Resolve) has solved my handle slip problems.
    I'd suggest closing both Premiere and Resolve, reopen, and send a sequence from Premiere to Resolve with no offline clips when conformed in Resolve, render and export XML and open directly in Premiere.  It's working for me now as long as Resolve exports a XML file without any offline clips, no more import errors or crashes.

  • Lost pictures after update

      A couple days ago I tried to connect my playbook to my computer to backup my pictures.  First time it has ever been hooked up to computer.  It said it was connected in desktop manager but there was no icon for it in the My Computer folder as a removable drive.  An update popped up saying there was an update available for my tablet.  I clicked update (it took a while)  When playbook started back up it had me going through all the start up procedure (choosing language etc.  Turns out I lost all my camera pictures.  The icon is still there but the only pictures in there are wallpaper pics that come with the playbook.  It's like it did a wipe but I did not have to enter my wifi network, or password.  Those were still there, just my pictures and contacs were missing.  This happen to anyone else, and is there any way I can get my pictures back.  I could not back them up as I could not connect to my PC.  Very frustrating as you should not lose your files by doing an update.

    After spending nearly 10 hours recording unique and no longer available audio data on my blackberry playbook i connected it to my desktop in order to back it up and move the audio files off of the playbook for transcription. The desktop software would not allow me to do a back up and told me that there was an update to the playbook software which i should download and install. 
    I complied.  The result was that the playbook update in fact replaced my former playbook software and deleted all applications and all personal data including settings,  book marks, notations, writings, files, saved emails, and most importantly photos and videos which were taken with the playbook of my children in irreplaceable moments and of course finally, the audio files that i had created over a 10 hour period earlier this week.
    I have a back up that i then restored from which is a few months old; however all of my current work is lost.
    On top of my current problem with this playbook and my lost files, I am also sitting here staring at my first Bold 9900 which is bricked and inoperable. ATT wont replace it and Blackberry wont touch it.  ....and of course there was my first Playbook which i bought on Day 1 of the launch for full price, it too failed and i lost dozens and dozens of files.  Having to send it back to RIM and go through a legnthy RMA process in which they fumbled and broke promisees made....
    I have 3 tablets, 2 operational 9900 bolds and have been using Blackberry for 9 generations of models going back to the 1990s. I have my family on the platform as well.
    Loyal or Stupid?  Not quite sure as I sit here staring at this playbook which has just thrown a giant monkey wrench into my work.
    I have defended Blackberrys recent missteps to the CIO's, CTO's. Lawyers, Judges, Friends and Family on 3 continents in private and in public.
    But now. I am DONE with this company and it's products.
    I will continue with my corporate Bold 9900 as long as i have no other choice, but will move to BYOD as soon as i am able.  I will disengage all my personal and family Blackberry devices and will move to another platform.
    As much as I hate to join the ranks of Apple or Google, RIM has left one of it's most loyal fans no other choice but to abandon this sub par technology.  To allow a simple update to the Tablet Operating system to destroy my work as well as any remaining confidence in the engineering capabilities of this company which Canada was so proud of is nothing short of astonishing.
    For all of those out there that have had similar experiences, i feel for you. But do not allow your data to be vulnerable to these technical land mines. You wont see them until you step on one.

  • Reduce db load

    hi all,
    1.can i declare this
      data: itab like view_23 occurs o with header line.  (with a view)
    2. how can i get better performance replacing jain with view in program whle both are using jain -lagic?
    3. how to replace this jain with view_23(ltak--ltap)?
    SELECT
             a~mblnr
             a~zeile
             a~mjahr
             b~budat
             b~cpudt
         INTO TABLE gt_mseg
         FROM mseg
         AS a INNER JOIN mkpf
         AS b ON amblnr = bmblnr
         AND amjahr     = bmjahr
         FOR ALL ENTRIES IN gt_matnr  "MB
         WHERE a~bwart IN gr_bwart
         AND   a~matnr EQ gt_matnr-matnr "MB
         AND   a~werks EQ p_werks
         AND   a~lgort EQ p_lgort
         AND   a~kzbew EQ 'B'
         AND   b~cpudt GE gw_ref-l_date
         AND   a~lgnum EQ p_lgnum.
    plz it's urgent

    Sure, we do it. Every time the user requests one of a certain set of pages, we write a record to a table in a database. That's all. No mucking about with threads or caches or anything like that. If you have a database setup where it takes 1 second to write a record, you need to get that fixed right away.
    As for session ID versus user ID, it depends on what you need. We just log the user ID so we can see who is using what applications, but your requirements may differ. There's nothing preventing you from logging both. Also, I do not know whether session ID's are unique over a long period of time, but logging the date and time of access should help you to deal with that problem if it exists. Basically, don't put too much logic into your logging code, just throw records out at the database. Any filtering or selection should be done on the back-end system that analyzes the logs.
    PC&#178;

  • In 14 I can no longer give my downloads a unique name, even if I have the option to selection download location.

    Before I upgraded to FF 14, I could give my downloads a unique name. I can no longer do that. Evne if i have selected the option "Always ask me where to save files" . Im able to set where to download them but I am not able to give them my own name. I run Win 7 Home. Its very very inconvenient becuase I have to manually go back and rename 80% of the files I download. IS there a fix??

    Hi,
    You can consider the [https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox] feature via '''Help''' ('''Alt''' + '''H''') > '''Troubleshooting Information'''. To revert to the previous profile, you can close the new profile, start Firefox and choose the '''*.default''' profile. While the [https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles Profile Manager] is open, you can also delete the newly reset profile (the one containing random numbers).
    [https://support.mozilla.org/en-US/kb/Managing-profiles Managing profiles]
    [https://support.mozilla.org/en-US/kb/Profiles?s=profile&r=2&e=sph&as=s Profiles Howto]

  • Inner join.   error.  too long. unique. unique

    hi,
    I am a beginer to ABAP and trying to  do an inner join using 3 tables that are given by SAP
    scustom, spfli, and sbook. I want to join these 3 tables and  get
    the customer booking info and wants the result of
    customer_no , cust_name, Booking_ID, City_From, City_To, etc.
    my query i s below.
    select cid cname bbookid bconnid bfldate fcityfrom f~cityto
    into table it_scust
    from ((scustom as c inner join sbook as b
    on cid = bcustomid)
    inner join spfli as f on fconnid = bconnid and fcarrid = bcarrid).
    when i execute the program i am getting the error  that the 'query is too long. unique. unique. unique.'.
    If  I am joing only two tables it is working fine. Is there something wrong with my query?  Any ideas on this? Please help.
    Thanks in advance.

    Hi neeraja,
    what ever the code you have written is fine but it is unique/ too long means  the code you have written is not ending perfectly which is not identified by syntax error. your code is
    select cid cname bbookid bconnid bfldate fcityfrom f~cityto
    into table it_scust
    from ((scustom as c inner join sbook as b
    on cid = bcustomid)
    inner join spfli as f on fconnid = bconnid and fcarrid = bcarrid).
    iam sending the same code but with little modification just try this u will get the output.
    select cid cname bbookid bconnid bfldate fcityfrom f~cityto
    into table it_scust
    from (scustom as c inner join sbook as b
    on cid = bcustomid)
    inner join spfli as f on fconnid = bconnid and fcarrid = bcarrid.
    find the difference what i made.
    pls reward points if it is helpful.

  • I have to generate a 4 char unique string from a long value

    I got a requirment
    I have to generate a 4 char unique string from a long value
    Eeach char can be any of 32 character defined has below.
    private static final char char_map[] = new char[]{'7','2','6','9','5','3','4','8','X','M','G','D','A','E','B','F','C','Q','J','Y','H','U','W','V','S','K','R','L','N','P','Z','T'};
    So for 4 char string the possible combination can be 32 * 32 * 32 * 32 = 1048576
    If any one passes a long value between 0 - 1048576 , it should generate a unique 4 char string.
    Any one with idea will be a great help.

    Well, a long is 64 bits. A char is 16 bits. Once you determine how you want to map the long's bits to your char bits, go google for "java bitwise operators".

  • Can I purchase Creative Cloud subscriptions for longer than one year at a time?

    I work in the design department of a large business, currently using Creative Suite 6 (Design Standard edition, which includes PS and AI).
    I'd like to get the some of the new CC features, but my manager won't commit to a turnkey month-to-month or even annual rental of Creative Cloud apps (it's a pain for our department's purchaser to have to do orders more than once a year). That said, if they could take care of, say, two years at once, I might get the software. Is this an option? I'm one of only a few folks who use Adobe software (it's not a design business; we're just part of a small design department, and all software purchases need to go through this person, after which they're reimbursed). I'm not interested in any of the extra storage or central administration options that come with the higher priced business subscription.
    Thanks!

    http://www.adobe.com/au/products/creativecloud/faq.html
    Are there any unique benefits that come with my paid membership?
    Yes, as a member of Creative Cloud, you get many benefits that you do not get when you purchase a traditional shrinkwrapped product:
    Access to both the Mac OS and Windows® versions of the desktop applications and the ability to install them on your primary computer and one backup computer. So, if you have a Mac at home and a PC at work, you can install your applications on both as long as they are not running at the same time. See the product license agreements page for more information.

  • IPod Touch/Phone 4gens No Longer Detected in WINDOWS MY COMPUTER but OK in iTunes

    Since I have not found help online regarding the above situation I'm looking for help accordingly.   For most folks it's iTunes not detecting i-Devices, but my situation is unique.
    It started last night after I was on the phone for hours with Norton regarding error messages I was getting with Internet Security.  Those issues have been resolved.
    Again: iTunes detects and interacts successfully with ALL my iDevices.  Windows Vista > My Computer no longer does.
    Please help.

    Just now I performed the following:
    Turned off and turned back on AMDS(Apple Mobile Device) Service.
    Disabled Norton Internet Security, and tried checking if Windows would see my devices.
    For anyone who has Windows Vista you are familiar with the notes that play when you plug in a USB device: "da-dunk!"  Low-High note dadunk indicates connected.   High-low indicates it was disconnected.
    I can tell there is a problem because right after the Low-High dadunk in Vista I get a triple Low-note Du-du-dunk.
    Please help!

Maybe you are looking for

  • Error in smartform

    hai,    i created a smartform to display data from vbap. i looped the internal table t_tab. but when go for print preview values are not printing but field names are displaying like &w_tab-vbeln& &w_tab-posnr& &w_tab-netwr& i followed thw link <link

  • TS1741 Apple tv will not work

    My apple tv is connected correctly and has power to it. The light is on but no signal is being sent to my tv. I checked the hdmi port and made sure my tv is on the right channel. I have reset the apple tv but still no signal. I don't know what else t

  • Event data_changed of cl_gui_alv_grid

    I made a program using oo to show and edit alv grid. Here is the question...if the length of editable cell is less than about 40 ch,It is OK If editable cell is a little longer,the handler method didn't reflect at all, it seems that the event data_ch

  • Connecting to a database on a LAN

    I have developed a system and it runs well. The only problem is that, it can not run on the client machine accessing the server database on another machine. I suspect that my connection to the database may not be fit for a LAN batabase connection. Be

  • Compiling JavaFX and Java into a single JAR

    Perhaps I am missing something, but is there a simple way to compile both Java and JavaFX sources into a single JAR? The issue is cross references between Java and JavaFX. Using javac or javafxc separately, cross references are handled by the compile