cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle abstract classes in webdynpro

Former Member
0 Kudos

Hi,

How to handle abstract classes in webdynpro.

I want to use the method AGGR_MOVE_DOWN of abstract class CL_WDR_P13N_BASE in webdynpro.

Best Regards

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

Create a sub class for CL_WDR_P13N_BASE and use it.

Procedure:

Create a Z class in SE24.

Go to properties tab and enter CL_WDR_P13N_BASE as super class.

Also, you can check this class CL_WDR_P13N_DT and CL_WDR_P13N_RT which are sub class of CL_WDR_P13N_BASE. May be this is what you are looking for.  You can simple call the method AGGR_MOVE_DOWN of CL_WDR_P13N_RT/CL_WDR_P13N_DT instead of creating a Z sub class.

Hope this helps u.,

Regards,

Kiran

Former Member
0 Kudos

Hi,

Thanks for your prompt response.

My issue with the abstract class is solved by using CL_WDR_P13N_DT but how did

you come to know that it is a subclass of CL_WDR_P13N_BASE.

Now I have a table binded with child node 'RESB_TAB' with visible rows 10.

I want to provide a separate button for scrolling down the table and am using the follwing code:

******************************************************************************* 

DATA nd_resb_tab TYPE REF TO if_wd_context_node.

 

Data vn type ref to CL_WDR_P13N_DT.

 

nd_resb_tab = wd_context->get_child_node( name = 'RESB_TAB' ).

create object vn.

CALL METHOD VN->AGGR_MOVE_DOWN

EXPORTING

VISIBLE_NODE = nd_resb_tab.

***************************************************************

I am getting the error

Subnode COMPONENTCONTROLLER.1.RESB_TAB.INDEXING_NODE does not exist

Can you look into this pls.

Regards

Answers (0)