Skip to Content

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

Date Range Selection

Dear friends,

How to select the record from BSEG table between Date range. Please give me the solution . Am also try to find the solution in SDN also.

select-options post_dt for bkpf-budat obligatory default sy-datum NO-EXTENSION.

select belnr budat from bkpf into corresponding fields of table it_head

where bukrs eq compcode

and gjahr eq year

and blart eq doctype

and budat in post_dt

order by belnr budat.

For this select query is working in perfect for single date only. But i want to select the date date range wise.


Saravanan R

Former Member
Former Member replied

Remove NO-EXTENSION from select query beacuse it will suppress the upper limit and it work just as parameter.

select-options post_dt for bkpf-budat obligatory default sy-datum.

Provide the upper and the lower value data from BSEG table will be fetched according to range.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question