‎2007 Sep 14 7:31 AM
Hi all,
i have to make a function module
in which there is two import parameter and two table
in one table all the found records are store and in the other error message
like this(here et_return is a table )
ET_RETURN-TYPE = 'E'.
ET_RETURN-MESSAGE = 'Personalnummer & matnr existiert nicht in Infotyp 9993 !' .
APPEND ET_RETURN.
here &matnr is a runtime vaule which is not coming
please help me with the same
my doubt is how i can have
this error message at output
'Personalnummer 450 existiert nicht in Infotyp 9993 !
where 450 is enter at run time.
thanks in advance
anuj
‎2007 Sep 14 7:34 AM
use key word CONCATENATE and create ur message by taking some variables as a string.
a,b,c type string.
a = matnr.
b = 'your message'.
<b>concatenate a b into c separated by space.</b>
reward points please.......
‎2007 Sep 14 7:40 AM
If u have the matnr with you in a variable then u can use replace command before appending the work area to internal table as .
replace '&' in ET_RETURN-MESSAGE with variable_name .
Hope this helps you.
‎2007 Sep 14 7:42 AM
Hi,
you can also write
ET_RETURN-MESSAGE = 'Personalnummer' & ' MATNR existiert nicht in ...
Regards
Nicole
‎2007 Sep 14 7:53 AM
concatenate 'Personalnummer' matnr 'existiert nicht in Infotyp 9993 !' INTO msg1 seperated by space.
ET_RETURN-MESSAGE = msg1.
append ET_RETURN.
here matnr is the variable which contains the value.
Reward points if useful, get back in case of query...
Cheers!!!
Message was edited by:
Tripat Pal Singh
‎2007 Sep 14 7:57 AM
Hi,
Declare a local variable(l_msg) of type return-message(use the actual name of the dictionary structure).
concatenate the following strings to this local vairable.Use the following code snippet.
concatenate 'Personalnumber' matnr 'existiert nicht in Infotyp 9993 !' into l_msg.
et_return-message = l_msg.
Reward if helpful.....
Regards,
Dilli
‎2007 Sep 14 8:01 AM
Hi,
In function module we can write error messeges in EXCEPTION tab.
in function module source code just u write a code like
if u enter 450
RAISE ''Personalnummer 450 existiert nicht in Infotyp 9993 !'
This messege u have to write EXCEPTION tab also...
<b>reward me if it is use full answer...</b>
praveen