Skip to Content
0

Blank detail page in Fiori App created by Smart Template

Aug 15, 2017 at 12:17 AM

44

avatar image
Former Member

Hi Expert,

I am a beginer in Fiori development. When I test a simple Fiori app, I found when I clicked Show Details button, the detail page is blank.

I went through all necessary steps in SAP help tutoial for creating simple Fiori app by using ABAP CDS. The code is 100% the same. The only difference is I used SAP WEB IDE Personal Edition. I am not quite sure if it is the root cause.

The link as below is the SAP Help documentation.

https://help.sap.com/viewer/cc0c305d2fab47bd808adcad3ca7ee9d/7.51.3/en-US/f6ab458b8e4a4ccdb2275f1c68270b87.html

ABAP CDS Code is as below.

@AbapCatalog.sqlViewName: 'ZSZ_SOI_A'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'CDS demo for Sales Order Item A'

@OData.publish: true

@UI.headerInfo: { typeName: 'Sales Order Item', typeNamePlural: 'Sales Order Items'}

@Search.searchable: true

define view ZSZ_CDS_SalesOrderItem_A
  as select from SEPM_I_SalesOrderItem_E as Item
{
      @UI.lineItem: { label: 'Sales Order', position: 10, importance: #HIGH }
      @UI.selectionField.position: 10
      @UI.identification: { label: 'Sales Order', position: 10, importance: #HIGH}
  key Item.SalesOrder                           as SalesOrderID,

      @UI.hidden: true
  key Item.SalesOrderItem                       as ItemPosition,

      @UI.lineItem.position: 20
      @UI.selectionField.position: 20
      @Search : { defaultSearchElement: true, fuzzinessThreshold: 0.7}
      @UI.identification: { label: 'Company Name', position: 20, importance: #HIGH}
      Item._SalesOrder._Customer.CompanyName    as CompanyName,

      @UI.lineItem.position: 30
      @Search.defaultSearchElement: true
      @UI.identification.position: 30
      Item.Product                              as Product,

      @Semantics.currencyCode: true
      Item.TransactionCurrency                  as CurrencyCode,

      @UI.lineItem: { position: 40, importance: #HIGH }
      @Semantics.amount.currencyCode: 'CurrencyCode'
      @UI.identification: { position: 40, importance: #HIGH}
      @DefaultAggregation: #SUM
      Item.GrossAmountInTransacCurrency         as GrossAmount,

      @UI.lineItem.position: 50
      @Semantics.amount.currencyCode: 'CurrencyCode'
      @UI.identification.position: 50
      @DefaultAggregation: #SUM
      Item.NetAmountInTransactionCurrency       as NetAmount,

      @UI.lineItem.position: 60
      @Semantics.amount.currencyCode: 'CurrencyCode'
      @UI.identification.position: 60
      @DefaultAggregation: #SUM
      Item.TaxAmountInTransactionCurrency       as TaxAmount,
      
      Item.ProductAvailabilityStatus            as ProductAvailabilityStatus,
      
      @Semantics.currencyCode: true
      cast( 'EUR' as abap.cuky )                as TargetCurrency,

      @UI.lineItem:{ label: 'Gross Amount in EUR', position: 45 }
      @DefaultAggregation: #SUM
      
      @Semantics.amount.currencyCode: 'TargetCurrency'

      currency_conversion(
        amount              => Item.GrossAmountInTransacCurrency,
        source_currency     => Item.TransactionCurrency,
        target_currency     => cast( 'EUR' as abap.cuky ),
        exchange_rate_date  => cast( '20160101' as abap.dats),
        error_handling      => 'SET_TO_NULL' )  as ConvertedGrossAmount

} 
  

Really appreciate your comments.

Thanks and looking forward to your reply. :)

1.png (11.0 kB)
2.png (7.4 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers