Quantcast
Channel: SCN : Popular Discussions - ABAP for SAP HANA
Viewing all 1246 articles
Browse latest View live

Cannot activate DDLS objects from Eclipse

$
0
0

Hi

 

As part of an SAP note that was implemented by a colleague, it has generated the following objects:

 

FMLV_YEAR

 

However these objects are inactive which is stopping us upgrading the solution.

 

In SE80 I get the error:  Please use ADT Tools in Eclipse to process DDL Sources  ; when trying to activate these inactive objects.

 

And when I am in Eclipse, I get the following error:  No license to edit object R3TR DDLS FMLV_YEAR

 

I can generate an access key for this entry.

FML_MIG_BCF

 

FML_MIG_DELTA_D

Basis Object FML_MIG_DELTA_D1 does not exist or is inactive

Basis Object V_ML_DL3_TOTAL_VIEW  does not exist or is inactive

 

FML_MIG_DELTA_D1

Basis Object V_ML_D_TOTAL_VIEW does not exist or is inactive

 

FML_MIG_TOTAL_D

 

FML_MIG_TOTAL_DL3

Column PRCTR is not known

Column SEGMENT is not known

Column WEKS is not known

 

Has someone come across this before?

 

How can I get past this?

 

We are running SAP_BASIS 7.40, SAP_ABA 7.4 on HDB.

 

These patches are part of the SAP_FIN 7.20 and SAP_FIN1503 SNOTES.

I've been tasked with clearing the errors - and have cleared 03 objects so far.  just these few to go...


Push down SELECT-OPTIONS to HANA

$
0
0

Hi all,

 

I'm optimizing a long-running ABAP report that uses some SELECT-OPTIONS/RANGES for SELECTS that are currently implemented as OpenSQL queries in the ABAP report itself.

 

Example:

 

SELECT-OPTIONS:

  s_partn FOR but000-partner.

 

SELECT * FROM but000 INTO TABLE lt_but000 WHERE PARTNER IN s_parn.

 

As I'm pushing down large parts of the ABAP logic into SQLscript Stored Procedures in HANA, I wonder what to do with the SELECT-OPTIONs. As HANA doesn't seem to support using RANGES (SIGN,OPTION, LOW, HIGH) in WHERE conditions, I'll have to

  1. convert the RANGES to a HANA-compliant WHERE clause string (either in HANA or in ABAP)
  2. hand it down from ABAP to HANA (either the RANGES tables or the string resulting from the conversion, depending on where I convert it)
  3. execute either a fully dynamic SQL statement via EXEC or EXECUTE IMMEDIATE,
    or
  4. execute a regular SELECT (which I could ideally bind to a table variable, e.g. an output parameter table) with a dynamic WHERE clause,
    or
  5. use really nasty hacks such as dynamically creating Stored Procedure with a static SELECT in (either from ABAP via ADBC or within HANA) - I'd hate to have to do that.

 

A number of questions:

  1. Is anyone aware of an existing function module or service class in ABAP or stored procedure in HANA that does the conversion from RANGES to HANA-compliant WHERE clauses? I could write one but it seems like such a classic reuse case that I hope something exists already.
  2. If I use fully dynamic SQL, the problem with EXEC and EXECUTE IMMEDIATE seems to be to get hold of the result set, which I need to bind to a table variable in either the same procedure or in the calling procedure for further processing. Since result sets generated with either statement cannot be bound to table variables directly and do not even show up when calling the procedure WITH OVERVIEW, this option seems to be ruled out.
  3. There doesn't seem to be the option to do a partly dynamic SELECT, where only the WHERE clause comes from a string.
  4. How is this kind of requirement usually handled? I can't be the first person doing this.

 

Thanks a lot,

 

Thorsten

ABAP CDS View: OData service CRUD enabled?

$
0
0

Hello All,

 

Is it possible to make an odata service generated by the abap cds view CRUD enabled?

So can I do an UPDATE, DELETE, CREATE on the odata service?

 

I am reading stuff about BOPF ? Is this the way to go forward?

 

Regards,

Bert

