07-30-2009 2:53 PM
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
07-30-2009 3:00 PM
you should have told what the Runtime error is. anyways, assuming it sud be the following..
Function modules are generally lil picky about the import variables.
declare
data : v_type type BAPIRETURN-TYPE,
v_cl type SY-MSGID,
v_number type SY-MSGNO.
and pass your values to this variables and then pass those variables to the FM.
07-30-2009 3:00 PM
you should have told what the Runtime error is. anyways, assuming it sud be the following..
Function modules are generally lil picky about the import variables.
declare
data : v_type type BAPIRETURN-TYPE,
v_cl type SY-MSGID,
v_number type SY-MSGNO.
and pass your values to this variables and then pass those variables to the FM.
07-30-2009 3:01 PM
Hi,
It's hard tho understand the problem. But try to pass FM parameters with the exact type.
DATA :
lv_TYPE LIKE BAPIRETURN-TYPE ,
lv_CL LIKE SY-MSGID ,
lv_NUMBER LIKE SY-MSGNO ,
lv_PAR1 LIKE SY-MSGV1 .