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

ACTIVE_OBJECT-CDATA - Getting the xml with error

$
0
0

Hi colleagues,

 

I need to get the XML of a HANA view, I'm using the ACTIVE_OBJECT view  field CDATA, attributing the result to a xstring field type in abap, however, when the HANA view is very large, XML does not come properly. Any suggestion?

 

Best regards,

 

Eduardo Da Rós


ABAP HANA vs ABAP

$
0
0

What is the difference between abap hana and abap?

Certification in Hana with ABAP experience

$
0
0

Hello Experts,

Request inputs on what certification can be done in HANA with an experience of 7.5 years in ABAP.

I have not done any  certifications till now.

 

TIA

Regards,

Nidhi

Open.sap.com SAP A4H - Assignments and Final exam not available in the self-paced mode

$
0
0

Hello,

I loved the online course on ABAP 4 HANA. Got great insights and knowledge on the latest and greatest features. Thank you SAP for this.

 

However, I'm not able to complete the assignments and final exam for the SAP ABAP 4 HANA open.sap.com course. I think this should be made available even in self paced courses, may be in offline mode without Record of Achievement at least so that we can leverage the same and increase and test our knowledge even further.

 

Please let me know your thoughts on the same.

 

Also would like to know when the next course for A4H is so that I can get the Record of Achievement for this course.

ABAP in ECC on HANA

$
0
0

Hi Gurus,

 

We are planning to go with ECC on HANA.

 

Following are my understanding, please let me know if I am right,

 

*  SLT is not required to pull the table data into HANA database, as HANA database is going to hold all of the ECC  tables.

 

*  We need to create attribute view, analytical view and calculation view over these ECC tables and use the BI tools like Design studio, WEBI

    etc to create reports over these information models.

 

*  BODS  is needed to pull the data from 3rd party systems into the HANA database.

 

I have the following queries,

 

* As a  beginner in HANA, should I focus more on SQL script or on ABAP script?

( I  am core BW developer with more experience on BW-related ABAP like function modules,BADI, routines etc)

 

* Can we call ABAP methods within the ABAP/SQL  scripts? for ex:  there is a standard method for calculating inventory, can it be called from the ABAP/SQL scripts?

 

* Can we use the BW DataSources and create the views?

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

Code Remediation for pool and cluster tables in A4H

$
0
0

Hi,

 

I have a question on code remediation on ABAP on HANA for pool and cluster tables. As the saying goes. INSERTS/UPDATES/DELETES and even SELECTS on pool and cluster tables must be changed  (in custom code) for the code to work correctly. This is because, pool and cluster tables have been flattened into transparent tables. But my question is 'HOW' is this to be done.

 

Take the example of RFBLG, it has around 6 tables under its hood. If there happened to be any INSERTS/UPDATES/DELETES to this table, how do we ensure the new code we write will address the same needs. All the tables happen to have the same keys. How do we decide which table should be modified  from, especially when the  fields worked on could be different.

 

Thanks

 

Nehal.

How to use dynamic colums with conditions into SELECT statment in AMDP?

$
0
0

Dear SAP HANA Experts,

 

Recently, I am digging on AMDP for leveraging performance of programs. Meanwhile, I need some help to change/adapt AMDP method concurrently as applying dynamic SQL in AMDP. I know it causes leading performance regression, but I require to use it for creating universal AMDP method to adapt everywhere.

 

These are the questions on the below I need answers:

 

1. Is it possible to apply Dynamic SQL in AMDP?

(For example)

DECLARE LV_SEL STRING;

  LV_SEL = 'SUM(VV500) AS VV500, SUM(VV501) AS VV501, SUM(VV500+VV501) AS VF501;

  LV_TABLE = 'CE1XXXX';

 

ET_CE1XXXX = SELECT <LV_SEL>

                               FROM <LV_TABLE>

                            WHERE MANDT = '100'

                                  AND KOKRS = 'XXXX'

                                  AND BUKRS = 'XXXX'

                                  AND SPMON = '201509';

 

2. Or, is it possible to use Dynamic procedures in AMDP? (if yes, can you give me sytax for example?)

 

The purpose of two questions are the same. I want to use dynamic colums with conditions into SELECT statement.

Is any other way to solve this problem? Please feel free to give me any answers to solve this.

 

 

Thanks,


How to insert data from ECC to HANA DB based on the schedule job?

