Error when using BAPI_INSPOPER_RECORDRESULTS
I need to set char results for an inspection lot with one operation and one physical sample.
I populated the structure INSPPOINTDATA with relevant data and the fields SEL_SET, CODE_GRP, CODE were empty.
I populated the table SAMPLE_RESULTS with the relevant details as well.
When I call the BAPI to record results, I got the following error:
The selected set in the transfer record deviates from TQSS1/TQ79 (msgID:QT msgNo:408)
So I populate the field INSPPOINTDATA-SEL_SET with 'TW40UD' and run the BAPI again. However, this time I got another error:
Error in the transferred usage decision (selected set, code, code group) (msgID:QT msgNo:404)
I have no idea whats wrong with my program. Please help me.