Hi Karthik,
Before calling the function Module I am Clearing all the values,please check the below code
and help me to resolve it.
REFRESH :it_status,it_input_fields,it_service,it_text,it_partner,it_save_objects.
*******************STATUS *********************************
IF status IS NOT INITIAL. "input Field
wa_status-ref_guid = wa_header.
wa_status-ref_kind = 'A'.
wa_status-status = status.
wa_status-user_stat_proc = 'ZSR10000'.
wa_status-activate = 'X'.
APPEND wa_status TO it_status.
CLEAR : wa_input_fields,wa_ipfields,wa_status.
wa_input_fields-ref_guid = wa_header.
wa_input_fields-ref_kind = 'A'.
wa_input_fields-objectname = 'STATUS'.
wa_ipfields-fieldname = 'ACTIVATE'.
wa_ipfields-changeable = ' '.
INSERT wa_ipfields INTO TABLE wa_input_fields-field_names.
INSERT wa_input_fields INTO TABLE it_input_fields.
ENDIF.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
it_service_h = it_service
it_text = it_text
it_partner = it_partner
it_status = it_status
IMPORTING
et_exception = it_exception
CHANGING
ct_orderadm_h = it_orderadm_h
ct_input_fields = it_input_fields
EXCEPTIONS
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
OTHERS = 5
.
wa_save_objects = wa_header.
APPEND wa_save_objects TO it_save_objects.
CALL FUNCTION 'CRM_ORDER_SAVE'
EXPORTING
it_objects_to_save = it_save_objects
IMPORTING
et_saved_objects = et_saved
EXCEPTIONS
document_not_saved = 1
OTHERS = 2.
CLEAR : wa_save_objects , wa_header.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
ENDIF.
ENDIF.