Ansicht
Dokumentation

RFKKBIB0 - Document Transfer Program

RFKKBIB0 - Document Transfer Program

rdisp/max_wprun_time - Maximum work process run time   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

Description

This report transfers and posts documents from an external system to Contract Accounts Receivable and Payable (FI-CA). To be able to carry this out, the following steps are executed:

  • Read the specified file and check the data contained therein.
All documents transferred by the program run are posted with this reconciliation key. After the transfer has been completed the reconciliation key is automatically closed for further postings.
  • Post the correct documents.

The program stores data records separately. You can transfer the data records after they have been corrected.

During the test run the program checks the file data and generates a log; however, no document is posted.

Output

The report outputs the following data in a log:

  • Opened reconciliation key
  • Number of incorrect documents, their documents, and the lines in the file
  • Number of posted documents and the document numbers created

You can select an extended log.

Requirements

The program transfers document data from a file that fulfils the following conditions:

  • All fields are shown in character format.
  • Every line can only contain one structure.

The report expects the following for each file (take note of the sequence):

  • One file header record (BFKKGR00 structure)
  • One document header (structure BFKKKO or ZFKKKO)
  • One or more object relation items (structure BFKKOPREL) (optional)
  • One or more card supplement items (structure BFKKOPC) (optional)
  • Any number of items or offsetting items from the structures BFKKOP/ZFKKOP or BFKKOPK/ZFKKOPK
  • Several items with locks (structure BFKKOPLS) can follow each item.
  • An item with CO-PA data (structure BFKKCOPA) can follow each offsetting item (optional).
  • Several items with deferred revenues (structure BFKKDEFREV) can follow each offsetting item (or item with CO-PA data, if used)

You can include any number of documents in a file. However, you have to ensure that you always specify the document header and then the related line items.

Each BFKK structure has application and customer includes: SI_BFKK* and CI_BFKK*. These includes enable you to insert application-specific and/or customer-specific fields.

Number assignment for documents

You can transfer documents with internal or external document number assignment. Note the following:

Documents with internal document number assignment

  • Field BFKKGR00-XEXTBL must be empty.
  • Field BFKKKO-OPBEL must be empty.
  • Field BFKKKO-BLART must have a document type that is assigned to number range for mass processing. The document numbers are then generated automatically.

Documents with external document number assignment

  • Field BFKKGR00-XEXTBL must be "X".
  • Field BFKKKO-OPBEL must have an entry.
  • Field BFKKKO-BLART must have a document type that is assigned to number range for individual processing. The document numbers must correspond to the number range.

Documents with external and internal number assignment must not be combined within a file.

Work Breakdown Structure Element (WBS Element)

You can import the work breakdown structure element in the BFKKOPK record. You either specify the internal form of the number in the field PS_PSP_PNR or you specify the 24 character text form in the field BFKKOPK-PS_PSP_PNR_TXT. If both fields are filled, the field PS_PSP_PNR_TXT overwrites the value of PS_PSP_PNR.

Procedure

  1. Analyze the structures specified in the section entitled "Prerequisites". Determine what required data is contained in your documents and what data you have to add.
  2. Write a program that extracts your document data, enriches SAP-specific data (if necessary), and exports the data in a file. Make sure you have read the notes about the data structure written under "Prerequisites".
  3. Call up the program for transferring document data. Fill the required fields and select the Process File field to transfer the data from the file to a contract accounts receivable and payable.

If the report has determined data records that contain errors (see log), proceed as follows:

  1. Start the app Document Transfer: Process errors and correct the data records that contain errors.
  2. Call up the app for transferring the document data once more (Transfer Document). Fill the required fields and select the Process Errors field to add the corrected data records to the appropriate reconciliation key.

If the report is interrupted, you can restart processing by selecting the Process File after Interruption field for the report run. The report continues processing from the last data record processed.






PERFORM Short Reference   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.

Length: 6733 Date: 20240601 Time: 115206     sap01-206 ( 92 ms )