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

SD Billing Document to FI document Link

Former Member
0 Likes
5,543

Given an SD Billing Document number, what tables do I need to read to get to the subsequent FI documents?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,901

This should help: [Quickly Retrieving FI document Data from BSEG|/people/rob.burbank/blog/2007/11/12/quickly-retrieving-fi-document-data-from-bseg]

Rob

Given an SD Billing Document number, what tables do I need to read to get to the subsequent FI documents?

9 REPLIES 9
Read only

Former Member
0 Likes
3,902

This should help: [Quickly Retrieving FI document Data from BSEG|/people/rob.burbank/blog/2007/11/12/quickly-retrieving-fi-document-data-from-bseg]

Rob

Read only

0 Likes
3,901

Rob,

When I look at a doc flow of a billing document, it shows the accounting document. That's what I need to know; that link that shows "previous document" and then the "subsequent document". Table VBFA does not go into the FI world. It only shows doc flows within SD.

Read only

0 Likes
3,901

Check the function module RV_ORDER_FLOW_INFORMATION. The Row with VBTYP_N = '+' and VBTYP_V = 'M' in the output internal table structure VBFA_TAB will have the accounting document information related to Billing document.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
3,901

Hello Wardell,

You'll have to use the billing document number & query in BSEG with BSEG-AWKEY = Billing Document Number.

BR,

Suhas

Read only

0 Likes
3,901

Suhas, its BKPF-AWKEY.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
3,901

>

> Suhas, its BKPF-AWKEY.

Hello Vinod,

Silly typo & thanks for correcting me

@OP: You can also use an additional filter while selecting the data BKPF-GLVOR = 'SD00'.

BR,

Suhas

Read only

0 Likes
3,901

I believe everything is there in the blog.

Rob

Read only

Former Member
0 Likes
3,901

Hi

Use table VBFA. Use appropriate values of VBTP_N and VBTYP_V fields.

Regards

Sachin

Read only

0 Likes
3,901

Table VBFA does not show the doc flow out of SD. It stops at the Billing Doc. I need the link over to FI.