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 BAPI_INSPOPER_RECORDRESULTS force close issue

Former Member
0 Likes
1,054

Hello,

I'm trying to use this function BAPI_INSPOPER_RECORDRESULTS to change sample results.

I want to invalidate the results with a "/" attribute.

I am receiving this error message:

QI 127 Sample ##### for characteristic w/confirmation no. ####### is not valid

Here is how the code works...

I am reading the sample_results table using function BAPI_INSPOPER_GETDETAIL

Then, I am adjusting the entries for the BAPI_INSPOPER_RECORDRESULTS this way:

sample_results-smpl_attr = '/'.

sample_results-smpl_inval = 'X'.

sample_results-evaluated = 'X'.

sample_results-closed = 'X'.

sample_results-evaluation = 'R'.

In QE71 I can do this, but I must use the Force Close option to get around the error.

Is there any way to run this with the Force Close option?

Is there some other Function I can use to update these results instead?

Thanks

Doug

3 REPLIES 3
Read only

Former Member
0 Likes
636

Hello Doug

Did you solve this? How? I have a simular problem. Thank you.

Read only

Former Member
0 Likes
636

Did any of you got a solution for this?

Read only

0 Likes
636

Wow this was long time ago.  I had to go find out what I did.

I ended up doing using a call transaction to QE12.  The screen flow was tricky but it works. 

You can record the screen flow with SHDB and use the results for the call transaction code.