Hi Varma,
Are you creating item in your program, there is no item details passed to changing paramters of order_maintain FM? You have to create item first and then update service_i.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
it_appointment = lt_appointment
it_orgman = lt_orgman
it_ext_ref = lt_ext_ref
it_partner = lt_partner
it_text = lt_text
it_activity_h = lt_activity_h
it_status = lt_status
it_srv_req_h = lt_srvreq_h
it_service_h = lt_service_h
it_service_i = lt_service_i
CHANGING
ct_orderadm_h = ct_ordradm_h2
ct_input_fields = ct_input_fields
ct_doc_flow = ct_docflow
EXCEPTIONS
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
OTHERS = 5.
Best Regards,
Dharmakasi.