CDS View - consuming HANA artifact (calculation view generated by BW)

$
0
0

Hi,

 

Can I consume a calculation view in a CDS view like below? If not, how should I then do it?

 

@AbapCatalog.sqlViewName: 'Z_Cds_Test_12345'

@EndUserText.label: 'CDS View on generated view for NCTT2000'

define view Z_Cds_Test_Nctt2000_Gen_View as select from "_SYS_BIC"."system-local.bw.bw2hana/NCTT2000" {

    CALMONTH,

    AMOUNT   

}

 

At least when I try I get an error:

Description Resource Path Location Type

Table _SYS_BIC does not exist or is not active Z_CDS_TEST_NCTT2000_GEN_VIEW (ABAP DDL Source) [D32] Z_CDS_TEST_NCTT2000_GEN_VIEW Unknown ABAP Syntax Check Problem

 

 

Thanks in advance, kr

Torben

HANA and not fully qualified SELECT SINGLE statements - an issue?

$
0
0

As part of an upgrade from Oracle to HANA (ECC), we have checked all (used) custom programs using the Code Inspector using check variant FUNCTIONAL_DB to find possible HANA issues. Now, during functional testing, one specific issue pops up related to a SELECT SINGLE statement with an incompletely specified key. (SELECT SINGLE * FROM KNVV INTO WA_KNVV WHERE KUNNR = I_KUNNR). According to the tester, the row that is selected now is different from the expected one.

 

I have used the Code Inspector to check for all SELECT SINGLE statements with incomplete specified key and found a lot of them. However, SAP did not add this check to the variant FUNCTIONAL_DB, so I'm wondering if there really is a problem here.

 

