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

WebIDE template and ABAP CDS development

$
0
0

Hello (^o^)/ I develop ABAP CDS (My Onpremise DevSystem(S/4 HANA EM 1511 FPS01)). I made "define CDS View(exsample:Table VBAP)". But, it is not displayed by the item of the template(Master Detail,Worklist,smarttemplate) of WebIDE. I want to know the mapping method of the template of WebIDE. How can I display a value for pull-down of MasterDetail of WebIDE if I encode ABAP CDS (e.g. :SalesOrder(VBAK&VBAP join)? regards, Hiroshi


Index DB Status O -Do not create on database

$
0
0

Dear Experts,

 

We are planning to activate BUD index on MSEG table . However the DB status = 'O' Do not create on database?

What does that mean, are we not allowed to activate BUD index on database?

Index Question.png

 

 

Can we still go ahead and activate non-unique index?

question 2.PNG

 

Thanks,

Subqueries in ABAP CDS Views

$
0
0

Hi Experts,

 

is there a possibility to use a subquery in a join clause of 2 tables in an ABAP CDS View similar to:

 

select * from table1 inner join table2 on table1.field1 in ( select mapping_field2 from mapping_table where mapping_field1 = table2.field2 );

"field1" of "table1" should not directly match "field2" of "table2" but should be connected via a mapping table (with potentially multiple hits for "field2" in "table2").

 

The Keyword "IN" used for subqueries in most SQL Languages does apparently not exists in the ABAP CDS Syntax.

 

Any help appreciated.

 

Regards

 

Tobias

External view is not active after importing to Quality from Development server

$
0
0

Hi All,

 

i have created hana view and consumed it to ABAP program through external views.we transported to Quality system. the program is giving dump because it says external view is not active.It is unable to find its HAN views.But when i chcked in content folder of Quality server all the views are present and are active and even i can see the data preview also in studio.when i am going to ABAP perspective the external view is present but not active? what could be the reason?Can anyone help on this?I have even done the prework_deone = X check for automatic activation for hana content.

sum 16 starting error in SAP HANA S/4 1511 CORE

$
0
0

Hi All,

 

I have installed SAP HANA S/4 1511 CORE (Back end server) on Linux SUSE Power PPE 64-bit with SAP_BASIS version as 750. and SP is 00. I am in process of update the SP using SUM16. But when I am executing command ./STARTUP confighostagent <SID> and log in in chrome with user id <SID>adm and its password, it is giving error as below :

Internal Server Error

Operation [id=8676251155141EE5BEDCF9ABA942DF8B] terminated with errors : 127 (null)

 

I have upgraded the hostagent 7.21 to patch 12. But still getting the above error.

 

Can anyone please help.

 

Thanks,

Sarang.

 

 

Untitled.png

Need help in accessing Hana from abap.

$
0
0

Hi Experts,

 

 

we are developing a program using ADBC for accessing hana secondary db connection. How i can find the current hana db secondary connection name in the abap program via code i.e any class or FM or table to get the hana dbcon name instead of hardcoding? we can see the conenction name from the hdbc tcode.

 

Also, in future after we change HANA as primary db, do we have to scrap this program or can we just comment the code for getting the db connection name and the rest will work  without any issue?

 

 

Thanks for the help in advance.

Ram

Code push down string comparison

$
0
0

My requirement:

I have a Z config table which stores email addresses along with other stuff. I am writing a new method which queries that table to see if it contains a specific email address.

 

Problem:

If the email address I am querying contains upper case characters, I get wrong results.

 

Current process:

I select all the email addresses into an internal table, loop through and convert both to upper case and compare.

 

Question:

Is there a way to do code push down (ie) getting HANA to do all the hard work? I want to write something like SELECT SINGLE @ABAP_TRUE FROM.... I don't want to read all the email addresses and transfer them to application server. All I need is a YES or NO.

How to implement search field in SmartFilterBar

$
0
0

Hello All,

 

In the Smart Filter Bar, I set the property enableBasicSearch = "true". It means that the search filed should be available, and this search field is still a part of filter bar rather an independent UI element.

Capture.PNG

If I do nothing but only set the property enableBasicSearch as true, I try to use it to filter but get empty filter result. How I can make this search field work well? Does CDS view need specific annotation, or I need to implement it in UI?

Thanks a lot.

 

Regards,

Emily


Changes in native SQL on Hana

$
0
0

Hello!

 

 

Here in my company, we have a lot of native sql code to connect with a non SAP systems that uses oracle DB. This connections are made using db link on oracle.

 

 

In a document that I read said:

Native SQL statements embedded in OpenSQL or called via the ADBC interface must be migrated to HANA Native SQL or OpenSQL and with Netweaver 7.40 SP5 OpenSQL got extended, to help to convert native SQL to OpenSQL

 

 

On a scenario of switch on hana, how can I adapt this codes? How can I keep this connections? What yours suggest to do in this scenario?

 

Thank you all!

Cant activate objects in BRF+ !

$
0
0

Hello guys.

Trying to implement the above not by uploading XML files downloaded from the note specifications

2248229 S/4HANA On-Premise Output Management BRF+ Files

 

I got created 3 application based on 3 XML files uploaded .
These application statuses are not active and i cant Activate them .
Inside one of the applications there are unactive structures and elements .
Once  i navigate to the object e pres Activate  it goes in dump.
On the browser i got the message  500 SAP INTERNAL ERROR  field symbol has not been assigned yet  RABAX_STATE.
and on the ST22   i got the dump like in the picture in attach .

 

Has anyone encountered the same problem ??
Any Ideay what the problem might be ?

 

 

Thnx in advance .
Elton

comma not allowed in ABAP development for SAP HAAN

$
0
0

Hi Experts,

 

While i was trying to practice ABAP in HANA studio, i am getting below error. Could u plz help on this issue.

 

"," is not allowed here since it contains an invalid character or it is a keyword. (It might be possible to escape it using "!"). Or a space is missing or there is one space too many.

How will S/4 HANA work without BDC?

$
0
0

From what I keep hearing, there will be no more BDC in S/4 HANA. So I have a simple question - how would it work then?

 

Even these days we still have some interfaces and programs that use BDC because there is no other functionality available. Will SAP finally deliver all the APIs that they could not create since 1970s?

SAP GUI Download and install

$
0
0

Hi.. I am looking for SAP GUI to install and start working ABAP on HANA. Installed Eclipse as described but do not have SAP GUI with me. Please help..

 

Thank you

Anil

Query CDS view with table as input

$
0
0

Hi Expert,

 

I have a requirement where I have to pass table as input to CDS View and query it.

 

similar to ABAP query like this:

 

select * from table_name for all entries in input_table where column_name1 = input_table-column_name into table result_table.

 

here in above query, as we provide input_table as an input based on which , the matching rows are queried.

So in CDS View, is there a similar SQL query where I can pass a table as an input.

 

Regards,

Khushdeep

Consuming standard ABAP Function modules in HANA View

$
0
0

Hello,

 

We have requirement to consume standard ABAP FMs such as READ_TEXT and populate columns in HANA calculation views?

 

I've been looking up the net for this and I could find a lot of help on how to consume HANA views in ABAP but my requirement is the other way round.

 

I need to consume standard SAP function modules in to HANA views - please provide inputs if this is possible? And If possible, how could I achieve it?

 

Thanks in advance.

 

Regards,


UTCTOLOCAL for ABAP CDS Views

$
0
0

Hello Experts,

 

I am facing the following problem:

 

I want to show some data on a IDA ALV and one field is a change time stamp and a change user.

This time stamp is of course stored in UTC on the database, but for the user it has to be displayed in the local timezone.

UTCTOLOACAL statement is not working in ABAP CDS, so any other suggestions?

 

Thanks and Regards

Klaus

replace function in ABAP CDS

$
0
0

Hello all,

 

I try to display log messages in a IDA ALV based on a CDS view.

I have a log message table which contains the the message class, the message number and the values of the variables &1 to &4.

Afterwards I join table T100 and try to replace the variables of the message.

 

But when using the replace function  like this

     replace(MessageText ,'&1', MessageVariable1) as msgstring

I get the following error message when activating the view.

     "Number of positions > maximum number (1333) for data type CHAR"

 

Casting of the result seems to be ok but using nested replace statement, leads to the same error.

Any suggestions to solve this problem?

 

Regards

Klaus

Database proxy error for CLOB datatype

$
0
0

Hi Experts,

 

I'm working with DB Proxy which I am currently using for calling HANA procedure from ABAP, I come across this error while trying to map the HANA type CLOB with the ABAP datatype.. Ideally it should map it as ABAP String or XString.. Not sure if this is how it works ..

CLOB.JPG

 

Your thoughts on this Jasmin Gruschke

 

-Avinash

Cannot add ABAP project

$
0
0

After upgrading HANA Studio to 2.2.9 ABAP project is missing from the project list:

Unbenannt.JPG

This despite having installed all required (I think) components :

Unbenannt.JPG

 

Anybody know what am I missing?

CDS Annotation @EndUserText.label Reference View-Field

$
0
0

Hey Guys,

 

i'm working on a CDS view to read the configuration of an object from the table IBSYMBOL. In a second view i transform this multiple configuration lines for one object into a single line with a column for each attribute of the configuration object.

Nothing magic...

 

But when the data comes to the frontend (via @OData.publish: true), the labels are always f. e. Characteristic Value (ATWRT) or Value from (ATFLV).

 

To handle this, my idea was to set a custom End User Label via Annotation @EndUserText.label and reference f. e. the name of the Attribute from CABN or CABNT.

 

Could look like that:

cabn.atnam as name_of_attribute,     
 @EndUserText.label: '{name_of_attribute}'
 ibsymbol.atwrt,

Is this possible, to reference another view field in the @EndUserText.label Annotation?

 

System: S/4HANA, NetWeaver 7.5 SPS 01

 

Regards

Simon

Viewing all 613 articles
Browse latest View live


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