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

Report

Former Member
0 Likes
458

Hi,

I have selection screen with GL account range (BSEG-HKONT),Company code (BKPF-BUKRS),posting date range (BKPF-BUDAT).

Now,I have to find all the documents (Belnr) from BKPF that fall within the posting date range (bkpf-budat)

With regards

4 REPLIES 4
Read only

S0025444845
Active Participant
0 Likes
439

hi,

Use

select * from bkpf into corresponding fields of it_bkpf

where burks in s_burks and

budat in s_budat.

regards,

sudha

Read only

Former Member
0 Likes
439

hi,

do this way ...


start-of-selection.

select belnr from bkpf into table it_bkpf 
  where budat in s_budat.
if sy-subrc = 0.

endif. 

Read only

Former Member
0 Likes
439

Hi

Use this coding

start-of-selection

select belnr from bkpf into table it_bkpf

where budat in s_budat.

if sy-subrc = 0.

endif.

Reward Me Points

By

Pari

Read only

Former Member
0 Likes
439

SELECT * FROM bkpf WHERE bldat IN m_date.

SELECT SINGLE * FROM bseg WHERE belnr = bkpf-belnr.

IF sy-subrc = 0.

MOVE-CORRESPONDING bkpf TO itab.

MOVE-CORRESPONDING bseg TO itab.

APPEND itab.

CLEAR itab.

ENDIF.

ENDSELECT.

reward if useful