Create a function:
input: iv_carrid
tables: et_spfli
Create a Web Dynpro component
Create a Service Call
select controller
leave the destination blank
change parameter object type to node/attribute
continue to finish
copy global context to current view context
Add element
Add button click method code:
Create Application and test: