cancel
Showing results for 
Search instead for 
Did you mean: 

Action and CDS CRUD Implementation with Fiori Smart template

Gairik
Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Gairik
Participant
0 Kudos

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 Librar...

Answers (0)