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

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


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

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

Problems on CDS Views performance

$
0
0

Hi Guys,

 

I'm having problems with CDS View now, I have a table ACDOCA which has 400 million rows, and in the CDS View(say CDS View Main),  ACDOCA(only some fields are used) is used to join 3 other tables.

And I found in PlanViz that all 400 million rows are used to do the join, it consumes a log memory and VERY SLOW.

 

I write a CDS view(CDS View Agg) in which I select the used fields from ACDOCA and do the aggregation, the result is about 1 million rows, then I use CDS View Agg in CDS View Main to replace ACDOCA.

 

I thought this should solve the performance problem, but it didn't. In PlanViz I still see 400 million in join.

 

Please help how to avoid doing such weird thing, I don't think there's any benifit in it.

 

Regards,

Blangero

Error at update statement in AMDP procedure

$
0
0

Hi All,

 

I have created the AMDP procedure as follows:

 

 

METHOD my_hana_procedure by database procedure

                           for hdb

                           language sqlscript.

 

lt_temp_tab = select *from :i_view;     -----> copying an entire data from importing parameter i_view to temporary table lt_temp_tab 

 

begin

     declare cursor c_cth_data for     -----> Declaring cursor to loop through result set of table

      select * from :lt_temp_tab;

       for r1 as c_cth_data do

     

         update :lt_temp_tab                    -----> Here we are getting an error (some weird error as SQL script error : &a1&A2&a3&A4).

          set S_FPCA = (r1.S_FTCA * 0.014)   -----> logic here is to update row field of a temporary table to some new value

             where S_FRES = r1.S_FRES;

            

       end for;

end;     

 

 

ENDMETHOD.

 

instead of importing temporary table if i use any other table like SFLIGHT i will not get any error.

Is there any restriction that we cannot use update for temporary table (lt_temp_tab) as explained above in procedure in AMDP procedure?

Please suggest me here .

 

Thanks in advance,

Avinash

CDS View for a range- how to create one?

$
0
0

hi all,

 

I can not create a CDS view like this:

@AbapCatalog.sqlViewName: 'zddl_test2_hana'

@AbapCatalog.compiler.CompareFilter: true

@AccessControl.authorizationCheck: #CHECK

@EndUserText.label: 'test2'

define view Zddl_Test2

(vbeln,vkorg,vkgrp,erdat)

as

select from vbak {

'I' AS sign,

'EQ' AS option,

  vbak.vbeln AS low,

  ' ' AS high

} where augru <> ''

Its says that optıons is a reserved word which it

I am looking SAP CATS test cases

$
0
0

Can some one share , SAP CATS to Field glass test scenarios?

 

and CA PPM to SAP CATS, SAP PS test cases?

HASH_SHA256 function in ABAP CDS views

$
0
0

Hi,

Is there a way to use the HASH_SHA256 SQL function in CDS views built on ABAP for HANA?

 

Kalyan


Refresh ALV IDA with CDS

$
0
0

Hello,

 

I'm using the SAP Listviewer with Integrated Data Access (ALV with IDA) with a core data service. I implemented a toolbar function to delete purchase order sets. After the user deleted a purchase order set I want to refresh the ALV to display the updated data.

How does it work?

 

Thanks!

 

Best Regards

Frank

What are the possible scenario's in SAP HANA Side Car Approach

$
0
0

Hi Everyone,

 

Looking for some information on below situations in case of SAP Hana Side Car Approach.

 

    • Which of the ways are suitable/feasible in Side Car Approach - AMDP's, ADBC's and Creation of CDS views.
    • In a Side Car Approach, how do we leverage HANA Capabilities to Standard API like BAPI's, FM's and Stadard Programs/Reports.

 

Your help on above questions is highly appreciated.

 

Thanks,

Sraveen Reddi.

Type mismatch in AMDP with Fuzzy Search

$
0
0

HI,

 

I am implementing a full text search using AMDP and I want to return also the result of the HIGHLIGHTED function.

But I always get a type-missmatch between the result of the function, and the definition of the output of my AMDP-class.

 

This is the definition of the outpup-structure:

      BEGIN OF ty_struc,

        score         TYPE za_hana_score6_5,

        text          TYPE /bobf/text_content,

        snippet      TYPE string,

        highlighted   TYPE string, " /bobf/text_content,

        host_key      TYPE /bobf/conf_key,

        text_type     TYPE za_bopf_text_type,

        text_subtype  TYPE za_bopf_text_subtype,

        language_code TYPE spras,

      END OF ty_struc,

 

And this is the SELECT-statement:

    rt_table = SELECT

         score() as score,

         content.text ,

         SNIPPETS (text) as snippet,

         highlighted (text) as highlighted,

         collect.host_key,

         hdr.text_type,

         hdr.text_subtype,

         hdr.language_code

 

This is the error I get:

 

return type mismatch: Type "79"  of attribute "HIGHLIGHTED not compatible to type "56"  of attribute "HIGHLIGHTED"

 

where "56" is the definition out of the SELECT.

The SNIPPET works perfectly ...

The original type ( /bobf/text_content ) is also a string.

 

