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

How to create CDS view dynamically without using Eclipse in SAP ABAP for HANA

$
0
0

Hi Gurus,

 

I am new to SAP ABAP for HANA.

I have a requirement about...

How to create CDS view dynamically without using Eclipse.

 

Could you please explain me in brief.

Please share me and waiting for your valuable information.

 

 

Regards,

Siva R


Error Creating External View on ERP Database Table

$
0
0

Dear Community Members,

 

i have an ERP-System based on HANA Database and i created a Database Table inside the ABAP Dictionary. Then i created an Attribute View based on this table (I know it is a bit strange to use an Attribute View only for one Table, but it works) and activated it. Everything worked fine, but when i tried to create in external View in the ABAP-View inside Eclipse i got an error (see the pic below) In the display, where i should choose the Transport request to which the External View should be assigned, i got the message that the assignment of the Objekt to the ERP Package is not possible. I only got this message, no other error message. I already read the post Error creating External view on HANA Live model in CRM

and i read the SAP Notes 1837708 and 1932922 ,  but the administrator of our system does not allow to execute the necessary steps. I considered to write the Name of the Attribute View and the name of the respective repository Package in Upper Case.

 

System Informations

 

SAP ERP 6.0 EHP 7 SPS 10

 

HANA SPS 09. (Version 1.00.097.00.1434028111)

 

 

Would be great if somebody could give me a hint how to solve this problem.

 

Kind Regards

 

 

 

 

 

 

 

HTCPROBLEM.PNG

HANA ready, code inspector - Custom code in SAP standard

$
0
0

Hello together,

 

we use the code inspector to find critical custom code to prepare the system for switching to HANA. I installed the functional_db variant and that works. But I have a big problem with the following: Code inspector didn´t work with SAP standard programms. But what about user-exits, enhancements and so on? There are many lines of custom code embedded in SAP standard (in our system ;-). Is it possible to check this code too?

 

Thanks and greetz

 

Patrick

Abap for HANA - Write view results on application server

$
0
0

Hello,

 

I have a business request in which i have to gather database information, present it in ALV form and also write the result as a file on the application server. I have used before CDS view and IDA ALV and I would like to do this again but i don't know how to get the result into a file on the application server ( so it can be seen in tcode al11). Could anyone help me? Is it possible to get the results from the view into an internal table? Or any other way?

 

Thanks in advance,

 

Ilias.

secondary indexes y we need be use in sap abap? requirement need to create secondary index in table2 to access non primary key?

$
0
0

requirement need to create secondary index in table2 to access non primary keys?

Abap for HANA - Write view results on application server

$
0
0

Hello,

 

I have a business request in which i have to gather database information, present it in ALV form and also write the result as a file on the application server. I have used before CDS view and IDA ALV and I would like to do this again but i don't know how to get the result into a file on the application server ( so it can be seen in tcode al11). Could anyone help me? Is it possible to get the results from the view into an internal table? Or any other way?

 

Thanks in advance,

 

Ilias.

Unable to activate a table

$
0
0

Hi All,

I am getting the Parse error for table definition when I try to activate the database table. Here is the full error text: "Repository: CheckObjects failed for at least one object; Parse error for table definition: Syntax error: Extension are only allowed with the list itself.; row: 5 column: 0"

 

Here is the code that I have.....

table.schemaName = "cs_first";

table.tableType = COLUMNSTORE;

table.description = "Workshop order Header";

table.columns = {

{ name = "OrderId"; sqlType = NVARCHAR; nullable = false; length = 10;   },

{ name = "CreatedBy"; sqlType = NVARCHAR; nullable = false; length = 10; },

{ name = "CreatedAt"; sqlType = DATE; nullable = false;                  },

{ name = "Currency"; sqlType = NVARCHAR; nullable = false; length = 5;   },

{ name = "GrossAmount"; sqlType = DECIMAL; nullable = false; precision = 15; scale = 2; defaultValue = "0";  },

};

table.primarykey.pkcolumns = ["OrderId"];

 

 

Thank you in advance,

Chandra

AMDP Debugger not availabel

$
0
0

Hello,

when I will set an Breakpoint in SAP HANA Studio a window opens with the Message "AMDP-Debugger for the System is not available".

Our System is an SAP BW System 7.4 SP10 our HANA Database has the version 1.00.09400. SAP HANA Studo Version 2.1.6 with ABAP Development Tools 2.48. What I have to do that the Debugger is running?

 

2015-11-09 11_52_19-ABAP - Globale Klasse _BIC_00O2THM3V2FWB2XTEVY3YLXMT [VID] - Aktiv - VID_100_boe.jpg

 

 

Thank for your support.

Niels


SAP Tables

$
0
0

Hi All,

I want to know the concept of Tables in SAP in simple language (for Layman) and there relation with each other, could anybody help?

Abap for HANA - Write view results on application server

$
0
0

Hello,

 

I have a business request in which i have to gather database information, present it in ALV form and also write the result as a file on the application server. I have used before CDS view and IDA ALV and I would like to do this again but i don't know how to get the result into a file on the application server ( so it can be seen in tcode al11). Could anyone help me? Is it possible to get the results from the view into an internal table? Or any other way?

 

Thanks in advance,

 

Ilias.

Pass results of view into internal table - Write on application server

$
0
0

Hello all,

 

I would like to know if there is any way to pass the results of a cds view i created into an internal table after the user inputs parameters as selection criteria. I need to be able to write the results into a file and see it in tcode al11.

 

Thanks in advance,

 

Illias.

