There could be 2 interpretations from the requirement
- You know the inspection lot number and want to know which group number it is assigned to.
- You know the group number and want to know to which inspection lot it has been assigned to.
The second does not tend to any meaning as why one would go and search on this basis? Folks are interested in only the records of inspection lot generation. Correct me if I am mistaken!
My comments are,
- Go to QALS table. Input inspection lot number and fetch QALS-PLNNR and QALS-PLNAL for Group and Group counter
- Once you get the Group and Group Counter refer Arijit Banerjee's thread to reach out to further details as he has explained it.
- But remember, when you try to fetch the further details from Group the results they always come real time.
- That means suppose a Group XYZ is assigned to some inspection lot on 1st of July.
- Later someone modified the tolerances or other details in the same plan on 5th July
- And on 13th you are trying to correlate the inspection parameters between that inspection lot and Group XYZ, you would not be referring the correct ones as the results would be of 5th July
- Hence if you want system to display the parameters those were assigned to that specific lot, you should use BAPI_INSPOPER_GETDETAIL
- Give inspection lot number as input to this and you would get all the details pertaining to that lot only.
Anand