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

How to create Defect Notification in QE11 Tcode using BAPI

former_member311223
Participant
0 Likes
1,519

Hi Experts,

I am using BAPI :  BAPI_INSPOPER_GETDETAIL and  BAPI_INSPOPER_RECORDRESULTS to create "Record Results for Inspection Point" for TCode: QE11.

And I am able to create it. But while creating the "Record Results for Inspection Point"  in TCode: QE11, we have an option where we have to create Notification in QE11 for Defects, I am unable to find the BAPI to create Notification in QE11 for Defects.

The fields which are supposed to be populated here are :  QFAAI-FEGRP,  QFAAI-FECOD,  QFAAI-FETXT,  QFMMA-MNCOD,  QFMMA-MNGRP,  QFMMA-MATXT.

Kindly suggest

Regard

Gopa

3 REPLIES 3
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,175

Hi Gopa

If search on SCN you will find BAPI_QNOTIFICAT_CREATE for the same. Please search before posting

NAbheet

Read only

0 Likes
1,175

Hi Nabheet,

Thanks for the reply.

I have seen this BAPI before but i could find any field related to Inspection Lot. As I have to create the Notification for Defect based on Inspection Lot. Manually we do it in QE11 clicking on "Defect" Button after the Inspection Lot is created.

Once we click on the Defect button a new window pops up where we specify the Defect Notification details.

I have even tried the FM: QIBP_INSPCHAR_SETRESULT for Defect Notification based on Inspection Lot. But I am getting an error Message ID: Q5 Message No. 026. in table:  RETURN2.

Error in RETURNTABLE table : No single unit number specified for comp. conf. no. 92873039.

Regards

Gopa

Read only

0 Likes
1,175

Hi Gopa

Here is the solution

You need to use BAPI_QUALNOT_CREATE,BAPI_QUALNOT_SAVE and BAPI_TRANSACTION_COMMIT in a sequence. You can pass the reference object and key of inspection lot

Read documentation for more details

Nabheet