The "-pack" option requires an explicit length for the
destination field. You need to specify the exact internal length of the packed
field, otherwise the RFC interface doesn't accept it. In your case the function
interface refers to the SAP data element BSTMG which is defined as a packed
field with up to 13 digits. Internally this means 7 bytes, since each byte
contains two digits and one half byte is reserved for the sign. So you need
Set V[amount] "" //
clear field
Set V[amount](1-7) "1000" -pack //
packed decimal 7 bytes
Call "MD_CONVERT_MATERIAL_UNIT" ... in.I_MENGE= "&V[amount]" ... |
|