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

BDC Program for posting FI document

Former Member
0 Likes
1,641

Hi everyone!

Anyone out there already made a BDC program for posting FI documents with this concept:

  • User will upload a spreadsheet file with the line items per row

  • User will input which TCODE user will use for posting

  • BDC program will then post the document using the line items in the spreadsheet file

I need to make a BDC program with that concept but having a hard time to think of a good algorithm to make my program very flexible.

Thanks!

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
1,019

May be this way

Create a selection with 

Transaction code :  XXXX    (like FB50, FB50L, F-02)
Input File       :  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

According to transaction code in the you can control the flow of 
BDC transaction calling

otherwise use BAPI

BAPI_ACC_GL_POSTING_POST

aRs

2 REPLIES 2
Read only

former_member194669
Active Contributor
0 Likes
1,020

May be this way

Create a selection with 

Transaction code :  XXXX    (like FB50, FB50L, F-02)
Input File       :  XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

According to transaction code in the you can control the flow of 
BDC transaction calling

otherwise use BAPI

BAPI_ACC_GL_POSTING_POST

aRs

Read only

Former Member
0 Likes
1,019

you can use batch input program RFBIBL00 to pasrk document. Please check these links for more information.

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CAGTFADM/CAGTFADM-FI.pdf

http://help.sap.com/printdocu/core/print46b/en/data/en/pdf/CAGTFADM-FI.pdf

Have a processing routine defined for the specific Idocs that come into SAP.

So, as and when the idocs are in, the routine triggers and you can codeappropriately in the routine for parking the idocs.

Check these threads

You can use message type INVOIC, IDoc Type INVOIC01/02 with process code INVF (FM IDOC_INPUT_INVOIC_FI) for FBV1 transaction.

See if there are any BAPI/FMs for parking an FI document.

1.. Use INVOIC01 IDOC with INVF process code (This works for Vendor Line Items only). I read the documentation somewhere that, this would work even if the line items are > 999

2.. BAPI_ACC_INVOICE_RECEIPT_POST (This works for Vendor Line Items only)

3.. BAPI_ACC_DOCUMENT_POST (Tax jurisdiction allocation not calculated properly)

4.. BAPI_ACC_GL_POSTING_POST (No tax line items allowed for this BAPI)