Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

MEREQ001 Function Exits 001 and 003 problem in S4 HANA

Former Member
0 Likes
498

For EXIT_SAPLMEREQ_001 the code is:

  1. TABLES : ci_ebandb, eban.
  2. DATA : lv_mereq_item TYPE mereq_item. "gv_trtyp type AKTVT.
  3. CALL METHOD im_req_item->get_activity
  4. RECEIVING re_aktvt = gv_trtyp.
  5. CASE gv_trtyp.
  6. WHEN 'A'.
  7. FL_INPUT = SPACE. "Output only
  8. WHEN 'V'.
  9. FL_INPUT = 'X'. "Input/Output
  10. ENDCASE.
  11. IF im_req_item IS INITIAL.
  12. CLEAR: ci_ebandb.
  13. ELSE.
  14. lv_mereq_item = im_req_item->get_data( ).
  15. MOVE-CORRESPONDING lv_mereq_item TO ci_ebandb.
  16. endif.

For EXIT_SAPLMEREQ_003 the code is:

  1. DATA : l_mereq_item TYPE mereq_item.
  2. IF NOT im_req_item IS INITIAL.
  3. l_mereq_item = im_req_item->get_data( ).
  4. IF ( ci_ebandb-zreason NE l_mereq_item-zreason )
  5. MOVE-CORRESPONDING ci_ebandb TO l_mereq_item .
  6. CALL METHOD im_req_item->set_data( l_mereq_item ).
  7. ex_changed = 'X'.
  8. ENDIF.
  9. ENDIF.
  10. 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>.

0 REPLIES 0