cancel
Showing results for 
Search instead for 
Did you mean: 

Non numeric value in numeric field giving error

raktim_banerjee
Participant
0 Kudos

Hi All

I am using BAPI for creating sales order. If user is giving non numeric value in Quantity field it is giving error. Because quantity field data type is Double.

Please Help.

Thanks

Raktim

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Banerjee,

Do validation for numeric values before Calling RFC Execute Method.This will Resolve your error.

Thanks

Madhan

raktim_banerjee
Participant
0 Kudos

Hi Mohan

Thanks for ur reply. Actually control is not coming to RFC execution. Before that program is internally trying to put data in context to which it is mapped. Generic validation is working for date field but not for Bigdecimal fields.

Thanks again for reply. Waiting for solution.

Thanks

raktim

Former Member
0 Kudos

Hi Raktim

Please elaborate the problem with the validation of BigDecimal.

Regards

Ananda

Former Member
0 Kudos

Hi Banerjee,

Create a String/int/long Context variable and point it to UI Input element.Do the validation for correct input value. once the validation is succesful assign that value to RFC BigDecimal variable by Explicit casting.

Hope this might solve your problem .

Thanks

Madhan

raktim_banerjee
Participant
0 Kudos

Hi Ananda,

Thanks for ur reply.

I am using BAPI_SALESORDERCREATEFROMDAT2 for creating sales order from webdynpro iview. I have mapped item table of RFC to my Webdynpro table control. So Target Quantity is directly entered by the user in tabular format. This field is BigDecimal type. When user enteres non-numeric value say 'a' to this field it is getting an error.

Still waiting for solution.

Thanks

Raktim

raktim_banerjee
Participant
0 Kudos

Hi Madhan

Thanks for ur answer. U r telling to create another context node and put the value programatically into node for RFC. Is there any other way to validate using the context same?

Thanks

Raktim