Skip to Content
0
Former Member
Jul 30, 2009 at 01:53 PM

Dump on write to message table

40 Views

HI all,

i am doing compare with 2 tables and if in table it_userid there is a user that is

not in table et_emp i want to return this user that doesn't exist to table et_return

i get dump ,what i miss here.

i build message class for it and i want add the user to the specific message.

what i do is like that

LOOP AT it_userid ASSIGNING <ls_userid>.
        READ TABLE et_emp ASSIGNING <ls_d> WITH KEY userid = <ls_userid>-userid.
        IF sy-subrc NE 0.
          CALL FUNCTION 'BALW_BAPIRETURN_GET2'
            EXPORTING
              type   = 'E'
              cl     = 'CM_DT'  "message class that i build in se91
              number = '25'
              par1   = <ls_userid>-userid
            IMPORTING
              return = et_return.

Regards

Joy