F0301F4102GetCustItemPriceGroup

F0301/F4102 Get Cust/Item Price Group

Minor Business Rule

Object Name: B3201780

Parent DLL: CMFG

Location: Client/Server

Language: C

1.Functional Description

1.1Purpose

This Business Function is designed specifically to return the Customer Price Group and/or the Item Price Group depending on the Run Mode passed 

in.


1.2Setup Notes and Prerequisites

None 


1.3Special Logic

Pass in the Run Mode as follows:

'b7'B' - Process and return both Customer Price Group and Item Price Group. 
'b7'C' - Process and return the Customer Price Group.
'b7'I' - Process and return the Item Price Group.

2.Technical Specifications


Data Item DescriptionsI/OReqNotes FCODRun Mode IYSee Special Lobic above.  AN8Customer Number INPass in the Customer Address number to 

return the Customer Price Group. ITMShort Item NumberINPass in the Short item number to return the Item Price Group. (ITM & 

MCU) MCUBranch/PlantINPass in the Item Branch to return the Item Price Group. (ITM & MCU) CSTPCustomer GroupONCustomer Price Group ITTPItem GroupONItem 

Price Group EV01Suppress ErrorIN ERRCError CodeON DTAIError Message IDON


2.2Related Tables 

Table Table Description F0301Address Master Table F4102Item/Branch Master Table


2.3Related Business Functions

Source NameFunction Name B3200460F3293 Evaluate and Process AIR P32942Configured Item Specifications


2.4Processing 


If cRunMode is C or B

      If Customer Number is not blank

         Open Table F0301

         If passed

            populate key

            Fetch Record

            If passed

               return Customer Price Group

            Else

 error message = 3143

            End If

         Else

            error message = 3143

         End If         

     End If

End If


If cRunMode is I or B

      If Customer Number is not blank and

         Branch/Plant is not blank

         Open Table F4202

         If passed

            populate key

            Fetch Record

            If passed

               return Item Price Group

            Else

 error message = 3143

            End If

         Else

            error message = 3143

         End If         

     End If

End If



Data Structure

D3201780 - F0301/F4102 Get Cust/Item Price Group

Parameter NameData ItemData TypeReq/OptI/O/Both
cRunModeFCODcharOPTNONE

The file code is used in the *RANGE and *VALUE file for configurations to determine if the *RANGE or *VALUE goes with a "IF" statement, a 
"THEN"statement or with an assembly inclusion rule statement.

mnCustomerNumberAN8MATH_NUMERICOPTNONE

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

mnShortItemNumberITMMATH_NUMERICOPTNONE

An inventory item number. The system provides three separate item numbers plus an extensive cross-reference capability to other item 
numbers (see data item XRT) to accommodate substitute item numbers, replacements, bar codes, customer numbers, supplier numbers, and 
so forth. The item numbers are as follows:   o Item Number (short) - An eight-digit, computer-assigned item number     o 2nd Item Number - The 
25-digit, free-form, user defined alphanumeric item number     o 3rd Item Number - Another 25-digit, free-form, user defined alphanumeric item 
number

szBranchMCUcharOPTNONE

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.

szCustomerGroupCSTPcharOPTNONE

Customer types that a customer can be grouped into for each of the different preference types.

szItemGroupITTPcharOPTNONE

Item types that a item can be grouped into for each of the different preference types.

cSuppressErrorEV01charOPTNONE

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

cErrorCodeERRCcharOPTNONE

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).

szErrorMessageIDDTAIcharOPTNONE

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

None