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

Problem in Condition Changes in Sales Order change BAPI

Former Member
0 Likes
1,108

Hi All

I required your help ...I am facing problem in updating the Item Condition in Sales Order Change BAPI

Problem is that , In Sales Order Condition there are two status for one Condition type(ZDSR)

One is Active(Green) and other one is Inactive mode(Yellow)

When i am updating through Change Bapi ..Bapi giving error that

KEDI operation not possible; condition ZDSR not unique : This is happening i guess because of BAPI is getting two entries in KONV table one for Inactive and another one for Active

But BAPI working correct for condition type which has only one status ie Green.

I checked in KONV(Condition Table) ,There is a field Counter which stores Value 01 for Inactive and 02 for Active condition type

I tried to pass this code as

wa_cond-itm_number = wa_vbap-posnr.

wa_cond-cond_type = 'ZDSR'.

wa_cond-cond_st_no = wa_konv-stunr.

  • wa_cond-cond_count = wa_konv-zaehk.(Counter)

wa_cond-cond_value = lv_kwert.

APPEND wa_cond TO it_cond.

But BAPI gives output as error : Counter field can't be use with Condition type ZDSR.

What should i do to avoid the Inactive condition while calling the BAPI.

Pls give your inputs.

Regards

SA

Edited by: Subham Arya on Jan 25, 2011 12:28 PM

Hi All

I required your help ...I am facing problem in updating the Item Condition in Sales Order Change BAPI

Problem is that , In Sales Order Condition there are two status for one Condition type(ZDSR)

One is Active(Green) and other one is Inactive mode(Yellow)

When i am updating through Change Bapi ..Bapi giving error that

KEDI operation not possible; condition ZDSR not unique : This is happening i guess because of BAPI is getting two entries in KONV table one for Inactive and another one for Active

But BAPI working correct for condition type which has only one status ie Green.

I checked in KONV(Condition Table) ,There is a field Counter which stores Value 01 for Inactive and 02 for Active condition type

I tried to pass this code as

wa_cond-itm_number = wa_vbap-posnr.

wa_cond-cond_type = 'ZDSR'.

wa_cond-cond_st_no = wa_konv-stunr.

  • wa_cond-cond_count = wa_konv-zaehk.(Counter)

wa_cond-cond_value = lv_kwert.

APPEND wa_cond TO it_cond.

But BAPI gives output as error : Counter field can't be use with Condition type ZDSR.

What should i do to avoid the Inactive condition while calling the BAPI.

Pls give your inputs.

Regards

SA

Edited by: Subham Arya on Jan 25, 2011 12:28 PM

1 REPLY 1
Read only

Former Member
0 Likes
682

Any comment