F1201RetrievePOForF1201MBF

F1201Retrieve Processing Options for F1201 MBF

Major Business Rule

Object Name: B1200220

Parent DLL: CCRIN

Location: Client/Server

Language: C

`Functional Description

Purpose


This function retrieves either of the following Processing Option template values:

1)T1201 - Retrieved when Program ID is "P1201"
2)T1702 - Retrieved when Program ID is "P1702"

This function should only be used by the F1201 Master Business Function (N1200010) to retrieve 

processing option template values. Any modification to this function's data structure will affect N1200010.



Setup Notes and Prerequisites


Program ID and Version MUST be passed in.


Special Logic




Technical Specification


1.Initialize Error Code = '0'
2.Initialize Error Message ID = " "

3.Initialize Unit Number Required (EV01) = '0'

4.Initialize Serial Number Required (EV02) = '0'

5.Initialize Parent Number Default (EV03) = '0'

6.Initialize Location Default (EV04) = '0'

7.Initialize Write Acct Balances Record (EV05) = '0'

8.Initialize Inv Item No Required = '0'

9.If Suppress Error Message <> '1' And <> '0'

10. Suppress Error Message = '0'

11.End IF


12.If Program ID = Blank 
13. If Suppress Error Message <> '1'

14. Set Error "0003" on Program ID

15. End If

16. Set Error Code = '1'

17. Set Error Message ID = "0003"

18.End If

19.If Version = Blank

20. If Suppress Error Message <> '1'

21. Set Error "0003" on Version

22. End If

23. Set Error Code = '1'

24. Set Error Message ID = "0003"

25.End If


26.If Error Code = '0'
27. If Program ID = "P1201" then

28. Retrieve T1201 Processing Options Using Program ID(PID) and Version (VERS)

29. If Found

30. If PO UnitNumberRequired = '1' or 'Y'

31. Unit Number Required (EV01) = '1'

32. End If

33. If PO DefaultLocationFromBU = '1' or 'Y'

34. Location Default (EV04) = '1'

35. End If

36. If PO DefaultCostAccount = '1' or 'Y'

37. Parent Number Default (EV03)='1'

38. End If

39. Interoperability Transaction Type = PO Interoperability Transaction Type.

40. Outbound Processor Version = PO Interoperability Outbound Version

41. Else

42. If Suppress Error Message <> '1'

43. Set Error "016K" on Version

44. End If

45. Set Error Code = '1'

46. Set Error Message ID = "016K"

47. End If

48. Else

49. Retrieve T1702 Processing Options Using Program ID(PID) and Version (VERS)

50. If Found

51. If PO UnitNumberRequired = '1' or 'Y'

52. Unit Number Required (EV01) = '1'

53. End If

54. If PO SerialNumberRequired = '1' or 'Y'

55. Serial Number Required (EV02) = '1'

56. End If

57. If PO ParentNumberDefaulted = '1' or 'Y'

58. Parent Number Default (EV03) = '1'

59. End If

60. If PO Inv Item No Required = '1' or 'Y'

61. Inv Item No Required = '1'

62. End If

63. If PO Account Balances Record = '1' or 'Y'

64. Write Acct Balances Record (EV05) = '1'

65. End If

66. Interoperability Transaction Type = PO Interoperability Transaction Type.

67. Outbound Processor Version = PO Interoperability Outbound Version.

68. Else

69. If Suppress Error Message <> '1'

70. Set Error "016K" on Version

71. End If

72. Set Error Code = '1'

73. Set Error Message ID = "016K"

74. End If

75. End If

76.End If


Data Structure

D1200220 - F1201 Retrieve Processing Options for F1201 MBF

Parameter NameData ItemData TypeReq/OptI/O/Both
szProgramId_PIDPIDcharREQINPUT

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

szVersion_VERSVERScharREQINPUT

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

cSuppressErrorMessage_SUPPSSUPPScharREQINPUT

A flag indicating whether or not runtime error messaging will occur when an error message is issued from a business function.        0 = allow 
runtime error message handling.        1 = suppress runtime error message handling.

cErrorCode_ERRCERRCcharOPTOUTPUT

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

szErrorMessageID_DTAIDTAIcharOPTOUTPUT

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.

cUnitNumberRequired_EV01EV01charOPTOUTPUT

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

cSerialNumberRequired_EV02EV02charOPTOUTPUT

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

cParentNumberDefault_EV03EV03charOPTOUTPUT

A radio button that specifies the level at which trace/track result is to be displayed.  Select the Detail to display all transactions except IB, IX, 
and IZ types.  Or, select Derivative Lots Only to display only those transactions that may have created new derivative lot. 

cLocationDefault_EV04EV04charOPTOUTPUT

PeopleSoft event point processing flag 04.

cWriteAcctBalancesRecord_EV05EV05charOPTOUTPUT

A flag that indicates whether automatic spell check is turned on.

szInteroperabilityTrans_TYTNTYTNcharOPTOUTPUT

The qualifier used to identify a specific type of transaction.

szOutboundProcessorVers_VERSVERScharOPTOUTPUT

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

cInvItemNoRequired_EV06EV06charOPTOUTPUT

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

cGenerateBaseWarranty_GENBWGENBWcharOPTOUTPUT

A value that defines whether the system generates Base Warranty Contract lines when you create the Installed Base item. Valid values are:   
 Blank Do not generate the Base Warranty Contract lines.    1        Generate the Base Warranty Contract lines.

cRequireBaseWarranty_REQBWREQBWcharOPTOUTPUT

Defines if Base Warranty records (F17111) are required to exist for an equipment item before the Equipment Master record (F1201) is 
added.

cDisplayBaseWarranty_DSPBWDSPBWcharOPTOUTPUT

Determines if the base warranty contract lines are automatically displayed after adding an Equipment Master record (F1201).

cBaseWarrantyStartDate_DATEBWDATEBWcharOPTOUTPUT

A value that identifies which date the system uses for the Base Warranty Contract Start Date. Valid values are:    Blank Use the date from the 
Installation Date field.    1        Use the date from the Acquired Date field.

cCreateMailingDataforIB_CRTMLCRTMLcharOPTOUTPUT

Defines if Mailing data is created in the Installed Base Location Details table (F17311) when an Installed Base item is added. The mailing 
data is obtained either from the Order Address Information table (F4006) or the Address by Date table (F0116).

szCompany_COCOcharOPTOUTPUT

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

szResponsibleBU_MCUMCUcharOPTOUTPUT

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.

szAssetCostAcctCostCen_AMCUAMCUcharOPTOUTPUT

The business unit to which the system charges original acquisition cost and any supplemental capital additions. The system uses a default 
value for this field based on the business unit that you specify on the Asset Master Revisions form when you create a new asset master 
record. You can change this default value on the Depreciation Information form only if you have not entered any transactions for the account.

szAssetCostAcctObject_AOBJAOBJcharOPTOUTPUT

The object account to which the original acquisition cost and any supplemental capital additions have been charged. If the asset is a 
non-capitalized lease, this should be the expense account that lease payments are charged to. This expense account should have default coding 
instructions set up for method 00 (no depreciation method used).

szAssetCostAcctSubsid_ASUBASUBcharOPTOUTPUT

The subsidiary account to which the original acquisition cost and any supplemental capital additions have been charged.

szEquipmentStatus_EQSTEQSTcharOPTOUTPUT

A user defined code (12/ES) that identifies the equipment or disposal status of an asset, such as available, down, or disposed.

szP1720Version_VERSVERScharOPTOUTPUT

A user-defined set of specifications that control how applications and reports run. You use versions to group and save a set of user-defined 
processing option values and data selection and sequencing options. Interactive versions are associated with applications (usually as a 
menu selection). Batch versions are associated with batch jobs or reports. To run a batch process, you must choose a version.

cAssessorDefault_EV01EV01charOPTOUTPUT

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

szRegistrationStatus_REGSTSREGSTScharOPTOUTPUT

A code that specifies the current registration status for an equipment record. Enter a value from UDC 17/RS. 

cPOAllowWO_WOYNWOYNcharOPTOUTPUT

A code that indicates whether a piece of equipment or asset may be entered on a work order. Valid values are:                                                  1 
or Y Entry is allowed.   0 or N Entry is not allowed.  

Related Functions

None

Related Tables

None