Application Development 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: 

Update pricing condition in SA

Former Member
0 Kudos

Hi All,

I want to create a new line item in existing SA for a particular validity period and conditions.

I am updating SA using BAPI 'BAPI_SAG_CHANGE'. My problem is that the line item is getting added to SA and even validity is getting created with condition type 'PB00' but the new condition is not added to it. I mean I want to add 2 conditions for the line item but only 1 is getting created with type 'PB00' and the second one 'ZHC3' is not getting created.

If anybody could help me out in resolving this issue then it will be highly appreciated.

Regards,

Saba

4 REPLIES 4

Former Member
0 Kudos

Hi Saba,

Check my answer on this:

I believe it can give you an idea since you're working with conditions.

Hope it helps.

Regards,

Gilberto Li

0 Kudos

Hi Gilberto,

Thanks for the response.

I had added all the parameters to update the item condition but still it was not working.

My code for adding new condition for new line item:

First m inserting for PB00 and then adding the fiollowing:

MOVE : w_last_item TO e_outcond-item_no,

w_count TO e_outcond-cond_count,

'ZHC3' TO e_outcond-cond_type,

<fs_input_data>-freight_amt TO e_outcond-cond_value,

<fs_input_data>-waers TO e_outcond-currency,

'U' TO e_outcond-change_id,

c_1 TO e_outcond-numerator,

c_1 TO e_outcond-denominator.

MOVE : w_last_item TO e_outcondx-item_no,

w_count TO e_outcondx-cond_count,

c_x TO e_outcondx-item_nox,

c_x TO e_outcondx-cond_countx,

c_x TO e_outcondx-cond_type,

c_x TO e_outcondx-cond_value,

c_x TO e_outcondx-scale_type,

c_x TO e_outcondx-scale_base_ty,

c_x TO e_outcondx-scale_unit,

c_x TO e_outcondx-scale_unit_iso,

c_x TO e_outcondx-scale_curr,

c_x TO e_outcondx-scale_curr_iso,

c_x TO e_outcondx-calctypcon,

c_x TO e_outcondx-currency,

c_x TO e_outcondx-currency_iso,

c_x TO e_outcondx-cond_p_unt,

c_x TO e_outcondx-cond_unit,

c_x TO e_outcondx-cond_unit_iso,

c_x TO e_outcondx-numerator,

c_x TO e_outcondx-denominator,

c_x TO e_outcondx-base_uom,

c_x TO e_outcondx-base_uom_iso,

c_x TO e_outcondx-lowerlimit,

c_x TO e_outcondx-upperlimit,

c_x TO e_outcondx-vendor_no.

APPEND : e_outcond TO i_ch_outcond,

e_outcondx TO i_ch_outcondx.

CLEAR : e_outcondx,

e_outcond.

Regards,

Saba

0 Kudos

Hi,

Can you try just passing the 'X' to the values you're using.

Regards,

Gilberto Li

Former Member
0 Kudos

Hi Saba,

I have seen ur post in SDN SAP for BAPI_SAG_CHANGE.

I have tried it,but not working for me.

I need to only change the first condition type (Gross Price)...value,But i could not able to change that.

Can u give me what r all the required fields for getting the result.