I have added a field on Ui Screen , now iam trying to fill with
CRM_ORDER_MAINTAIN_MULTI_OW but iam geeting dump " Assertion violated"
1. field added to CRMD_ORDERADM_H.
below is the code.
ls_orderadm_h-guid = is_status_wrk-guid.
ls_orderadm_h-zz_segment = 'THTU'.
insert ls_orderadm_h into TABLE lt_orderadm_h.
ls_field_names-fieldname = 'ZZ_SEGMENT'.
INSERT ls_field_names INTO TABLE ls_input_fields-field_names.
ls_input_fields-ref_handle = '0000000000'.
ls_input_fields-ref_kind = 'A'.
ls_input_fields-ref_guid = is_status_wrk-guid.
ls_input_fields-objectname = 'ORDERADM_H'.
INSERT ls_input_fields INTO TABLE lt_input_fields.
CALL FUNCTION 'CRM_ORDER_MAINTAIN_MULTI_OW'
EXPORTING
iv_collect_exceptions = lt_exception
changing
CT_ORDERADM_H = lt_orderadm_h
ct_input_fields = lt_input_fields
EXCEPTIONS
ERROR_OCCURRED = 1
DOCUMENT_LOCKED = 2
NO_CHANGE_ALLOWED = 3
NO_AUTHORITY = 4
OTHERS = 5
.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
Please let me know is there any issue in filling the structure
your help is higly appreciate
Thanks
NK
Add comment