Problem with extracting USERID

I have the following code but it didn't seems to work:
Select
COY_C, --Company Code which is the first 3 letterof the userid
Substr(USER_M, 1, 1) || --this part of the code can work but no the rest of the code.
Substr(USER_M, instr(USER_M, ,1,1)+1)||
Substr(USER_M, instr(USER_M, ,1,2)+1)
AS INITIALS from USER_ACCT
where EMP_N = EMP_N;
Below is what i hope to get:
For Example:
Name: Kwok Fu Sing
Company: ACE
USERID generated: ACEZKFS
the NAME and COMPANY CODE is already in the database and i need to display the name and the initial of name and company in the form based on the EMPLOYEE ID entered by the user.From there, i must take out the company code and 3 initial of the NAME.Besides, I got to make sure there is no duplicate in the database as it will be treated as the USERID.
the name is not input by the user but is retireve from the database,and the USERID got to be generated by the system.
How do I generate the company code and 3 initial from the name together and most importantly, making sure there is no duplicates for USERID?
If there are duplicates,
the system got to re-generate the userid again using the second letter of the person name.If the system check again, there is another duplicate, the system got to re-generqate again using the third letter and so on.
For Example:
Name: Kwok Fu Sing
Company: ACE
USERID generated: ACEZKUS

Hello,
It's good idea to look for dba_dependencies. But, i would recomend to use TOAD or OEM consol for viewing the code, because its very easy. I know that many users says to use the data dictionary for this purpose but it's oky for learning purpose but in real time it's worth to use data dictionary when tools are available for making work easy, faster.

