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

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


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.

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

Problem with cl_salv_gui_table_ida

$
0
0

Hello,

 

I'm using the new ALV 'cl_salv_gui_table_ida' combined with a Core Data Service. I've activated the toolbar text search and enabled the search for a plenty of columns:

 

    go_alv_display->field_catalog( )->enable_text_search( 'NAME1' ).

    go_alv_display->field_catalog( )->enable_text_search( 'ORT01' ).

    go_alv_display->field_catalog( )->enable_text_search( 'PSTLZ' ).

    go_alv_display->field_catalog( )->enable_text_search( 'INFNR' ).

    go_alv_display->field_catalog( )->enable_text_search( 'LIFNR' ).

    go_alv_display->field_catalog( )->enable_text_search( 'LIFNR_2' ).

    go_alv_display->field_catalog( )->enable_text_search( 'MAKTX' ).

    go_alv_display->field_catalog( )->enable_text_search( 'SMTP_ADDR' ).

    go_alv_display->field_catalog( )->enable_text_search( 'ORT02' ).

 

The search is working for the fields NAME01, ORT01, PSTLZ, MAKTX, ORT02, The other columns don't work in the search.

 

I've checked the coding and found out that the search_scope is just filled with the working columns.

 

Class: CL_SADL_ABQI

Method: _GET_SEARCH_SCOPE

 

But I couldn't find the coding where the scope is filled.

 

Thx for your help!

Frank

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

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.

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

ALV with IDA and background job

$
0
0

Hello,

 

However new ALV surpass old solutions in almost every aspect, I have noticed a small limitation.

When I run the report in background (either manually or via job), I get the short dump and job is cancelled.


I know that the purpose of paging is obvious in case of transactional use, but there are plenty of usecases, when users want to get the result of the whole list from the spool (e.g. as an attachment in the e-mail).

 

If background job is not supported, I think, it is worth to be mentioned explicitly.

I have gone through the reference in help.sap.com and there is nothing written about background processing in Restrictions tab.

 

 

Kind regards,

Radek Gref

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

CDS - Arithmetic operation on aggregated column

$
0
0

Hi all,

 

I am trying to figure out the syntax (or even if it is permitted) to perform an arithmetic operation on an aggregated column.

 

for example - we can create

 

define view Zpo as

select from ekko

    join ekpo on ekko.ebeln = ekpo.ebeln

    join eket on ekpo.ebeln = eket.ebeln

    and ekpo.ebelp = eket.ebelp

    join mara on ekpo.matnr = mara.matnr

    join makt on mara.matnr = makt.matnr{

    ekko.ebeln,

    ekpo.ebelp,

    bsart,

    ekko.bukrs,

    ekko.statu,

    zterm,

    ekpo.matnr,

    maktx,

    werks,

    lgort,

    mara.matkl,

    eindt,

       ekpo.netpr,

    sum(eket.menge) as TOT_MENGE

        }

    where makt.spras = 'E'

    group by

    ekko.ebeln,

    ekpo.ebelp,

    bsart,

    ekko.bukrs,

    ekko.statu,

    zterm,

    ekpo.matnr,

    maktx,

    werks,

    lgort,

    mara.matkl,

    eindt,

    ekpo.netpr   

 

and we can create

 

define view Zpo as

select from ekko

    join ekpo on ekko.ebeln = ekpo.ebeln

    join eket on ekpo.ebeln = eket.ebeln

    and ekpo.ebelp = eket.ebelp

    join mara on ekpo.matnr = mara.matnr

    join makt on mara.matnr = makt.matnr{

    ekko.ebeln,

    ekpo.ebelp,

    bsart,

    ekko.bukrs,

    ekko.statu,

    zterm,

    ekpo.matnr,

    maktx,

    werks,

    lgort,

    mara.matkl,

    eindt,

       ekpo.netpr,

   eket.menge * 10 as TOT_MENGE10

        }

    where makt.spras = 'E'

    group by

    ekko.ebeln,

    ekpo.ebelp,

    bsart,

    ekko.bukrs,

    ekko.statu,

    zterm,

    ekpo.matnr,

    maktx,

    werks,

    lgort,

    mara.matkl,

    eindt,

    ekpo.netpr ,

  eket.menge

 

but how to perform an calculate that only performs the sum of the calculation without having to include the aggreated field in the group by clause.

 

Something like:

 

define view Zpo as

select from ekko

    join ekpo on ekko.ebeln = ekpo.ebeln

    join eket on ekpo.ebeln = eket.ebeln

    and ekpo.ebelp = eket.ebelp

    join mara on ekpo.matnr = mara.matnr

    join makt on mara.matnr = makt.matnr{

    ekko.ebeln,

    ekpo.ebelp,

    bsart,

    ekko.bukrs,

    ekko.statu,

    zterm,

    ekpo.matnr,

    maktx,

    werks,

    lgort,

    mara.matkl,

    eindt,

       ekpo.netpr,

    sum(eket.menge) as TOT_MENGE,

    sum(eket.menge * 10) as totmenge10 //or sum(eket.menge) * 10 as totmenge10

        }

    where makt.spras = 'E'

    group by

    ekko.ebeln,

    ekpo.ebelp,

    bsart,

    ekko.bukrs,

    ekko.statu,

    zterm,

    ekpo.matnr,

    maktx,

    werks,

    lgort,

    mara.matkl,

    eindt,

    ekpo.netpr   

 

I get various errors ranging from 'Syntax Errors) to This function or expression ('sum') is not supported at this point.

 

database HANA  sql has not problem with this - random example below:

 

SUM((A.UNIT_SELLINGPRICE - a.unit_discount) * a.quantity) AS NET_PRICE_INC_TAX

 

Thanks,

 

Jon

Validity data in BUT021_FS in CDS-views

$
0
0

HI,

 

we are preparing some CDS-views for student data.

Most of these data have real validity-dates in DATE-format.

Only the validity of address-data in BUT021_FS is not a real date, but a timestamp - which is a number.

 

Up to now we use 2 parameters as input for the CDS: the date as a real DATE, and the same date as a number.

 

We would like to use the same input for the validity of both series of data.

So we want to change the timestamps into dates. In a CDS we divided the timestamp bij 1000 000 to get the actual date. But this gives us a number, and this is not compatible to the dates in other tables.

Is there a way to convert these numbers and dates so we can use one parameter for all?

 

Thanks.

Kris

Cant find methods in the class CL_MMPUR_REQ_CONTEXT

$
0
0

Hello guys .
I was trying to implement the NOTE 2285354 in wich is described to do a manual activity to these methods


IWBEP/IF_MGW_REQ_ENTITYSET~GET_CRP_PLACEHOLDER_INFO

IWBEP/IF_MGW_REQ_ENTITYSET~GET_CRP_PLACEHOLDER_VALUATION

IWBEP/IF_MGW_REQ_ENTITYSET~GET_CRP_PROVIDER_REQUEST

IWBEP/IF_MGW_REQ_ENTITYSET~is_crp_cached_request

IWBEP/IF_MGW_REQ_ENTITYSET~IS_CRP_REQUEST_CACHING_ALLOWED


but when i check the interface IWBEP/IF_MGW_REQ_ENTITYSET  cant find the above methods.


Have tried to create them manually but don't know the specifications for the parameters to insert on each of them . ,

 

If anyone has faced this problem before,or has already implemented this note please
either tell me if there is any prerequisite note to be installed in order to create the above methods
or please check the parameters on each of these 5 methods and reply  to  my thread with them .

 

Thanks in advance .
BR
Elton

Viewing all 429 articles
Browse latest View live


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