Quantcast
Channel: SCN : Popular Discussions - Floorplan Manager for Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 1726

Reuse FPM configuration in another webdynpro component

$
0
0

Hello,

 

 

I would like to define the navigations and buttons in one component configuration . And then use this  in another webdynpro component.  As the buttons/navigation is applicable to multiple requirements. So I would like to reuse it.

 

I tried to do this using the developer's guide (7.0 , EhP2). But I am getting a dump

'The current application triggered a termination with a short dump ' .

 

Not sure if I am doing some thing wrong. Any ideas in this regard would be helpful.

 

 

'

method Web DynproDOINIT .
data: lo_usage type ref to if_Web Dynpro_component_usage,
ls_conf_key type Web Dynproy_config_key.
lo_usage = Web Dynpro_this->Web Dynpro_cpuse_fpm_usage( ).
if lo_usage->has_active_component( ) = abap_true.
lo_usage->delete_component( ).
endif.
ls_conf_key-config_id = u201CID configuration of FPM componentu201D.
* recreate component using new configuration ID
try.
(C) SAP AG Floorplan Manager ABAP - Developeru2019s Guide 185
Preliminary Version
call method lo_usage->create_component
EXPORTING
component_name = 'FPM_OIF_COMPONENT'
configuration_id = ls_conf_key.
catch cx_Web Dynpro_runtime_api .
endtry.

 

Thanks alot

Saujanya


Viewing all articles
Browse latest Browse all 1726

Trending Articles