2010 Apr 27 12:27 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,
2010 Apr 27 1:06 PM
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
2010 Apr 27 12:40 PM
2010 Apr 27 1:06 PM
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
2010 Apr 27 1:18 PM
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.
2010 Apr 27 1:56 PM
No, you have a syntax error in your SELECT statement. STBLG is the correct field.
2010 Apr 27 3:15 PM
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,
2010 Apr 27 3:34 PM
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
2010 Apr 27 1:09 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |