APAR status
Closed as Permanent restriction.
Error description
Prob: The incorrect result between two scripts with the same function. . Operation: 1. Create two scripts with the same function but they output a different result. For example: ===== Script File 'AAA.bs' Function MyFunction(ApplHndl As Long,Sstr As String,FirstPar As Long,SecondPar As Long,ThirdPar As Long ) As Integer MsgBox "AAA" End Function . ===== Script File 'BBB.bs' Function MyFunction(ApplHndl As Long,Sstr As String,FirstPar As Long,SecondPar As Long,ThirdPar As Long ) As Integer MsgBox "BBB" End Function . 2. They are hooked on different operation by Script Maintenance For example: _________________ Before _____________ After ___________ Instead Of . . . . . . . . Check Out | MyFunction (AAA.bs) | . . Check In | MyFunction (BBB.bs) | . . . . . . . . . . 3. Run above operation in order to launch script 4. When run Check Out operation =====> Launch BBB.bs script : OK 5. When run Check In operation =====> Launch BBB.bs script : NG . The hooked script does not launched correctly. . Remark: - I reproduced this problem on L1 SMARTEAM V5R17SP3. - When re-open Script Maintenance after step2 already hooked AAA.bs replaced to BBB.bs. - When hooked only one script (AAA.bs or BBB.bs) it launched correctly. {BCJ} .
Local fix
Problem summary
The incorrect result between two scripts with the same fu nction Prob: The incorrect result between two scripts with the same function. . Operation: 1. Create two scripts with the same function but they output a different result. For example: ===== Script File 'AAA.bs' Function MyFunction(ApplHndl As Long,Sstr As String,FirstPar As Long,SecondPar As Long,ThirdPar As Long ) As Integer MsgBox "AAA" End Function . ===== Script File 'BBB.bs' Function MyFunction(ApplHndl As Long,Sstr As String,FirstPar As Long,SecondPar As Long,ThirdPar As Long ) As Integer MsgBox "BBB" End Function . 2. They are hooked on different operation by Script Maintenance For example: _________________ Before _____________ After ___________ Instead Of . . . . . . . . Check Out | MyFunction (AAA.bs) | . . Check In | MyFunction (BBB.bs) | . . . . . . . . . . 3. Run above operation in order to launch script 4. When run Check Out operation =====> Launch BBB.bs script : OK 5. When run Check In operation =====> Launch BBB.bs script : NG . The hooked script does not launched correctly. . Remark: - I reproduced this problem on L1 SMARTEAM V5R17SP3. - When re-open Script Maintenance after step2 already hooked AAA.bs replaced to BBB.bs. - When hooked only one script (AAA.bs or BBB.bs) it launched correctly. {BCJ} .
Problem conclusion
THIS PROBLEM IS PERMANENT RESTRICTION IN SMARTEAM Documentation will be provided in R18 SP1 GI (General issues) as follows: Function names in scripts ==================== When the same function is used in different scripts which are attached by hooks, incorrect results occur. To ensure that scripts are launched correctly, provide different function names in the scripts. {BCJ} .
Temporary fix
Comments
APAR Information
APAR number
HD63986
Reported component name
SMARTEAM NT>XP
Reported component ID
569199970
Reported release
517
Status
CLOSED PRS
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2007-05-02
Closed date
2007-07-24
Last modified date
2007-07-24
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Applicable component levels
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS2S3T","label":"ENOVIA SmarTeam V5"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"517","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
24 July 2007