Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_INSPCHAR_SETRESULT

Former Member
0 Likes
2,062

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

7 REPLIES 7
Read only

abdul_hakim
Active Contributor
0 Likes
1,366

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

Read only

Former Member
0 Likes
1,366

Hi,

Check these example program..

<b>RQEIFL10</b>

Regards

Vijay

Read only

Former Member
0 Likes
1,366

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.

Read only

Former Member
0 Likes
1,366

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.

Read only

0 Likes
1,366

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

Read only

0 Likes
1,366

Hi again,

1. put this evaluation as 'A'

in char_results.

<b> char_results-evaluation = 'A'.</b>

and not single_results.

regards,

amit m.

Read only

marion_kling
Explorer
0 Likes
1,366

Hi Kapil,

could you solve the problem and let me know how?

Thanks

Marion