Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

outputs format in ALV grid

Former Member
0 Kudos

Hi,

I have problem with data mask in ALV grid.

In itab I have data type TIMS, but in grid I want to see instad 15:00:00 just 15:00 and instead 00:00:00 just blank cell.

I tried to solve it using field catalog with value:

ws_field-no_zero = 'X' it works ok, I get blank cells instead zeros but still have 15:00:00 format.

When I added:

ws_field-EDIT_MASK = '__:__'. I see 15:00 but no_zero stoped working ( instead blank fields I see 00:00).

How to connect this two properties?

Joanna.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi, Joanna.

I think you have only one way - add characater field into your itab where you need write yout TIMS data using mask '__:__' or write space for 00:00:00. And display that field by ALV instead time-field.

PS: Also you can try create own conversion exit and placed it into EDIT_MASK.

2 REPLIES 2

Former Member
0 Kudos

Hi, Joanna.

I think you have only one way - add characater field into your itab where you need write yout TIMS data using mask '__:__' or write space for 00:00:00. And display that field by ALV instead time-field.

PS: Also you can try create own conversion exit and placed it into EDIT_MASK.

0 Kudos

Thanks Andrey I wrote my own covertion exits and it solved my problem.

Joanna