Extract field error

I have the following select to extract a date containing month and year from a varchar2 column
select to_char(sau_date,'MM') MONTH,extract(year from sau_date) YEAR, count(*) COUNT
from mac.sysaud
group by to_char(sau_date,'MM'),extract(year from sau_date)
order by extract(year from sau_date), to_char(sau_date,'MM');when running select i receive a ora-30076:invalid extract field for extract source

Hi,
user11978142 wrote:
varchar2 column date is displayed as
20071015
20071015
20061020
20061020
\{code}
i just wanted to extract the date
table contains millions of rows..so its a bit difficult to post dataThat's why you need to post sample data. Four rows might be enough.
If all you need is a count of rows for each month, then:
SELECT       SUBSTR (saud_date, 1, 6)     AS year_month
,       COUNT (*)                    AS cnt
FROM       sysaud
GROUP BY  SUBSTR (saud_date, 1, 6)     
ORDER BY  year_month
;If you need separate columns for month and year, call SUBSTR twice where I called it once.
This will be more efficient than using TO_DATE, and it not raise an error if there are invalid strings (such as month '00').
On this site, you have your choice of what kind of code tags to use. Whichever type you choose, be consistent.
If the opening tag uses square brackets, then the closing tag must use square brackets, too. With square brackets, the closing tag has a / , and capitalization doesn't matter. For example
[code]
SELECT    SUBSTR ...
[/code]If the opening tag uses curly brackets, then the closing tag must use curly brackets, too. With curly brackets, the closing tag is identical to the opening tag, without a / , and you can only use lower-case letters.
Edited by: Frank Kulash on Feb 12, 2011 3:26 PM

