Skip to Content
avatar image
Former Member

Change filter value

Hi all

I want to filter data from column in ALV table which are shown in format "DD.MM.YYYY HH.MM.SS". But in table are written in format "YYYYMMDDHHMMSS", so when I write value to the filter by format which is shown in ALV column ("DD.MM.YYYY HH.MM.SS") I get error message because the entered value isn't in correct format.
My question is how I can read values from filter and modified them ?
I tried to catch it and modify by event handler (ON_STD_FUNCTION_AFTE), but before this event are called some standard function which let in filter only these rules which are available by data type of filtered column.
Thank you in advance.

Best regards

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jan 09, 2017 at 01:46 PM

    Hello Juraj,

    Insted of converting "YYYYMMDDHHMMSS" into "DD.MM.YYYY HH.MM.SS" you should use EDIT_MASK in field catalog. It will automatically convert your field in desired format also in filter it will be in YYYYMMDDHHMMSS format only.

    WA_FCAT-edit_mask = '____.__.__.__.__.__'.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you very mutch Shailendra Karada.
      However the issue was resolved by enhancement of alv filter.