I am trying to TECO a production order with warranty items.
While calling the below FM to collect all warranty related items for the order, I am getting error (sy-subrc = 1) dynamic_item_error. The DIP profile has been attached and maintained correctly.
CALL FUNCTION 'WTYSC01_COLLECT_DIP_ITEMS'
i_aufnr = Order Number
i_date_to = sy-datum
i_check = 'X'
et_claim_items = it_claim_items
et_dlinr_order = it_dlinr_order
dynamic_item_error = 1
error_with_csorder = 2
dip_error = 3
no_data = 4
OTHERS = 5.
Any idea on what might be causing the error??
P.S. I have done some deep debugging and made some findings but they have hardly been of any help, So I want expert views on this first.