Professional Documents
Culture Documents
MBF Parameters
MBF Parameters
Using Master Business Functions for creating Work Orders and Sales Orders in JDE......1
Work Orders (Source Module – X4801).........................................................................1
Sales Orders (Source Module – B4200310)....................................................................1
This MBF is having 4 modules and should be called in the following sequence.
1. F0911 Begin Document - Creates header cache record
2. F0911 Edit Line – creates detail cache records and updates header cache
accordingly
3. F0911 Edit Document - Ensure that document is in balance
4. F0911 End Document – Add records into F0911 and updated F0011
Example below shows the usage of this MBF for the custom application P5538005
(Agriliance Phase II)
These Business Functions does not populate records to Cache Tables unlike other Master
Business Functions (Sales Orders). It uses the memory cache to store the data temporarily and
then loads the data to the application table F4801 directly.
F4801 Begin Document generates the Job Number (JOBS) for each run of the batch or online
application. If the MBF is called from a UBE, it can be called once in the Initialize Section event
rule to generate the JOBS and then use this JOBS for all the records in the DO Section while
calling the F4801 Edit Line. If called from an Online Application (Fix Inspect Form), it should be
called once for each record.
F4801 Edit Line loads the Work Order data to memory cache and should always be succeeded
by the call to F4801 End Document unlike Sales Order where we call the End Doc after all the
Detail Records have been loaded to cache tables by Edit Line.
F4801 End Document reads the memory cache and loads the data to the application table for
Work Orders in JDE, F4801 and the Work Order Tag Table F4801T.
DO Section of UBE
VA rpt_DocumentOrderInvoiceE_doco = 0
In this case, the Document Number (DOCO) of the Work Order is being generated by the MBF
itself. However, DOCO can also be generated by the program and passed to the MBF to create
the Work Order with that DOCO. This can be achieved by slightly modifying passing of the
parameters in F4801 Edit Line and F4801 End Document, in the following way:
DO Section of UBE
VA rpt_DocumentOrderInvoiceE_doco = VA rpt_DocumentOrderInvoiceE_doco + 1
The Master Business Functions which are used to create Work Orders in JDE are:
1. F4211 Begin Document
2. F4211 Edit Line
3. F4211 End Document
These business functions populate cache tables in JDE, F42UI01 and F42UI11 before
loading the valid records to the base application tables of Sales Orders, F4201 and F4211.
F4211 Begin Document generates the Job Number (JOBS) and creates a Sales Order
header record in cache table F42UI01 with a unique Document Number (DOCO) for each run
of the batch or online application. If the MBF is called from a UBE, it can be called once for
each header record to generate the JOBS and then use this JOBS and DOCO for all the
records in the DO Section while calling the F4211 Edit Line. If called from an Online
Application (Fix Inspect Form), it should be called once for each header record.
VA rpt_mnJobnumberA_JOBS = 0
F4211 Edit Line inserts Sales Order detail records in the cache table F42UI11 with the JOBS and
DOCO generated by F4211 Begin Document for the corresponding header record.
VA rpt_mnLineNumber_LNID = VA rpt_mnLineNumber_LNID + 1
F4211 End Document deletes the Sales Order header and detail records from the cache tables
F42UI01 and F42UI11 and loads the Sales Order header records in F4201 and detail records in
F4211, respectively, by the CTID and JOBS.