Quantcast
Channel: SCN: Message List - ABAP for SAP HANA
Viewing all 2110 articles
Browse latest View live

Re: Strange SQL error -10811 Numeric overflow for parameter/column

$
0
0

Hi,

I am assuming this is not a table, this should be external view....

 

Increase length of field in HANA view then sync and activate the external view....

e.g 23.9

 

In case to avoid dump you can use exception like CX_SY_OPEN_SQL_DB

 

Cheers,

 

-Amol S


Re: Strange SQL error -10811 Numeric overflow for parameter/column

$
0
0

Hi,

 

no, it is not an external view. This is normal table (with storage type: column store):

Re: Custom ABAP Code Corrections/guidelines for getting HANA Ready

$
0
0

If the check variants are available for your system version you can do the checks before and also adjust the coding. You only have to consider things which would have a negative effect for your original DB system (if the changes would be deployed to production).

 

Regards,

Florian

Re: Subtraction in CDS view

$
0
0

Thank you Florian. You are right.

Re: Why the ATC message "DB Operation SELECT for ... found" is a problem ?

$
0
0

Hi,

 

We are also getting this message during ATC check using PERFORMANCE_DB variant. Only one select in the program and its giving "DB Operation SELECT for Found".

 

SELECT SINGLE <fld1> FROM <TAB1> INTO <Val1> WHERE PARMS = <Value>.

 

I know "Search DB Operations" check is selected in PERFORMANCE_DB and it is generating message during ATC check.

 

Help provided on this check is not adequate to understand. I want to know - What type of coding raise this error and how we can eliminate this message from coming in ATC check.

 

ATC check is also raising messages for DELELE, INSERT & MODIFY.

 

Thanks & Regards,

Rajesh

Re: Why the ATC message "DB Operation SELECT for ... found" is a problem ?

$
0
0

Hi,

 

Try Below Code.

 

The code is:

 

Note: <ti_Table> must have two colums with ColumnA, ColumnB

 

" SELECT <columnA> <columnB> FROM <table>

            INTO TABLE <ti_table>

            FOR ALL ENTRIES IN <another_ti_table>

            WHERE <where clause>."

 

Now Check with ATC.

 

Actually Into Corresponding fields give performance issue.

 

I hope this answer is helpful to you,

 

Thanks in advance.

 

Regards,

Surendra.

Re: Strange SQL error -10811 Numeric overflow for parameter/column

$
0
0

Sounds strange. Better create a CSS ticket on component BC-ABA-LA.

Best Regards, Thomas

Event trigger

$
0
0

Hi Experts,

 

   I need to schedule a background job for which the data gets loaded into the flat file tables through .csv files .

So for this I had created a table for the flat file and a program to load the data into it.
When I create a job in SM36 I need to create an event for the corresponding job in SM62 right?

Can anyone please explain me how to schedule the background jobs to load the data into the custom tables.?
I am loading through flat files.

 

Can you please send me response as soon as possible. Points will be awarded.


ABAP ON HANA with search functionality

$
0
0


I am new to HANA and my requirment is Case insensitive Search functionality on group of custom tables which are in HANA DB. User enters the word(string) in UI5 screen and this will be available in some Z object in abap.

Using that string, case insensitive search must be applied on  group of custom tables which are internally linked .

Issue with Joining the tables :

The problem is data type is not compatible when joining the two tables (Casting is possible while joining? It was giving error when creating cds view with join )

I started up with two approach :

(bottom-up approach ):

Create graphical hana view with combination of attribute view and simple calculation view (using  joins and set the properties of attribute views columns as free style search as true)

To consume this view created external view and called in report . but problem is how to pass the string with wildcard in report or any other way to put wild card string search in hana studio?

I also created store procedure by combining the z tables but join is not executing because of data type is not matching in JOIN condition . In store procedure I tried to use UPPER function with string on ztable(not a view) the wild character search is happening.

Can I create a store procedure on calculation view? If yes please give some input.

 

In eclipse abap editor (top-down ):

I tried to create CDS view with joining two tables (but same issue with type compatible issue). So I tried just fetching data from z table without any join  and activated the cds view.

Created ABDP procedure method in ZCLASS and tried to consume this CDS view . but facing some issues like cds view is not found.

So please give me some overview solution how can I proceed further for this functionality .

If any other way to implement this requirement ?

Kindly help me out in this.

Re: Strange SQL error -10811 Numeric overflow for parameter/column

$
0
0

Rafal,

 

Try se14->enter the table name->edit-> activate and adjust database (with the direct radio button selected, and the save data radio button selected)

 

Thanks,

 

Jacob Levinson

Re: Strange SQL error -10811 Numeric overflow for parameter/column

$
0
0

Good idea,

but before adjusting the database table, please have a look at SE11 and check if Runtime Object and Database Object are in sync.

Regards, Thomas

Re: Substring and SubstringOf on SADL-generated Gateway-services

