hi experts,
we work on service contracts.
when a line item is entered, a value( iv_eos_i.) is set Yes/No depending on some custom logic in the line item level
this value is then maintained in the crmd_customer_i table using crm_customer_i_maintain_ow
but to my surprise, sometimes this value is blank even after maintain. This is not replicable while debugging
i tried commit work and wait , but client does not want this approach
Please suggest alternatives
Please anything...
please find the code
DATA: lt_input_fields TYPE crmt_input_field_names_tab,
ls_customer_i TYPE crmt_customer_i_com,
ls_input_fields TYPE crmt_input_field_names.
*--Fill in CUSTOMER_I
ls_customer_i-ref_guid = is_orderadm_i-guid.
ls_customer_i-zzew_lg_eos_date = iv_eos_date.
ls_customer_i-zzew_lg_eos_i = iv_eos_i.
ls_customer_i-mode = gc_create.
*--Fill in Input Fields
ls_input_fields-fieldname = gc_eos_i.
* ls_input_fields-changeable = gc_x.
INSERT ls_input_fields INTOTABLE lt_input_fields.
CLEAR ls_input_fields.
ls_input_fields-fieldname = gc_eos_date.
INSERT ls_input_fields INTOTABLE lt_input_fields.
CLEAR ls_input_fields.
CALLFUNCTION'CRM_CUSTOMER_I_MAINTAIN_OW'
EXPORTING
is_customer_i_com = ls_customer_i
* IV_EXTERNAL_CALL = gc_x
CHANGING
ct_input_field_names = lt_input_fields
EXCEPTIONS
item_change_error = 1
item_create_error = 2
error_occurred = 3
OTHERS = 4
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks,
Sangeetha