on 11-30-2015 7:35 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.