So my questions are:

  1. Do all tables still have a primary index? I have performed a database object check for KNVV via SE11 and this says there is still a consistent index KNVV~0 so I presume these indices still exist.
  2. In general, if I perform SELECT SINGLE without using fully qualified primary key, will HANA still use the primary index (if for example the first keys are specified and the last key field isn't)
  3. Are there situations where a SELECT SINGLE without fully qualified key on a HANA database can return a different row from the table than on an Oracle or other non-HANA database?

 

I fully understand that the best solution is analyzing and changing these SELECT SINGLE statements, but for the moment I want to know if there actually is a real problem. If this is the case, I am going to add the check on SELECT SINGLE to my next HANA upgrade projects.

CDS view currency conversion performance

$
0
0

Hi All,

Currency_conversion function in CDS view  terribly decrease performance of the cds  view,  view running in few seconds run for minutes after adding currency_conversion function. I am working on 7.40 SP10 system.

- I could not find any note for the issue for my system's support pack level ( I will open one )

- I tried to select  conversion ratio from tcurr table but it is necessary to subtract gdatu date from 9999999 to get actual date and could not cast gdatu to numeric field to  be able to perform necessary arithmetic operation in cds view. 

- Last solution I have in mind but  trying to avoid  is creating ZCURR table with proper date field instead of gdatu and filling it for the past and recent currency values using a simple program and daily job.


Do you have any other solution for above problem ? I searched the forum but find only one post for the issue which does not suggest any solution 

CDS View vs Atribute view

$
0
0

Hello All,

 

I need to know is CDS view and Attribute view are co related and what is the difference between CDS view and Attribute view.

 

Please suggest.

 

LR Reddy.

Concat function or equivalent for CDS view?

$
0
0

Trying to create a CDS view and looking to combine multiple character fields (e.g. first_name + last_name) and am wondering if this is possible? Am on CRM NW 7.4 SP5 on HANA.

 

Using the arithmetic function gives me the following.

 

Data type CHAR is currently not supported in an arithmetic expression

 

Looking at the official documentation here, it doesn't appear to be included?

 

ABAP Keyword Documentation

 

I can always create a AMDP or even a HANA native view, just wondering if anyone has come across the same issue and found a solution within CDS view?

 

Thanks in advance,
Sean.


*** ERROR => Connect to database failed, rc=1, rcSQL=10 SQLERRTEXT : invalid username or password "

$
0
0

Hello,

 

We have SAP SLT system on SAP HANA DB(1.0 SPS 9 revision 93) . It is distributed system.

 

Yesterday while taking restart of system we are unable to connect Db with R3trans -d  RC12.

trans.log is giving error "*** ERROR => Connect to database failed, rc=1, rcSQL=10. SQLERRTEXT : invalid username or password "

 

Kindly help to solve as I am very new to HANA DB.

 

 

trans.log

 

4 ETW000 R3trans version 6.25 (release 742 - 11.02.15 - 14:06:42).

 

4 ETW000 unicode enabled version

 

4 ETW000 ===============================================

 

4 ETW000

 

4 ETW000 date&time   : 03.04.2015 - 05:35:31

 

4 ETW000 control file: <no ctrlfile>

 

4 ETW000 R3trans was called as follows: R3trans -d

 

4 ETW000  trace at level 2 opened for a given file pointer

 

4 ETW000  [     dev trc,00000]  Fri Apr  3 05:35:31 2015                                                 124  0.000124

 

4 ETW000  [     dev trc,00000]  db_con_init called                                                        17  0.000141

 

4 ETW000  [     dev trc,00000]  set_use_ext_con_info(): usage of ssfs switched off (rsdb/ssfs_connect=0)

 

4 ETW000                                                                                                  51  0.000192

 

4 ETW000  [     dev trc,00000]  determine_block_commit: no con_hdl found as blocked for con_name = R/3

 

4 ETW000                                                                                                  19  0.000211

 

4 ETW000  [     dev trc,00000]  create_con (con_name=R/3)                                                 16  0.000227

 

4 ETW000  [     dev trc,00000]  Loading DB library '/usr/sap/SLT/SYS/exe/run/dbhdbslib.so' ...            33  0.000260

 

4 ETW000  [     dev trc,00000]  DlLoadLib() success: dlopen("/usr/sap/SLT/SYS/exe/run/dbhdbslib.so"), hdl 0, count 1, addr 2065de0

 

4 ETW000                                                                                                6278  0.006538

 

4 ETW000  [     dev trc,00000]  Library '/usr/sap/SLT/SYS/exe/run/dbhdbslib.so' loaded                    14  0.006552

 

4 ETW000  [     dev trc,00000]  function DbSlExpFuns loaded from library /usr/sap/SLT/SYS/exe/run/dbhdbslib.so

 

4 ETW000                                                                                                  18  0.006570

 

4 ETW000  [     dev trc,00000]  Version of '/usr/sap/SLT/SYS/exe/run/dbhdbslib.so' is "742.06", patchlevel (0.38)

 

4 ETW000                                                                                                  86  0.006656

 

4 ETW000  [     dev trc,00000]  function dsql_db_init loaded from library /usr/sap/SLT/SYS/exe/run/dbhdbslib.so

 

4 ETW000                                                                                                  16  0.006672

 

4 ETW000  [     dev trc,00000]  function dbdd_exp_funs loaded from library /usr/sap/SLT/SYS/exe/run/dbhdbslib.so

 

4 ETW000                                                                                                  34  0.006706

 

4 ETW000  [     dev trc,00000]  } DbSlHDBControl(rc=0)                                                    23  0.006729

 

4 ETW000  [     dev trc,00000]  { DbSlHDBControl(con_hdl=-1,command=39,arg_p=(nil))                       13  0.006742

 

4 ETW000  [     dev trc,00000]  } DbSlHDBControl(rc=0)                                                    16  0.006758

 

4 ETW000  [     dev trc,00000]  { DbSlHDBControl(con_hdl=-1,command=10,arg_p=7fff553bba30)                12  0.006770

 

4 ETW000  [     dev trc,00000]  } DbSlHDBControl(rc=0)                                                    11  0.006781

 

4 ETW000  [     dev trc,00000]  New connection 0 created                                                  10  0.006791

 

4 ETW000  [     dev trc,00000]  0: name = R/3, con_id = -000000001, state = DISCONNECTED, tx = NO , bc = NO , oc = 000, hc = NO , perm = YES, reco = NO , info = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO , prog =

 

