cancel
Showing results for 
Search instead for 
Did you mean: 

When i use parameters in outbound, how to get to the parameter in inbound.

Former Member
0 Kudos

Hi. Experts.

First, I'm one of those poor English skill people, so please understand.

I want to make program like 't-code : SE16 in SAP R/3' for self-study.

I have 3 views. (Input View, Search View, Result View).

Search View has 2 outbound plugs. (to_input_view, to_result_view).

TO_RESULT_VIEW has a 2 parameters in outbound.

- M_HANDLER type ref to IF_WD_SELECT_OPTIONS

- M_WD_SELECT_OPTIONS type ref to IWCI_WDR_SELECT_OPTIONS

But I don't know how to get to this parameter in Inbound of Result View.

When I run this application, the result is as follows.

"Access via 'NULL' object reference not possible."

Please help me.

Regards

kim.

Accepted Solutions (1)

Accepted Solutions (1)

Yashpal
Active Contributor
0 Kudos

Hi ,

Go to the inbound plug method and add the parameters with the same name and data type in that , you will find add and delete button for that..

Regards

Yash

Former Member
0 Kudos

Thanks.

I did you said that 2 parameters were added in method.

(The method name is "HANDLEFROM_SEARCH_VIEW2" that is type of EVENT.)

and that view has already "M_HANDLER" & "M_WD_SELECT_OPTIONS" attributes.

When i was debugging, i couldn't check that method was running, too.

I don't know yet.

Can i check that parameters' value in the WDDOINIT method of result view?

Regards.

kim.

Edited by: yuntae kim on Apr 22, 2008 7:17 AM

Former Member
0 Kudos

Hi,

Your parameter values will get set only once the event handler method is called. They won't be set in the INIT method.

Put an external breakpoint in the event handler method. You should get into the debug mode when control reaches this method. (After the outbound plug gets fired).

Hope this helps.

Regards,

Wenonah

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Refer to example :

DEMO_SELOPT_CHECKBOX

view name: MAIN VIEW where we have parameters for outbound plug.

result view -method handlein where the outbound parameters are called

Former Member
0 Kudos

Hi,

In the inbound plug, define the parameters (same number) with the same name and type. Then in the window of the component, embed both the view, and create a navigation link between the two plugs.

Use the WDP wizard to generate the code for firing the outbound plug (to be on the safer side).

Hope this helps,

Wenonah

Former Member
0 Kudos

Thanks.

I did as you said.

ONACTIONCONTINUE method is as follows.

wd_this->fire_to_result_view_plg(

m_handler = wd_this->m_handler " ref to if_wd_select_options

m_wd_select_options = wd_this->m_wd_select_options " ref to iwci_wdr_select_options

).

but i don't know how to check the parameter in method of Result view.

Regards

kim.