Application Development and Automation 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: 
Read only

how to code

Former Member
0 Likes
463

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.

2 REPLIES 2
Read only

Former Member
0 Likes
406

select * from vbak into table itab where auart = 'ZJF' or auart = 'ZJR' and audat in date_rannge.

reward if useful

Read only

Former Member
0 Likes
406

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