Hi,
Have recently started using BOC in VB to extract / populate data in MIMS.
Until today, all has gone smoothly, but I now have a problem with the EQUIPMENT.Modify Class / Operation.
We're trying to update values for PlantCode0 to PlantCode5 in MSF600.
I've ran it through the front-end and checked the debugger and noticed that EQUIPMENT.ValidatePlantStruct is run before the EQUIPMENT.Modify. I've recreated this in my code but although the code does not return any errors, the SPN Segment values are refusing to update. Other values within MSQ600 (eq Equipment Description) are however updating without any problems
I'm guessing the problem is down to the way in which I'm structuring the requests. So far I've tried the following:
1 Sending the Validation and Modify as separate requests within one block.
2 Sending the Validation as one block, waiting for the Reply and then sending the Modify request for the same piece of equipment in a new block.
I'm guessing that there is some sort of flag returned from the Validation request that then needs to be added to the Modify request, but can't find any reference to what this might be.
Any ideas, suggestions or pointers as to how I should approach this would be gratefully received.
Cheers,
Jon
Have recently started using BOC in VB to extract / populate data in MIMS.
Until today, all has gone smoothly, but I now have a problem with the EQUIPMENT.Modify Class / Operation.
We're trying to update values for PlantCode0 to PlantCode5 in MSF600.
I've ran it through the front-end and checked the debugger and noticed that EQUIPMENT.ValidatePlantStruct is run before the EQUIPMENT.Modify. I've recreated this in my code but although the code does not return any errors, the SPN Segment values are refusing to update. Other values within MSQ600 (eq Equipment Description) are however updating without any problems
I'm guessing the problem is down to the way in which I'm structuring the requests. So far I've tried the following:
1 Sending the Validation and Modify as separate requests within one block.
2 Sending the Validation as one block, waiting for the Reply and then sending the Modify request for the same piece of equipment in a new block.
I'm guessing that there is some sort of flag returned from the Validation request that then needs to be added to the Modify request, but can't find any reference to what this might be.
Any ideas, suggestions or pointers as to how I should approach this would be gratefully received.
Cheers,
Jon