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 Result recording

Former Member
0 Likes
2,183

Hi, i really need an example call of the

"BAPI_INSPOPER_RECORDRESULTS"

because it always fails when I try to enter an inspection lot point result. The 4 "IMPORTING" parameters are straightforward but I have no clue which fields I have to set in the "SAMPLE_RESULTS" (type=BAPI2045D3) table.

System: SAP 4.6C.

Thanks alot.

4 REPLIES 4
Read only

Former Member
0 Likes
926

<i>Did you check the documentation for the BAPI ? It looks informative and from the documentation, I also get the feeling that SAMPLE_RESULTS should not be filled , but this is the table where you get your result from the BAPI.</i>

Also check <b>BAPI_INSPOPER_GETDETAIL</b>. You should probably call this BAPI first to get the details for a particular inspection order and then call <b>BAPI_INSPOPER_RECORDRESULTS</b>

Let me know if that helped.

Regards,

Subramanian V.

Message was edited by: Subramanian Venkateswaran

Read only

Former Member
0 Likes
926

Hi, thanks but it still doesn't work.

Here is the exact error message:

"The selected set in the transfer record deviates from TQSS1/TQ79" (ID=QT, NUM=408).

I have an inspection lot with 1 inspection point, so I filled ony the SAMPLE_RESULTS table:

INSPLOT = <Existing lot>

INSPCHAR = 0030

INSPSAMPLE = 0001

START_DATE, ... END_TIME = set to a today

INSPECTOR = sy-uname

CODE = 7000 ("Correct")

CODE_GRP = 70000000

Thanks for your time.

Read only

Former Member
0 Likes
926

Hi,

I solved the problem myself.

The problem was that the BAPI expects the result in the SAMPLE_RESULTS table and not the CHAR_RESULTS table.

Read only

0 Likes
926

Hi Patrick,

Seen your post and m also having the same requirement.

Would you please tell me how to use this BAPI. I am an functional consultant and have a requirement of recording results of multiple lots at a time.

U r input will be helpful.

Points assured

Regards,

Rashmi