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

Relation between FI and CO document number

Former Member
0 Likes
4,982

Hi

I have Fi document number from BSIS.

Now i need to get the corresponding CO document number from COEP.

I used to get the currency dates from COEP by passing OBjnr from PRPS and KOKRS.

But the performance is very bad since the key field CO document number is empty.

Please let me know how to get the CO document number from FI document number

Thanks

Hi

I have Fi document number from BSIS.

Now i need to get the corresponding CO document number from COEP.

I used to get the currency dates from COEP by passing OBjnr from PRPS and KOKRS.

But the performance is very bad since the key field CO document number is empty.

Please let me know how to get the CO document number from FI document number

Thanks

3 REPLIES 3
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,879

Check with function CO_DOCUMENT_RECORD. Cross check the documents available in table T_DOCUMENTS. For the oother way from CO document to Fi document try with FI_DOCUMENT_RECORD.

Read only

ThomasZloch
Active Contributor
0 Likes
1,879

You can find out how the SAP standard does it by SQL-tracing the FB03 FI document display and then "environment -> document environment -> accounting documents".

Please share your result.

Thomas

Read only

Former Member
0 Likes
1,879

Hi All,

To find link between FI and CO documents:

1) Go to "BKPF-AWKEY" in table BKPF ( FI document header   -> Reference key and AUAK )

     From here you get a reference document number.

2) Now for field name "REFBN" in table "COBK" you will get the CO document number in field   

    "COBK-BELNR"

<Reward request removed by moderator>

Thanks

Mahendra Joshi

Message was edited by: Vinod Kumar