2011 Jan 25 11:16 AM
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
2011 Jan 25 11:38 AM