Looks like a typing error. You should use:
et_sflight_det = SELECT a.carrid, a.connid, b.cityfrom, b.cityto ...
instead of
et_flight_det = SELECT a.carrid, a.connid, b.cityfrom, b.cityto ...
Best Regards, Thomas
Looks like a typing error. You should use:
et_sflight_det = SELECT a.carrid, a.connid, b.cityfrom, b.cityto ...
instead of
et_flight_det = SELECT a.carrid, a.connid, b.cityfrom, b.cityto ...
Best Regards, Thomas
Thank you Thomas..
Hello Expert,
Please help me for the below points:
1. Can we loop an internal table inside AMDP method.
2. Can we write delete adjacent duplicate.... inside AMDP method.
3. What all operation we can do inside the AMDP method.
If yes please help me with an example.
Thanks & Best Regards,
Kailash
Hello Expert,
I am unable to set the breakpoint inside the AMDP method. While clicking on the selection bar, I am getting the error as specified in the attachment.
Please help me on this.
Thanks & Best Regards,
Kailash
Try it like this:
first_itab = SELECT .. FROM VBRK JOIN VBRP ... ;
second_itab = SELECT DISTINCT ... FROM :first_itab;
third_itab = SELECT ... FROM OTHERTABLE JOIN :second_itab;
Why do you want to write that logic in AMDP ?
Best Regards, Thomas
Hi Frank,
I just saw your question. Thank you for citing the place in the coding!
Yes, there is a reason: When a column has a conversion exit, it does not make much sense to do a text-search on the values stored on the database. They would have to be converted before matching.
Conversion exits are "evil" in the age of HANA-based applications.
Kind Regards,
Ivo
Hi Ivo,
and what is the solution for my problem?
There are plenty of conversion routines in the SAP ERP Standard. I think the user should have the possibility to search for fields even if they have a conversion routine.
Thanks!
Hello Binod,
If you have concern about performance then you should have to choose AMDP....
But now advanced open SQL also pretty much faster and has compatibility with HDB.
For your case you can go with advanced open SQL over AMDP , since it does not have performance impact is my assumptions...
I guess Thomas has given you best possible answer...
Regards,
-Amol S
Hi Frank,
I am honestly sorry for having read only part of your thread. I saw the discussions about the HANA revision, but I missed the other important parts.
I did not try it but I would expect that the following (roughly) should work:
go_alv_display->field_catalog()->set_data_element( iv_field_name = 'LIFNR' iv_data_element_name = 'MY_LIFNR' ).
where MY_LIFNR would by your own copy of the LIFNR data type without conversion exit.
Of course, this would only be a partial solution as it would disable the conversion exit completely for your table. Depending on what the conversion exit actually does, this may or may not make sense.
Therefore, your general concerns about conversion exits being used all over the standard are, of course, valid.
Kind Regards,
Ivo
Hi Experts,
I am posting here first time. If it is not right forum, please ignore it.
I have created a CDS view in ECLIPSE. Sharing this view as an image.
Here I have dynamic fields like GOODS_RECPT & GOODS_ISSUE. I want to make a new field which will be subtraction result among them.
Like example: new f1 = GOODS_RECPT - GOODS_ISSUE.
Currently this code working properly and getting result as expected.
Is it possible to make this in CDS view? Because I cant do this. If not possible, then could any one please provide any suggestion to achieve this.
Hey Experts,
is there an option to search for existing CDS views?
I would like to expose materials and their short texts as OData via gateway. Of course i can model a own CDS on top of the both tables MARA and MAKT but i'm sure that there is already a CDS delivered by SAP. But how to find this view?
Btw. for materials the DDL Source "I_MATERIAL" exists.
But this is a typical use case for me over the last few days to find a existing standard cds entity or model a own one.
System: NW 7.50
Regards
Simon
Thanks for the insight Thomas. Actually my fields were of char type and no arithmetic operations involved. So I could modify the values by creating a calculated column using case statement.
The reason why I was so keen about other methods inside AMDP was to identify if we could use a method which has Open SQL code and access that within the AMDP. But it wasn't possible.
Hi Simon,
in ADT do a "Where used"-query on your table - in your case MARA and MAKT. When you get the result you could filter it by clicking on the filter icon in the upper right corner of the view:
in SAP Gui you could directly set the filter to "DDL Sources" when hitting "Where used".
For further read:
ADT 2.31 - New version of ABAP Development Tools available now
Best regards,
Simon
Thank you Thomas.
Hi Experts,
I am posting here first time.
I have created a CDS view in ECLIPSE. Sharing this view as an image.
Here I have dynamic fields like GOODS_RECPT & GOODS_ISSUE. I want to make a new field which will be subtraction result among them.
Like example: new f1 = GOODS_RECPT - GOODS_ISSUE.
Currently this code working properly and getting result as expected.
Is it possible to make this in CDS view? Because I cant do this. If not possible, then could any one please provide any suggestion to achieve this.
Thanks,
Arindam.
Hello Arindam,
I assume you would use the alias names for the minus calculation. Alias names cannot be used in that case. Normally in such situations the "expression" used to calculate a specific column has to be repeated in such situations, but the sum function is not supported for minus operations. So within one view you cannot reach your goal.
You have to create a second CDS view on top of your view which adds the minus calculation. There of course you can use the names GOODS_RECPT and GOODS_ISSUE.
For your existing view I would recommend you to add an else value to your case expressions to avoid null values.
Best Regards,
Florian
Hi All,
I am trying to consume the ABAP CDS to Analysis for office but the error is coming as :
Error msg:
The parser produced the error: "ZCXXX" is a database entity with parameters, but a "(" is missing after the name. (RS_EXCEPTION-000)
SAP BI Add-in has disconnected all data sources. (ID-111007)
Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION (RSBOLAP-000)
while opening the CDS query from analysis for office.
Annotation used in CDS is :
@Analytics:{dataCategory: #CUBE , dataExtraction.enabled: true , query: true }
@VDM.viewType:#COMPOSITE
Kindly help as its little critical for me.
Thanks in advance
Hi Arindam,
you cannot refer to the names GOODS_RECPT & GOODS_ISSUE in the same view where you define them.
Either create another view on top of your view or repeat the expressions that define your values.
Regards, Thomas
Hi Gaurav,
if your CDS view has parameters, then they must be filled within the SELECT statement.
See also here: ABAP Keyword Documentation
Best Regards, Thomas
Hi Thomas,
I am not writing any code to fetch the data, the data is being pulled from ABAP CDS view.
Since query :true is one of the annotation that creates query automatically by the system.
When i am trying to access that from my Analysis for office i am getting the above errors.
Below is the code that i have written for :
@AbapCatalog.sqlViewName: 'ZDEMO4V'
@Analytics:{dataCategory: #CUBE , dataExtraction.enabled: true , query: true }
@VDM.viewType:#COMPOSITE
@AbapCatalog.compiler.CompareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'ZDEMO4'
define view Zdemo04
with parameters vbeln1:vbak.vbeln
as select from vbak as Header1
left outer join vbrk as header2
on Header1.vbeln = header2.vbeln
left outer join vbap as item
on Header1.vbeln = item.vbeln
left outer join makt as MAT_Desc
on item.matnr = MAT_Desc.matnr
left outer join tvkot as salOrg_txt
on Header1.vkorg = salOrg_txt.vkorg
{
Header1.vbeln,
header2.fkart,
Header1.auart,
Header1.waerk,
Header1.vkorg,
salOrg_txt.vtext,
Header1.vbklt
} where Header1.vbeln = $parameters.vbeln1
To mention: the code is working fine when executing from HANA studio abap perspective.
Thanks
Gaurav