4 ETW000                                                                                                  27  0.006818

 

4 ETW000  [     dev trc,00000]  { DbSlHDBControl(con_hdl=-1,command=10,arg_p=1896960)                     19  0.006837

 

4 ETW000  [     dev trc,00000]  } DbSlHDBControl(rc=0)                                                    11  0.006848

 

4 ETW000  [     dev trc,00000]  db_con_connect (con_name=R/3)                                             10  0.006858

 

4 ETW000  [     dev trc,00000]  determine_block_commit: no con_hdl found as blocked for con_name = R/3

 

4 ETW000                                                                                                  20  0.006878

 

4 ETW000  [     dev trc,00000]  find_con_by_name found the following connection:                          10  0.006888

 

4 ETW000  [     dev trc,00000]  0: name = R/3, con_id = 000000000, state = DISCONNECTED, tx = NO , bc = NO , oc = 000, hc = NO , perm = YES, reco = NO , info = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO , prog =

 

4 ETW000                                                                                                  19  0.006907

 

4 ETW000  [     dev trc,00000]  { DbSlHDBConnect(con_info_p=(nil))                                        37  0.006944

 

4 ETW000  [     dev trc,00000]  DBHDBSLIB : version 742.06, patch 0.038 (Make PL 0.100)                   18  0.006962

 

4 ETW000  [     dev trc,00000]  HDB shared library (dbhdbslib) patchlevels (last 10)                      17  0.006979

 

4 ETW000  [     dev trc,00000]    (0.038) Close all result sets (note 2124493)                            12  0.006991

 

4 ETW000  [     dev trc,00000]    (0.038) Initialization of deferred LOB writing for ZDO changed (note 2106186)

 

4 ETW000                                                                                                  17  0.007008

 

4 ETW000  [     dev trc,00000]    (0.032) DBSL supports deferred lob writing with HANA SP9 (note 2106186)

 

4 ETW000                                                                                                  21  0.007029

 

4 ETW000  [     dev trc,00000]    (0.031) Read last SQL message after the connection is closed (note 2104804)

 

4 ETW000                                                                                                  20  0.007049

 

4 ETW000  [     dev trc,00000]    (0.031) Check Enable_Select_Into_Scalar_UDF before the ALTER call (note 2105480)

 

4 ETW000                                                                                                  31  0.007080

 

4 ETW000  [     dev trc,00000]    (0.029) Certain SAP applications hang for several minutes (note 888312)

 

4 ETW000                                                                                                  21  0.007101

 

4 ETW000  [     dev trc,00000]    (0.029) Structure DBSL_CA initialized (note 2094457)                    15  0.007116

 

4 ETW000  [     dev trc,00000]    (0.027) Data aging for the service connection (note 2090613)            23  0.007139

 

4 ETW000  [     dev trc,00000]    (0.026) Use prepared statements for R3szchk (note 1952609)              14  0.007153

 

4 ETW000  [     dev trc,00000]    (0.025) Use bulk fetch on a result set of a procedure call (note 2082661)

 

4 ETW000                                                                                                  20  0.007173

 

4 ETW000  [     dev trc,00000]                                                                             9  0.007182

 

4 ETW000  [     dev trc,00000]   -> init()                                                                19  0.007201

 

4 ETW000  [     dev trc,00000]    STATEMENT_CACHE_SIZE = 1000                                             40  0.007241

 

4 ETW000  [     dev trc,00000]   -> init()                                                               866  0.008107

 

4 ETW000  [     dev trc,00000]   -> loadClientRuntime()                                                   20  0.008127

 

4 ETW000  [     dev trc,00000]  Loading SQLDBC client runtime ...                                         11  0.008138

 

4 ETW000  [     dev trc,00000]  SQLDBC Module  : /usr/sap/SLT/hdbclient/libSQLDBCHDB.so                 8256  0.016394

 

4 ETW000  [     dev trc,00000]  SQLDBC Runtime : libSQLDBCHDB 1.00.82.00 Build 0394270-1510               59  0.016453

 

4 ETW000  [     dev trc,00000]  SQLDBC client runtime is 1.00.82.00.0394270                               31  0.016484

 

4 ETW000  [     dev trc,00000]   -> quiesceConnection()                                                   14  0.016498

 

4 ETW000  [     dev trc,00000]   -> getNewConnection()                                                    12  0.016510

 

4 ETW000  [     dev trc,00000]   <- getNewConnection(con_hdl=0)                                           66  0.016576

 

4 ETW000  [     dev trc,00000]   -> checkEnvironment(con_hdl=0)                                           20  0.016596

 

4 ETW000  [     dev trc,00000]   -> connect(con_info_p=(nil))                                             31  0.016627

 

4 ETW000  [     dev trc,00000]  Try to connect via secure store (DEFAULT) on connection 0 ...             43  0.016670

 

4 ETW000  [dbhdbsql.cpp,00000]  *** ERROR => Connect to database failed, rc=1, rcSQL=10                 7276  0.023946

 

4 ETW000  [     dev trc,00000]  SQLCODE    : 10                                                           26  0.023972

 

4 ETW000  [     dev trc,00000]  SQLERRTEXT : invalid username or password                                 13  0.023985

 

4 ETW000  [     dev trc,00000]   -> SetSdbDbslCA(errcode=10)                                              16  0.024001

 

4 ETW000  [     dev trc,00000]   -> freeConnection(con_hdl=0)                                             19  0.024020

 

4 ETW000  [     dev trc,00000]     close all opened locators of connection 0                              13  0.024033

 

4 ETW000  [     dev trc,00000]  } DbSlHDBConnect(rc=99)                                                   45  0.024078

 

4 ETW000  [    dblink  ,00000]  ***LOG BY2=>sql error 10     performing CON                               55  0.024133

 

4 ETW000  [    dblink  ,00000]  ***LOG BY0=>invalid username or password                                  14  0.024147

 

4 ETW000  [     dev trc,00000]  { DbSlHDBControl(con_hdl=0,command=41,arg_p=d774d8)                       41  0.024188

 

4 ETW000  [     dev trc,00000]  } DbSlHDBControl(rc=0)                                                    25  0.024213

 

4 ETW000  [     dev trc,00000]  { DbSlHDBControl(con_hdl=0,command=14,arg_p=7fff553b2420)                 14  0.024227

 

4 ETW000  [     dev trc,00000]  } DbSlHDBControl(rc=0)                                                    11  0.024238

 

4 ETW000  [     dev trc,00000]  { DbSlHDBControl(con_hdl=0,command=50,arg_p=7fff553b2438)                 12  0.024250

 

4 ETW000  [     dev trc,00000]  } DbSlHDBControl(rc=0)                                                    14  0.024264

 

4 ETW000  [     dev trc,00000]  { DbSlHDBControl(con_hdl=0,command=13,arg_p=7fff553b2390)                 28  0.024292

 

4 ETW000  [     dev trc,00000]  } DbSlHDBControl(rc=0)                                                    13  0.024305

 

4 ETW000  [     dev trc,00000]  { DbSlHDBControl(con_hdl=0,command=52,arg_p=7fff553b23e0)                 12  0.024317

 

4 ETW000  [     dev trc,00000]  } DbSlHDBControl(rc=0)                                                    11  0.024328

 

2EETW169 no connect possible: "DBMS = HDB                              ---  SERVER = '' PORT = ''"

 

4 ETW000  [     dev trc,00000]  release memory of the SIBU buffers                                        67  0.024395

 

4 ETW000  [     dev trc,00000]  release memory of the STATEMENT CACHE                                     13  0.024408

ABAP CDS View: OData service CRUD enabled?

$
0
0

Hello All,

 

Is it possible to make an odata service generated by the abap cds view CRUD enabled?

So can I do an UPDATE, DELETE, CREATE on the odata service?

 

I am reading stuff about BOPF ? Is this the way to go forward?

 

Regards,

Bert

Performance of For All Entries in Suites on HANA

