cancel
Showing results for 
Search instead for 
Did you mean: 

PARAMETER I_MGEIG of FUNCTION ZSL_QMFM_003 (SETTER): cannot convert Decimal into BCD[7:3]

Former Member
0 Kudos

I am trying to call the SAP RFC ZSL_QMFM_003 remotely using SAP .NET Connector 3.0.16

When set the values get exception


PARAMETER I_MGEIG of FUNCTION ZSL_QMFM_003 (SETTER): cannot convert Decimal into BCD[7:3]

Cannot convert 123456789112.333 into a BCD: maximal integer length (10) is exceeded


//ZSL_QMFM_003

decimal qty = 123456789112.333M;

func.SetValue("I_MGFRD", qty);  //I_MGFRD   type:   MGFRD   Data Type:  QUAN  Length:  13   Decimal Places:  3

the integer length of value "I_MGEIG" is 13,but use SetValue() input more than 10 ,get the exception.How  to solve this?

Accepted Solutions (0)

Answers (1)

Answers (1)

MarkusTolksdorf
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Bernard,

If you need to set such a value, you need to adjust the definition of the parameter I_MGFRD. Its type MGFRD allows to use only 10 digits before and 3 digits after the decimal point. If you need to use 12 digits before, the definition needs to be adjusted to at least BCD[8:3] in the ABAP system.

Best regards,

Markus