2008 Jul 28 8:14 PM
Hi All,
I am using SD_SALESDOCUMENT_CHANGE Function Module to simulate the deletion of condition type in Pricing .I can able to delete the Item level Custom Condition type .But if i am trying to delete the Header Custom Condition Type,it returns no error message regarding the condition changes after executing it.But it is not delting the header condition type.
*---Code to delete Header Condition Types
wa_cond_inx-itm_number = wa_cond_in-itm_number = '000000'.
wa_cond_inx-cond_st_no = wa_cond_in-cond_st_no = '210'.
wa_cond_inx-cond_count = wa_cond_in-cond_count = '01'.
wa_cond_inx-cond_type = wa_cond_in-cond_type = 'ZMHF'.
*---Pass condition handler flag to header, if there is any cond. type to be deleted
x_log_switch-cond_handl = 'X'.
wa_cond_inx-updateflag = 'D'.
APPEND:wa_cond_inx TO conditions_inx,
wa_cond_in TO conditions_in.
wa_headx-updateflag = 'U'.
CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'
EXPORTING
salesdocument = i_order_head_in-doc_number
order_header_inx = wa_headx
simulation = 'X'
logic_switch = x_log_switch " LIKE BAPISDLS
IMPORTING
sales_header_out = x_head_out
TABLES
return = it_return
conditions_in = conditions_in
conditions_inx = it_conditions_inx
conditions_ex = it_cond.
Please help me what i am missing .
Regards,
Vigneswaran S
Hi All,
I am using SD_SALESDOCUMENT_CHANGE Function Module to simulate the deletion of condition type in Pricing .I can able to delete the Item level Custom Condition type .But if i am trying to delete the Header Custom Condition Type,it returns no error message regarding the condition changes after executing it.But it is not delting the header condition type.
*---Code to delete Header Condition Types
wa_cond_inx-itm_number = wa_cond_in-itm_number = '000000'.
wa_cond_inx-cond_st_no = wa_cond_in-cond_st_no = '210'.
wa_cond_inx-cond_count = wa_cond_in-cond_count = '01'.
wa_cond_inx-cond_type = wa_cond_in-cond_type = 'ZMHF'.
*---Pass condition handler flag to header, if there is any cond. type to be deleted
x_log_switch-cond_handl = 'X'.
wa_cond_inx-updateflag = 'D'.
APPEND:wa_cond_inx TO conditions_inx,
wa_cond_in TO conditions_in.
wa_headx-updateflag = 'U'.
CALL FUNCTION 'SD_SALESDOCUMENT_CHANGE'
EXPORTING
salesdocument = i_order_head_in-doc_number
order_header_inx = wa_headx
simulation = 'X'
logic_switch = x_log_switch " LIKE BAPISDLS
IMPORTING
sales_header_out = x_head_out
TABLES
return = it_return
conditions_in = conditions_in
conditions_inx = it_conditions_inx
conditions_ex = it_cond.
Please help me what i am missing .
Regards,
Vigneswaran S
2008 Jul 29 6:13 PM
Hello Vigneshvaren,
Try to find for any OSS . If not Open a OSS message .
For time being use the BAPI "BAPI_SALESORDER_CHANGE" this will work.
Thanks,
Greetson
2008 Jul 29 7:01 PM
Hi Greetson,
I have tested BAPI_SALESORDER_CHANGE ,that is also not deleting the header condition types. If you see the code for BAPI_SALESORDER_CHANGE,it calls only SD_SALESDOCUMENT_CHANGE .I could not able to delete the header condition type that.It didnt say any error message or success message for condition types.It just says Order Header processed successfully and item processed successfully.Can you tell me what i am missing .
Regards,
Vigneswaran S
2008 Jul 29 7:23 PM
you might have to update line by line as in KONV records not sure if it can be done at header.
2008 Jul 31 4:35 AM
Hi ,
I am sorry.I could not get what you are saying.Can any one help me if you have done this dleteion of header pricing in BAPI_SALESORDER_CHANGE already.
Regards,
Vigneswaran S