Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_SALESORDER_CHANGE

Former Member
0 Likes
675

Hi ,

I am changing Pricing condition using bapi BAPI_SALESORDER_CHANGE

it_order_cond-itm_number = '000001'.

it_order_cond-cond_count = '01'.

it_order_cond-cond_type = 'ZHTV'.

it_order_cond-cond_value = '2.00'.

it_order_cond-currency = 'USD'.

logic_switch-pricing = 'C'. ( it very imp for it)

if i dont use logic_switch-pricing = 'C' it try to enter double value for ZHTV.

ZHTV is discount and its $ 2.

its sucessfully updating but discount should come in -ve but it updating in +ve i.e. its adding 2 $ in 100$ = i 102 $

it should work like $98.

Even though in v/06 we maintain -ve indicator. i.e. 'X'.

is any thing missing from my side.. ?

Price showing $102 insted of $98 !

<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>

Edited by: Alvaro Tejada Galindo on Aug 21, 2008 4:22 PM

Hi ,

I am changing Pricing condition using bapi BAPI_SALESORDER_CHANGE

it_order_cond-itm_number = '000001'.

it_order_cond-cond_count = '01'.

it_order_cond-cond_type = 'ZHTV'.

it_order_cond-cond_value = '2.00'.

it_order_cond-currency = 'USD'.

logic_switch-pricing = 'C'. ( it very imp for it)

if i dont use logic_switch-pricing = 'C' it try to enter double value for ZHTV.

ZHTV is discount and its $ 2.

its sucessfully updating but discount should come in -ve but it updating in +ve i.e. its adding 2 $ in 100$ = i 102 $

it should work like $98.

Even though in v/06 we maintain -ve indicator. i.e. 'X'.

is any thing missing from my side.. ?

Price showing $102 insted of $98 !

<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>

Edited by: Alvaro Tejada Galindo on Aug 21, 2008 4:22 PM

1 REPLY 1
Read only

Former Member
0 Likes
543

Hi,

you need to pass the parameter with currency or currency_iso to COND_VALUE .

Please refer to the this SAP HELP on cond_value

"When you complete the COND_VALUE and CURRENCY fields, you must decide which of the following applies:

The condition calculation type is expressed in percentage (the T685A-KRECH field contains AHI)

In this case you should leave the CURRENCY field blank and enter the percentage value with a comma

Example:

Enter percentage rate 20% as 20,0000 in the COND_VALUE field.

The condition calculation type is not expressed in percentage

In this case the COND_VALUE field is a currency quantity field. You must enter the CURRENCY or CURRENCY_ISO field so that the correct conversion takes place. Again, you must enter the amount kommagerecht.

If neither the CURRENCY or the CURRENCY_ISO fields are completed, the entry is issued as a percentage value. This could lead to an incomplete entry if the condition type is not in percentages."

Thanks,

Kamesh Bathla