Substring and SubstringOf on SADL-generated Gateway-services

$
0
0

Hi,

 

I have a problem with using the OData query filter options Substring and SubstringOf. I use them with my SADL-generated OData service on top of an CDS view but allways get a FILTER TREE PROCESSING ERROR.

 

This query does work with a simple filter statement:

...ZBF_POIPARAM01_SRV/Z_Poitems_Params?$filter=( Material eq 'STANDARD' )


This query fails using SubstringOf:

...ZBF_POIPARAM01_SRV/Z_Poitems_Params?$filter=substring(Material, 0) eq 'STANDARD'


The error message is the following:

<code>/IWBEP/CM_MGW_RT/176</code>

<messagexml:lang="en">Internal error during filter tree processing.</message>

<errordetails><errordetail>

<code>/IWBEP/CX_MGW_TECH_EXCEPTION</code>

<message>Internal error during filter tree processing</message>

<propertyref/>

<severity>error</severity>

<target/>

</errordetail></errordetails>


While debugging the problem in Gateway, I noticed that the filter tree object (EO_FILTER_TREE) was build correctly [image01]. The URL statement (a) was translated into an internal representation (b) wich is semantically identical:

(a) $filter=substringof('STAN', Material) eq true

(b) ((MATERIAL like ‚%STAN%‘) = ‚true‘)

 

Moreover, all operators and operands (right- and left-side) are mapped correctly.


Later in the debugging processes, the algorithm breaks while checking some conditions x1, x2, x3 and x4 [image02]. The missed conditions prevent a parameter (lo_property) to be allocated. In the further processing this leads to an unallocated parameter lv_path and to the exception.


I have no clue what goes wrong in Gateway while handling this standard statement. Does anybody have already tried it successfully or have deeper understanding of the problem?


Regards, Tobias




Using OData custom query options (URL parameters) in Gateway

$
0
0

Hi,

 

I created a CDS view with explicitly defined parameters and generated a Gateway OData service on top using SADL. Now I want to use OData custom query options to map them to the CDS parameters. I'm quite sure that this will not work automatically.


I'm already able to set the CDS parameters in the OData service DPC_EXT class manually, using the method if_sadl_gw_query_control~set_query_options.


METHOD if_sadl_gw_query_control~set_query_options.

     IF ( iv_entity_set = 'POIPARAMSet' ).

          IF sy-subrc = 0.

               io_query_options->set_entity_parameters(

                    it_parameters = VALUE #( (

                         entity_alias = 'POIPARAMSet' parameters = VALUE #( (

                              name = 'P_PurchaseOrderNetAmount' value = '10'

                         ) )

                    ) )

                )

          ENDIF.

     ENDIF.

ENDMETHOD.

 

However, I want to use custom query options (URL parameters) and want to map them to CDS parameters within the DPC_EXT class.

 

The URL looks like:

...ZBF_POIPARAM02MAN_SRV/POIPARAMSet?P_Material='STANDARD'

 

Unfortunately, these custom query options are obviously not parsed by Gateway. I can't find them anywhere in the data structures of MR_REQUEST_DETAILS or MO_CONTEXT. Fields like PARAMETERS, MT_PARAMETERS or URI_PARAMETERS are empty or containing other stuff. The custom query options only appear in the ~request_uri header parameter in a non-parsed way like

 

....?param1=1&param2=2&param3=3....  [figure01]

 

Of course I can parse the query string myself but I believe there must be an other way to access them. However, I also read in a SCN post from 2012, that SAP doesn't support this aspect of the OData standard. Is this still true?

 

>> Query parameters in CRUD operations

 

Kind regards, Tobias

Installing ABAP Development Tool on SAP HANA Studio

$
0
0

Hello Friends,

 

I have already installed the SAP HANA Studio as a virtual application on my laptop and I would also like to install the ADT. Can you please guide on how to do the same?

 

Many Thanks,

Tanmoy

SQL Monitor & SWLT release level

$
0
0

Hi All,

 

Our current production system is on 7.00. We will enable it for SQLM by a kernel patch (SAP Note 1824769).

SWLT will be running on 7.40.

 

Is it possible to import SQLM results from 7.00  into SWLT on 7.40?

 

Kind Regards

Edmond Paulussen


ABAP Managed Database Procedures(AMDP)

$
0
0

Hi Gurus,

 

I'm new to SAP HANA.

And I want to crate basic AMDP methods and know its benefits.

 

So Could you please provide sample basic code of creation of AMDP and its uses.

 

 

Regards,

Siva R

planning to learn SAP HANA

$
0
0

Hi Friends,

 

i have an 3 years of experience in standard SAP ABAP.

In future  i want to learn SAP HANA.

so what are the areas i have to be strong (i.e) prerequisite for HANA.

AND is it is useful for me to learn SAP HANA  ?.

in future can i MIGRATE to SAP HANA?.

 

 

 

Please help me friends.

Different Code Push Down techniques in SP10

$
0
0

Hi Experts,

 

Is there any Code Push Down techniques in SAP HANA SP10, other than ABAP New Open SQL, CDS and AMDP..???

 

 

Regards,

Siva R

How to create CDS view dynamically without using Eclipse in SAP ABAP for HANA

$
0
0

Hi Gurus,

 

I am new to SAP ABAP for HANA.

I have a requirement about...

How to create CDS view dynamically without using Eclipse.

 

Could you please explain me in brief.

Please share me and waiting for your valuable information.

 

 

Regards,

Siva R

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.

Viewing all 613 articles
Browse latest View live


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