GetBranchConstants

Get Branch Constants

Minor Business Rule

Object Name: B4000150

Parent DLL: COPBASE

Location: Client/Server

Language: C

This function retrieves a row from the F41001 given the Branch Plant and returns a pointer to the 
F41001 record.  If no Branch Plant is given it searches on Branch Plant "ALL". If you are calling this 

function from another business function, that function must deallocate the memory stored in 

idF4101LongRowPtr.  If no constants record is found, this function will return a 'Y' in the Error Code 

(cErrorcode_BP_Constants).  If a record is found, a value of 'N' will be loaded to the Error Code. If you are 

calling this from an application ou must have a Generic Long hidden field, (alias - genlng) in your 

calling application to hold the pointer (idF41001LongRowPtr) returned from this function.  You must follow 

this function call by calling the business function FreePtrToDataStructure.  Pass the value in the 

hidden field to FreePtrToDataStucture.

Data Structure

D4000150 - Get Branch Constants

Parameter NameData ItemData TypeReq/OptI/O/Both
szBranchPlantMCUcharNONENONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

szSystemCodeSYcharNONENONE

A user defined code (98/SY) that identifies a system. Valid values include: 01 Address Book 03B Accounts Receivable 04 Accounts 
Payable 09 General Accounting 11 Multicurrency

idF41001LongRowPtrGENLNGIDNONENONE

General purpose ID variable.

cErrorCodeERRCcharNONENONE

This error code indicates if any errors occurred during the creation of the Trip Document Detail (F4914) records by the Delivery Document 
Set Server program (XT4914).

cReturnPtrEV01charNONENONE

An option that specifies the type of processing for an event.

cCallTypeEV02charNONENONE

An option that specifies the type of processing for an event.

cSuppressErrorMsgEV01charNONENONE

An option that specifies the type of processing for an event.

szErrorMsgIDDTAIcharNONENONE

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

Related Functions

None

Related Tables

F41001 Inventory Constants