‎2008 Jun 25 2:14 PM
Hi all,
I have to pass the Message number(sy-msgno) as an parameter into an function module
and that Message should be like "PO NUMBER ####### is deleted"
This Funtion module is an loop and PO number changes for every loop
How to define this Message in the Message class.
Regards
Ajay
‎2008 Jun 25 2:24 PM
Hi,
Message definition SE91 should be like below.
PO NUMBER & is deleted.
Here & is the place holder where u can pass one value dynamically. If u want to pass 2 dynamic values then u have to use 2 place holder and so on.
eg: PO NUMBER & is deleted by user &.
When u call this message it will display like
PO NUMBER 12345 is deleted by user user1.
Thanks,
vinod.
‎2008 Jun 25 2:19 PM
hiiii
you can pass value in one new variable before entering in to FM.then just write msg after executing that FM ..like below
if sy-subrc EQ 0.
MESSAGE I002(ZMSG_PM) WITH w_pono.
endif.
endloop.
regards
twinkal
‎2008 Jun 25 2:20 PM
Hi Ajay,
You can proceed like this.
For the message number enter text as '& is deleted' in msg class. Suppose this message number is 001 in msg class ZZ then you can print your message as follows:
1message i0001(ZZ) with <PONUMBER from ITAB>
& in message will be replaced with <PONUMBER from ITAB>.
Cheers,
Ramesh.
Edited by: Ramesh Kashigari on Jun 25, 2008 3:22 PM
‎2008 Jun 25 2:25 PM
Hi ,
I have to pass the Message number of the Particular Message class only as a parameter to the Function module
I cannot pass the Local variable with my own message as aparameter
Regards
Ajay
‎2008 Jun 25 2:27 PM
Your question is not at all clear. What is the function module name. its all confusing.
Ramesh
‎2008 Jun 25 2:35 PM
Hi ,
use the syntax
MESSAGE ID 'SU' TYPE 'E' NUMBER FM_variable WITH 'Hugo'.
here FM_variable is the one that you can pass and the rest of the things can be hard coded as per your req or can be passed as well
Regards
Raj
‎2008 Jun 25 2:24 PM
Hi,
Message definition SE91 should be like below.
PO NUMBER & is deleted.
Here & is the place holder where u can pass one value dynamically. If u want to pass 2 dynamic values then u have to use 2 place holder and so on.
eg: PO NUMBER & is deleted by user &.
When u call this message it will display like
PO NUMBER 12345 is deleted by user user1.
Thanks,
vinod.