on 04-01-2005 7:08 AM
Hello,
I am trying to use BAPI_PO_GETDETAIL and call it in an C# code. I am using the RFCTYPE however i am either getting a marshalling error or incompatible type for the quantity and currency fields like MENGE. Please anybody can help.
REgards,
Shekhar KUlakrni
The .NET Connector maps ABAP type P and all P based user defined types like DEC or MENGE to CLR type Decimal (decimal in C#). Please make sure that those fields are set with valid decimal values with correct precision (width and number of digits after decimal point).
Can you please copy a piece of your code to show how you set values to those fields?
Guangwei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I have tried almost all the rfctype that were present however none of them worked.
[RfcField(AbapName = "TARGET_QTY", RfcType = RFCTYPE.RFCTYPE_BCD , Decimals=3, Length = 17, Length2 = 34, Offset = 164, Offset2 = 328)]
[XmlElement("TARGET_QTY")]
public decimal TARGET_QTY
{
get
{
return Convert.ToDecimal(_TARGET_QTY);
}
set
{
TARGETQTY = value;
}
}
private decimal TARGETQTY;
Regards,
Shekhar Kulkarni
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.