Application Development 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: 

Report

Former Member
0 Kudos

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

S0025444845
Active Participant
0 Kudos

hi,

Use

select * from bkpf into corresponding fields of it_bkpf

where burks in s_burks and

budat in s_budat.

regards,

sudha

Former Member
0 Kudos

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. 

Former Member
0 Kudos

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

Former Member
0 Kudos

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