Data Source - Bad Field Size (Row Number)

Hi,
I get following Exception "Data Source - Bad Field Size" when I run:
oForm_ActivityView.DataSources.DataTables.Item("mtx_C").ExecuteQuery("SELECT...
The Select statement run fine in SQL 2005.
I am using following SQL statement to get the row number:
ROW_NUMBER()OVER (ORDER BY OCLG.ClgCode) AS RowNumber,
If I remove the statement it works fine.
How do I get the row number in B1 to my Matrix?
Thank you,
Rune

I fought with this in the past too and solution for me was:
original query
select ROW_NUMBER() OVER (ORDER BY ItemCode) AS RowNumber, *  from oitm
new query
select t.* from (select ROW_NUMBER() OVER (ORDER BY ItemCode) AS RowNumber, *  from oitm) t
or convert the rownumber to nvarchar instead of integer as
convert(nvarchar(10),  ROW_NUMBER() OVER (ORDER BY ItemCode) ) as RowNumbver
check it and let me know

Similar Messages

  • How to trace master data source (table-field)?

    Hello All,
    Please help, its Urgent!!
    I have the following 4 characteristic requirement in BW from PM/PS module.
    Master data source (format: table-field)
    AFVV-FSAVD - early start date
    AFVV-FSEDD - early finish date
    AFVV-SSAVD - late start date
    AFVV-SSEDD - late finish date
    can anyone tell me the procedure, how to find them in R/3 n if there r any standard business content for the same?
    Thanks in advance,
    JP

    Go to RSA5 Tcode in R/3, under SAP R/3 Application component, you can get PO/PS Components, and under that you can get PO-IO/PS-IO Components, here you can check all the vaialble master data datasources.
    KJ!!!

  • Control over Source/Comments field size on Allergens Sensitivities and Additives

    Is there a way for use to expand out the field size of the Source/Comments field in each of these sections??
    thanks,
    David

    Hi David,
    You can expand out the field size or the text size by below steps:
    1, go to \Web\gsm\BaseForms\UserControls\ctlComplianceContainedGrid.ascx, open the file
    2, go to line 102 :  <wcc:DatatableColumn ID="SourceText" Key="SourceText" TranslationID="lblSourceOccuring" Formatter="helper.getTextFormatter()" Editor="Oracle.PlmProcess.Ui.Datatable.CellRepresentation.getTextareaCellEditor(125)"  Parser="string" width="<%# IIF (IsInEditMode(), 478, 502)%>" runat="server"  />
    3, change theCellRepresentation.getTextareaCellEditor or the width of the field, save the file, refresh your open page or create a new page, then this field will change to the newly configured size
    Notes: the maxinum text supported is 4000 character
    hope this helps.
    Thanks,
    Jessie

  • Creating the text data source for 0OI_LIFNR(TD: Carrier (Number of vendor a

    Hi
    Have to create the text data source for this characteristic. Basically it is the same as 0Vendor here.
    I want to make it delta enabled.
    Am creating it on the view BIW_LFA1T(same as 0vendor)
    Can anyone advise what can I use to make it delta enabled without any code.
    Can I use numeric pointer like the 0Vendor_text.
    Many Thanks and regards,
    Kate.

    when defining a data source through the admin web page, don't add '!' in front of the password.
    ! is needed only when configuring a data source in the mapViewerConfig.xml file.

  • Data source 2LIS_02_SCL  / fields ROCANCEL and BWGEO

    We consider to use 2LIS_02_SCL to extract schedule line data but after examining the data we got, a confused result occurs.
    We discovered for once GR 2LIS_02_SCL always presents 2 lines with almost same data execpt field ROCANCEL equals 'X'.
    Something likes:
         2010/11/01     ZNB     F     4500000030     610.26
    X     2010/11/01     ZNB     F     4500000030     610.26-
    I really dont understand why the secondary line is neccessary? because if it goes into DSO, the GR information would be eliminated. What's the point of designing this?
    The other field, for BWGEO :
    I found if the purchase order is a transfer delivery accorss plants, records stands for GR (movement type 101) cost zero (BWGEO = 0).
    I trust someone used this datasource before, could you please shed light on this? Appriecated.

    Hi,
    This is a canceled / deleted record from your source system.  Since you have loaded data to the target , if any existing records comes with new value will be also loaded in cube as new record. In order to nullify the previous value there will be negative kf with same record.  
    movement type 101 may be your gr which either you have received against Purchase order or from production please check your flag.  
    Thanks
    BVR
    Brad.Ma wrote:
    We consider to use 2LIS_02_SCL to extract schedule line data but after examining the data we got, a confused result occurs.
    >
    > We discovered for once GR 2LIS_02_SCL always presents 2 lines with almost same data execpt field ROCANCEL equals 'X'.
    >
    > Something likes:
    >
    > 2010/11/01 ZNB F 4500000030 610.26
    > X 2010/11/01 ZNB F 4500000030 610.26-
    >
    > I really dont understand why the secondary line is neccessary? because if it goes into DSO, the GR information would be eliminated. What's the point of designing this?
    >
    > The other field, for BWGEO :
    > I found if the purchase order is a transfer delivery accorss plants, records stands for GR (movement type 101) cost zero (BWGEO = 0).
    >
    > I trust someone used this datasource before, could you please shed light on this? Appriecated.
    Edited by: binu v. rajan on Jul 9, 2011 12:06 PM

  • Multiple Comparison​s on Single Data Source: NaN vs. Large Number

    Hello All,
      Working in TestStand 2013, and came across a situation with DMM measurements, in which several values would be acceptable for the limit comparison.  For example, if I am making a resistance measurement, and I expect it to be a very high value, say greater than 1M, I would insert that as the lower limit.  However, there are also certain situations when I may see the result of "NaN" at the meter.  For the purposes of the test, any number greater that 1M would be acceptable, but a result of NaN would also be acceptable.  In an effort to keep the code modular and reusable for many instances, I am curious if there is a way in TestStand to compare the test result against two values at the same time, (i.e. >1M  OR  =NaN).  Please advise.  Thanks.
    GSinMN  
    Solved!
    Go to Solution.

    Probably because you are trying to set the Low limit property.  You need to set the Low Limit Expression property and set the Use Expression flag to true.
    Consider the screen shot attached.  If UseLowExpr is False then the Low numeric property is used.  If it is True then the LowExpr property is used.
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~
    Attachments:
    LowLimitExpression.png ‏19 KB

  • Unable to view enhanced field in Data Source

    Hi All,
    We recently upgraded our R/3 system from 4.7 to ECC 6.0. Now when we are enhancing the data source, the field is visible in the Extract Structure. But we are unable to view it in the data source. We checked out in RSA2 the enhanced field attribute is specified as 'Field in OLTP and BW Hidden by SAP'. We have written code to modifiy the ROOSFIELD table to make the enahnced field visible. But this is the problem with all the data sources. Whenever, we have to enahnce, we have to go thru this process to make the enhanced field visible.
    Is it like that we missied out any patch in ECC 6.0 while upgrade? If any person faced similar situation, please help us.

    Hi Ravi,
    I think you are missing a step here. As soon as you enhance your datasource with new fields, by default, those 2 check boxes are checked ( Hidden and Field in User exit only). You go to RSA6, edit your datasource and here, you can uncheck these added fields so that you can use them. You do not need to write any code to change the fields settings in ROOSFIELD table. Do the step I mentioned above after enhancing and you should be good. Hope it helps.
    Thanks and Regards
    Subray Hegde

  • How to check which Table & Field is populating Data source

    Hi,
    My requirment is to check from which Table and Which field the data is extracted in the data source
    Data Source : 0MAT_PLANT_ATTR
    Field in Data Source :  MINBE
    Now i want to check from where (Table/Field) in R/3 is populating the Field MINBE in Data source 0MAT_PLANT_ATTR
    How can i do that

    Hi,
    Since you have the extract structure and the extractor, you can try Extractor Checker RSA3.Execute ST05 (activating SQL Trace), switch on the trace and execute the extractor checker. Once the extractor checker presents the results
    switch off trace. The clcik on Display trace and you will see all the tables that were hit by the extractor checker to retrieve data and present it to you.
    Note: Set the break point in the Extractor Function module.
    View the ST05 Extended Trace list. The Object name shows the Tables accessed.
    Hope this helps.
    Thanks,
    JituK

  • Need Data source for Table MARD with field LABST

    Hi,
    I am having field LABST from Table MARD.Can you just tell me from which data source This field exists.

    Check this thread :
    How to get the field from extract structure to datasource
    Regards
    Kiran Sure

  • Posting date in AFRU and 2lis_04_p_arbpl data source is not matching

    Hi Experts,
    We are facing an issue with 2LIS_04_P_ARBPL data source, posting date in AFRU table and in data source is not matching.
    For example: we booked an activity confirmation of value 100 on 01.01.2015 posting date, Counter 1, Operation 10
    For the same operation another counter is confirmed on 01.02.2015 posting date.
    So, in AFRU table:
    Prod Order     Operation     Confirmation Number     Counter     PostingDate     Activity
    1001               10               8001                             1              01.01.2015       100
    1001               10               8001                             2              01.02.2015       0
    In 2lis_04_p_arbpl data source, counter field is missing due to which only 1 record is coming which is:
    Prod Order     Operation     Confirmation Number     Counter     PostingDate     Activity
    1001               10               8001                             1              01.02.2015       100
    In data source, activity of value 100 is coming on 01.02.2015 date instead in AFRU table it is booked on 01.01.2015 posting date by which we are unable to match the value in query which is based on posting date.
    Please help on this.
    Thanks,
    Sameer

    Hi Sameer,
    Please check on which date the production order has status as "completed".
    It could be on 01.02.2015.
    Thanks,
    Vimal

  • How to create olap cube using Named Query Table in Data source View

     I Create on OLAP Cube using Existing Tables Its Working Fine But When i Use Named Query Table with RelationShip To other Named query Table  It Not Working .So give me some deep Clarification On Olap Cube for Better Understanding
    Thanks

    Hi Pawan,
    What do you mean "It Not Working"? As Kamath said, please post the detail error message, so that we can make further analysis.
    In the Data Source View of a CUBE, we can define a named query. In a named query, you can specify an SQL expression to select rows and columns returned from one or more tables in one or more data sources. A named query is like any other table in a data source
    view (DSV) with rows and relationships, except that the named query is based on an expression.
    Reference:Define Named Queries in a Data Source View (Analysis Services)
    Regards,
    Charlie Liao
    TechNet Community Support

  • Create two or more data sources and mapping to DSO

    Hi,
    I´m using SAP Netweaver BI 7.0.
    If there are two or three data sources which have to be mapped to DSO which field from Data Sources has to be mapped to which field in DSO?
    Is it possible to have only one DSO or should it be three DSOs because of the three Data Sources?
    The thing is I have created one view out of three tables. For the view I have created one DSO. Everything worked fine. But now the requirements have changed because of currencies.
    The view I have created is now mixing currencies because in the view is only one currency field, which is filled from the three tables. Two tables have different currencies and one table has one currency.
    The one currency of the one table is important and should stay like it is.
    I´m thinking about something like three different currency key fields in DSO which are mapped from data source. Also for every field of data source mapping with corresponding field in DSO.
    Some hints? I have found articles in SDN about creating data sources and so on but they don´t help me in this matter.
    Thank you in advance!

    Thank you guys for explaining! I´m new to SAP BW and trying to better understand.
    I`ll try it also with the view. It sounds "easier".
    But if I´m doing it with the 3 data sources, that means that for each currency field of the data source I will need an corresponding currency field in the DSO for mapping.
    Is it possible to have 3 times the 0Currency field in the DSO and each data source currency field will be mapped to the DSO?
    If that would work the 0Currency has to be contained in the key figures.
    But if the 0Currency is contained in each key figure will the assignment of currency work correct?
    +For example:+
    Data Source1:
    Turnover in Euro.
    (All currency is in Euro)
    Data Source2:
    Profit in Dollar.
    Profit in Euro.
    Profit in Yen.
    Profit in different currencies available.
    Data Source3:
    Sales in Dollar.
    Sales in Euro.
    Sales in Yen.
    Sales in different currencies available.
    For mapping from DataSources to DSO if it is possible to have 3 times 0Currency in DSO:
    Data Source1 currency fiield ---> DSO 0Currency
    Data Source2 currency fiield ---> DSO 0Currency
    Data Source3 currency fiield ---> DSO 0Currency
    Does it make sense?

  • Missing Connection Types in Report Data Source Properties

    I am running three installations of SharePoint 2013 with SQL 2012 for Business Intelligence, with Kerberos working.
    I have been having intermittent issues with SQL Reporting Services in a multi-server configuration, but finally had it working in all three environments.  We discovered many of our issues were caused by master page customizations which we have now disabled
    temporarily while we work on function issues.
    However, we started having a new problem with Reporting Services on just ONE of the environments, and we are not sure what happened.  Most everything appears to still be working, except Reporting Services. I have verified that features are enabled
    in both the farm and the site collection, as well as insured managed content types are being allowed on the target document libraries.  I also verified the Reporting Service properties and database connections.  However, I have found two clear symptoms
    which I can find no other information regarding (in logs or in online searches):
    1) If we try to create a new "Report Data Source" using the SharePoint UI, it will open a new Data Source Properties window, but in the "Data Source Type" field, there are no values available for me to select my connection type (e.g.,
    Microsoft SQL Server).
    2) In Central Administration, while administering the Reporting Services Service Application, I can manage a majority of the settings, including System Settings, Manage Jobs, Key Management, etc.  However, if I click on the link for "E-mail Settings,"
    I get the dreaded "Sorry Something went wrong screen," with an error saying that "Object reference is not set to an instance of an object."
    So I am hoping someone has an idea of where I can look for additional information on this issue, or even better, knows what I am missing to get Reporting Services functional again in this environment!
    Thanks in advance for any help provided.
    Elohir

    However, we started having a new problem with Reporting Services on just ONE of the environments, and we are not sure what happened.
    Hi Elohir,
    I assume you are installing Reporting Services SharePoint mode for SharePoint 2013, you need to:
    1. Install "Reporting Services – SharePoint" and "Reporting Services add-in for SharePoint Products" on the SharePoint server that the SSRS service will run on.  All other SP servers only need the "Reporting Services
    add-in for SharePoint Products."   
    2. Run the Insall-SPRSService and Install-SPRSServiceProxy on Central Admin and SSRS server.
    3. Start SSRS Service only on desired SSRS servers.
    http://msdn.microsoft.com/en-us/library/jj219068.aspx
    Since the issue occurs only to one of the environments, please provide more information about your multi-server configuration, and point out the server where the issue occurs.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Error while activating Transactional data source

    I am facing the below error while activating the transactional data source.
    Field Revenue ( Position 7 ): Amount Field in Internal Format, Check Settings.
    Can nyone plz let me know.

    Hi Reddy,
    You might have created the Revenue field Currency as "Fixed Currency" like INR or USD.
    In the Datasouce Def - Fields tab you have Internal format for a field then you should have the reference field to specify the external format like 0currency.
    In your case you have not taken any reference field 0currency. So you should n't specify the revenue field in Internal format,
    As Shashank said, Please change it to External format and Activate the DS.
    Thanks
    Sreekanth.

  • Identifying data source

    HI all,
    How to determine or identify the data source required or which fulfils the User requirement.?
    Say User from finance wants a Profit center wise  report.
    and also  he wants to see controlling area,costcenter,payment key ,posting methd.....etc.
    If we see in R/3 finance data sources,there are 2,3 data sources in which we can find all the above fields?
    But how to check or identify the precise datasource which can be taken into BW for report generation?
    Is there any standard particular way to identify a datasource which fulfils our requirement?
    Thx

    Hi,
    If you look at any implementation there is phase for requirement gathering and solution designing ( Business Blue print). The ideal way is get the report requirement from users then look at the ECC data source from functional area perspective. If there is no business user available or not able get the requirements then look for CRP ( Conference room piloting where you activate the complete reporting senarios with sample data and then take the standard delivered reports to business user for feasibility check).
    Take a example you mentioning your user interested in profit center report so best way is look at all transactional data sources providing under enterprise profit center. SAP always deliver two types of transactional data sources one for header level/Macro and another for line item level/ detail level. Seat with user and do the feasibility check using RSA2 transaction on ECC side.  If you check the profit center reports in finance is wrong. Hence always suggests to seat with business user and SAP functional consultant during requirement gathering and solution workshop. I have seen many failure cases due to this in my last 10 yrs career.
    Another way is check all the reports and info providers in help.sap.com>;BI content and do the feasibility check with user requirement before actual BI connect installation. I personally advice don't install the unnecessary objects from meta data repository. Always advisable have the requirement gathering and feasibility/gap analysis study first before moving into actual developments.
    I suggest, SAP comes with rich data sources, use the SAP delivered data sources with field enhancements at maximum as per user requirements on top of it. Advisable don't go for entirely generic data source route if possible.  
    Rgs,
    Ambuj Kathuria

Maybe you are looking for