Application Development 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: 

BAPI_INSPECTIONPLAN_CREATE for qp01

former_member298409
Participant
0 Kudos

Hello,

I am creating Inspection plan using BAPI BAPI_INSPECTIONPLAN_CREATE I am able to create Inspection plan

But Some of below feilds not updating in Inspection Characteristics

  • UP_PLS_LMT (Upper Plausibility Limit)
  • LW_PLS_LMT (Lower Plausibility Limit)

I had Passed field DEC_PLACES field also in BAPI structure ( INSPCHARACTERISTIC )

Kindly let me know if any parameter I have to pass in Inspection table of BAPI (INSPCHARACTERISTIC)

Regards,

Sekhar.

13 REPLIES 13

Former Member
0 Kudos

Hi Sekhar,

Hi Sekhar,

Check below Parameter's for Inspection Characteristics.....

Regard's

Smruti

Former Member
0 Kudos

Hi Sekhar,

Try to pass the values 'X' for the fields

MEAS_VALUE_CONFIRM_IND and

QUANTITATIVE_IND and run the program.

Let me know if you found any issues.

Thanks

Pavan.N

0 Kudos

Hi Pavan,

Thanks for your reply ..

I had tried it is giving error '

'Do not enter control indicators (XX ) and X in DIRECT INPUT'

Regards,

Sekhar

'

0 Kudos

I have got the similar error "Do not enter control indicators ( X      + X XX XX     X ) and X in DIRECT INPUT" with you. Have you found any about it?

0 Kudos

Hi Daisy,

Check below points :

1. First check MICs which are passing in BAPI, Are exist in the system ?

2. Any Control indicator are mismatching like in place of qualitative ,quantitative  indicators are passing or visa versa.

This is because of wrong input data

Thanks & Regards,

Arun

0 Kudos


I found when i maintain this parameter in my upload template the error message ("Do not enter control indicators ( X      + X XX XX     X ) and X in DIRECT INPUT") will be thrown when i use CHA_MASTER_IMPORT_MODUS equal to N. Because I cannot use CHA_MASTER_IMPORT_MODUS equal to C in our sap environment.


If I do not maintain the charac. attribute paramter with bapi value (QSCORE_AND_SHARE_RELEVANT, Characteristic Relevant for Qual. Score and Scrap Share ) in my upload template. It is fine for me to create inspection plan without any error message.


But, the record the inspection plan which created by the bapi will miss below two value

SEL_SET1PSEL_SET1
Assigned Code Group or Selected SetPlant of the Assigned Selected Set

Can i have your email to seek further advise. Many Thanks.

0 Kudos

Hi,

Can you check the type MIC which are passing to BAPI in QS23 whether it qual or quan ?

Thanks & Regards,

Arun

0 Kudos

Thanks Arun,

I have checked in QS23 and modified the control indicator data. The error is solved, but when I checked the created inspection plan, the control indicator Qualitative Characteristic -> Charac. attribute is not being checked in the created record.

I have double checked it in debug mode, the bapi parameter QSCORE_AND_SHARE_RELEVANT (Characteristic Relevant for Qual. Score and Scrap Share) has been shown as marked.

Am i mapping Charac. attribute as wrong bapi parameter?

0 Kudos

Hi,


Can you check 'inspcharacteristic-quantitative_ind' passed as 'X' , if yes pass blank for qualitative MIC


Thanks & Regards,

Arun

0 Kudos

Thanks Arun,

I have got another error

1 BAPI 001
2 QD 243 The sampling procedure requires summarized recording and selected sets
3 CQCL 103 Consistency check when creating characteristic 0050 was unsuccessful
4 CQCL 103 Consistency check when creating characteristic 0050 was unsuccessful
5 QD 243 The sampling procedure requires summarized recording and selected sets
6 CQCL 103 Consistency check when creating characteristic 0090 was unsuccessful
7 CQCL 103 Consistency check when creating characteristic 0090 was unsuccessful

I have checked the data seems is correct. Could you advise me.

0 Kudos

Thanks Arun,

I have solved the problem.

Former Member
0 Kudos

