cancel
Showing results for 
Search instead for 
Did you mean: 

problem with the routine in DTP filter

Former Member
0 Kudos

Hi experts,

i am faced a problem in the routine of filter in the DTP.

I am trying to write a small code in the routine of the filter to the fiscyear, but i see the following generated code, wenn

i create the routine:

  • TABLES: ...

  • DATA: ...

$$ end of global - insert your declaration only before this line -

  • -------------------------------------------------------------------

  • Fieldname =

  • data type =

  • length = 000000

  • -------------------------------------------------------------------

form compute_

So as you see there is no generated field in the part of

Fieldname =

and also

form compute_

so that i am not able to start to write the routine.

Has anyone an idea what the problem here is?

Thank you all in advance.

Best Regards,

Ali

Accepted Solutions (1)

Accepted Solutions (1)

ssurampally
Active Contributor
0 Kudos

Just click on save buttion go back and come into routine again, field name will be generated.

this is internal table you need to fill l_t_range

  • passing the current year to calander year

v_year = sy-datum(4).

l_t_range-fieldname = 'CALYEAR'.

l_t_range-low = v_year.

l_t_range-sign = 'I'.

l_t_range-option = 'EQ.

and then system given code will be there with index check.

Former Member
0 Kudos

Hello Sreekanth S,

thanks for your prompt reply. That was exactly the answer of my question. It works now.

Thank you very very much.

Best Regards,

Ali

Answers (3)

Answers (3)

Former Member
0 Kudos

You can use this line as the fieldname that you need is given in a system-variable.

l_t_range-fieldname = i_fieldnm.

Former Member
0 Kudos

Hi,

Please refer this thread. Should be useful.

Former Member
0 Kudos

May be ..u haven't mapped the field(for which u are trying to write the code ) in the transformation.