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

Fetching reversal document Created using FB60

former_member224405
Participant
0 Likes
528

hi All,

I have created an invoice using FB60 and reversed the same which is getting stored in RBKP table i have an existing code which returns the invoice reversed using created using mir0 the select query is as below.

SELECT lifnr xblnr bldat cputm FROM rbkp INTO TABLE i_reversal

FOR ALL ENTRIES IN i_an_ven

WHERE lifnr = i_an_ven-lifnr AND

bukrs = i_an_ven-bukrs AND

cpudt >= date_in AND

cputm >= time_in AND

stblg <> ' '.

I now want to fetch reverse document created using FB60 which is stored in table BKPF

Can any one let me know condition what i should apply to fetch the same.

OR the outline would be helpful

Thanks,

1 ACCEPTED SOLUTION
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
431

Check the field BSTAT = 'B' in BKPF.

1 REPLY 1
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
432

Check the field BSTAT = 'B' in BKPF.