1.Functional Description
1.1Purpose
This BSFN is used to dynamically start a UBE given only the UBE name and version.
1.2Setup Notes and Prerequisites
1.3Special Logic
2.Technical Specifications
2.1Parameters:
Data Item Data Structure DescriptionI/ORequiredNotes
OBNMszNameObjectI
VERSszVersionsI
ESIDmnEmployeeSetupIDI
TSKCDmnTaskCodeI
2.2Related Tables
Table Table Description
2.3Related Business Functions
Source NameFunction Name
Processing
2. if (idJDEDBReturn == JDEDB_FAILED)
3.
/** load UBD variables **/
7. memset((void *)(&dsUbeStructure), (int)(''), sizeof(UBEVAR));
8. if (jdeIsBlankOrNull(lpDS->szVersion))
9.
12. jdeNIDcpy(dsUbeStructure.szReport,lpDS->szNameObject);
13. jdeNIDcpy(dsUbeStructure.szVersion,lpDS->szVersion);
14. if ((jdeGetHostName(dsUbeStructure.szMachineKey,16,1) != 0) ||
15. (!GetLocalEnvironmentName(dsUbeStructure.szEnhv,11)))
16.
/* changes 16 bit value to 32 bit value*/
20. dsUbeStructure.idRunTime = (GLRTID)lpBhvrCom->hDlg << 16;
21. dsUbeStructure.bSynchFlag= FALSE;
22. dsUbeStructure.bPreview = TRUE;
23. dsUbeStructure.bBatchFlag= TRUE; /* prompt for: which printer user wants */
24. idJDEDBReturn = jdeLaunchUBEEx((HUSER)hUser,(PUBEVAR)&dsUbeStructure,(LPVOID)NULL, lpBhvrCom);
25. if(idJDEDBReturn != JDEDB_PASSED)
26.
/* endif */
30. if (hUser != (HUSER)NULL)
31.
34. return (idReturnCode);
Note:
A possible upgrade would be to read the F986? record and get the name of the report data structure. From the report data structure name create a Data
Structure in memory an check for AN8, ESID, TSKCD if any are found load the data structure with the value.
^
D0800138 - Start Employee Setup UBE
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szNameObject | OBNM | char | OPT | NONE |
The name that identifies a system object. J.D. Edwards ERP architecture is object-based. Discrete software objects are the building blocks
| ||||
szVersion | VERS | char | OPT | NONE |
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
| ||||
mnEmployeeSetupID | ESID | MATH_NUMERIC | OPT | NONE |
A code that represents the unique identifier for an employee setup record. | ||||
mnTaskCode | TSKCD | MATH_NUMERIC | OPT | NONE |
A number that uniquely identifies the task. The system generates this number using next numbers. |
None |
None |