cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with navigation Plugs

apachon
Participant
0 Kudos

We have a hierarchical application in which we communicate

through the Windows components.

For the extension of the project we have created a new component

(ZCRM_TELEFONIA), which call from the central component

(ZGIIM_TMP4) or father, communication between the components perform

through plugs, to communicate between two components.

In this case we have the components to communicate ZCRM_TELEFONIA

with any component, we do so as follows, from

outplungplug launched a sight to communicate with the window

same component, which receives a inboundplug. This communication

if done properly run of form ZCRM_TELEFONIA

independent. But if we run from it and ZGIIM_TMP4 call

ZCRM_TELEFONIA this communication does not work, so we can not

communicate with other components.

Does anyone have any idea?

thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Pramanan
Active Participant
0 Kudos

hi,

I think you have created application for ZCRM_TELEFONIA component. if so just remove that application and activate the component. Then use ZCRM_TELEFONIA as used component in ZGIIM_TMP4(parent component).

It will work fine.If you think i have not clearly understood your problem please inform me.

apachon
Participant
0 Kudos

Thank you very much, but I do not understand well the answer, "if so just remove that application and activate the component"

The two components are used in each other, ZCRM_TELEFONIA used ZGIIM_TMP4 and ZGIIM_TMP4 used ZCRM_TELEFONIA.

A greeting and thank you very much

Pramanan
Active Participant
0 Kudos

hi,

To which component you have created Application.

for ZCRM_TELEFONIA

or

ZGIIM_TMP4

if you created application for both components independently , then keep only one application and remove the other.Exceute the component through that application so that you can navigate from parent component to child component. If the child component is also having application , it doesn't navigate from parent to child component.

Edited by: Ramanan Panchabakesan on Sep 2, 2008 11:13 AM

Former Member
0 Kudos

You have two components and you want to call from one view of one component to the other view of other component.

then use exit plug of first component window.

write the code to fireplug when ever you want to call the second component.

check this code.

1.Create a exit plug for window.

window->outboundplugs->give plug type(exit)

2.write this code to fire the plug

  • Data Declarations

DATA:

lr_ref TYPE REF TO ig_ztest,

str TYPE string.

**Get the URL of the Application

CALL METHOD cl_wd_utilities=>construct_wd_url

EXPORTING

application_name = ztest_app2

IMPORTING

out_absolute_url = str.

**Reference of Window

lr_ref = wd_this->get_ztest_ctr( ).

    • Fire Exit Plug

lr_ref->fire_go_exit_plg(

url = str

).

This will solve your problem.

also check this WIki

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/snipppets%2b%2bweb%2bdynpro%2babap-%2bho...

apachon
Participant
0 Kudos

The main component is ZGIIM_TMP4, ZGIIM_TMP4 calls ZCRM_TELEFONIA.

METHOD onactionabrir_llamada_salien .

  DATA lo_window_manager TYPE REF TO if_wd_window_manager.
  DATA lo_api_component  TYPE REF TO if_wd_component.
  DATA lo_window         TYPE REF TO if_wd_window.

  lo_api_component  = wd_comp_controller->wd_get_api( ).
  lo_window_manager = lo_api_component->get_window_manager( ).
  IF lo_window IS INITIAL.
    lo_window         = lo_window_manager->create_window_for_cmp_usage(
                       interface_view_name    = 'ZCRM_TELEFONIA'
                       component_usage_name   = 'TELEFONIA'
                       title                  = 'Nueva llamada saliente'
*                  close_in_any_case      = abap_true
                       message_display_mode   = if_wd_window=>co_msg_display_mode_selected
                       ).
  ENDIF.
  lo_window->open( ).

ENDMETHOD.

apachon
Participant
0 Kudos

Hi,

Thanks for the information, but in this case is invalid because the component that we need to be an open Dialog Boxes

Thanks

Answers (2)

Answers (2)

apachon
Participant
0 Kudos

Hi,

Thanks to all at the end he opted to implement it with events.

Thank you

Former Member
0 Kudos

Hi,

Can u explain clearly what to you want to do.. Do u want to communicate between two independant component windows through the plugs ??

apachon
Participant
0 Kudos

The problem is that I have a component that call from A to B component as follows,

method ONACTIONABRIR_LLAMADA_SALIEN .

DATA lo_window_manager TYPE REF TO if_wd_window_manager.

DATA lo_api_component TYPE REF TO if_wd_component.

DATA lo_window TYPE REF TO if_wd_window.

lo_api_component = wd_comp_controller->wd_get_api( ).

lo_window_manager = lo_api_component->get_window_manager( ).

lo_window = lo_window_manager->create_window_for_cmp_usage(

interface_view_name = 'WINDOW_NAME'

component_usage_name = 'A'

title = 'Nueva llamada saliente'

  • close_in_any_case = abap_true

message_display_mode = if_wd_window=>co_msg_display_mode_selected

).

lo_window->open( ).

endmethod.

And after making the call, once open component A, does not work that I have created a plug from a view of this component in the same window.

Thanks in advance