cancel
Showing results for 
Search instead for 
Did you mean: 

web dynpro qustion

Former Member
0 Kudos

hallow

im learn web dynpro and i wont to call to metod cl_wdt_flight_model=>read_sflight

how i call it i try with code wizard but i cant sucsess,

the code wizard is the only way to call to metod ?

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi shnya........

what is the error you are getting while using code wizard. because code wizard works perfect.

-


regards,

alex b justin

Former Member
0 Kudos

Hello!

You do not really need the code wizard to call the method.

You can simply write

call method cl_wdt_flight_model=>read_sflight

exporting

....

importing

...

.

However, it would obviously be simpler to use the code wizard. To do so, when you are at the place where you would like to place the call, click on 'PATTERN' button next to WD code wizard button, select ABAP Object Patterns, select Class/Interface, write 'CL_WDT_FLIGHT_MODEL' in Class/Interface, write 'READ_SFLIGHT' in Method (leave Instance blank) and click ok.

Regards,

Neha

<i><b>PS: Reward if helpful</b></i>

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

you can call the class method directly as well.

Use the PATERN otherwise.

You can give the name of the class and its instance and pick a method from the F4 help of the class.This will generate the signture of the method you want to call.

Former Member
0 Kudos

Hi Shyna,

The code wizard is only to read context nodes, attributes, methods within the webdynpro component. Here you are trying to read an external class and you need to use the <b>pattern </b>feature. Not the code wizard.

Regards

Nithya