Skip to Content
0

MEREQ001 Function Exits 001 and 003 problem in S4 HANA

May 11 at 06:51 PM

38

avatar image
Former Member

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>.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers