cancel
Showing results for 
Search instead for 
Did you mean: 

Error when placing provider order - Product role does not fit to object 'Provider Order Item'

Former Member
0 Kudos

Hi,

Has anyone encountered this error when placing a provider order for a product?

Error Message: Product role does not fit to object 'Provider Order Item'

Accepted Solutions (0)

Answers (1)

Answers (1)

bruce_li
Contributor
0 Kudos

Hi Camille,

I think you can do the debugging in following funcation module and see if the following "IF conditions" are met or not.

Function module CRM_PROV_EX_PROC_SEL_TYPE_EC

IF ( cl_crm_isx_order_info=>is_provitem( iv_guid = ls_orderadm_i_wrk-guid ) = abap_true AND NOT ( ls_ist_extension_wrk-a3seltype = 'M' OR ls_ist_extension_wrk-a3seltype = 'R' ) ) OR ( cl_crm_isx_order_info=>is_provitem( iv_guid = ls_orderadm_i_wrk-parent ) = abap_true AND ls_orderadm_i_wrk-itm_usage = '16' ) OR ( cl_crm_isx_order_info=>is_provitem( iv_guid = ls_orderadm_i_wrk-guid ) = abap_true AND NOT lv_product_role = 'R' ). MESSAGE e098(crm_provider) INTO lv_dummy.

* Product role does not fit to provider order item * this message will not be deleted from the UI !

CALL FUNCTION 'CRM_MESSAGE_COLLECT' EXPORTING

iv_caller_name = gc_object_name-orderadm_i iv_ref_object = iv_object_guid iv_logical_key = iv_object_guid iv_ref_kind = gc_object_kind-orderadm_i iv_msgno = sy-msgno iv_msgid = sy-msgid iv_msgty = sy-msgty iv_msglevel = gc_msglevel-administrator EXCEPTIONS not_found = 1 appl_log_error = 2 OTHERS = 3. ENDIF.

Best regards,

Bruce