Skip to Content

Action and CDS CRUD Implementation with Fiori Smart template

I'm trying 2 things but facing issues in both the cases.

=> Creating a line item or list report action which will trigger a BOPF action

=> Implementing a CRUD scenario in Fiori Smart template

1. I am able to generate actions based on CDS view and BOPF using smart template when I click on the button generated by action it is saying missing function import.

my annotation is given below

@UI.lineItem: [

-- Standard Lineitem

{ position: 7 },

-- Action Lineitem

--

{ type: #FOR_ACTION, dataAction: 'BOPF:COPY', label: 'Copy' }

]

the annotation file content in WEB IDE is given below

<Record Type="UI.DataFieldForAction">

<PropertyValue Property="Label" String="Copy"/>

<PropertyValue Property="Action" String="sap.com.cds_z_stock_inv.sap.com.cds_z_stock_inv_Entities/Z_Stock_InvCopy"/>

<Annotation Term="UI.OperationGrouping" EnumMember="UI.OperationGroupingType/Isolated"/>

</Record>

So, I have created the action in BOPF but the smart template is showing the error saying that it is missing function import

Question a: Why it is expecting a function import even when action is defined as BOPF action.

Question b. Can we create any function import while generating the Odata service using annotation, @Odata.publish : true or we have to generate the ODATA using a Reference Data Source

2.If we need to address Fiori Smart Template with CRUD scenario, can I use the option @Odata.publish : true or we have to use the technique "n Generating an OData Service Based on a Referenced Data Source. " Also looking for documentation draft persistence programming model

Any links/pdfs will highly be appreciated, Many thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 25, 2016 at 11:32 PM

    Please ignore this post as I can see the related documentation in the below link and that clarifies my issue.

    Developing Transactional Apps from Scratch - About ABAP Programming Model for SAP Fiori - SAP Library

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.