Has anyone any idea how I should define the highlighted-field in the output structure of my class, to avoid this mismatch.

Kind Regards.

Krisz

/namaespace/J_ST is too long(>4096)

$
0
0

Hello Experts,

 

I am getting an error like /namaespace/J_ST is too long(>4096) when tried to activate a CDS view. This view has relationship with lots of other views and I have created the associations and joins with them. Does this error mean ABAP CDS view has limitation in number of association or joins that can have in a view. Please advice.

 

Regards,

Nithin

VBAK and SNWO_SO Table difference in HANA

$
0
0

Hi Guru's,

 

In SAP HANA we can able to see two tables for sales related information.

 

1. What is the use of it?

2.Both contain same data?Duplicate the tables exist?

3.When both data will get sync?

 

Thanks in advance for your reply.

 

Regards,

Ravi Shankar.L

SAP-HANA role in sap

Modify data of a temp table in AMDP

$
0
0

Hello All

 

I'm currently looking at a scenario within AMDP where I need to modify the data of a select query within the AMDP method.

 

For Ex: I select data from tables BKPF and ACDOCA, from the resultant set I would like to modify 3 fields A, B, C with the value in column D.

 

I have tried to implement various options but could not achieve the desired results, also I was trying to find out if there is a possibility of calling a non AMDP method inside an AMDP method?

 

Regards
Sachin


Replace Select/Delete Adjacent duplicate in ABAP for HANA

$
0
0

Hi All,

 

We are migrating to HANA and need to change ABAP code as per ABAP for HANA guidelines. Please assist in transforming following query.

 

SELECT <fld1> <fld2> <fld3>... FROM <TABLE> INTO TABLE LT_TAB.

 

SORT LT_TAB ASCENDING <fld1> <fld2>.

 

DELETE ADJACENT DUPLICATE FROM LT_TAB.

 

We need to transform it into single query to eliminate warning message we are getting.

 

Please assist.

 

 

Thanks & Regards,

Rajesh

One view Created on ABAP Tables in HANA Eclipse, when i opening that view in sap it is not in the database

$
0
0

I Created one CDS View in HANA Eclipse by using MARA and MAKT . I try to open the view in ADT Tools it is showing as below message and not executing to display the view output.

 

please help on this how to create a CDS view to display View output in ADT tool.

Reading texts based on logon language

$
0
0

Hello All,

   I have a requirement where I need to get short text based on the logon language.

If the text is not maintained in logon language, then I need fetch it from English language.

 

Example

 

In Table MAKT

 

MATNRSPRASMAKTX
1DETest1-DE
1ENTest1-EN
2ENTest2-EN

 

Consider the logon language in DE,

For material 1 there is text in language DE, so the output should to be Test1-DE

For material 2 there is no text in language DE, so the output should be from EN language Test2-EN

 

I tried to use left outer join , but that gives few records with empty text or text in both languages, which we can later delete them.

And there are lot of other ways by which we can refine the internal table after the select is performed.

 

What I am looking for, is there any way we can do it in select query itself, considering new advancements in ABAP open SQL and CDS views.

 

With regards,

Sandeep Akella

hana

$
0
0

Hi Hana expert

 

I'm new in the world of SAP HANA...and I'm doing some exercise to improve myself with this new technology.

I've just finished the official manual writen by SAP...and now I'm doing this exercise:

 

I've imported 3 tables with some data about bank accounts by 3 XLS files.

First 2 tables are perfectly imported in this way...and i'll use them as DIMENSION TABLE. Not same thing for the first one. I have to create some procedures that extract column by this data stage and export it in other tables that i've created. I'll try to be clearer

 

I have a data-stage with K-columns. I have to extract distinct some of these column and exporting them in specific table that i've created before to use them as dimension table.

But is not finish here. In the procedure...i must use a syntax to create a primary key id for each new dimension table. So i have to populate these new table with first column filled with the key (i've read that i can create it using the comand SEQUENCE -> SAP HANA Reference: CREATE SEQUENCE) and second column filled with the data extracted by the datastage.

 

Someone can help me ?

 

What syntac can I use to extract some columns by an existing table...to export them to another and adding before a column with a primary-key ID ?

Fetching Data from HANA system

$
0
0

Hi All ,

 

I am new to SAP HANA .

I have a select statement which fetches data from ECC. Now my requirement is to convert  it so that data is now fetched from HANA system .

I am not sure how to convert the query.

 

      OPEN CURSOR WITH HOLD s_cursor FOR

           SELECT bukrs

                  belnr

                  gjahr

                  monat

                  cpudt

                  cputm

                  waers

                  bstat 

             FROM bkpf

               WHERE  bukrs IN l_r_bukrs

                 AND  belnr IN l_r_belnr

                 AND  gjahr IN l_r_gjahr

                 AND  monat IN l_r_monat.

 

    FETCH NEXT CURSOR s_cursor

               APPENDING CORRESPONDING FIELDS

               OF TABLE lt_bkpf     

               PACKAGE SIZE s_s_if-maxsize.

Viewing all 613 articles
Browse latest View live


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