*-----检验特性

     CLEAR:gt_inspcharacteristic.

     gt_inspcharacteristic-activity         = gt_insplan-activity.

     gt_inspcharacteristic-inspchar         = gt_insplan-merknr."检验特性的编号(必输)

*   gt_inspcharacteristic-task_list_group          = gt_insplan-task_list_group. "检验计划组

*   gt_inspcharacteristic-group_counter            = gt_insplan-group_counter.   "组计数器

     gt_inspcharacteristic-operation_id    = gt_operation-operation_id."工序ID

     gt_inspcharacteristic-valid_from       = sy-datum.             "生效从

     gt_inspcharacteristic-mstr_char        = gt_insplan-verwmerkm. "检验特性的编码(必输)

     gt_inspcharacteristic-pmstr_char       = gt_insplan-qpmk_zaehl.

     gt_inspcharacteristic-method           = gt_insplan-pmethode.    "检验方法编码

     gt_inspcharacteristic-pmethod          = gt_insplan-qmtb_werks.  "检验方法工厂代码

     gt_inspcharacteristic-smpl_procedure   = gt_insplan-stichprver.  "采样过程编码(必输)

     IF gt_inspcharacteristic-smpl_procedure IS NOT INITIAL.

       gt_inspcharacteristic-sampling_procedure_ind   = 'X'.           "采样过程编码(必输)

       gt_inspcharacteristic-quantitative_ind = 'X'.

       gt_inspcharacteristic-meas_value_confirm_ind = 'X'.              "-------

     ENDIF.

     gt_inspcharacteristic-smpl_unit        = gt_insplan-probemgeh.   "采样计量单位

     PERFORM frm_unit_conv CHANGING gt_inspcharacteristic-smpl_unit.

     gt_inspcharacteristic-dec_places       = gt_insplan-stellen.     "小数位

     gt_inspcharacteristic-smpl_quant       = gt_insplan-pruefeinh.    "采样基本数量

     PERFORM frm_unit_conv CHANGING gt_inspcharacteristic-smpl_quant.

     gt_inspcharacteristic-meas_unit        = gt_insplan-masseinhsw.  "数量数据被维护的计量单位 "

     PERFORM frm_unit6_conv USING gt_inspcharacteristic-meas_unit.

     gt_inspcharacteristic-char_descr       = gt_insplan-kurztext.    "检验特性的短文本

*   gt_inspcharacteristic-quantitative_ind = 'X'.                    "-------数量特性标识

*   gt_inspcharacteristic-meas_value_confirm_ind = 'X'.              "-------标识是否修改

     gt_inspcharacteristic-target_val       = gt_insplan-sollwert.   "目标值

     gt_inspcharacteristic-up_tol_lmt       = gt_insplan-toleranzob. "上限值

     IF gt_inspcharacteristic-up_tol_lmt IS NOT INITIAL.

       gt_inspcharacteristic-up_tol_lmt_ind   = 'X'.                 "上限值

     ENDIF.

     gt_inspcharacteristic-lw_tol_lmt       = gt_insplan-toleranzun. "下限值

     IF gt_inspcharacteristic-lw_tol_lmt IS NOT INITIAL.

       gt_inspcharacteristic-lw_tol_lmt_ind   = 'X'. "下限值

     ENDIF.

     gt_inspcharacteristic-sel_set1         = gt_insplan-auswmenge1. "选择集编码

     IF gt_inspcharacteristic-sel_set1 IS NOT INITIAL.

       gt_inspcharacteristic-attribute_required_ind = 'X'.

     ENDIF.

     gt_inspcharacteristic-cha_master_import_modus =  'N'.

     gt_inspcharacteristic-psel_set1        = gt_insplan-auswmgwrk1. "选择集工厂

     gt_inspcharacteristic-infofield1       = gt_insplan-dummy10.    "附加信息1

     gt_inspcharacteristic-infofield2       = gt_insplan-dummy20.    "附加信息1

     gt_inspcharacteristic-infofield3       = gt_insplan-dummy40.    "附加信息1

     APPEND gt_inspcharacteristic.

0 Kudos

This message was moderated.