Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9242

Re: CE_CONVERSION in ABAP AMDP method

$
0
0

You should not use OUTPUT_UNIT_COLUMN = "BAPICURR" in this if you are hardcoding units otherwise you need to

check what are the columns of conversion units in your table demo_prices;

Here is a example where conversion units are specified

 

PRICES = select 'AA' as id, '100' as in_amount, 'EUR' as IN_UNIT,'USD' as OUT_UNIT from dummy;

 

 

    lt_uom_std_conv = CE_CONVERSION (

      :PRICES,

      [ family             = 'currency',

        method             = 'ERP',

        steps              = 'shift,convert,shift_back',

        client             = '800',

        source_unit_column = 'IN_UNIT',

        target_unit_column        = 'OUT_UNIT',

        reference_date     = '01.07.2014',

        error_handling     = 'keep unconverted' ],

      [ in_amount AS out_amount ] );

 

 

 

 

 

 

   et_amount = select out_amount as BAPICURR from :lt_uom_std_conv;


Viewing all articles
Browse latest Browse all 9242

Trending Articles