2007 Aug 13 4:58 AM
I need to upload inspection results from external system to SAP. Can anybody post the sample code for using the BAPI BAPI_INSPOPER_RECORDRESULTS. Also I want to know whether the following things are possible or not with this BAPI.
1. Overwrite (add / modify) Characteristics for an inspection lot from an external system.
2. Overwriting Sample Size in SAP through external system.
Really appreciate any info on using this BAPI.
Thanks,
KC.
2007 Aug 13 11:15 AM
Hi Kalyan,
CALL FUNCTION 'BAPI_INSPOPER_RECORDRESULTS'
EXPORTING
INSPLOT = wa_upload-prueflos
INSPOPER = wa_upload-vornr
INSPPOINTDATA = wa_insppointdata
TABLES
SINGLE_RESULTS = it_single_results
SAMPLE_RESULTS = it_sample_results
RETURNTABLE = it_returntable.
Then call:
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.
wa_char_results is not necessary and updates the results at operation level, not physical sample level. your results for a specific physical sample go into wa_sample_results.
<b>Reward Points if Useful!</b>
Regards
Gokul
2007 Aug 13 12:32 PM
Hi Gokul,
Thanks for the reply. What I need to know is, what are the mandatory fields that will go in the Importing parameters, like the values in the internal table "wa_insppointdata" in your code. If anybody used this FM before, I need to see, what values are hard coded and what FLAG's were used in importing and tables parameters.
Kalyan.