$
0
0

Hi Tobias

Whats the alternative then ? We are also facing same issue. How to do we use substring function then?

Re: SAP Delivered CDS Views?

$
0
0

Hello Adlin,

 

SAP delivered over 2000 CDS views as of the Q1 of 2016.  The CDS views are available in the S/4HANA system like 1511 On Premise.  They are not available as a download package.

 

Thanks,

Erin

DB Operation SELECT for ... found.

$
0
0

Hi All,

 

We have a custom program in which we have the following statement

SELECT SINGLE <FIELD1> from <TAB1> into <LV_VAR1> where <FIELD1> = P_FIELD1.

 

when we run the ATC check for the program, the following message  'DB Operation SELECT for ... found.' is displayed.

 

We tried using SELECT UPTO 1 rows, SELECT.... END SELECT.

We also tried declaring any internal table to fetch the single record into an internal table but we are still getting the same message.

 

I have referred to following thread

 

Why the ATC message "DB Operation SELECT for ... found" is a problem ?

 

But as per our client standards, this is defined as ERROR and not WARNING and hence we need to fix this.

 

Is there any solution to fix this error.

 

Thanks in advance.

 

Sindhu

Re: Questions on CDS Views with input parameters

$
0
0

Hi ,

 

I have created CDS view with Input parameter  and tried to consume in AMDP as below

 

e_result =  SELECT  field1 field2  FROM ZXV_PERSON(CDS VIEW not SQLVIEW NAME) ( P_STRING =>:iv_string1 );

 

but i am getting error in USING clause as "view is invalid  only transparent  tables, views or     database procedure can be specified "

 

I have cross verified that CDS view exist in abap catalog (using se11 tcode)

 

any solution ?

 

thank you!

 

Regards

Vinuta Hegde


CDS view with input parameters -error

$
0
0

Hi ,

 

I did try to create a CDS view with combining  two CDS view with parameters as below. No syntax error but once i am trying to execute getting exception says that "Sysstem failure :"Table is unknown or does not exist ".  . but in ABAP dictionary level(SE11)  VIEW' S are available  and tables are exist with valid data.

 

@AbapCatalog.sqlViewName: 'ZXV_CDS_05'

@AbapCatalog.compiler.CompareFilter: true

@AccessControl.authorizationCheck: #CHECK

@EndUserText.label: 'CDS view - Testing'

define view ZXV_PERS

with parameters p_string : abap.char( 14 ),

                        p_validity :abap.dats

                          

as select from  ZCDS_PERS

                    ( p_string : :p_string,

                      p_validity : :p_validity ) as PERSON

 

 

inner join Zcds_Person_Navn

                    ( p_string : :p_string,

                      p_validity : :p_validity ) as NAVN

                     

on  PERSON.root_key = NAVN.root_key

{

key NAVN.db_key,

key PERSON.db_key as person_key,

NAVN.adresseringsnavn,

PERSON.cpr_nr,

NAVN.fornavn,

PERSON.root_key

}

 

Could you please help me in that ?

 

thank you

 

Regards

Vinuta hegde

Re: CDS view with input parameters -error

$
0
0

Hi Vinuta,

 

I do not see any problem in this view.

 

Are both underlying views ( ZCDS_PERS, Zcds_Person_Navn) working?

 

Do you have a DCL on your CDS view? (you have: @AccessControl.authorizationCheck: #CHECK)

 

Are there any errors in the activation log ?

 

Regards, Thomas

Re: CDS view with input parameters -error

$
0
0

Both underlying views (ZCDS_PERS, Zcds_Person_Navn ) are working fine when i executed separately.

yes i have  @AccessControl.authorizationCheck: #CHECK).

No error in the activation log .

Query about HANA

$
0
0

Hi All,

 

Stupid question...does HANA replace SQL/Oracle/MaxDB etc for SAP, or does it compliment it, ie. pull information out of the main DB and run it in-memory?

 

Thanks!

ADBC Insert Query not working

$
0
0

Hi Experts,

 

I am trying to insert records in database table, but its failing.

 

When I debug the statement, the CALL C_DB_FUNCTION returns sy-subrc 12.

 

Here is my code for insertion :

 

Create the SQL statement object

  lo_sql_statement = lo_sql_connection->create_statement( ).


* To insert the records from internal table

  lo_sql_statement->set_param_table( REF #( lt_materialid ) ).


* Prepare the SQL Statement

  CONCATENATE 'INSERT INTO' c_tab_name 'VALUES( ?,? )' INTO

                   lv_sql_statement SEPARATED BY space.   " #EC NOTEXT

 

 

* Execute the SQL statement

   TRY .

    lv_rows_processed = lo_sql_statement->execute_update( lv_sql_statement ).

 

   CATCH cx_root INTO lx_root .

 

EXECUTE_UPDATE Method is not working.

 

Any reviews in this??

 

Thanks,

Sumit

Viewing all 2110 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>