RetrieveAccountCurrencyCode

Retrieve Account Currency

Minor Business Rule

Object Name: B0000037

Parent DLL: CALLBSFN

Location: Client/Server

Language: C

Functional Description

Purpose

This function will retrieve the currency code and the base company currency code for a given account 
id. The account currency code will be retrieved from the Account Master File (F0901). The account 

company currency code will be retrieved from the Company Master file (F0010) using the 

"RetrieveCompanyCurrencyCode" business function.


Setup Notes and Prerequisites

The short account id will need to be derived (probably though XX0901) and sent to this business 

function.


Special Logic




Technical Specification

• Fetch account master record (F0901) which matches the account id passed in as a parameter.  If the 
record is not found then return an error.

• Use the company from the account master record and call the business function 
"RetrieveCompanyCurrencyCode" to load the currency code of the company.


Data Structure

D0000037 - Retrieve Account Currency

Parameter NameData ItemData TypeReq/OptI/O/Both
szAccountIDAIDcharNONENONE

Special Input Expected
A valid account id which exists in the account master (F0901)

^

szCurrencyCodeFromCRCDcharNONENONE

Special Output Returned
Currency code of the account which matches the account id entered.

^

szCompanyCurrencyCRDCcharNONENONE

Special Output Returned
Currency code of the company for the account id entered.

^

Related Functions

B0000128 Retrieve Company Currency Code

Related Tables

F0901 Account Master