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

any functional module to get financial document based on billing document

Former Member
0 Likes
1,102

hi all,

do we have any functional module to get accounting document (bseg-BELNR) based on billing document (bseg-VBELN)?

i have a requirement to retrieve the clearing document (bseg-augcp) & date(bseg-augdt) from BSEG with billing document.

billing document is not a key, so i would like to retrieve the accounting document from any function module and use that to get clearing document (bseg-augcp) & date(bseg-augdt).

thanks.

hi all,

do we have any functional module to get accounting document (bseg-BELNR) based on billing document (bseg-VBELN)?

i have a requirement to retrieve the clearing document (bseg-augcp) & date(bseg-augdt) from BSEG with billing document.

billing document is not a key, so i would like to retrieve the accounting document from any function module and use that to get clearing document (bseg-augcp) & date(bseg-augdt).

thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
662
Read only

Former Member
0 Likes
662

hi,

use this RV_INVOICE_DOCUMENT_REAd

Read only

Former Member
0 Likes
662

hi all,

i got other option to get this....thanks.

select single * from bkpf

where bukrs = <data>-werks

and AWTYP = 'VBRK'

and AWKEY = billing doc.

if sy-subrc EQ 0.

select single * from bseg

where bukrs = bkpf-bukrs

and belnr = bkpf-belnr

and gjahr = bkpf-gjahr.

if sy-subrc EQ 0.

<data>-AUGDT = bseg-augdt.

<data>-AUGBL = bseg-augbl.

endif.