$
0
0

Hi Experts

 

I need s suggestion / input from you . I know that as a part of code inspector checks we now have new option to identify the list of FAE ( for all entries ) in the select statement which can be combined using JOIN. My question is that , if I'm not planning for any optimization and keeping the system as it is with those FAE, it it impact the performance. When I'm saying the term "impact" , that means I do not want to improve the performance but if the programs with FAE remain as it is, will it run slower in HANA compare to the older database ? We have found the note 1662726 where it says how to optimize the FAEs.

Our requirement is to keep the FAE as it is if they give same level of performance in HANA and non-HANA( older DB ). Can anyone confirm whether any performance deterioration happens if keep the FAE as it is .

 

Regards

Gairik

HANA Full Text Index and SQL

$
0
0

Hello Al,

 

we are going to upgrade to HANA as a primary database and have some questions about how to access some tables.

 

Now we can create Full Text Indexes on tables using SE11.

With HANA as secondary database, we did this in the HANA studio. We then generated an native HANA-SQL en called that using ADBC.

 

We could still do the same, But we want to get rid of that native SQL.

Is it correct that one can only use these indexes using the CONTAINS predicate in HANA SQL? This is not available in de ABAP Open SQL? What is then the real advantage of creating the indexes in SE11 in the GUI?

 

And is the 'correct' way: creating a CDS in the HANA studio, containing the search with CONTAINS, FUZZY and all. Creating an external view in ABAP and reading/using that in Open SQL in ABAP?

 

Or is there another way to go?

AMDP for instance?

 

Thanks a lot for any reaction.

Regards.

Kris

SAP HANA Studio won't load after software installation failure

$
0
0

Hi,

I've been trying to follow the End to End Development Example for ABAP with HANA at End to End Development Example with SAP NetWeaver 7.4 & SAP HANA

However I have now come to a dead-end as my HANA studio won't load after trying to install the required plug-ins for the SAP Gateway Product Accelerator and the UI Development Toolkit for HTML5 (I already had the ABAP Development tools successfully installed).  When I installed these from https://tools.hana.ondemand.com/juno I got messages about registry errors and when I tried to exit it just got into a loop repeating the error messages.  I eventually had to cancel the application using Task Manager.

 

