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