Interfacing to Accounts Payable
  Overview
 

 

The Accounts Payable System is designed to work with other subsystems by communicating with them through a series of interface programs and data files. The use of these interface programs and files allows this communication to be established with minimal or no modification to the Accounts Payable System itself.

The Accounts Payable System does not contain any names and addresses nor does it contain a chart of accounts for the General Ledger System. It relies on the interface communications with other subsystems for information and support processing.

A set of sample programs are provided with the Accounts Payable System. The sample source code for these programs is located in the library named IFGEN. The programs provided will interface with the Accounts Payable System and any other subsystems provided by Business Applications, Inc. However, they will not communicate with any other subsystems with out modification. Programs residing in library APGEN are either Accounts Payable System target or source programs and should not be modified. All modifications should be done by copying source code to IFUSER and then be compiled to library IFUSER.

It is the user's responsibility to insure these programs are modified to communicate with the user's subsystems.

These programs can be either CL or RPG depending on the requirements of the task being performed. CL programs are normally used when library lists need to be changed or modified in order to access other subsystems.

The IFUSER library should always exist in the library list of any user while performing Accounts Payable functions.

 

 

  Interface Calls To Accounts Payable
 

 

The following are calls which can be made to the Accounts Payable system to send information to the application, retrieve information from the application or to enter the application to display or work with information within the application.

Description Program Sample programs
Account Maintenance APS3XFR IFGEN/QRPGSRC/XASBS33
Check For Account Number Use APP4XFR IFGEN/QRPGSRC/XASBS01
Delete Company Accounts AQG3XFR IFGEN/QRPGSRC/IGNZXFR
Get Account Information APP3XFR IFGEN/QRPGSRC/POSBS09
Get Closing Date Status APN1XFR IFGEN/QRPGSRC/GLSBS09
Get Payment Terms APP6XFR IFGEN/QRPGSRC/POSBS1
Import Payable Item APOOXFR IFGEN/QRPGSRC/POSBS92
Import Payable Item Text APPJXFR See entry parameters
Import Distribution APOPXFR IFGEN/QRPGSRC/POSBS105
Select Payment Terms APP7XFR IFGEN/QRPGSRC/POSBS10
Update Account Postal Code APRDXFR IFGEN/QRPGSRC/XASBS03
Update Account Sort Name APQYXFR IFGEN/QRPGSRC/XASBS03

When importing payable item distribution using program APOOXFR, the source code should be ENT or ADJ for entry or adjustment.

 

 

  Interface Calls From Accounts Payable
 

 

These programs may need to be modified in order to correctly access the information from or to feed information to your applications. Some may require modification. Any modified programs should reside in library IFUSER. They will then be used in place of supplied BAI interface programs when called. DO NOT place these program in IFGEN library. If you do, they may be replaced when application updates are applied.

Samples of these programs can be found in QRPGSRC in library IFGEN.

 
Program Description Note
APSBS04 AP Get Name and Address
1
APSBS05 AP Verify G/L Account no Fac
4
APSBS06 AP Select General Ledger Account
4
APSBS07 AP Select Name & Address Account
1
APSBS08 AP Work with Names & Addresses
1
APSBS10 AP Export Journal Header
4
APSBS11 AP Export Journal Detail
4
APSBS12 AP Post J/E in G/L
4
APSBS14 AP Check if Inter Company
4
APSBS16 AP Get G/L Account Description
4
APSBS17 AP Work with Name & Address
1
APSBS20 AP Get Parent Closing Date Status
4
APSBS26 AP Check for Duplicate Item
2
APSBS29 AP Verify G/L Account w/Fac
4
APSBS34 AP Import Cleared Payments
3
APSBS43 AP Get G/L Account Balance
4
APSBS44 AP Get G/L 2nd Description
4

Notes:

1
Required Modification if you are not using BAI supplied name and address file.
2
Required Modification if you need to check another A/P System for duplicate documents.
3
Required Modification if you are importing cancelled checks from a bank system.
4
Required Modification if you are not using BAI supplied General Ledger System.