Skip to Content
0
Former Member
Jan 24, 2012 at 07:48 AM

Unable to change DTP filters through code

191 Views

Hi,

I am trying to change filters and execute DTP through ABAP code. But the code is not able to change the filter conditions. As per the suggestion on thread - http://forums.sdn.sap.com/thread.jspa?threadID=1512430 , I have added code to deactivate the DTP. But now it is giving a short dump - MESSAGE_TYPE_X

Termination occurred in the ABAP program "CL_RSBK_DTP_V=================CP" -

in "CHECK".

The main program was "Z1BW_PCP_LOAD_0PACP_C02_TEST ".

In the source code you have the termination point in line 100

of the (Include) program "CL_RSBK_DTP_V=================CM017".

Code:

lcl_dtp = cl_rsbk_dtp=>factory( w_loc_dtp ).

lcl_dtp->if_rso_tlogo_maintain~deactivate( ).

lcl_filter = lcl_dtp->get_obj_ref_filter( ).

CALL METHOD lcl_filter->SET_SELTAB

EXPORTING

I_T_SELTAB = g_t_seltab.

Please suggest if anyone has worked on it.

Regards,

PD