cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI for adding an Unplanned Characteristic in Recording Result

former_member211679
Participant
0 Kudos

Hi All,

I am searching for BAPI/ FM for adding an Unplanned Characteristic in tcode QE01, While I debug the entire Tcode several times i got an FM "QEEB_UNPLANNED_CHARACTERISTIC" still after executing that it is not added may be something else needs to be call.

Help will be appreciated...

Thanks & regards

Sumit

Accepted Solutions (0)

Answers (3)

Answers (3)

Hi Sumit,

Try the below code,

DATA lt_return TYPE bapirettab.

DATA ls_qamkr TYPE qamkr.

cl_qum_inspchar=>create_add_characteristic(
EXPORTING
iv_prueflos = '140000005100' " Inspection Lot Number
iv_vornr = '0010' " Operation/Activity Number
iv_probenr = '000001' " Sample Number (Based on an Inspection Point)
iv_verwmerkm = 'Q73_002' " Master Inspection Characteristics
iv_qpmk_werks = '0001' " Plant
iv_mkversion = '000001' " Version Number of the Master Inspection Characteristic
iv_kurztext = 'One More Test' " Short Text for Inspection Characteristic
iv_stichprver = '10000003' " Sampling Procedure in Inspection Characteristic
iv_pruefeinh = '1' " Sample Quantity Factor for Sample(Mult. Sample Unit of Msr.)
IMPORTING
et_return = lt_return " Table with BAPI Return Information
es_qamkr = ls_qamkr " Specifications and results for the characteristic
).
DELETE lt_return WHERE type NE 'E' AND type NE 'A' AND type NE 'F'.
IF lt_return IS INITIAL.
COMMIT WORK AND WAIT.
ENDIF.

Regards,

Murali Kumar

former_member800810
Discoverer
0 Kudos

Thank you! In general, master characteristic must be marked "Sampling procedure" and this method works.

I used it with BAPI_INSPOPER_RECORDRESULTS in the second step.

Former Member
0 Kudos

I think you should debug QEEB_UNPLANNED_CHARACTERISTIC

meanwhile you can check the client level setting( Table  ntry for unplanned characteristics in table TQSS) & valuation settings

busyaban7
Active Contributor
0 Kudos

Hi Sumit,

Please try checking the below exit -

QEEM0021  User exit: additional functions for user key +US1

EXIT_SAPLQEEM_021: Customer Function: Add. Functions for User Key +US1 (Char. S

With this function module, the function code +US1 on individual

characteristic screens is integrated in the menu option Extras.

Using field E_FCODE_NEXT, you can add an additional function code to

the function module. This function code is carried out from the

results recording transactions as a follow-up function code in a

connection with the customer function. The following functions are

available, for example, for this:

-  P++    scroll to the end of the individual results table

-  NSTP   position the cursor at the next sample (for independent  

   multiple        samples)

-  NMKP  position the cursor at the next characteristic

   With input field I_QAQEE-AKTIVITAET, you can determine the

   transaction type (display, record or change).

I do not have sufficient data to test this, so you can check with ABAP team in case if this works for you.

Thanks,

Arijit