cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi Experts,

we have a RAP/Fiori Elements List Report app with a create button. We have two mandatory fields on create, which leads to a pop up on create. This is/was fine for testing. Now the customer want that new objects are only created from a SAP GUI transaction.

Therefore we created as service method which calls the intent with create:

DATA(lt_parameter) = VALUE tihttpnvp( ( name = 'SalesOrder'

value = if_sales_order )

( name = 'SalesOrderItem'

value = if_sales_order_item ) ).

cl_lsapi_manager=>navigate_to_intent( Object = 'CUSTOMER_APP'

Action = 'create'

parameters = lt_parameter

navigation_mode = if_lsapi=>gc_s_navigation_mode-inplace ).

This works as expected. A new browser tab is opened and the pop up is pre-filled. When the pop up is confirmed, the Object Page is displayed in create mode.

The requirement is now to disable/hide the create button in the app, at least on the productive system. It would be good to have the button on the test environment further on. And/Or to skip the pop up, when the create is called with the service function, because then it's always pre-filled.

All my attempts to remove/disable the button (which is auto generated by the RAP framework/behavior), resulted in the function being unavailable in the backend as well.

andre.fischer maybe you have any idea on that. 🙂

Thanks for your help,

Regards Florian

0 Likes
View Entire Topic
EricXie
Product and Topic Expert
Product and Topic Expert
0 Likes

With feature control you can determine the enablement of action with you own ABAP logic, maybe this could meet your requirement.

Kostiantyn_K
Participant
0 Likes

Feature control works only once you push button "Create" fill required fields and then press "continue" button, after that get_global_features method is ran. It is not possible to use that method to manage of button Create.

I think solution with attribute should be suitable.