Since this error I am unable to load the HANA studio.  When I open it it starts to load - I see messages such as Loading Workbench, and I see very fast message mentioning eclipse (which is so fast I can't read it), but then it just closes down.

 

I have tried:

Uninstalling & re-installing the studio - the re-installation seems to be successful (clean log, no error messages), but no joy

Uninstalling & re-installing the studio and hana client- no joy

Doing a Windows system restore to about one week prior to this installation - no joy

Doing a system restore with uninstall and re-install- no joy

 

Prior to this I had a working version of the studio with which I could access my HANA on AWS and was able to browse around the abap development objects and the HANA database procedures etc.  But the End to End Development Example mentioned that these extra plug-ins were required so I tried installing them.

 

I am on Windows 7 and the HANA studio and client I was using were Win 64 Rev 68.

Also I had been advised NOT to install my HANA studio in C:\Program Files, so it was installed in a folder C:\SAP\hdbstudio

 

I am stumped at the moment, so would really appreciate some advice on how to move forward.

Thanks

Andy

I am working as abap consultant but I want learn SAP HANA any one suggest me Is that combination is good??

$
0
0

I am working as abap consultant but I want learn SAP HANA any one suggest me Is that combination is good??

Subtraction not working in CDS View

$
0
0

Hi,

 

I'm doing simple subtraction but not giving the expected result, below is the snippet and output.

 

Untitled.png

 

I also try using CAST but it also didn't work. Need yours suggestion on this.

 

Regards,

Binay Biswakarma


Concat function or equivalent for CDS view?

$
0
0

Trying to create a CDS view and looking to combine multiple character fields (e.g. first_name + last_name) and am wondering if this is possible? Am on CRM NW 7.4 SP5 on HANA.

 

Using the arithmetic function gives me the following.

 

Data type CHAR is currently not supported in an arithmetic expression

 

Looking at the official documentation here, it doesn't appear to be included?

 

ABAP Keyword Documentation

 

I can always create a AMDP or even a HANA native view, just wondering if anyone has come across the same issue and found a solution within CDS view?

 

Thanks in advance,
Sean.

HANA view are not visible after transport to target system through HTC

$
0
0

Hi All,

 

i have created one hana view and assigned it to delivery unit.I have created one external view for this HANA view and saved in a Transport Request in ABAP perspective.Also i have created the HTC and assigned the same delevery unit. I did take snapshot and save,every thing is activated.

 

i Released the Transport from SE01. Even i released the HANA delivery unit also from LCM. Transport is successfully imported to target system .i can view the HTC and external view. intarget system.

 

But when i open the content folder of target system i can only see the package name but i cant see the view inside it?

 

I have also maintained the software componenet in source ans tagget system. SNHI_DUP_PREWORK .

 

 

 

can anyone help me on this. Its very urgent for me??

Call HANA Procedure via AMDP

$
0
0

Hi,

I wrote a procedure on HANA and i want to call via AMDP. As i saw from examples, developers generally writing the content of the procedure here but i wnt to call pre-written HANAprocedure via here.

Is it possible ?

 

My scenario is like that;

 

CLASS ZBPC_AMDP_TEST IMPLEMENTATION.  METHOD RUN_PACKAGE BY DATABASE PROCEDURE FOR HDB                        LANGUAGE SQLSCRIPT.
call Z_SP_TEST(:IN_A, :IN_B, :IN_C, ET_DATA  )  with overview;                         ENDMETHOD.
ENDCLASS.

I dont want to put all my select statement here and also it doesnt support local temporary tables.

Is there a way ?

How to transport the ABAP on HANA objects after making changes in HANA view through HTC

$
0
0

Hi All,

 

when first time i transported the abap on hana content from development to Quality through HTC, it was successful.

 

 

But now again i need to do some changes in the view and transport it through HT C. This time it wont allow us to assign the same delivery unit  while creating the HT C. It means i need to change the delivery unit. That means i need to assign the same package to different delivery unit which is not possible or i need to create different package and delivery unit which is not good to create new package and delivery unit after every changes . what could be the solution for this?

 

Please help me how i should proceed further on this?

Different result in ABAP Open SQL en HANA SQL

$
0
0

Hi SAP,

 

we are upgrading from a Secondary HANA to a Primary and notice a different behaviour in JOIN in SQL.

 

When we use this SQL we get different results in both situations (I only had to change the "." into "~" to make it syntactically correct:

 

select

ESTRH.RECNROOT , ESTRH.SUBID , ESTVA.RECNTVH , ESTVA.ORD , ESTVH.ESTCAT , TCG12.ESTNAM , REL.RECNROOT_DST , REL.RECNROOT_SRC

 

from estrh    

left outer join tcgtplrel as rel

on ( rel.recnroot_dst = estrh.recnroot   and rel.delflg = ' ' )  

join estvh as estvh on ( estvh.recnroot = estrh.recnroot   or estvh.recnroot = rel.recnroot_src )  and estvh.delflg = ''   

join estva as estva on estva.recntvh = estvh.recn   and estva.delflg = ''   

join tcg12 as tcg12 on tcg12.estcat = estvh.estcat   and langu = 'N'    

where estrh.subid = 'KUL_00001492'

and estvh.estcat = 'SAP_EHS_1019_003'

and estrh.delflg = ''

order by TCG12.ESTNAM

 

Formerly on the secondary database (native SQL) and now using Open SQL in ABAP we get 4 records as a result.

 

When submitting it as native SQL in HANA as primary we get 8 records as a result. This is due to doubles in the 'red' table ESTVA. These doubles also exist in the secondary database that still resides on our production system.

 

It seems as if in the first case, some GROUPING is done. The JOINs are exactly the same in both cases.

 

Is SQL behaving differently in different situations?

Anyone any idea?

 

 

Regards,

Kris

Viewing all 1246 articles
Browse latest View live


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