4 weeks ago - last edited 3 weeks ago
Steps to reproduce:
Create an ABAP executable program with this code:
REPORT zdemo.
SELECT-OPTIONS s_time FOR sy-uzeit DEFAULT '000000' TO sy-uzeit.Run the program:
Sandra_Rossi_0-1761219402780.png
Clear the two fields:
Sandra_Rossi_1-1761219450304.png
Press Enter:
Sandra_Rossi_0-1761225499489.png
Sandra_Rossi_3-1761219563595.png
I would expect to have S_TIME[] empty (it means select any time).
Thanks.
Sandra
My system: ABAP 7.58 SP 1 (on-premises/private cloud)
4 weeks ago - last edited 4 weeks ago
I got this problem long time ago.
The system's reaction to the default conversion of the TIMS field can also generate this.
RaymondGiuseppi_0-1761220728544.pngRaymondGiuseppi_1-1761220850904.png
Usually I used a text field with a custom conversion-exit that handle initial text and text with only 0 and : in a different way.
4 weeks ago
I think it has always been a thing (though I never noticed it) because I checked our 7.55 system including a common standard transaction that I use and happens for both - must have something to do with conversion exits and that 00:00:00 is treated as the representation of space for time values.
Regards,
Ryan Crosby
4 weeks ago
4 weeks ago - last edited 4 weeks ago
I got this problem long time ago.
The system's reaction to the default conversion of the TIMS field can also generate this.
RaymondGiuseppi_0-1761220728544.pngRaymondGiuseppi_1-1761220850904.png
Usually I used a text field with a custom conversion-exit that handle initial text and text with only 0 and : in a different way.
4 weeks ago
I confirm, the solution with a custom conversion exit works.
Code here: Alternative to "SELECT-OPTIONS s_time FOR type_t_v... - SAP Community