Similar Messages

  • Extraction (0fi_gl_14) decision issues: what to be key fields / Errors

    Hi Experts,
    I am having extraction (0fi_gl_14) decision issues: to determine what will be the key fields / Errors in maintaining datasource in BI
    1.
    In rsa3, for 0FI_GL_14, how do I know what makes each of these records unique?
    I was about to guess Document number but there were duplicates of Document number, so, if this is to be extracted to the BI into a DSO, how do you know what should be the key field for the for the DSO to ensure that those fields are extracted. Is this how it is determined?
    2.
    Also, the datasource 0fi_gl_14 had too many fields and I wanted to maintain it in BI to transfer on a few fields for my extraction test. I unchecked most of the fields under the fields tab but  after modification activation fails with several error messages.
    i.  Any reason why during the business content installation of 0fi_gl_14, I used Grouping: before and after in flow, and yet DSO (0FIGL_O14) and datasource were not linked and mapped correctly?
    ii. Also when I tried to create the transformation, only about 3 fields mapped automatically. Is there a way to do it in such a way that when you create a transformation between business content objects such as this datasource to the DSO, the transformation will be automatically mapped?
    iii. I just needed to test the extraction into the DSO and there are also many similar fields, and repetition in the datasource and I am not sure which ones to select in the datasource maintenance screen as relevant and which ones not to select to prevent the error messages. There appears to be some dependencies.
    Can you show me a few of the most relevant fields, with specific technical names for me to use in my test? How are these decisions typically made in the real world?
    Thanks.
    Edited by: AmandaBaah on Aug 18, 2011 3:37 PM

    1. The datasource extracts data from tables BSEG and FAGLFLEXA. The uniqueness for the records could be found by checking the key fields for these tables.
    2. It is not advisable to modify the datasource, deselecting fields, etc. If certain fields are not needed do not map the same in the rules.
    i. Datasource exists only in ECC. What we find in BW is a replica of it. take the infoproviders rather and install the dataflow before.
    ii. You can install the rules for this flow rather than creating the same. For rules to be proposed automatically (for custom created datasources in BW) enter the infoobject in the template field in fields tab of the datasource.Then proposals appear automatically. For std datasources we could install rules from content.

  • EXTRACT - FIELD-GROUP - Delete Adjacent

    Hi Experts,
    Is it possible to delete adjacent duplicates from an EXTRACT ( Field-Group ), as in internal tables ?
    Thanks in advance.
    Ramesh.

    I have already checked se38 and program RAUNVA00... at the time of check details of incomplete this  transfer in transaction As02. As per our practice and defined required field for Asset master we have already Entered necessary data.
    I have checked related thread "Incomplete Asset" in SDN and checked SAP Service Notes  for error but No proper solution i got.
    During diagnosis i want to know how Field group "23 Base value %" has been maintained in A021.
    *Error message *
    Asset 5000 27000000-0 is incomplete, check the asset
    Message no. AAPO184
    Diagnosis
    The 'incomplete' indicator was set for asset 5000 27000000-0 because required entries were not made.
    System Response
    In the standard system, the system rejects the posting to the asset and issues an error message. However, this error message can be changed in Customizing so that it is only a warning. However, if you make this change, you should be aware that it is then possible to post to the asset, although an additional account assignment is missing.
    Procedure
    Start report RAUNVA00 for the asset, and complete the asset's specifications. Then post the transaction again.

  • Session variable causing ADODB.Field error '800a0bcd'

    i have a page that before the session variable was added,
    would display the
    text i required if the recordset was empty.
    Now i have a session variable on the same page and if the
    recordset is
    empty, instead of showing the text i need displayed, i get
    the following
    error:
    ADODB.Field error '800a0bcd'
    Either BOF or EOF is True, or the current record has been
    deleted. Requested
    operation requires a current record.
    /Help_Desk/verified.asp, line 31
    If i remove the session variable code from the page, it works
    fine.....why
    the conflicts?
    <%Session("last")
    =(rsVerify.Fields.Item("c_last_name").Value)%>
    <%Session("first")
    =(rsVerify.Fields.Item("c_first_name").Value)%>
    <html>
    What im doing is verifying if a user exists in the database.
    If they do
    there name is stored in a session and used later on the
    following pages. If
    they do not exist, they are suppose to receive a message
    indicating to call
    our support center to update there name...
    I dont understand why the addition of the above two lines
    cause this error

    Here is all the code on the page... please let me know if
    there is something
    incorrect.....
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    <!--#include file="../Connections/USD.asp" -->
    <%
    Dim rsVerify__varLname
    rsVerify__varLname = "%"
    If (Request.Querystring("last") <> "") Then
    rsVerify__varLname = Request.Querystring("last")
    End If
    %>
    <%
    Dim rsVerify__varFname
    rsVerify__varFname = "%"
    If (Request.Querystring("first") <> "") Then
    rsVerify__varFname = Request.Querystring("first")
    End If
    %>
    <%
    Dim rsVerify
    Dim rsVerify_numRows
    Set rsVerify = Server.CreateObject("ADODB.Recordset")
    rsVerify.ActiveConnection = MM_USD_STRING
    rsVerify.Source = "SELECT c_last_name, c_first_name,
    c_middle_name,
    c_email_addr FROM AHD.ctct WHERE c_last_name = '" +
    Replace(rsVerify__varLname, "'", "''") + "' and c_first_name
    = '" +
    Replace(rsVerify__varFname, "'", "''") + "' and del = '0'"
    rsVerify.CursorType = 0
    rsVerify.CursorLocation = 2
    rsVerify.LockType = 1
    rsVerify.Open()
    rsVerify_numRows = 0
    %>
    <%Session("last")
    =(rsVerify.Fields.Item("c_last_name").Value)%>
    <%Session("first")
    =(rsVerify.Fields.Item("c_first_name").Value)%>
    <html>
    <head>
    <title>Account Verification</title>
    </head>
    <body text="#000000" link="#0000FF" vlink="#0000FF"
    alink="#0000FF"
    leftmargin="0" topmargin="0">
    <!--#include virtual="/inc/header.asp" -->
    <br>
    <br>
    <% If Not rsVerify.EOF Or Not rsVerify.BOF Then %>
    <table width="605" align="center">
    <tr bgcolor="#9999FF">
    <td><strong>USD Name:</strong></td>
    <td><strong><%=(rsVerify.Fields.Item("c_last_name").Value)%>,
    <%=(rsVerify.Fields.Item("c_first_name").Value)%></strong></td>
    </tr>
    <tr>
    <td><strong>First
    Name:</strong></td>
    <td><strong><font
    color="#FF0000"><%=(rsVerify.Fields.Item("c_first_name").Value)%></font></strong></td>
    </tr>
    <tr>
    <td><strong>Last Name:</strong></td>
    <td><strong><font
    color="#FF0000"><%=(rsVerify.Fields.Item("c_last_name").Value)%></font></strong></td>
    </tr>
    <tr>
    <td><strong>Email:</strong></td>
    <td><strong><font
    color="#FF0000"><%=(rsVerify.Fields.Item("c_email_addr").Value)%></font></strong></td>
    </tr>
    <tr>
    <td><strong>Location:</strong></td>
    <td><strong><font
    color="#FF0000"><%=(rsVerify.Fields.Item("c_middle_name").Value)%></font></strong></td>
    </tr>
    <tr>
    <td colspan="2"><div
    align="center"><strong>If all 4 fields above
    contain
    your correct information please select from the links
    below.<br>
    If your are missing any information above please contact the
    help
    desk
    before proceeding.</strong> </div></td>
    </tr>
    <tr>
    <td colspan="2"><hr size="1"> <table
    width="400" align="center">
    <tr>
    <td><div align="center"><strong><a
    href="/Help_Desk/usd_stores1.asp">Open
    Store / DC
    Request</a></strong></div></td>
    <td><div align="center"><strong><a
    href="/Help_Desk/usd_corp1.asp">Open
    Corporate
    Request</a></strong></div></td>
    </tr>
    </table></td>
    </tr>
    </table>
    <% End If ' end Not rsVerify.EOF Or NOT rsVerify.BOF %>
    <br>
    <div align="center">
    <% If rsVerify.EOF And rsVerify.BOF Then %>
    <table width="605">
    <tr>
    <td><div align="center"><font
    color="#FF0000"><strong>If you are
    receiving
    this message, chances are you are not completely setup in
    USD.<br>
    Please contact the help desk to have your information
    verified and
    setup
    if needed.</strong></font>
    </div></td>
    </tr>
    </table>
    <% End If ' end rsVerify.EOF And rsVerify.BOF %>
    </div>
    <div align="center"></div>
    <!--#include virtual="/inc/footer.asp" -->
    </body>
    </html>
    <%
    rsVerify.Close()
    Set rsVerify = Nothing
    %>
    "Daniel" <[email protected]> wrote in message
    news:[email protected]...
    >i have a page that before the session variable was added,
    would display the
    >text i required if the recordset was empty.
    >
    > Now i have a session variable on the same page and if
    the recordset is
    > empty, instead of showing the text i need displayed, i
    get the following
    > error:
    >
    > --------------------------
    > ADODB.Field error '800a0bcd'
    > Either BOF or EOF is True, or the current record has
    been deleted.
    > Requested operation requires a current record.
    >
    > /Help_Desk/verified.asp, line 31
    > -----------------------------
    >
    > If i remove the session variable code from the page, it
    works fine.....why
    > the conflicts?
    >
    > <%Session("last")
    =(rsVerify.Fields.Item("c_last_name").Value)%>
    > <%Session("first")
    =(rsVerify.Fields.Item("c_first_name").Value)%>
    > <html>
    >
    > --------------
    >
    > What im doing is verifying if a user exists in the
    database. If they do
    > there name is stored in a session and used later on the
    following pages.
    > If they do not exist, they are suppose to receive a
    message indicating to
    > call our support center to update there name...
    >
    > I dont understand why the addition of the above two
    lines cause this error
    >
    >

  • OdiReadMail  - extract field from and subject in file

    Tool odiReadMail extract the body of the message in to file.
    I wont extract in this file fields form e-mal "from" and "subject". How i can do it?

    Yes. I want to extract fields "subject", "sender" and body mail message and place them in a file.
    I think, that it is necessary to change odiReadMail. But I do not know where to find source codes of this ODI tools.
    Message was edited by:
    RAD

  • Cannot extract fonts error message even after fonts outlined

    will not allow me to attach screen shot from grab. Image not allowed is error message

    Grab saves files to tif format, you need a web format (jpg, png, gif) to post to these format. Rather than grab use preview app.
    preview application >> file >> take screen shot >> save as file type png
    Now the cannot extract fonts error, could be fixed possibly by an illustrator free update, don't know the verison you are on
    http://www.adobe.com/support/downloads/product.jsp?product=27&platform=Macintosh
    Reset your illustrator your prefs.
    Does this happen to all files, or is this just a certain file. You may have a font in a symbol or opacity mask.
    Save a copy of the document, keep deleting items, unitl the error goes away. This will identify the problem item, of which we better help you by narrowing the variables down.
    When fo you get thgsi error, upon opening the file?

  • Moving item Required field error message

    How do you move the required field error message?
    for example when a field is left blank and the page submits
    a error message would populate right under the label and push the item(text box) to the right. Making the form look very ugly.
    http://i.imgur.com/fCBZJ.png
    *i want to move the error message box to the right or below the textbox or somewhere that doesn't push the item...
    Edited by: PandaOracle on Jan 16, 2012 10:35 AM

    That only moves the DML error messages
    I kind of want to move the default error messages for the items. ( i dont see any message tab or anything in the edit page for items.)
    Edited by: PandaOracle on Jan 18, 2012 7:31 AM

  • Missing Field error when modifying user Master Record

    We are using our corporate LDAP to authenticate our portal users and do not have (nor do we want) write permission to the LDAP. We are using additional attributes (ume.admin.addattrs) to hold information pertinent to the portal. We are running into a problem though when required information is missing from the LDAP user master record. For example, if the users email address is missing, when we attempt to save a user's record with the additional attributes we need, the system responds with a "Missing Field" error message and will not save the additional attribute until the LDAP record is complete. Currently the only work around to this problem is to notify the LDAP administrators and have them update the record (not a high priority for them).
    Is there a way to have the portal ignore incomplete records and just save what it has?
    Thanks
    Ken Burd

    We are using our corporate LDAP to authenticate our portal users and do not have (nor do we want) write permission to the LDAP. We are using additional attributes (ume.admin.addattrs) to hold information pertinent to the portal. We are running into a problem though when required information is missing from the LDAP user master record. For example, if the users email address is missing, when we attempt to save a user's record with the additional attributes we need, the system responds with a "Missing Field" error message and will not save the additional attribute until the LDAP record is complete. Currently the only work around to this problem is to notify the LDAP administrators and have them update the record (not a high priority for them).
    Is there a way to have the portal ignore incomplete records and just save what it has?
    Thanks
    Ken Burd

  • How to extract field name, length, descrip & field type out of repository

    How can I  extract field name, length, descrip & field type out of repository?  Or is it possible?

    Hi Victor,
    To get any info about any field you should know the code of that field that we specify in console while  creating field.
    Using this code you will get property whatever you defined in consloe.
    RepositorySchemaEx repositoryschema= MetadataManager.getInstance().getRepositorySchema(usrCtx);
    where usrctx is usersession context that you create to access yr repository
    FieldProperties fProp = repositoryschema.getField(tableName,fieldCode);
    where tablename is tablecode in which field belong
    field code is code of field that you define in console for that field
    if you check with frop then it will show  the general properties like type etc.
    suppose yr field of type text field then you can acces all properties that is coomon as well that is respective to text type field.
    FixedWidthTextFieldProperties textField = ( FixedWidthTextFieldProperties) fProp
    if you have other field type then that use thta properties . you will get in java api docs on help.sap.com whatever the properties MDM supporting.
    Hope ot helps  you get the solution
    thanks,
    sudhanshu

  • Extracting files error on WindowsXp,Service Pack 3

    Extracting files error on WindowsXp,Service Pack 3 I'm just staring to use CS3. I'm running Windows Xp Professional
    Service Pack 3.
    the CS3 files are in the compact form and when I run the file ADBEPHSPCS3_WWE, I get the following messages
    Preparing Files
    Please wait while the downloaded files are being extracted
    Then I get
    A problem occurred while extracting some files. Check space on your computer and the write priviliges on the
    destination folder.
    This message occurs when processing the file
    ...\redist\WindowsXP-kb898715-x64-enu.exe
    The machine am instaling on has over 25G of free space.
    Please HELP
                        Thanks         johns

    Installation preparations
    Mylenium

  • 0CRM_OPPT_H always does not extract field BWSTONESYS4

    Hi,
    The extractor 0CRM_OPPT_H always does not extract field BWSTONESYS4 “BW status”. However by transaction CRMD_BUS2000111 I visualize the status E0003 Won. 
    Can you help me?
    Versions:
    CRM 5.0
    BW 7.0
    PS: Sorry about my English. I speak Italian and French

    Hi All,
    I am facing the same problem..
    standard 0CRM_OPPT_H dose not contain the 'STATUS' field, e.g. E0001
    I found that maybe we can find that field by join the following three tables and the oppt guid.
                    CRM_JEST
         CRM_JSTO
         TJ30T
    but it is too suffering....
    anyone can help?

  • Incorrect call-up of the extraction program---error while extraction

    Hi All,
    We are loading the data first time(Full update) in BW Production we are getting the below error.
    Error message is as follows:
    Incorrect call-up of the extraction program     R3     8
    Errors in source system     RSM     340     
    Details of error are as follows:
    Requests (messages): Everything OK
    Extraction (messages): Errors occurred
    Error occurred in the data selection
    We request you help for correcting this error.
    Regards
    Deva

    Hi ,
    Here is little more info about error details we see in Status tab of monitor.
    Error message from the source system
    Diagnosis
    An error occurred in the source system.
    System Response
    Caller 09 contains an error message.
    Further analysis:
    The error occurred in Service API .
    Refer to the error message.
    Procedure
    How you remove the error depends on the error message.
    Note
    If the source system is a Client Workstation, then it is possible that the file that you wanted to load was being edited at the time of the data request. Make sure that the file is in the specified directory, that it is not being processed at the moment, and restart the
    regards
    Dev

  • Output CURR/QUAN fields (error)

    Hi,
    When doing Extended check(SLIN overview) on a program, I got the following error.
    Messages for Output CURR/QUAN fields(Error) -
    "Use addition CURRENCY when outputting GV_FAMT
    (The message can be hidden with "#EC UOM_IN_MES)"
    Code written :
        WRITE: / 'Total Amount Posted','$',GV_FAMT
    GV_FAMT is a variable of type CURR(13)
    Any ideas on the resolution?
    Thanks in advance.

    Hi bijay,
    This is an EPC error.
    It happens because currency and quantity fields are stored in a different way and presented in output in some different way.
    So,it can be corrected by writing following line>>
    WRITE: / 'Total Amount Posted','$',GV_FAMT *currency ekko-waers*
    reward with pts if answered.
    thanks and regards,
    Anurodh

  • Invalid Extract Structure error while creating "Generic DataSource" on a view...

    Dear All,
    I have created a view on following tables MARA, AFKO and MSEG. The Table/Join condition is as follow:
    AFKO--AUFNR  = MSEG--AUFNR
    AFKO--PLNBEZ = MARA--MATNR
    I have included all the fields from MSEG and other all fields from MARA and AFKO. The view is created successfully and contents/records are also being fetched/displayed from this view.
    See screen shot as well:
    But when I go to RSO2 to create a "Generic DataSource" on this view. I get a series of warning messages and then error message "Invalid Extract Structure" and therefore I'm unable to create my DataSource on this view. See below screen shots of warning and error messages.
    Other warning messages are as follow:
    Field GAMNG with reference field MEINS: Reference table MARA is replaced by ZOXPRD0150
    Field PLSVB with reference field PLNME: Reference table PLKO is replaced by ZOXPRD0150
    Field PLSVN with reference field PLNME: Reference table PLKO is replaced by ZOXPRD0150
    Field LODIV with reference field MEINS: Reference table MARA is replaced by ZOXPRD0150
    Following is the screen shot of error message:
    1. How can I get rid of this error message and be able to create my "Generic DataSource" on top of this "View"?
    2. What should I do to resolve the above warning and error messages?
    I will appreciate your reply.
    Many thanks!
    Tariq Ashraf

    Hi Vipul,
    as you can find in CKIS table, the reference feild for value feild "WERTN" is missing.
    As per the table the reference feild is HWAER. This should have been used in place of FWAER.
    Try mentioning this in your view and this should work.
    Also I am a little enthusiastic to know, what are you trying to get from the datasource.
    If you are trying to get the cost estimate of multi level BOM, not (just one child level), then this approach may not work.
    There is a BAPI that gives such itemization split. Just FYI, in case you are looking for multi level explosion.
    "BAPI_COSTESTIMATE_ITEMIZATION".
    Hope this helps.
    Naveen.A

  • Extracting Pages Error

    Hello All,
    I have spent over 3 hours working on this and my head hurts reading things that I can't do.
    The short version is I have a pdf catalog that had some errors in the pages.  They were sent out to have some details corrected.  The original file was turned into a form.  When the two pages with errors came back I added them to the pdf, copied the fields from the wrong pages and inserted them into the corrected pages.  The old pages were deleted to make a nice fresh copy with everything correct.
    I am now trying to extract one of those pages with the fields in their correct locations.  I am getting this error "An incorrect structure was found in the PDF file" when I try to save the extracted page.  I have read about the tagging structure but when I check the document properties it says the document is not tagged.
    I am using Window 7 and Acrobat X Standard.
    Any suggestions on how to address this would be greatly appreciated.

    Good news…. How many pages are you actually going to use. I have only tried two… one was username and password and the other was passthrough with email. Just wondering..
    Thanks,
    Scott F. Fella
    Sr. Network Engineer
    CDW Corporation
    CDW Plaza - 120 S. Riverside
    Ninth Floor
    Chicago, IL 60606
    Cell: 630-935-7333
    e-Mail: [email protected]
    From: 48441565T >
    Reply-To: "[email protected]" >
    Date: Mon, 28 Nov 2011 09:58:35 -0700
    To: Scott Fella >
    Subject: - Re: How many donwloaded customized web authentication pages can we have in a controller.

Maybe you are looking for

  • How to parse the output of a JSP?

    Hi, I need to parse the generated contents of a JSP file from within the web application (i.e. another JSP). Any ideas how this might work? It seems that XPath will not parse a file which doesn't end in .xml, and even if it did, I get the feeling it

  • Where is the Facebook sign in? its missing!!!!

    I go to system preferences, click on Mail, contacts and calendars and there is no tab for facebook? anyone else have this missing new feature? Alexei

  • Firefox closes right after I click anywhere on the page.

    I uninstalled and reinstalled firefox for couple of times to solve out my problem. Earlier it was saying that some .ddl is not a valid image. So, I changed the location of installation. Now its opening but when I click anywhere on the firefox window

  • Im having problems with my illustrator , and i don't know how to fix it?

    hey, guys. um my illustrator is having this problem with the navigator . and its makiing this fat lines and when i click the line on the little box in the bottom and put it at 100 % it comes out like this                            all small and i do

  • Download basket content could not  read

    Dear Consultant I have downloaded and installed the SAP download manager. I have configured the download manager and the screen shot for configuration is attached. During the runing of download manager. I am getting the below messages: "The basket co