Quantcast
Channel: SCN : All Content - ABAP for SAP HANA
Viewing all 831 articles
Browse latest View live

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.

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!

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

Getting Started with ABAP Core Data Services

$
0
0

This page provides a collection of information (presentations, blogs, videos, ...) about the ABAP Core Data Services (CDS) which provide advanced view building capability in the ABAP stack as of SAP NetWeaver 7.4 SP05. CDS is a core technology within SAP S/4HANA and in the ABAP development for SAP HANA context in general.

 

Latest News : 

Currently no news available.

ProductCatalog.png


Overview

 

Folie1.jpg

sapnwabline.png

HelpDesk.png


Basics for Beginners

 

sapnwabline.png

Begin.png


Advanced Topics

 

 

sapnwabline.png

ThreeDocs.png


Best Practises

  • Coming soon

 

sapnwabline.png

Begin.png


Further Information:

 

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

ABAP CDS views - SQL trace

$
0
0

Hi,

We have plans to write ABAP CDS views to standardize business logic/data extraction so that development team can make simple queries on CDS views. So we are writing generic CDS views means without many "WHERE" conditions.

I'm trying to understand how it works and impact on the performance when these CDS views are consumed for any particular Plant or Company code.

 

Let us  say I have below CDS view called "ZCDSV_TEST"

select * from vbak inner join vbap on vbak.vbeln = vbap.vbeln  { <fields> }.

 

I would like to understand when it is consumed in 2 ways in terms of performance (SQL)

Select * from ZCDSV_TEST  <<<<  1M records

Select * from ZCDSV_TEST WHERE Vkorg = '0001'  <<<< 25K records.( Does this extract 1M records first and then apply WHERE condition to get to 25K.

 

Would like to understand these type of technical details. Appreciate your inputs.

 

Cheers.

Laks

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

Table name with special character '/' in from clause of select query of AMDP procedure.

$
0
0

Hi All,

 

I have created AMDP procedure and trying to consume in AMDP class which is implementing  the required AMDP interface and everything is working fine, but  in my procedure i am trying to use one table name (which has special character '/' in it) which is giving an error.

 

Please find my procedure as follows:

 

      METHOD my_hana_procedure by database procedure

      for hdb

      language sqlscript

      options read-only.

      using /CPD/D_PFP_TEST.

 

               table = select  * from  /CPD/D_PFP_TEST;  /*------ Here i will get an error saying SQL SCRIPT : &a0&a1&a3&a4.......&a9   */


     ENDMETHOD.

 

Note: The above mentioned table /CPD/D_PFP_TEST is in system SID schema.

FYI, If i am using any table which do not contains special character '/' in it will work without any error.

 

Did anyone faced the same issue?, at least here error information should be meaning full we can correct our errors inside AMDP procedures.

 

Thanks in advance,

 

Avinash

Consumption of ABAP CDS view in BW

$
0
0

Hi colleagues,

We have an ABAP CDS view with key figures. When using @Analytics.dataCategory: #CUBE annotation, the transient query gets created but the key figures are not getting included in the infoprovider. How do i solve this?

Viewing all 831 articles
Browse latest View live


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