For EXIT_SAPLMEREQ_001 the code is:
- TABLES : ci_ebandb, eban.
- DATA : lv_mereq_item TYPE mereq_item. "gv_trtyp type AKTVT.
- CALL METHOD im_req_item->get_activity
- RECEIVING re_aktvt = gv_trtyp.
- CASE gv_trtyp.
- WHEN 'A'.
- FL_INPUT = SPACE. "Output only
- WHEN 'V'.
- FL_INPUT = 'X'. "Input/Output
- ENDCASE.
- IF im_req_item IS INITIAL.
- CLEAR: ci_ebandb.
- ELSE.
- lv_mereq_item = im_req_item->get_data( ).
- MOVE-CORRESPONDING lv_mereq_item TO ci_ebandb.
- endif.
For EXIT_SAPLMEREQ_003 the code is:
- DATA : l_mereq_item TYPE mereq_item.
- IF NOT im_req_item IS INITIAL.
- l_mereq_item = im_req_item->get_data( ).
- IF ( ci_ebandb-zreason NE l_mereq_item-zreason )
- MOVE-CORRESPONDING ci_ebandb TO l_mereq_item .
- CALL METHOD im_req_item->set_data( l_mereq_item ).
- ex_changed = 'X'.
- ENDIF.
- ENDIF.
- ENDIF.
I have created two structures CI_EBANDB and CI_EBANDBX with same custom fields. But for same fields in CI_EBANDBX I created with CHAR1 datatype.
But no data is updating in EBAN table from 003. <removed by moderator>.