cancel
Showing results for 
Search instead for 
Did you mean: 

Delete Sales Order Condition at item Level

Former Member
0 Kudos

Hi Experts,

I am using  BAPI_SALESORDER_CHANGE bapi for modifying the condition at item level.For this i am passing 'U' in  order_header_inx, which is working fine.

Now, i have requirement to delete the condition from item level, for this i am passing 'D' in  order_header_inx and also passing item number, COND_ST_NO, COND_TYPE and COND_COUNT  in conditions_in  and  conditions_inx.

But still it is not deleting condition from item level.Please suggest.

Please have a look on below image, here i am trying to delete condition ZZZZ from item '10'

    

Please suggest.

Thanks.

Rohit

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Any suggestion experts!!!

with regards,

Rohit

Former Member
0 Kudos

Hi Rohit,

Are you adding 'D' to  conditions_inx-updateflag as well?

I think you will need to.


Regards,


Ron

Former Member
0 Kudos

Hi Ron,

I am already adding 'D' to conditions_inx-updateflag but it is not working as expecting.

Thanks

Rohit

former_member191761
Active Participant
0 Kudos

Hi Rohit ,

Please check OSS note 593246 might help.

For those who want to delete condition in the SD order, in the case you set this importing flag of the FM BAPI_SALESORDER_CHANGE

LOGIC_SWITCH-COND_HANDLE = 'X'.

Regards

Sri

Former Member
0 Kudos

Hi Srilakshmi,

Before deleting condition from Sales order, we also want to do check price availability.for this, i am using  FM  SD_SALESDOCUMENT_CHANGE with deleted condition.  here, same issue of deleting the item condition arising and it is not deleting for the Price calculation.

Please suggest.

Thanks,

Rohit