on 08-29-2015 4:54 AM
Hi everyone,
We are implementing SAP Work Manager 6.2 on iOS devices. We use the PRT functionality for users to take measurement point readings assigned as PRTs(and subsequently complete the operation).
Scenario: Lets say there is an operation with 7 measurement point readings(as PRTs) and the field technician takes 4 readings and DOES NOT complete the operation. He initiates a delta sync on the device.
In the transmit log for the delta, we do see the measurement point readings being sent(transaction InspRoundsMeasurementPointreading - might not be the exact name). The readings are synced with the backend and eventually removed from the device. In the last step of the delta sync at the work order fetch, these readings are BROUGHT BACK to the device.
The next time the field tech. goes into the same operation, he has to take readings for these 4 measurement points AGAIN as we have a validation that all PRTs need to be completed before completing the operation.
Requirement: We want to prevent the measurement points(PRTs),for which the readings are already taken, from being brought back to the device in the work order fetch. Basically, if some readings have been taken, and the user syncs the device, they should not be asked to take those readings again just to be able to complete the operation.
Is there a way we can achieve this? Any help would be much appreciated!
Cheers,
Abhinav
Hi Abhinav,
I don't know the details so you may need an EAM consultant, but when creating a measurement document it is possible to link it to a work order and even an operation.
If you do so, then you can use the SELECT below I have in one of my implementations. This is checking if a measurement document already exists for a given point + work order. If this Select gets a result, then I return a custom field flag set when fetching the work order PRT data for work manager. I have all this logic in GET_END BADI for work order MDO class.
SELECT SINGLE mdocm INTO lv_mdocm
FROM imrg JOIN aufk ON imrg~woobj = aufk~objnr
WHERE imrg~point = <ls_workorder_prt>-eqpnt
AND imrg~lvorm = space
AND imrg~cancl = space
AND aufk~aufnr = <ls_workorder_prt>-aufnr.
In the Agentry side, I have a rule to ignore measuring points where the flag indicating a reading exists in SAP is set. It also requires Java adjustments to get the new field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Marcal,
We pretty much did exactly what you suggested(our select query is just slightly different) and the fix has been tested successfully and will be shipped to production this month.
Thank you for very much for your help, I appreciate it.
Regards,
Abhinav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi everyone,
Any thoughts on how we can achieve this? Please let me know if you need more details or any specifics.
Cheers,
Abhinav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Abhinav,
I think the challenge here is that there really isn't a way to know what points have been read already following the sync. How do you know if the reading was due to current work or is simply the previous reading?
You might be able to assume based on the last reading date equaling today (assuming you don't need to read that point more than once a day) and incorporate that into your rule.
Otherwise, I would guess that will need to track a collection of what points have been read and persist it until the workorder is complete and run your check against that in conjunction with the PRT points as one possibility.
Just my thoughts on it.
--Bill
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.