Similar Messages

  • Problem with Extract Filter

    I have Problem with Extract Filter which was working OK until recently.
    Now, when I choose the filter the screen does not come up as the extract screen as it should and no other action can be taken except to press escape which returns me to normal. working.    Looks as if the extraction function has been sleected but does not show?
    I am trying to use the  extract on a layer.  Have tried to use it on a selection also.
    Anyone suggest a solution please?
    Bill

    Without a way to reset the tool, the only possibility seems to be to reset your preferences as described in the FAQ.
    http://forums.adobe.com/thread/375776?tstart=0
    You either have to physically delete (or rename) the preference files or, if using the Alt, Ctrl, and Shift method, be sure that you get a confirmation dialog.
    This resets all settings in Photoshop to factory defaults.
    (A complete uninstall/re-install will not affect the preferences and a corrupt file there may be causing the problem.)

  • Problems with extract metadata from Essbase with ODI 10.1.3.5.

    Hello there, I have a really annoying problem. I have 2 dimensions in essbase v11 with a space on it, (Itens Financeiros and Centros Financeiros), and this is causing a problem when I try to extract the metadata from essbace to a table. the problem occurs some times in 3 - loading - ss_0 - begin essbase metadata extract and some times in 4 - loading ss_0 - extract metadata, but in this 2 steps the error is the same:
    unknown member name [itens] in function [@idescendants]. I see in Johns blog someone sayng to add a '/"' in the front and at the end of the member filter criteria to allow ODI to parse the space as part of the member name. but I really don't understand this. Someone can helpme with this? Thanck you.

    It doesn't matter, I am able to replicate with an older version of the essbase adaptor...
    I take it this is the type of error you are receiving "com.hyperion.odi.essbase.ODIEssbaseException: Extract operation failed : Cannot query members by specs. Analytic Server Error(1200497): Error parsing formula for [REGION DEFINITION"
    If you download patch - Patch 8785893: ORACLE DATA INTEGRATOR 10.1.3.5.2_02 ONE-OFF PATCH
    It is easy to install just a matter of copying a jar file over an existing one in the \oracledi\drivers directory.
    It should resolve the issue.
    Ok?
    Cheers
    John
    http://john-goodwin.blogspot.com/                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problem with extract huge data in WEBI (Errors:WIO 30280 and ERR_WIS_30270)

    Hi gurus, need your help.
    When we run the query for the report we get an error in Web Intellegence .
    This error may be two types. And their rotation occurs randomly.
    First error: There is no memory available. Please close document to free memory (WIO 30280)
    Second error: An internal error occurred while calling the 'processDPCommands' API. (ERR_WIS_30270)
    When we try reopen WEB Intelligence, or reloading servers or machine, we have no   any results and get error again.
    I was try change different parametrs in universe designer for connection and universe, in central managment console for WEBI, but it's not solve problem
    This query select data from huge table (4,7 million rows), and when I use limit for maximum rows in WEBI my report working correctly.
    Is there any way to solve these problems associated with large data? What  is invoke this problem when we try to get full data?
    We use Business Objects Enterprise XI 3.1 version 12.4.0.966 
    Our system Windows Server  R2  Enterprise 2008 SP1 (64-bit system), Processor Intel 2.67 GHz (2 processors), RAM 8 Gb.                                                                               
    Thanks.
                                                                                    Ruslan

    Hi Brad,
    here we are talking about XI3.1 which has the limitations inherited from the operating system. as this blog post explains with plenty of details.
    In BI4.0 you can leverage larger datasets without any problems however you need to properly size and configure the services.
    There are several documents out there:
    How to configure the APS  http://scn.sap.com/docs/DOC-31711
    Companion Guide
    https://service.sap.com/~sapdownload/011000358700000307202011E/SBO_BI_4_0_Companion_V4.pdf
    Web Intelligence Sizing Guide
    https://service.sap.com/~sapdownload/011000358700001403692011E/BI_4_0_WEBI_NEW.pdf
    Best regards,
    Simone

  • Problem with extract data from R/3 to BW

    I want extract data from R/3 system.the problem is when I run the infopackage,I can see the status is yellow In the Monitor and the data can't extract to BW.but in the source system,the job of extracting data has been finished.
    (use the Tcode: WE02)the Outbound IDocs and Inbound IDocs are OK,but in the BW system ,I canu2019t see the Inbound IDocs.
    In the source system use Tcode: SM50,I can see the process SAPLQOWK is running for a long time and run out system memory.
    use Tcode : SM58, I execute LUW, the data can transfer to BW system,but the report SAPLQOWK is not stop.
    it would be stopped by canceling the process manually in operating system or it run out time.
    why can't i extract data from R/3 system successfully ?
    why the process SAPLQOWK can't finish?
    how can i do?

    Hi,
    I hope the note 527481 would help you to sort out this problem.
    Regards,
    Anil Kumar Sharma .P

  • Problem with extraction

    Hi Friends
    I have a COPA extract structure created where in i am using the delta update.
    When i tried to do the extraction some how the data is not being extracted into SAP BW .
    Now where should i collect the time stamp and what is the process that i need to follow for re extracting
    Regards
    vijay

    Hi bhanu
    My question is the extraction was succesful in SAP r/3 but due to some RFC problem it couldnt reach SAP BW.
    Since for the first delta the time stamp is present should i go ahead and do the extraction once again or take care of old time stamp.
    Since mean time there might be other records created which i should not take care of.
    Let me know your views.
    Regards
    vijay

  • Problem with extraction of flat file to infocube

    Hi there,
    We are workin on SAP SCM APO release 7 that has the componente BW release 7. and we're trying to load data from a flat file to infocube like we used to do in release 5.
    The problem is that we get the message that no data is available everytime we run the DTP. The transfer structure is:
    1. source system: flat file
    2. data source: a flat file according with our CSV file
    3. transformation between the data source and the infocube
    4. infocube
    do i need to create an infosource even i'm loading from a flat file? With the release 5 of SAP SCM APO i don't need to create an infosource. It works fine from the data source to the infocube.
    We don't fine any notes related so I'm asking if you have experienced this before with the release 7.0 and how do you solve it.
    Regards

    Hi,
    In BI DTP loads data directly from datasource to infocube. No need to create an infosource. But make sure that you have loaded data till your datasource i.e. upto PSA. For that you need an infopackage to load data from flatfile to PSA. Then from PSA, you can load data to cube by your DTP.
    You have to create a  flatfile datasource and give path to the CSV file. I guess you have already done this. Now right click on your datasource and click on create infopackage to create an infopackage. here also check the path and start the infopackage. It will load data till your PSA. If this loading is successful you have data in your PSA. Right click on your datasource and click on manage. Thus you can check your data in PSA. Now you need transformation between your datasource and cube which you already have. Now run your DTP and your data will be loaded from PSA.
    Indrashis

  • Problem with Extracting Industry CodeTexts  for BP

    Hello!
      Can any body help me by explaining  how to extract the Industy codes 0ind_code master data from CRM. There is a datasourse  0BP_IND_CODE_TEXT ,but this datasource has an another filed named Industry system which i dont require in my masterdata but it is a must required field in the above specified datasourse. we dont maintain any data regarding industry systems in our crm system.
      I tried to test this datasourse in rsa6 in source system CRM but this wont show any data. Can anyone help me how to extract  this masterdata from crm system.
    Tanking you.
    with regards
    ashwin

    Hi Ashwin,
    You can try the following:
    In RSA6, change the data source and remove the selection check mark for ISTYPE. If this does not work then take a look into table ROOSFIELD with your datasource. ISTYPE has a value of M in the column properties of data sourec field, you can change this to X.
    I have not tried this out, but hope it helps...

  • Problem with extracting audio

    Hi. I just ripped a show episide from a DVD using handbrake software. Then I imported the episode into imovie. I want to extract a small clip of the audio and bring in into Garageband and use it as a sample.
    I split the video and the audio so I could have the one section that I wanted to use. I selected only that one section, and I extracted the audio from only that one section. It's only supposed to be about 20 seconds of audio. Instead, imovie keeps extracting that audio ffrom the entire 24 minute show no matter what I do.
    The audio clip itself plays correctly in imovie. But whenever I copy it onto my desktop, or in Garageband, it copies the audio from that whole show. The info window for that clip states that it lasts 24 minutes even though it's only 20 seconds long. it makes absolutally no sense. I just need halp extracting the audio that I need. Thanks for your help.

    Earlier versions of iMovie used to sometimes corrupt bits of the project, especially if or when you emptied iMovie's Trash.
    iMovie was re-engineered (..starting with version 5, I think..) so that it now does "non-destructive editing". This means that when you choose to split bits of things into separate clips, or to choose to extract the audio from just one small section of a clip, iMovie nevertheless does not split the clip into small pieces, but directs its attention to just that section which you want to work with.
    It always retains the whole entirety of the original clip(s), so that there's less possibility of corruption of all the tiny bits.
    This means that when you come to extract just a few seconds of - for instance - a 30 minute clip, iMovie extracts the whole 30 mins instead of just the teeny bit you want, but then makes available to you just the few seconds you're interested in.
    This was intended to improve the stability and reliability of iMovie HD ..though it makes some aspects more long-winded.
    A more circuitous way around this, but a "workaround" which will give you exactly what you want, is to:
    1 Split the original video clip so that you have just the one small video section which you want to extract the audio from.
    2 Click on and Select just that one small section.
    3 Click on File and Export and choose the QuickTime tab and alongside "Compress movie for:" choose 'Full Quality', and tick the box marked "Share selected clips only". In the next dialogue, give the clip a meaningful name (like "20 secs video clip") and Save it in your Movies folder.
    4 When that's done, in iMovie choose File and Import, and choose the file you just exported (e.g; "20 secs video clip") and that will be imported into iMovie. Put it on your Timeline, and Extract the audio. It'll extract very quickly, as you've got only a very short video clip to extract it from. You'll now have an audio clip of exactly the right length.
    Simple, logical ..but necessary because iMovie now has some "safeguards" built into it ..but they can make audio extraction a longer process than before.

  • Problem with extract()

    Does "SELECT extract(value(X),'/.../....') from table1 x;"
    works with non-schema-based document?
    Or do I need to write like "SELECT x.extract('/..../...') from table1 x;"
    In my case, the second one works but the first one is not working. The first one, but, works in the case of schema-based document.
    Any suggestions will be appreciated.

    I see that it returns as below. So what is the exact use of extract(0.getStrinVal. What should I be using???
    chromoproteinelectron transferhemeironmetalloprotein
    chromoproteinduplicationelectron transferhemeironmetalloproteinoxidative phospho
    rylation
    chromoproteinduplicationelectron transferhemeironmetalloproteinoxidative phospho
    rylation
    chromoproteinduplicationelectron transferhemeironmetalloproteinperiplasmic space
    chromoproteinduplicationelectron transferhemeironmetalloprotein
    chromoproteinduplicationelectron transferhemeironmembrane-associated complexmeta
    lloproteinoxidoreductaserespiratory chain

  • Problem with extracting data

    I am creating one custom report for that i have to extract Part Type,BUYER_ID,PRESENT_PART_COST,NEW_PART_COST these all are classification fields.. is there any FM for extracting all these fields...
    Or any other method of doing it..
    waiting for reply...
    Thanks.

    784633 wrote:
    i use ado in c++ builder 5.0That version is from 1999 right?
    http://www.embarcadero.com/products/cbuilder/previous-versions
    Support ended about the time Oracle 10g first was released.
    this field has value for an update: update "APP"."MASTER" set "INFO" = 'orraa 9' where ROWID = 'AAANmfAAEAAAACOAAA';
    when i extract the data i get the infrmation update "APP"."MASTER" set "INFO" = "ORA" where ROWID = "AAANmfAAEASo row is truncated only in the specific app/dev tool?

  • Problem with extracting Xml data source fields

    Post Author: new_crystal
    CA Forum: Crystal Reports
    Hi,
    I am creating a report which has a xml data source.
    I have a field named fieldvalue in the xml, I need to present this fieldvalue in a column format based on the name of the column heading which is another field in the database called fielddata
    here is what i want
    fielddata1     fielddata2    fielddata3 .......
    fieldvalue1    fieldvalue2   fieldvalue3......
    i have dragged the fieldvalue 3 times in the report and applied different formula for each one of them
    here is the eg. of the formula
    if ( = "A" ) then
    but it is not giving me the correct values pulled from the data source. for the first column it is pulling correctly but for the rest of the columns it is giving values as 0's.
    Can anyone help me out in this? It is pretty urgent!
    Thanks

    Post Author: tel
    CA Forum: Crystal Reports
    I have no idea how to format it in Crystal Reports (i'm new to it too), but if worse comes to worse, you can create an XSLT stylesheet to convert the XML into a format that is easier for Crystal to use. 
    In case you don't know XSLT is a programming language that is designed to convert one XML format into another.

  • What's the problem with Adobe Downloader assistant? It's impossible to download a trial version of

    What's the problem with Adobe Downloader Assistant? It's making it impossible to download a trial version of PS 5 extended. I can see that I'm not the only one experiencing difficulties with this so........what's the story Adobe?!!!! If you don't want people to download trial versions of your products then just say so! Or do something about the problem and remove this faulty download.I have a brand new Mac,so it shouldn't be a problem. The Adobe Downloader has been extracting for 2 days now, and I can't shut it off. Very irritating!

    If you are having problems with extracting it is likely that you have customized the location of your download.  I would recommend downloading to your User folder or Desktop folder.  When the download and extraction process are complete you can then install to your Program Files folder.

  • FrameGrabbingControl - grab frame problem with video type

    Hi all
    I have a problem with extracting frames from a video.
    Currently I am able to extracting video from some avi formats. But this method does not works for many formats. like mpg etc...
    The FrameGrabbingControl object return null for many formats.
    This is my code
    public Player getVideoPlayer() throws Exception
            if (videoPlayer == null)
                File file = new File("E:\\Songs\\English\\Video\\Alizee\\20090209114235.avi");
                MediaLocator videoMediaLocator = new MediaLocator(file.toURL());
                videoPlayer = Manager.createRealizedPlayer(videoMediaLocator);
            return videoPlayer;
    public FrameGrabbingControl getFrameGrabCntrl() throws Exception
            if (frameGrabCntrl == null)
                frameGrabCntrl = (FrameGrabbingControl) getVideoPlayer().getControl("javax.media.control.FrameGrabbingControl");
            return frameGrabCntrl;
    // frame extract method
    public Image captureCurrent() throws Exception
            Buffer frame = getFrameGrabCntrl().grabFrame();
            BufferToImage stopBuffer = new BufferToImage((VideoFormat) frame.getFormat());
            return stopBuffer.createImage(frame);
        }Here are some 3 sample media information I have tested with the program. First two works fine but 3rd one does not works.
    // taken from http://www.exactfutures.com/index02.htm and downloaded http://www.exactfutures.com/vid2jpg.zip
    // WORKS FINE
       General
          Complete name : E:\Songs\English\Video\Alizee\testcam04.avi
          Format : AVI
          Format/Info : Audio Video Interleave
          Format/Family : RIFF
          File size : 1.88 MiB
          PlayTime : 29s 596ms
          Bit rate : 533 Kbps
       Video #0
          Codec : Indeo 4
          Codec/Info : Intel Indeo Video 5.0 Wavelet
          PlayTime : 29s 596ms
          Bit rate : 528 Kbps
          Width : 320 pixels
          Height : 240 pixels
          Aspect ratio : 4/3
          Frame rate : 3.818 fps
          Bits/(Pixel*Frame) : 1.801
    // recorded video from a webcam
    // WORKS FINE
       General
          Complete name : C:\Program Files\MSI\MyGuard Live\VideoClip\20090209114235.avi
          Format : AVI
          Format/Info : Audio Video Interleave
          Format/Family : RIFF
          File size : 311 KiB
          PlayTime : 3s 200ms
          Bit rate : 710 Kbps
       Video #0
          Codec : Indeo 4
          Codec/Info : Intel Indeo Video 5.0 Wavelet
          PlayTime : 3s 200ms
          Bit rate : 705 Kbps
          Width : 640 pixels
          Height : 480 pixels
          Aspect ratio : 4/3
          Frame rate : 15.000 fps
          Bits/(Pixel*Frame) : 0.153
    // downloaded avi sample video
    // NOT WORKS
       General
          Complete name : E:\Songs\English\Video\Alizee\fvss_demo.avi
          Format : AVI
          Format/Info : Audio Video Interleave
          Format/Family : RIFF
          File size : 10.3 MiB
          PlayTime : 2mn 300ms
          Bit rate : 715 Kbps
       Video #0
          Codec : MS Video
          Codec/Info : Microsoft Video 1
          PlayTime : 2mn 300ms
          Bit rate : 638 Kbps
          Width : 160 pixels
          Height : 120 pixels
          Aspect ratio : 4/3
          Frame rate : 10.000 fps
          Bits/(Pixel*Frame) : 3.325
       Audio #1
          Codec : PCM
          Codec/Family : PCM
          Codec/Info : Microsoft PCM
          PlayTime : 2mn 300ms
          Bit rate : 64 Kbps
          Channel(s) : 1 channel
          Sampling rate : 8000 Hz
          Resolution : 8 bitsI think problem is the codec. Am I correct?
    Could anyone please tell me why can't I use this FrameGrabbingControl object to extract frames?

    deshan wrote:
    Currently I am able to extracting video from some avi formats. But this method does not works for many formats. like mpg etc...
    The FrameGrabbingControl object return null for many formats.That's expected behavior when the codec doesn't support capture...
    Could anyone please tell me why can't I use this FrameGrabbingControl object to extract frames?Because it's not supported for that format.
    But T.B.M. and I have recently worked on / posted a workaround that should capture any video format that JMF can play.
    [http://forums.sun.com/thread.jspa?messageID=10596692#10596692]

  • Extracting Open Items : Problem with mass activity FPBW

    Hi everybody,
    I need to extract Open Items in BW. I use the extractor 0FC_OP_01 which extract the content of table DFKKOPBW in OLTP. Open Items are written in table DFKKOPBW by the mass activity FPBW.
    I have a problem with this mass activity : the field "Business partner number" stay empty in table DFKKOPBW after the execution of FPBW, whereas it's not empty in table DFKKOP... (and for the cleared items it works...)
    Does anybody have a solution for my problem?
    Best regards
    Aube

    hi buddy,
    go to SBIW go to the setting for application specificdatasourse in that go to contact account recivable, click the fileds for extrction add the field the data to see in to dffkopbw table after mass activity
    regards
    nag

Maybe you are looking for

  • Can't figure out how to PUT

    First off, I'm a Newbie to Dreamweaver. So. I'm in a real learning phase. I can't figure out how to "Put" my development file to my web Server. I have an ftp connection. At least I think I do since I have file list that seems to be pointing to the fi

  • Jndi-name  javax.naming.NameAlreadyBoundException:

    Hi, I am getting the following error while deploying a CMP Bean. Initially this started to deploy, but later when I recompiled the source files and tried to deploy again, I get the following errors. In fact I am tired of trying to see what's actually

  • Clearing vendor BAPI

    Hi I want to use some BAPI for F-44 and found  POSTING_INTERFACE_CLEARING. But when I add some document numer for clearing than process is stopping because my BAPI didn't fill field "Difference postings" RF05A-AKOBT. I added this by bellow code but i

  • How would I use a credit card for In-app purchases instead of my gift card credit?

    I have a gift card credits linked to my account, but I do not want to use it for an in-app purchase.  I want to use my credit card for the purchase.  Is there any way around this?

  • Maximum LUN size (2TB?) on Mac OS X Server 10.4.9 (Intel)

    We have a newly acquired Xserve (Quad Xeon) with the Apple (LSI OEM) Dual-Channel 2Gb FC HBA. The system is attached via a Sun (QLogic OEM) SANbox2-16 switch to a Sun 3511 (SATA-based FC array). The Sun 3511 is configured with a single RAID5 volume/p