cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with BAPI_INSPECTIONPLAN_CREATE (new)

Former Member
0 Kudos

Hi,

I'm trying to create inspection plan using BAPI_INSPECTIONPLAN_CREATE. I'm passing the following parameters for the tables in BAPI.

Profile = 0000001

1)Task.

I. change_no

II. task_measure_unit

III. lot_size_to

IV. plant

V. description

VI. task_list_status

VII. lot_size_from

VIII. valid_from

IX. planning_work_center

X. task_list_usage

2)MATERIALTASKALLOCATION

I. material

II. change_no

III. plant

IV. valid_from

3)operation

I. change_no

II. activity

III. control_key

IV. plant

V. operation_measure_unit

VI. denominator

VII. nominator

VIII. base_quantity

IX. description

X. valid_from

XI. work_cntr

XII. insp_point_complt_flow_variant

XIII. operation_id

4)INSPCHARACTERISTIC

I. activity

II. operation_id

III. change_no

IV. inspchar

V. pmstr_char

VI. pmethod

VII. smpl_unit

VIII. smpl_quant

IX. cha_master_import_modus

X. characteristic_name

XI. sampling_procedure_ind

XII. scope_ind

XIII. confirmation_category

XIV. change_documents_req

XV. print_ind

XVI. docu_requ

XVII. valid_from

XVIII. mstr_char

XIX. method

XX. char_descr

for quantitative char, i'm sending the below additional information

I. quantitative_ind

II. meas_value_confirm_ind

III. dec_places

IV. meas_unit

V. target_val

VI. up_tol_lmt

VII. lw_tol_lmt

VIII. smpl_procedure

IX. smpl_unit

X. smpl_quant

XI. target_val_check_ind

XII. up_tol_lmt_ind

XIII. lw_tol_lmt_ind

for qualitative char, i'm sending the below additional information

I. attribute_required_ind

II. sel_set1

III. psel_set1

IV. smpl_procedure

V. smpl_unit

Vi. smpl_quant

But I'm still getting the follwing errors.

BAPI 001

CP 458 You cannot enter an activity type for standard value Mach. Dep

CPCL 203 Consistency check not successful when creating operation

CQCL 008 Inspection characteristic cannot be uniquely assigned to one operation

CQCL 026 Data import mode N does not apply to a master inspection characteristic

Please help me... Let me know if i have to give any additional information

thanks in advance

Vishnu

Edited by: Vishnu080 on Jun 30, 2009 5:00 PM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

I need to attach Inspection charactersitic to Inspection Lot. Can I do this with the bapi you mentioned.

If we can do it, please tell me what parameters  and value to pass?

I dont need to create inspection lot.

Shilpa

former_member186399
Active Contributor
0 Kudos

Dear Vishnu

Please check this link. It might help you in the program and please check for other links in this forum for the same BAPI

Link: [https://wiki.sdn.sap.com/wiki/display/Snippets/ABAPProgramtouploadQMInspectionPlanUsingBAPI]

Regards

Gajesh

Former Member
0 Kudos

Hi,

Thanks for replying. I tried that program. But that was going for dump. Could you provide an alternative soltion?

Former Member
0 Kudos

kindly recoed BDC for inspection plan in QP01

If not possible I will sent code for it.

Former Member
0 Kudos

Hi Yogini,

Thanks for replying. Actually i have no other option except to use this BAPI_INSPECTIONPLAN_CREATE. I have been passing the fields which i have mentioned in the thread. But still there are some errors. Could you send me the code for this BAPI.

Thanks in advance.

Vishnu