2008 Apr 24 8:37 AM
Read VBAK and filter all the sales documents where VBAK - AUART is ZJE or ZJR and VBAK AUDAT in the first and last dates of the periods detrmined from the above step.
2008 Apr 24 8:50 AM
select * from vbak into table itab where auart = 'ZJF' or auart = 'ZJR' and audat in date_rannge.
reward if useful
2008 Apr 24 9:00 AM
Hi,
slection-options: so_date for erdat.
suppose we entered 11012008 to 01022008.
v_low(8) = so_date-low. as it will take like 20080111
v_low+6(2) = '01'.
v_high(8) = so_date-high.
v_high+6(2) = '01'.
CALL FUNCTION 'BKK_GET_MONTH_LASTDAY'
EXPORTING
i_date = v_high
IMPORTING
e_date = v_high.
this function module will give u the last date of a month.as we know begining date of month..
try it..
regards,
sg