Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Date Processing for Select-Option

Dear forumers,

I have a select-option element that takes in a range of PO Date.

The SELECT statement is as follows:-

select ebeln
       bedat
       ekorg
       ekgrp
       bukrs
from ekko
into corresponding fields of table gt_ekko
where bedat in s_p_date and   " s_p_date is a select-option for bedat
      ekorg in s_p_org and
      ekgrp in s_p_grp.

If valid low and high dates are inputted here, then there will be data correctly retrieved into the internal table gt_ekko.

However, if the low and high dates are equal, then there will be no data retrieved into the internal table gt_ekko at all.

How can I correct this? Please help. Thanks.

Additionally, is there an easier way to display this PO date (results) in an ALV list as the dd.mm.yyyy format instead of the yyyymmdd format?

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question