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

Is ABAP on Eclipse available on ECC HANA Side Car implementations???

$
0
0

Hello ABAP on SAP HANA Gurus:

 

I understand that ABAP on Eclipse is not available for ECC HANA Side Car implementations.

 

If it is, could you please, point me to me to documents describing it? Thank you.

 

As I understand there are the following options to access HANA Side Car database from SAPGUI ABAP:

  • Open SQL SELECT statement with CONNECTION clause
  • Use DBCO connection and ADBC interface with cl_sql_statement, cl_sql_result_set and cx_sql_exception classes
  • ???

 

I look forward to hear from you,

 

Adam


CDS Views in Sybase db

$
0
0

Hi,

 

     I am working with code push down technique CDS views on SAP sybase DB.  I am able to create CDS views with and without parameters but the problem is not able to see the data using option 'Open Data Preview' of ABAP DDL Sources menu and i found that some of the options of CDS views not working properly in Sybase.

 

     I am able to see the data on Oracle and HANA. Is there any limitations of CDS Views on SAP sybase DB. Please help me on this.

 

 

Thanks

Venkatesh

Explicit Sorting

$
0
0

Hi Experts,

 

I know that cluster/pool tables when migrated to HANA database gets converted to transparent table because of which explicit sorting is required in existing ABAP codes like adding order by clause while fetching data from pool/cluster table.

 

But my question here is...what about the already existing transparent table's behavior after migrating to HANA DB ?

 

Is it required to sort the data fetched from transparent tables ?

 

 

Thanks

Punit

Annotaion @EndUserText.label not working on CDS Views

$
0
0


Hi,

 

I am trying to create a CDS view and provide my own labels to the fields. I have gone through multimple documentations and done exactly like in help but it does not seem to work. Below is a test code. I am hoping to see the description show up in SE11 in the short description column. Please suggest what I might be doing wrong or if someone else is facing the same issue.

 

 

define view Zdel_442 asselectfrom zr442_del {

@EndUserText.label:'Sales Order' zr442_del.vbeln as vbeln,

@EndUserText:{label:'Some field',quickInfo:'Some info'} zr442_del.auart as auart


}

CTS+ in HANA with authentication method Assertion tickets

$
0
0

Hello all,

 

We have configured CTS+ between our two SAP hana systems Dev and qa using our production solman system (7.1 SP12).

 

Now in our dev system Lifecycle manager, in CTS destination when I use authentication method as User id and password, it works fine but when I open transport organizer from LCM it asks for user and password for solman system, SSO doesn't work.

 

Hence I have enabled SAP assertion ticket method so that we can have SSO between Development HANA system and solution manager system.But after enabling Assertion method, Test CTS connection gives error.

 

When I try to test HTTP destination from http://host:port/sap/hana/xs/lm/test/desttester, it gives me user unauthorized
error.

 

 

 

 

For assertion tickets, I have already created a trust store for
assertion tickets in Dev HANA system , exported the HANA dev certificate and saved in solman system STRUSTSSO2. I have also set saplogontickettruststore parameter in dev hana system.I am testing CTS+ with my id in hana dev system and it is already present in solman system with all relevant authorization.

 

Please suggest.

 

Thanks
Rohit

ABAP Schema user is getting locked Automatically

$
0
0

#HANA Gurus



In HANA Studio ABAP Schema user is getting locked automatically.

So I want to know where we can check how the user is getting lock, is there any trace on OS level where we can check this or on HANA side how to find user info.    


Thanks in advance


Regards,

Dhiraj

How to use HANA native features from ABAP?

$
0
0

Dear experts!

 

I'm wondering how to use HANA native features like spatial from ABAP.

Is it usual to define tables with native features on another schema and access them via Native SQL or AMDP?

 

If there is a best practice,  I want to know it.

 

Regards,

Yohei

Execute standar and Z programs in secundary database (hana sidecar)

$
0
0

Hi.

I have create a secondary database in may ECC, that data base is HANA in sidecar mode.

I only have replicated some tables from my ECC but I can't find solution for the following question:

 

     I need ejecute some programs or transaccions,standar and no standar,  using the HANA database (with the tables replciated) to test the performance, but other programs must execute with the primary database (ECC), with no changes in the code.

 

Can I choose what programas (standar / no standar) will be executed using the database of HANA (with no changes in the ABAP code)?

is there any customizing to do this?

it can be possible?.

Kind regards.


Anyone tried to install SAP Netweaver AS ABAP 7.40 SP8 Developer Edition on IBM Linux 6.0 Red Hat Enterprise edition ?

$
0
0

Anyone tried to install SAP Netweaver AS ABAP 7.40 SP8 Developer Edition on IBM Linux 6.0 Red Hat Enterprise edition ?

I have just finished installing the same on an Ubuntu 7.10 desktop, which ended with success and it seems stable. For this installation I was able to follow the "A Step by Step Guide for Linux Newbies"  by Thea Hillenbrand.

 

