cancel
Showing results for 
Search instead for 
Did you mean: 

Back button after fire transaction

Former Member
0 Kudos

Iam displaying WDA component1 from WDA component2. And i have a button in component1 which fires a standard CRM transation. After displaying the standard CRM transaction when i press the back button iam unable to see the component1 view instead the control takes me to the component2 view.

Can someone provide me a solution so that the control comes back to the immediate screen i.e. component1 view.

Thanks,

Suri

Accepted Solutions (0)

Answers (3)

Answers (3)

shwetars
Advisor
Advisor
0 Kudos

Hi Suri,

Looks like there is an error in the outbound plug you are firing in the back button action handler. It could be a small mistake, just check your action handler once again or paste the code of your handler here and we will help you find the error.

the code you have pasted below is for call to the CRM transaction, it looks perfectly fine, since your transaction also is opening up correctly, there should be no probs with that.

Regards,

Shweta

Former Member
0 Kudos

Hi Shwetha,

I press the back button on the standard CRM transaction menu bar. i havent created a back button to trigger the back functionality.

Thanks & Regards,

shyam

Former Member
0 Kudos

Do reverse mapping of the component controller context.

Nirad

Former Member
0 Kudos

Hi Nirad,

Could you please elaborate your statement. what do u mean by reverse context mapping?

Former Member
0 Kudos

can you please the paste code for your back button

Former Member
0 Kudos

DATA l_componentcontroller TYPE REF TO ig_componentcontroller .

DATA l_api_componentcontroller TYPE REF TO if_wd_component.

DATA l_sapgui_manager TYPE REF TO cl_wdr_sapgui_integration.

DATA item_tcode TYPE tstct-tcode.

item_tcode = 'ZUT_ER_RT_TCODE'. "'CRMD_BUS2000126'.

l_componentcontroller = wd_this->get_componentcontroller_ctr( ).

l_api_componentcontroller = l_componentcontroller->wd_get_api( ).

l_sapgui_manager = l_api_componentcontroller->get_sapgui_manager( ).

EXPORT activity_id FROM stru_worklist TO MEMORY ID 'ACT'.

IF l_sapgui_manager IS NOT INITIAL.

l_sapgui_manager->fire_start_transaction( transaction = item_tcode ).

ENDIF.

Former Member
0 Kudos

Donot conside conside the export statement in the above code. i was just trying something else which u might help me with once if you find me a solution for the current one.

Thanks,

Suri