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

Which table to query for reversal document created using fb60.

former_member224405
Participant
0 Likes
2,648

hi i need to build a query to fetch the details for the document which i reveresed using fb60 .

i need to fetch the details of the document reversed i need lifnr also hence suggest me the table where i need to query.

thanks,

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
2,129

If a reversal document is created you can query from BKPF itself. You can check the fields STBLG & STJAH for reversal doc details.

@Vinod: XRAGL is the clearing indicator & not reversal doc indicator. I hope you understand the difference between clearing & reversal of an a/c'ing doc.

Edited by: Suhas Saha on Apr 27, 2010 5:39 PM

hi i need to build a query to fetch the details for the document which i reveresed using fb60 .

i need to fetch the details of the document reversed i need lifnr also hence suggest me the table where i need to query.

thanks,

7 REPLIES 7
Read only

Former Member
0 Likes
2,129

Check the field XRAGL in tables BSAK & BSIK.

Regards

Vinod

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
2,130

If a reversal document is created you can query from BKPF itself. You can check the fields STBLG & STJAH for reversal doc details.

@Vinod: XRAGL is the clearing indicator & not reversal doc indicator. I hope you understand the difference between clearing & reversal of an a/c'ing doc.

Edited by: Suhas Saha on Apr 27, 2010 5:39 PM

Read only

0 Likes
2,129

Thanks vinodh,

i have the data required in BKPF i need to filter it by the condition containing lifnr.

SELECT lifnr

xblnr

bldat

FROM bkpf

INTO TABLE i_reversal2

FOR ALL ENTRIES IN i_an_ven

WHERE lifnr = i_an_ven-lifnr

AND cpudt >= date_in

AND cputm >= time_in

AND stblg <> ' '.

but bkpf doesnot contain stblg hence i m facing problem.

thanks.

Read only

brad_bohn
Active Contributor
0 Likes
2,129

No, you have a syntax error in your SELECT statement. STBLG is the correct field.

Read only

0 Likes
2,129

it is acctually like this.

SELECT lifnr

xblnr

bldat

FROM bsik

INTO TABLE i_reversal2

FOR ALL ENTRIES IN i_an_ven

WHERE lifnr = i_an_ven-lifnr

AND cpudt >= date_in

AND cputm >= time_in

AND stblg <> ' '.

and no field called stblg.

thanks,

Read only

Former Member
0 Likes
2,129

From BSIK (and BSAK if needed), you use the SELECT you have to get all documents for your vendor number(s). Using the document numbers from BSIK, SELECT from BKPF where STBLG is not initial.

Rob

Read only

Former Member
0 Likes
2,129

hi,

Check the table BSEG.