cancel
Showing results for 
Search instead for 
Did you mean: 

how to to give a parameter from action to method?

Former Member
0 Kudos

I have an exporting parameter CALL_MODE.

call_mode EXPORTING C.

In the coding I declared it:

call_mode = 'I'.

The compiler throws an error: The obligatory paramete "call_mode" had no value assigned to it.

I thought i could easily export the parameter that way and get it in a method via importing? Am I wrong?

Thanks Ezachiael

Accepted Solutions (1)

Accepted Solutions (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi

where u r calling the method..

paste the code

Abhi

Former Member
0 Kudos

I simpley had to write the parameter in the calling

like wd_comp_controller->fill_liftab( PARAMETER ).

I just thought i can pass PARAMETER via exporting paramters in the header.

now i don't know when to use exporting parameters but thats not my problem now

thank you

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Hi

ok, you created a method fill_liftab in component controller.

you can very well import and export parameters, no issues with that.

to call the method use the code wizard in the tool bar.

Abhi

Answers (1)

Answers (1)

Former Member
0 Kudos

somebody understands my question?

i have onaction in a view. now i want simpley to send a parameter to a method.

i thougt with exporting the parameter and importing it its possible?

if its not clear what i want, please don't heasitate to ask...

thanks!