0% found this document useful (0 votes)
282 views22 pages

A Step by Step Guide For Invoicing Extraction (FI-... - SAP Community

Uploaded by

ARPITA BISWAS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
282 views22 pages

A Step by Step Guide For Invoicing Extraction (FI-... - SAP Community

Uploaded by

ARPITA BISWAS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 22

2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-...

- SAP Community

Community

SAP Community  Products and Technology  Technology  Technology Blogs by Members

 A step by step guide for Invoicing Extraction (FI-...

Technology Blogs by Members


Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP
products, technology, and events. Get in the mix!

All community  What are you looking for today?

A step by step guide for Invoicing Extraction (FI-CA)

Former Member


‎04-30-2014 6:25 AM

 25 Kudos

This document will guide through the steps to implement for extraction of invoice in FI-CA.

Introduction to FI-CA flow

There are 3 main areas in FI-CA, Invoicing, Posting and Payment. Below is a small diagram
illustrating the overall data flow of the SD & FI-CA, FI-CO.

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 1/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

Explanation above illustration:

After SD billing has taken into place then the document created is Invoice. When Invoice is saved
at the same time Posting document is also generated. Invoice is related to AR accounting where
as Posting is related to GL Accounting.

Then afterwards when customer does the payment then Payment document is generated when
payment is done via payment run or payment transaction (FPCJ, Cash journal, T-code).

BW Part:

As highlighted in red box in the above screen, I will go through extractors which are used for FI-
CA data extraction.

Below are the extractors for each area:

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 2/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

Invoice – 0FC_INVDOC_00 (FICA Extraction of Invoicing Document Data)

Posting - 0FC_BP_ITEMS (FI-CA Business Partner Items) or 0FC_CI_01 (FICA Cleared Items
for Interval) or 0FC_OP_01 (FI-CA Open Items at Key Date)

Payment - 0FC_PAY (Payments)

Invoice Extraction (FI-CA)

Below are the brief steps for Invoicing Extraction:

a. Datasource name has to be maintained in each invoicing processes (step1)

b. Required invoice source document category and invoice source item category in the custom
FM.

c. The reconciliation key should be always closed.

Without satisfying any of the above conditions datasource cannot pull data for that particular
invoicing process.

STEPS

There are few major steps which have to be carried out in source system before we extract data
into BW.

Step 1> Maintain Datasource field in each invoicing processes in SPRO (IMG Customization) in

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 3/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

the below path

SPRO-->Financial Management (New) -->Contract Accounts Receivable and Payable--


>Integration-->Invoicing in Contract Accounts Receivable and Payable-->Invoicing-->Invoicing
processes

Below is the little introduction from help.sap.com on event 2710

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 4/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

Step 2> SPRO-->Financial Management (New) -->Contract Accounts Receivable and


PayableàProgram EnhancementsàDefine Customer-Specific Function Modules

Copy the sample FM given by SAP “FKK_SAMPLE_2710” and make changes as per your
requirement for example to pull different type of invoice source document category and invoice
source item category (maintained in DFKKINVDOC_I table).

Even though if datasource is maintained in SPRO in each invoicing processes (look in Step 1)
these changes in the custom FM can impact in extraction of data to BW.

For EX: I’ve added the below code in the custom FM “Y_BIFKK_SAMPLE_2710” to extract
“C1” Collective invoices.

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 5/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

Step 3> Run the t-code “FKKINV_BW_MON” to check the relevant documents which are ready
to extract into BW.

In the above screen lock symbol beside RECONCIL. KEY is OPEN those are not posted into
BW.

For EX: Scenario 1 take the below record:

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 6/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

As per SAP standard invoicing process “C1” is not pulled into BW. But after I added my code in
custom FM and maintained this custom FM in EVENT 2710 then this “C1” invoice document is
pulled into BW.

Another condition for extraction reconciliation key is to be closed.

After the simulation, log will show whether the documents are able to pull into bw or any issues

Scenario 2 take the below record:

The above record shouldn’t be pulled as the reconciliation key is not closed.

After simulation:

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 7/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

Step 4> Go to t-code “FKKINV_BW_MA” to run the extraction job to DELTA tables (like
MCEX jobs in LIS).

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 8/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

Look for completed status:

In RSA7:

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 9/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

Step 5>

If you are loading for the first time then run an Infopackage with option "INIT with DATA". After
the run is successfully you won't get any record but a system record for the datasource.

Then you have run the delta infopackage to get the data into BW.

Run DELTA infopackage in BW to extract those delta invoice documents and look for the
invoicing processes in PSA.

After my test changes in custom FM and closing reconciliation key, I could able to pull “C1” and
“F4”.

The above detailed steps will go through detailed extraction of Invoice.

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 10/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

Please find the below help.sap.com links for more information

Update of Invoicing Data to SAP NetWeaver BW - Integration with Other Components and
Products - SAP ...

Kindly provide your valuable feedback.

Other documents from my knowledge base:

Scheduling FI-CA related Delta Extraction

Triggering Process chain after completion of ECC Delta Extraction Job

Golden rules/Tips & Tricks for BW/BI Designing

Automation of the Data Load from SAP R/3 to BI

Design Solutions for BI/BOBJ Reporting (Part 1)

SAP Managed Tags:

BW (SAP Business Warehouse), SAP Contract Accounts Receivable and Payable

Tags:

business warehouse bw extraction Data Warehouse extraction in sap bi

fi-ca fi-cax invoice extraction invoicing

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 11/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

13 Comments

Former Member


‎04-30-2014 2:58 PM

 0 Kudos

Dear All,

Please provide your valuable inputs/comments for betterment of this document.

If you like this document please give rating.

Thanks a ton in advance!

Warm Regards,

Ravi Kanth

former_member183113
Active Participant

‎05-01-2014 8:59 AM

 0 Kudos

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 12/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

Hi Ravi.....thnkx for the detailed explanation...really very useful doc.....keep it up plz..

Former Member


‎05-02-2014 6:40 AM

 0 Kudos

Nice one Ravi.. Informative

former_member182465
Active Participant

‎05-02-2014 7:35 AM

 0 Kudos

Ravikanth very nicely done. keep it up. Thanks for your patience in making this
document.

aparnami
Participant

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 13/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community
‎05-02-2014 4:14 PM

 0 Kudos

Hi Ravikanth,

Thanks for document.

Very informative document, nicely explain.

Thanks,

Arpan

Former Member


‎05-02-2014 6:27 PM

 0 Kudos

Thank you one and all!!

Former Member


‎05-05-2014 8:22 AM

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 14/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

 0 Kudos

Ravikanth,

Very detailed & informative document.

Thanks,

Sukadev

Former Member


‎05-05-2014 9:52 AM

 0 Kudos

Thank you Ravi, It is very nice document and Informative

Former Member


‎05-07-2014 8:50 AM

 0 Kudos

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 15/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

Anna,

As ppl set it's a detailed information, but didn't understand why didn't u start earlier.

The few blogs done by you are exceptionally good.

Once again thx for those

Former Member


‎05-07-2014 9:40 AM

 0 Kudos

Thanks for the Doc Ravi

Former Member


‎05-08-2014 3:52 AM

 0 Kudos

Ravi,

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 16/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

Very detailed document. Thank you

Regards/Gouda

Former Member


‎05-09-2014 5:03 PM

 0 Kudos

Great work Ravi.

former_member189155
Explorer

‎01-17-2017 6:22 PM

 0 Kudos

Great info Ravi! Thanks a lot!

Checking the user's requirements, I need to extract invoiced and simulated records
created by the
invoicing process.
I found a restriction into the event 2710 function module and I comment that line, as
follows:

* CHECK i_invdoc-invdoc_h-invoiced = 'X'.

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 17/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

MOVE-CORRESPONDING i_invdoc-invdoc_h TO ls_extract.


ls_extract-invdoc_crdate = i_invdoc-invdoc_h-crdate.
ls_extract-invdoc_doctype = i_invdoc-invdoc_h-doctype.
IF NOT i_invdoc-invdoc_h-reverseddoc IS INITIAL.
ls_extract-xreversal = 'X'.
ENDIF.

However, when the user executes a simulation process to create simulated records,
those records don't be created into the table DFKKINV_BWTRIG.

Please, any help with this? How can I make the simulation records be created in the
table DFKKINV_BWTRIG?

Thanks in advance!
Andrea.

 You must be a registered user to add a comment. If you've already registered,


sign in. Otherwise, register and sign in.

Comment

Labels In This Area


ABAP 10 ABAP CDS Views - BW Extraction 1

ABAP CDS Views - CDC (Change Data Capture) 1 ABAP Development 2

ABAP Platform Trial 1 ABAP Programming 1 adapter modules 1

Adobe Document Services 1 ADS 1 ADS Config 1 ADS with ABAP 1

ADS with Java 1 ADT 1 Advance Shipping and Receiving 1

Advanced Event Mesh 2 AEM 1 AI 3 AIML 8 annotations 1

API and Integration 1 Application Architecture 1 Application Development 1

Application Development for SAP HANA Cloud 1

Applications and Business Processes (AP) 1 ASE 1 ASR 2 ASUG 1

Authorisations 1 Automating Processes 1 Automation 1 AWS 1 Bank 1

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 18/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

basis 1 Basis Monitoring & Tcodes with Key notes 1 Batch Management 1

Best Practice 1 BPC 1 BPC LIVE 1 BTP 3 Business Architecture 1

Business Partner 12 Business Partner Master Data 10 CA 1 calculation view 1

Catalyst for Efficiency: Revolutionizing SAP Integration Suite with Artificial Intelligence (AI… 1

CDQ 12 Certificates 1 ChatGPT 1 CL_SALV_TABLE 1 Cloud Extensibility 1

Cloud Foundry 2 Cloud Integration 4 Cloud Platform Integration 1

Compound Employee API 1 CSI 1 Data Aging 1 Data Archiving 1

Data Back-up 1 Data Governance 5 Data Integration 1 Data Quality 12

Data Quality Management 12 Data Synchronization 1 Data Value 8 Debugging 2

Delta Integrations 1 Developer extensibility 1 DQM 1 ELA 1

Employee Information 1 Enterprise Architecture 1 Event Dates 1 Event Mesh 2

Event Reason 1 EventBasedIntegration 1 EWM 1 EWM Outbound configuration 1

EWM-TM-Integration 1 Existing Event Changes 1 Expand 1 Fiori 9

Fiori Elements 1 Fiori SAPUI5 11 Full Stack 8 Funds Management 1

Getting Started 1 GitHub 8 Grants Management 1 GTP 1 HANA 3

HANA XS Advanced 1 Historical Events 1 home labs 1 HowTo 1 html5 8

Implementation 1 input parameter 1 Integration 1 Integration Architecture 1

Integration Suite 1

Related Content
SAP Signavio - Process Insights: SAP Datasphere and SAP Analytics Cloud content
"out of the box"
in Technology Blogs by SAP yesterday

SAP Inside Track Bangalore 2024: Generative AI Extravaganza


in Technology Blogs by SAP a week ago

Build an Azure Data Factory Pipeline with the ODBC Driver for ABAP
in Technology Blogs by SAP a week ago

Top Picks: Innovations Highlights from SAP Business Technology Platform (Q4/2023)

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 19/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community
in Technology Blogs by SAP a week ago

SAP Datasphere replication with Change Data Capture on a custom SAP S4 CDS
view.
in Technology Blogs by SAP a week ago

Popular Blog Posts

SAP PI for Beginners

former_member200339
Participant

 686091  151  375

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 20/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

ABAP 7.40 Quick Reference

jeffrey_towell2
Explorer

 1015759  72  320

Fiori: technical installation and configuration of one app from A - Z

mstitsel
Active Participant

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 21/22
2/29/24, 1:30 AM A step by step guide for Invoicing Extraction (FI-... - SAP Community

 193365  131  298


Top Kudoed Authors

maharana  7
Follow

rajarajeswari_kaliyaperum  4

Privacy Terms of Use


KazuhikoTakata  4

Copyright Legal Disclosure

MartinRaepple  4
Trademark Newsletter

frank_kraft
Support Cookie Preferences  4

https://community.sap.com/t5/technology-blogs-by-members/a-step-by-step-guide-for-invoicing-extraction-fi-ca/ba-p/13247704 22/22

You might also like