For IBM Linx 6.0 however there are some differences:

 

(1) How can I check if CSH Berkeley Unix C Shell, that is required is installed and active ? When I Go to Add/Remove and from here search for CSH, I do see that the CSH library seems to be installed on the computer, but how can I check it

 

(2) The same question I will ask for SSH. But for SSH I do see that the SSHD service is enabled but has status  "This service is being refreshed right now! Even after 30min the status is the same.

==> After several changes in /etc/ssh/sshd_config and using the commands

==> chkconfig --level 35 sshd on

==>service sshd start

all commands as root I did succeed getting SSH started, which now means that I can use WINscp from remote desktop, this bullet is solved

 

(3) Which unrar tools and from where can I download that, as I can't find it under add/remove software

==> After a while I found the RAR application after going into system software sources and extend to use extra packages for enterprise linux 6, so this bullet is solved.

 

(4) As SAP Netweaver require Libuuid, but it looked like is was not active. I found SAP Note 1391070, in which I found a script that was able to check if Libuuid was installed and active. The script said no uuid. Via add/remove software I found  "Heaper daemon to guanrantee uniqueness o time based UUIDD's" this one I installed and run the check script again. Now the UUIDD was ok and running. Executing su uuidd I got the message that UUID was already running.

==> Bullet solved

 

Best regards

Benny

Supported Version of CDS Views in Sybase db

$
0
0

Hello Experts,

 

                      I am working with CDS views with parameters in Sybase db version 16.0.01.02 and sap netweaver 740 SP08. Here i am able to create CDS Views with parameters but while reading view using select it says 'CDS view with parameters doesnot support in this database version'.

 

                      what is the Sybase db version to support CDS View with parameters?

M_DISK_USAGE

$
0
0

Hello,

 

  I have got a HIGH alert on my system in DB02 tx for M_DISK_USAGE exceeding some space. when i cleared some space, The result reflected in SAP system a day after and it moved the HIGH alert to Medium. I am unable to see what report in background which is running this is causing this? Any thoughts on this?

Intent Based Navigation in CDS

$
0
0

Hi,

I'm creating a CDS view, where I need to add some hyperlinks which navigate the user to different factsheets.

 

I'm using intent based navigation. The code snippet is:

 

@Consumption.semanticObject: 'PurchasingInfoRecord'

@UI.selectionField.position: 1  

@UI.lineItem:{

          position:1,

          label: 'Info Record Number',

          importance:#HIGH

          type: #FOR_INTENT_BASED_NAVIGATION,

          semanticObjectAction: 'displayFactSheet'

                  }

           key PurchasingInfo.PurchasingInfoRecord



  

But this distort the UI. The link does not come up as a hyperlink.

This is how it looks:


doubt1.png



The line item "Info Record Number" is moved up, And a radio button is displayed.


I need it to be like this only:


doubt2.png


What I may missing?




Thanks.

Other then ABAP, can CDS consumed by others reporting tools? e.g Bobj, Lumira

$
0
0

Dear Expert,

 

Other then ABAP, can CDS (core data services) consumed by other reporting tools? e.g Bobj, Lumira or HANA modeling join with other hana view. I googled but can't find any.

 

Thank you.

Check for problematic SELECT * using Code Inspector

$
0
0

Hi,

 

I'm currently reading the course HA400 "ABAP Programming for SAP HANA" and I have an inclear issue concerning the problematic SELECT * statement using the Code Inspector.

 

In the Exam Sample for "SAP Certified Development Specialist - ABAP for SAP HANA (Edition 2015)"

Link: https://training.sap.com/shop/certification/e_hanaaw151-sap-certified-development-specialist---abap-for-sap-hana-edition-2015-g/#

we got the following Question:

1. You create a check variant in the Code Inspector which includes the check 'Search problematic Select *

statements'. SAP HANA is used as the database

In the check parameters, which value would you use for the percentage of fields that are effectively used?

 

 

Please choose the correct answer.:

 

a) A lower value than on a traditional, row-store only based database 

b) The same value as on a traditional, row-store only based database

c) A value that you calculate based on the number of tables

d) A higher value than on a traditional, row-store only based database

 

Actually, only answer a) or d) came in question.

I have tipped for answer a) which was the correct answer.

 

However, I have get a problem of understanding this:

In the HA400 course documentation of the year 2015, it saids on page 75/76 the following:

The check for problematic SELECT * statements in particular has several check parameters. This check searches for SELECT * FROM dbtab statements where less than a specified percentage of the fields are effectively used. The default value for the percentage is 20 percent. If less than 20 percent of the fields are used it is more efficient to select only the used fields. The value if this parameter highly depends on the database used. When on a database with column store, e.g. SAP HANA, this value should be set to a lower value than on a traditional, row store only database.

 

So, if the "percentage of fields" is set to 20% it has to be set for SAP HANA to a lower value e.g. 10% (Answer 'a)' )

 

