‎2006 Jun 01 11:59 AM
Hi ,
I am trying to do a closing using this BAPI (means status 5 in QE01 tcode) but its not working.
Can any body send the parameters to enter in BAPI to achieve the solution .
Thanks & regards
Kapil
‎2006 Jun 01 12:04 PM
just go thru the below document about this BAPI.
<b>Text
Confirm Inspection Results
Functionality
CAUTION! This BAPI is obsolete. Instead, use the BAPI BAPI_INSPOPER_RECORDRESULTS. You do not have to make this change immediately. However, the BAPI will not longer be supported as of the next functional release.
This method confirms inspection results for an inspection lot characteristic. It is also possible to update existing inspection results. To do this, the results are loaded using the method InspLotCharacter.GetResult. Both methods use the same data structures.
Parameters
INSPLOT
INSPOPER
INSPCHAR
INSPSAMPLE
CHAR_RESULT
SAMPLE_RESULT
RETURN
SINGLE_RESULTS
Exceptions
Function Group
2045</b>
Also press the where used button to get a live example from SAP transactions/programs..
Cheers,
Abdul
Mark all useful answers
‎2006 Jun 01 12:06 PM
‎2006 Jun 01 12:07 PM
I read (http://sapass.metro.client.jp/Bapi/BUS204502.htm)as this BAPI is obsolete in 4.6c. Check it out before using.
Cheers,
Thomas.
‎2006 Jun 01 12:10 PM
Hi kapil,
1. we have to use like this .
2.
*------- BUILD SINGLE RESULTS
REFRESH single_results.
CLEAR single_results.
single_results-insplot = insplot.
single_results-inspoper = inspoper.
single_results-inspchar = inspchar.
single_results-res_value = resvalue.
single_results-res_no = res_no.
single_results-code1 = code1.
single_results-code_grp1 = codegrp1.
*
APPEND single_results.
REFRESH char_results.
CLEAR char_results.
char_results-insplot = insplot.
char_results-inspoper = inspoper.
char_results-inspchar = inspchar.
char_results-evaluation = eval.
char_results-remark = remark.
APPEND char_results.
*----
POST
CALL FUNCTION 'BAPI_INSPOPER_RECORDRESULTS'
EXPORTING
insplot = insplot
inspoper = inspoper
INSPPOINTDATA =
handheld_application = handapp
IMPORTING
return = returntable
TABLES
char_results = char_results
SAMPLE_RESULTS =
single_results = single_results
returntable = returntable
.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = ret.
regards,
amit m.
‎2006 Jun 01 12:50 PM
Hi Amit
But whats the value in the char_results that i should put to do closing of the lot.
if i put evalutaion as A ...i am getting status as 3 ...i need status as 5..
thanks
kapil
‎2006 Jun 01 1:10 PM
Hi again,
1. put this evaluation as 'A'
in char_results.
<b> char_results-evaluation = 'A'.</b>
and not single_results.
regards,
amit m.
‎2012 Mar 09 1:48 PM
Hi Kapil,
could you solve the problem and let me know how?
Thanks
Marion