Creating Inspection Point using BAPI_INSPOPER_RECORDRESULTS

How can I create Inspection point using BAPI_INSPOPER_RECORDRESULTS, what are the fields which are need to be passed and by which field that inspection point is created or not?

See this sample coding:

DATA: BEGIN OF ichar_results OCCURS 0. 

INCLUDE STRUCTURE BAPI2045D2. 

DATA: END OF ichar_results. 

DATA: BEGIN OF isingle_results OCCURS 0. 

INCLUDE STRUCTURE BAPI2045D4. 

DATA: END OF isingle_results. 

DATA: BEGIN OF bapireturn2 OCCURS 0. 

INCLUDE STRUCTURE bapiret2. 

DATA: END OF bapireturn2. 

DATA: BEGIN OF i_inspointdata . 

INCLUDE STRUCTURE BAPI2045L4. 

DATA: END OF i_inspointdata. 

DATA: BEGIN OF i_RETURNTABLE occurs 0. 

INCLUDE structure BAPIRET2. 

DATA: END of i_RETURNTABLE. 

i_inspointdata-USERC1 = '5'. 

i_inspointdata-USERD1 = SY-DATUM. 

i_inspointdata-USERT1 = SY-UZEIT. 
 

ichar_results-insplot = '890000000669'. 

ichar_results-inspoper = '0010'. 

ichar_results-inspchar = '0010'. 

ichar_results-closed = 'X'. 

ichar_results-evaluated = 'X'. 

ichar_results-evaluation = 'A'. 

ichar_results-MEAN_VALUE = '300'. 

APPEND ichar_results. 

CALL FUNCTION 'BAPI_INSPOPER_RECORDRESULTS' 

EXPORTING 

INSPLOT = '890000000669' 

INSPOPER = '0010' 

INSPPOINTDATA = i_inspointdata 

IMPORTING 

RETURN = bapireturn2 

TABLES 

CHAR_RESULTS = ichar_results 

RETURNTABLE = i_RETURNTABLE. 

*SINGLE_RESULTS = isingle_results. 

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' 

EXPORTING 

WAIT = 'X' 

IMPORTING 

RETURN = bapireturn2. 

*-- End of sample coding

Notes:

The parameter INSPPOINTDATA contains data for the inspection point.

INSPPOINTDATA LIKE BAPI2045L4

ABAP Tips

Read Also
BAPI_ALM_NOTIF_CREATE - Maintenance Notification

Get help for your ABAP problems
Do you have a ABAP Question?

ABAP Books
ABAP Certification, BAPI, Java, Web Programming, Smart Forms, Sapscripts Reference Books

More ABAP Tips

Main Index
SAP ERP Modules, Basis, ABAP and Other IMG Stuff

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG. 
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk. 
 The content on this site may not be reproduced or redistributed without the express written permission of 
www.erpgreat.com or the content authors.