This is actually not correct to my point of view, we need to have a higher value (Answer 'b)' ), e.g. 40% or 60%. As all problematic SELECT * statements which have between 1% and 40% of fields not used will be listed.

When we go to the HA400 course document of the year 2013, it was said at page 57 that the value should be HIGHER than on a traditional row store database:

The check for problematic SELECT * statements in particular has several check

parameters. This check searches for SELECT * FROM dbtab statements where

less than a specified percentage of the fields are effectively used. The default value

for the percentage is 20 percent. If less than 20 percent of the fields are used it is

more efficient to select only the used fields.

The value if this parameter highly depends on the database used. When on a

database with column store, e.g. SAP HANA, this value should be set to a higher

value than on a traditional, row store only database.

 

I'm quick not well understanding the context of phrases.

 

For ME, the percent need to increase from 20% to 40% or upper, as we don't like to transport all columns with HANA. This operation is quite costly for column-Store. That is why the search for SELECT * need to have all entries which have a lower percentage of use of the fields than e.g. 40%.

 

For Me the answer is d)

d) A higher value than on a traditional, row-store only based database

HA400 Course 2013, Page 57


But SAP said a)

a) A lower value than on a traditional, row-store only based database 

HA400 Course 2015, Page 76

 

I really don't know why they changed it.

Can, anyone with some English Skills find a solution for this ambiguity.

 

Thanks for your repond,

Kais

HANA Session Lifecycle

$
0
0

Hi Experts,

 

When calling HANA procedure from ABAP from within a function module, what's the life-cycle of the HANA session? Say I created a local temporary table in my HANA procedure. I have a select statement that inserts the data into this temporary table. I have called all the above code using AMDP or Database proxy in a FM1 (function module 1). This function module is part of a function group which has two other function modules FM2 and FM3 that call the same procedure.

 

Now I have a ABAP program that calls the function modules in this sequence - FM1, FM2, FM3.

 

PROGRAM -> FM1 -> HANA Procedue -> Insert into Temp Table

 

When I call FM2 from the same program and again trigger the procedure -> Would the temp table be filled? Is it a new HANA session or the same?

 

Regards,

Kevin


Consuming a hana view with parameters and binding of variables

$
0
0

Hello all,

 

with adbc it is possible to bind input variables to sql statements:

 

...

Data: lv_werks TYPE WERKS_D.

 

* Bind input variables

    GET REFERENCE OF lv_werks INTO dref.

    lr_sql_env->set_param( dref ).

 

lv_sql_string = |SELECT * FROM … WHERE WERKS = ? |            

...

 

On the other hand it is possible to pass data to parameters of views like this:

| WITH PARAMETERS ('PLACEHOLDER' = ('$$P_MAXTIME$$',| &

              |{ cl_abap_dyn_prg=>quote( lv_time ) }))|.

 

Is there a way to combine both method? To use Parameters of views and to bind the value to abap variables instead of writing them directly?

 

It not each statement is written in the statemant cache an fills it when executed very often.

 

Thanks for all response,

Hartmut

ABAP CDS View with dynamic table specification

$
0
0

Hello,

 

Just wondering if dynamic table specification is possible with CDS view?

 

My requirement is to represent the below in a CDS view-

 

parameters: p_region type char5.

 

SELECT table_name

      FROM Ztable_names

      INTO @data(lv_table)

      WHERE region = @p_region.

 

SELECT col1,

              col2

    FROM (lv_table)

    INTO TABLE @DATA(lv_result).


Thanks,

Ajith

Filtered association in ABAP CDS

$
0
0

Hi colleagues,

 

is it possible to access attributes of the projection list in an association, so that the hard coded value is replaced by the value in "WorkflowPhase"?

pic1.png

The syntax check allows that, but the filtering does not work:

pic2.png

 

 

accessing the field by $projection or via the table directly (ROOT.workflow_phase) does not work either.

 

Any ideas?

 

Thanks & regards,

Ilijana

Publish the application to a Web browser error

$
0
0

I can not Publish the application to a Web browser

 

---------- Publish: Publish of p_pbtutor_winform (10:31:50 AM)

Checking publish setting ...

Publishing application to http:. // Localhost / acmeupdate Publish version is 1.0.0.1

Error when publishing application.

  ---------- Finished Publish of p_pbtutor_winform (10:31:56 AM)

 

 

/ * This is his error message * /

  ---------- Error messages: (10:31:56 AM)

Can not generate setup.exe file.

  ---------- Finished (10:31:56 AM)

 

 

It happened how to solve

Trigger a program when a record created in Standard table

$
0
0

Hi SAP gurus,

 

I'm a functional consultant and I don't know much about technical. But I getting a requirement from my business process.

Is there any way for executing a Z program in SAP as and when any records created in standard sap table.

If is there a way please suggest me how one can do that.

Any other information link note will be appreciated.

 

Thanks

Viewing all 613 articles
Browse latest View live