$
0
0

I want to fetch some data from ECC db, and then insert these data to another HANA DB. This ECC DB is the HANA primary database. How could I insert the data to another HANA DB? 

Consuming ABAP code in HANA views

$
0
0

Hello All,

 

Is there any possibility I can write ABAP views while creating views in SAP HANA,

I will be using HANA live content for replacing the clients ECC reports, the custom ECC reports does have some complex ABAP logic, I was thinking is any way I can write ABAP code and consume them in my views.

 

Regards,

Vivek

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

How to sum the subtracted quantities in CDS view

$
0
0

Hello ,

 

I want to sum the subracted quantities and populate into a field while creating CDS view. Kindly provide me syntax for the same.

 

I want something like,

 

SELECT FROM VBBE

       { lgort,

         sum (omeng - vmeng) as omeng,

         } group by lgort

 

But i am getting syntax error if i use both 'SUM' and '-' in the same query.

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

Call HANA Procedure via AMDP

$
0
0

Hi,

I wrote a procedure on HANA and i want to call via AMDP. As i saw from examples, developers generally writing the content of the procedure here but i wnt to call pre-written HANAprocedure via here.

Is it possible ?

 

My scenario is like that;

 

CLASS ZBPC_AMDP_TEST IMPLEMENTATION.  METHOD RUN_PACKAGE BY DATABASE PROCEDURE FOR HDB                        LANGUAGE SQLSCRIPT.
call Z_SP_TEST(:IN_A, :IN_B, :IN_C, ET_DATA  )  with overview;                         ENDMETHOD.
ENDCLASS.

I dont want to put all my select statement here and also it doesnt support local temporary tables.

Is there a way ?


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?

Secondary database connections in AMDP

$
0
0

Hi all,

 

I'm trying to write a simple method which will use a secondary database connection (new functionality available for AMDP - New in AS ABAP 7.4 SP8 - Use of Secondary Database Connection when calling AMDP Methods).

 

My sample code is as below:

 

CLASS Z_CL_JK_AMDP IMPLEMENTATION.

 

 

  METHOD classify.

    me->JK_CLASSIFY_AMDP(

      EXPORTING iv_client         = sy-mandt

                it_bp_id          = it_bp_id

                connection        = 'R/3*KJ1'

      IMPORTING et_classification = et_classification

       ).

 

 

  ENDMETHOD.

 

 

  METHOD JK_CLASSIFY_AMDP BY DATABASE PROCEDURE

                       FOR HDB

                       LANGUAGE SQLSCRIPT

                       USING snwd_bpa.

 

 

[some other code]

 

  call "KEANEJ"."JENINSERT"();

 

  ENDMETHOD.

ENDCLASS.

 

I have verified that the call to the procedure works on the default connection. The secondary database connection KJ1 exists, and the user with which it is associated has permissions on the relevant HANA parts to work (schema permissions, etc). However, the editor (in eclipse) shows an error that the procedure JENINSERT doesn't exist (which it does't on the ABAP system, but does on the DB to which the secondary connection exists).

 

Additionally, some testing on another ABAP system leads me to believe that there may be some sort of fallback functionality, that perhaps it defaults to the DEFAULT connection if it can't find the secondary connection? If I comment out the procedure call, for example, and run the method above, it runs correctly, although the call out to the KJ1 connection doesn't seem to happen. If I change the name of the connection to something that I am sure is not a connection, the method will still run, which is why I think it may be defaulting to the DEFAULT connection.

 

Has anyone used the secondary database connection functions? Have I gone wrong somewhere, perhaps in the format of my connection?

 

 

Thanks,

 

Jen

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?

Concatenation output

$
0
0

Hi, I am creating a CDS view. I am concatenating two fields from a table "LFA1"

The fields are:

lifnr(supplier id)[TYPE: CHAR : LENGTH:10]

&

name1(supplier name)[TYPE: CHAR : LENGTH:35]

 

So when I concatenate like:

Concat(Concat(Concat(Vendor.name1 , '('),Vendor.lifnr),')') as MySupplier

 

I get something like:

Geller(0000100791)

These "0000" are appended. I guess its done to match length of lifnr .

 

But I don't want it to display like this. I want it to appear as-

Geller(100791)

Is there any workaround?

 

 

Thanks.

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.

Viewing all 831 articles
Browse latest View live


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