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

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


Re: ALV with IDA and background job

$
0
0

Hi Radek,
can you please give some more information on "short dump" respectively on the issue you had? There is the remark about "The Data Display is restricted to a maximum of 2 billion cells" in the restrictions you referenced, but I think there's some other restriction you face.
Cheers,
  Jasmin

Re: ALV with IDA and background job

$
0
0

Hi Jasmin,

 

It's not  the size limitation definitely. At first, I thought it's a paging problem, but with amount of rows which fits to one screen, the error occurs as well.

E.g. when I run demo report SALV_IDA_DISPLAY_FULLSCREEN in background (F9 on selection screen), on immediate start, job is automatically created.

Then, in SM37 this job appears as cancelled. In job log: "Control Framework: Fatal error - GUI cannot be reached".

When I check ST22 for a short dump during processing, I have in short text:  Exception condition "CNTL_ERROR" triggered.It's in constructor of CL_GUI_CUSTOM_CONTAINER.

 

This also applies for periodical jobs, created in SM36.

 

For comparison, running demo reports for SALV (and other) gives no errors and list is available in spool.

 

Regards,

Radek

Scripting Language with AMDP

$
0
0

Is SQL script the only language that can be used for AMDP with SAP HANA Database?Is SAP trying to accomodate other scripting langauges with AMDP going ahead?

Re: Scripting Language with AMDP

$
0
0

The windows for extending the feasibility to add more scripting language is there (LANGUAGE <db_lang>. As per the architecture, it should support the language only which is supported by HANA DB .

 

Sree

Re: Scripting Language with AMDP

Re: Scripting Language with AMDP

ABAP : HANA : Connectivity

$
0
0

Dear All,

Am new to HANA. I’m a abaper. I’m trying to create abap program to access hana.

All I did till now is ,

Installed HANA and ABAP in Ecclipse.

Create account for trial version on SAP HANA CLOUD PLATFORM COCKPIT.

Create account in CLOUD APPLIANCE LIBRARY.

Now am trying to add System in IDE  so that I can access hana db. I need to give the host name. which is not available in the Cloud Appliance library.

 

1.jpg

2.jpg

3.jpg

4.jpg

 

Kindly help me out to solve this issue.

 

Regards,

Sindhuja


Re: ABAP : HANA : Connectivity

$
0
0

Hi Sindhuja,
congrats so far, you already succeeded in a lot of steps. You already got a CAL account, but what you did not do, is to get yourself an AWS or Azure hosted system, i.e. an Netweaver ABAP on HANA or a plain HANA system (that's why your "CAL instances list" on the last screenshot is empty). If you're interested in the first one, you can get more information in this document (http://scn.sap.com/docs/DOC-41566) and in the attached HowTo guide you can even find more information on how to connect to that system using your local Eclipse installation.
If you're rather interested in a HANA box and you'd like to use it (without any ABAP), you'll have to consult with the HCP colleagues.
Cheers,
  Jasmin

Re: ABAP : HANA : Connectivity

$
0
0

Hi Jasmin,

 

Thanks for your valuable reply.

Can u guide me how to install or which to install ? Does it costs any ?

what is the requirement for installing?

 

Regards,

Sindhuja

Re: ABAP : HANA : Connectivity

$
0
0

Hi Sindhuja,
this question is best answered by http://scn.sap.com/docs/DOC-56314 in sections "How to get a trial system" and "System costs". You'll be charged by the cloud provider depending on your system usage.
Cheers,
  Jasmin

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

Re: Concatenate in CDS

$
0
0

hi Jasmin, on the concat function itself, is there anyway to get a space/blank character between string values?

 

e.g. this strips out the blank space, is there anyway to protect it/force it in?

 

concat(b.mc_name1,concat('  ',b.mc_name2)) as mc_fname

Even the replace function won't inject it below, the concat does add it in the '-' value, but the replace strips it out. Not sure if that's correct?

 

       replace(concat(b.mc_name1,concat('-',b.mc_name2)),'-',' ') as mc_fname

Thanks,

Sean.

Re: Concatenate in CDS

$
0
0

This would place a blank between Part_1 and Part_2:

REPLACE

( CONCAT( CONCAT('Part_1','- -'),'Part_2'),'-','')

Re: Concatenate in CDS

$
0
0

hi Christian, Yes.. it does. Nice workaround. Thank you for that.

 

It would be nice to see the pipe | for concat similar to what we have on the HANA db, more flexible that the two argument concat function in cds. But for now, this helps me out, so thanks again.

 

Sean


FPM application of CDS View with Input Parameters

$
0
0

Hi,

 

is it possible to create an FPM application via the wizard of a CDS View with Input Parameters?

 

Regards,

Bram

Error Message - Identifier must be declared

$
0
0

Hello all,

 

We are trying to create an AMDP joining a few tables, applying some where clauses and returning a list of records. In this we are trying to dynamically pass the LIMIT and OFFSET parameters to the AMDP. Here we declare the values to be passed in the signature of the AMDP as importing parameters. But HANA Studio keeps throwing an error message saying the identifiers must be declared.

 

Here is our code:

 

The method definition

CLASS-METHODS execute

IMPORTING VALUE(iv_top) TYPE int4

                     VALUE(iv_skip) TYPE int4.

EXPORTING VALUE(et_result) <relevant type>

 

The method implementation

METHOD execute BY DATABASE PROCEDURE FOR HDB LANGUAGE SQLSCRIPT

OPTIONS READ-ONLY  USING <some tables>.

 

et_result = SELECT <required columns> FROM <tables, joins and where conditions>

                  LIMIT :iv_top OFFSET :iv_skip;

 

ENDMETHOD.

 

The error message displayed is this:

error.JPG

Would appreciate some pointers.

 

Thanks!

Re: Error Message - Identifier must be declared

$
0
0

Maybe the error message does not reflect the actaul error.

Does the following work ?

 

select * from dummy LIMIT :iv_top OFFSET :iv_skip;

 

et_result = SELECT <required columns> FROM <tables, joins and where conditions>

                  LIMIT 1 OFFSET 1;

Re: Error Message - Identifier must be declared

$
0
0

Hello, a question, you have your query aggregation functions ? as sum () or something? if so you should target within the grouping , like this:

 

select customer, year, product, sum(sales)

  from t1

  group by grouping sets LIMIT 2

  (

  (customer, year),

  (product)

  );

Re: Secondary database connections in AMDP

$
0
0

Hi Keane,

 

as far as I know, the AMDP only work with *service connections*. These service connections start with R/3* and only go _to the same database_ as the default connection.

 

If you want to use a connection to another database far away in space, you have to stick to good old CALL DATABASE PROCEDURE.

 

Best regards,

Kilian.

Viewing all 2110 articles
Browse latest View live


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