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 with SD_SALESDOCUMENT_CHANGE delete conditions

Former Member
0 Likes
566

Hallo,

if got a problem with FM SD_SALESDOCUMENT_CHANGE. There is no problem for me to delete a condition e.g. 'Z100'.

The FM does what it should but if i want to add the same condition in a later step again. I get two lines of the contion 'Z100' in my conditionresult. They have the same condition value but different condition counts.

The way I delete the conditions is:

        ls_order_conditions_inx-updateflag = 'D'.
        ls_order_conditions_in-itm_number  = ls_zsaws_conditions_tmp-itm_number.
        ls_order_conditions_inx-itm_number = ls_zsaws_conditions_tmp-itm_number.
        ls_order_conditions_in-cond_type   = ls_zsaws_conditions_tmp-cond_type.
        ls_order_conditions_inx-cond_type  = ls_zsaws_conditions_tmp-cond_type.
        ls_order_conditions_in-cond_count  = ls_zsaws_conditions_tmp-cond_count.
        ls_order_conditions_inx-cond_count = ls_zsaws_conditions_tmp-cond_count.

They way I insert condition 'Z100' again is:

        ls_order_conditions_inx-updateflag = 'I'.
        ls_order_conditions_in-itm_number  = ls_zsaws_conditions_tmp-itm_number.
        ls_order_conditions_inx-itm_number = ls_zsaws_conditions_tmp-itm_number.
        ls_order_conditions_in-cond_type   = ls_zsaws_conditions_tmp-cond_type.
        ls_order_conditions_inx-cond_type  = ls_zsaws_conditions_tmp-cond_type.
        ls_order_conditions_in-cond_value  = ls_zsaws_conditions_tmp-cond_value.
        ls_order_conditions_inx-cond_value = 'X'.
        ls_order_conditions_in-currency    = ls_zsaws_conditions_tmp-currency.
        ls_order_conditions_inx-currency   = 'X'

.

Has anyone an idea why I get duplicated conditions back?

Yes I use cond_handl = X.

Thank you for your help,

regards,

Lutz Gundlach

Edited by: Lutz Gundlach on Feb 3, 2010 9:26 AM

My Problem is solved. It was a customizing checkbox missing.

Hallo,

if got a problem with FM SD_SALESDOCUMENT_CHANGE. There is no problem for me to delete a condition e.g. 'Z100'.

The FM does what it should but if i want to add the same condition in a later step again. I get two lines of the contion 'Z100' in my conditionresult. They have the same condition value but different condition counts.

The way I delete the conditions is:

        ls_order_conditions_inx-updateflag = 'D'.
        ls_order_conditions_in-itm_number  = ls_zsaws_conditions_tmp-itm_number.
        ls_order_conditions_inx-itm_number = ls_zsaws_conditions_tmp-itm_number.
        ls_order_conditions_in-cond_type   = ls_zsaws_conditions_tmp-cond_type.
        ls_order_conditions_inx-cond_type  = ls_zsaws_conditions_tmp-cond_type.
        ls_order_conditions_in-cond_count  = ls_zsaws_conditions_tmp-cond_count.
        ls_order_conditions_inx-cond_count = ls_zsaws_conditions_tmp-cond_count.

They way I insert condition 'Z100' again is:

        ls_order_conditions_inx-updateflag = 'I'.
        ls_order_conditions_in-itm_number  = ls_zsaws_conditions_tmp-itm_number.
        ls_order_conditions_inx-itm_number = ls_zsaws_conditions_tmp-itm_number.
        ls_order_conditions_in-cond_type   = ls_zsaws_conditions_tmp-cond_type.
        ls_order_conditions_inx-cond_type  = ls_zsaws_conditions_tmp-cond_type.
        ls_order_conditions_in-cond_value  = ls_zsaws_conditions_tmp-cond_value.
        ls_order_conditions_inx-cond_value = 'X'.
        ls_order_conditions_in-currency    = ls_zsaws_conditions_tmp-currency.
        ls_order_conditions_inx-currency   = 'X'

.

Has anyone an idea why I get duplicated conditions back?

Yes I use cond_handl = X.

Thank you for your help,

regards,

Lutz Gundlach

Edited by: Lutz Gundlach on Feb 3, 2010 9:26 AM

My Problem is solved. It was a customizing checkbox missing.

1 REPLY 1
Read only

Pavan_Golesar
Active Participant
0 Likes
449

Hi,

Is the issue resolved.?

Regards,

Pavan