Skip to Content
author's profile photo Former Member
Former Member

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

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 07, 2015 at 07:35 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.