The purpose of this document is to give user easier way to troubleshoot when a certain application issues error "Production Number entered is invalid (34401B)" caused by BSFN B3402210 - ValidateProductionNumber
Ensure that below documents are referenced before you make use of Production Number in applications you are working on.
<Document 1503442.1> - E1: 31/34: Project Manufacturing and Production Numbers
<Document 646524.1> - E1: 34: Project Manufacturing and Production Number Reported Bugs, Solutions and Enhancement Requests
<Document 1469263.1> - E1: 34: Project Manufacturing Tables (P34401/P34402/F4101A/F41021T)
Called by:
ValidateProductionNumber (B3402210, Validate Production Number) can be called through Edit Line routine of master business function (MBF) as below,
| Function | Called by | Others |
| F3460ForecastMBF (N3401430, F3460ForecastMBF) | P3460 | Forecast |
| F4111EditLine (XT4111Z1, F4111 Edit Line) | Various Edit Line Master Business Function | Inventory Transaction |
| F4211SOEInternalFunctions (B4200311, F4211 Sales Order Entry Internal Functions) | B4200310 | Sales |
| F4311EditLineInternalFunctions (XT4311Z2, F4311 Edit Line Internal Functions) | XT4311Z1 | Procurement |
| X4801MfgEditLineModule (B4800210, X4801 Manufacturing Editing Module) | XT4801 | Manufacturing |
| Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both | Usage |
| szProductionNumber | PMPN | char | REQ | INPUT | |
| szCompanyKey | KCO | char | OPT | INPUT | Validation for Company is not in use any more. Refer to <BUG 17716540> - Commented below code to remove company validation for Production Number |
| szIdentifier2ndItem | LITM | char | OPT | INPUT | To compare with F34401.litm |
| jdOrderDate | PNDTCRTD | JDEDATE | OPT | INPUT | To Check Order Date is within the range of Date Created (F34401.pndtcrtd) and Date Closed (F34401.pndtclsd) |
| cSuppressErrorMessage | SUPPS | char | OPT | INPUT | 1 to Suppress Error |
| szErrorCode | DTAI | char | OPT | OUTPUT | Error code defined: 34401B (Production Number entered in invalid) 34401J (Forecast demand exists for this prod no.) 34401K (Sales demand exists for this prod no.) |
| mnProductionNumberShort | PNS | MATH_NUMERIC | OPT | OUTPUT | F34401.pns |
| szPMPNDescription | DL01 | char | OPT | OUTPUT | F34401.dl01 |
| cBFMode | FLAG | char | OPT | INPUT | 1 - If called from Sales Order check and set error if the Demand flag is 'F' 2 - If called from Forecast check and set error if the Demand flag is 'S' |
| szProgramId | PID | char | OPT | INPUT | Application ID which calls this business function. This function validates only EP3460. |

<Internal_Only>Additional information on F34401 and F34402 are to be added in the near future. </Internal_Only>