Skip to Content
avatar image
Former Member

com.sap.odp.common.types.DualPrice no API availale

Hi,

I am new to SAP Sourcing and I'm working on a script that shuld set value to DualPrice (setUnitPrice(com.sap.odp.common.types.DualPrice)).

I'm not finding any way to convert Price to DualPrice or simply to set it somehow.

Is there anyone who can point me API or code for setting DualPrice.

Tanks in advance!

Mirza

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 07, 2011 at 05:38 PM

    Hi,

    create a dual price from the price using the Dual price construct DualPrice(Price aPrimaryPrice). the pass it to the setUnitPrice

    e.g setUnitPrice(new DualPrice(aPrimaryPrice));

    thanks, Baski

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      One more thing,

      without conversion to DualPrice, I get exception:

      Method setUnitPrice( com.sap.odp.common.types.Price ) not found in class'com.sap.eso.api.contracts.LineItemIBeanImpl'

      Thanks

      Mirza