on 11-21-2013 7:00 AM
I want to create a START screen for GAF application in which options are provided and once clicked on Start button it will take to FPM GAF screen and if user clicks on Close button it should close the GAF screen and return back to START screen.
Any suggestions on how to design this screen ?
Also Close button is only available on GAF when i am creating external window but if i am calling URL of GAF application on click of button then close button does not appear.Any solution to this ?
Hi Vimal,
Create initial screen for your webdynpro for ABAP Component with Start button ,
and onclick of start button try below code to leave the initial screen and and to go back to GAF.
Note : Here MAINSTEP_2 ( is the main step id , the first screen of my GAF )
DATA lo_fpm TYPE REF TO if_fpm.
lo_fpm = cl_fpm_factory=>get_instance( ).
* create event
DATA lr_event TYPE REF TO cl_fpm_event.
lr_event = cl_fpm_event=>create_by_id(
cl_fpm_event=>gc_event_change_step ).
* fill event parameters
lr_event->mo_event_data->set_value(
iv_key = cl_fpm_event=>gc_event_param_mainstep_id
iv_value = 'MAINSTEP_2' ).
lo_fpm->raise_event_by_id( if_fpm_constants=>gc_event-leave_initial_screen ).
DATA: lo_cnr_gaf TYPE REF TO if_fpm_cnr_gaf.
lo_cnr_gaf ?= lo_fpm->get_service(
cl_fpm_service_manager=>gc_key_cnr_gaf ).
CALL METHOD lo_cnr_gaf->define_button
EXPORTING
* iv_variant_id = 'VARIANT_1'
* iv_mainstep_id = 'MAINSTEP_6'
* iv_subvariant_id =
* iv_substep_id =
iv_function = 'NEXT_STEP'
* iv_element_id =
* iv_sequence_id =
* iv_design =
iv_enabled = 'X'
* iv_explanation =
* iv_on_action =
* iv_text = 'NEXT'
* iv_tooltip =
* iv_visibility = 02
iv_default_button = ''
* iv_hotkey =
* iv_action_type =
.
Regards,
~Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.