StartEmployeeSetupUBE

Start Employee Setup UBE

Minor Business Rule

Object Name: B0800138

Parent DLL: CHRM

Location: Client/Server

Language: C

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 


/** Get an hUser **/
1.idJDEDBReturn = JDB_InitBhvr(lpBhvrCom, &hUser, '', JDEDB_COMMIT_AUTO);


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.


^

Data Structure

D0800138 - Start Employee Setup UBE

Parameter NameData ItemData TypeReq/OptI/O/Both
szNameObjectOBNMcharOPTNONE

The name that identifies a system object. J.D. Edwards ERP architecture is object-based. Discrete software objects are the building blocks 
for all applications, and developers can reuse the objects in multiple applications. The Object Librarian tracks each object. Examples of 
system objects include:   o Batch Applications (such as reports)   o Interactive Applications   o Business Views   o Business Functions   o 
Business Functions Data Structures   o Event Rules   o Media Object Data Structures

szVersionVERScharOPTNONE

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.

mnEmployeeSetupIDESIDMATH_NUMERICOPTNONE

A code that represents the unique identifier for an employee setup record.

mnTaskCodeTSKCDMATH_NUMERICOPTNONE

A number that uniquely identifies the task. The system generates this number using next numbers.

Related Functions

None

Related Tables

None