cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to change DTP filters through code

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member38750
Discoverer
0 Kudos

Hi,

I had the same problem that you are facing, in my case i was populating the select-options of the filter with wrong field name.

Check your code where you populate the table g_t_seltab.

probably the seltab-field does not exist... put a break point at class CL_RSBK_DTP_V mehtod CHECK line 100

in order to see the field names of table o_r_filter->n_t_selfields.

Edited by: StathisK on Feb 13, 2012 2:49 PM