cancel
Showing results for 
Search instead for 
Did you mean: 

Error message "Enter the unit of measure" in WebClient ???

Former Member
0 Kudos
330

Hello Experts,

We are working on CRM 5.0 SP 7, IC WebClient and have implemented the BAdi "CRM_SERVICEPROD_BADI" to assign a service product ''INVESTIGATION' whenever user selects service ticket in WebClient.

However, when confirming a Business Partner and accessing the service ticket, an error is getting displayed stating "Enter the unit of measure".

We have already mentioned the unit of measure in Product but it seems it is not picking from there.

Please help me to remove this error.

Reward points assured for useful answers.

Regards,

Amit

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Dear Amit,

Missing sales area related data causes a lot for problems and messages.

the message you received ( enter unit of measure ) is related to that.

Please enter the sales area data properly in order to avoid the

problems of these kind.

If you are not using the sales area then you have to do a

workaround using a corresponding redefined controller class and directly

set the unit of measure or you have to use a custom implementation of

the BADI CRM_PRODUCT_I_BADI.There is no other option for this.

Regards, Gerhard

Former Member
0 Kudos

Hi Gerhard,

I have given unit of measure for sales area.

I tried implementing BADI CRM_PRODUCT_I_BADI as well but then I am getting message stating "<b>Unit data for ****** has not been created in product INVESTIGATION</b>".

Any idea about this??

Regards,

Amit

johan_vanzijl
Participant
0 Kudos

Hi Amit

Gerhard is 100% correct. Please make sure that your unit of measures are maintained on the product master(trans COMMPR01).

Use the code below in CRM_PRODUCT_I_BADI to set uom.

if cs_product_i_badi-process_qty_unit is initial.

cs_product_i_badi-process_qty_unit = 'EA'.

cs_product_i_badi-process_qty_num = 1.

cs_product_i_badi-process_qty_den = 1.

endif.

Also, you will find you get error to specify product quantity. This can be done in badi CRM_SCHEDLIN_BADI with code below.

if is_schedlin_wrk-quantity is initial.

cs_schedlin_badi-quantity = 1.

endif.

Regards

johan.

Former Member
0 Kudos

Hi Johan,

I impelemented both BADI and passed <b>AU</b> as unit of measure for product <b>INVESTIGATION.</b>

But still I am getting the same error message stating

<b>"Unit data for ****** has not been created in product INVESTIGATION"</b>

Regards,

Amit

Former Member
0 Kudos

Hi amit

Please mainatin the unit of measure as said in yuor deafult service product by maintaining it as a base unit first (service Tab) and then in the S&D tab assign the unit in sales unit and put in the min order quantity as 0 or 1..this you will need to do for all assigned sales areas.

Make sure the item cat grp is correct in service and s&D tab of the default product (commpr01)

I m sure your issue will be resolved .I had the same error.

Cheers!

regards

Shankar Raj

Former Member
0 Kudos

Hi All,

Thank you all for you invaluable inputs. The issue is resolved now. We were passing AU as base unit of measure but it was not maintained in database table. We have updated the table and it is working fine now.

Regards,

Amit

Former Member
0 Kudos

H Amit,

Having the same problem....would you please share your solution ....

thanks

Mohammed

Former Member
0 Kudos

Hi,

Implement the BADI CRM_PRODUCT_I_BADI with the following code:

METHOD if_ex_crm_product_i_badi~crm_product_i_merge.

cs_product_i_badi-process_qty_unit = 'EA'.

cs_product_i_badi-process_qty_num = 1.

cs_product_i_badi-process_qty_den = 1.

ENDMETHOD.

Regadrs,

Amit

Former Member
0 Kudos

Hi Amit,

could u please email me on mo123_23@hotmail.com ....need to ask u specific question with reference to the service ticket.

Regards

Mohammed