Skip to Content
0

Change filter value

Jan 09, 2017 at 12:04 PM

37

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Shailendra Karada Jan 09, 2017 at 01:46 PM
0

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 = '____.__.__.__.__.__'.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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

0