‎2008 Jun 18 9:18 PM
Hi all,
One more question regarding the type of a changing parameter. I want to wrap some FMs in a subroutine. One example is SM02_ADD_MESSAGE. Trouble is I want to include a changing parameter for the message_id parameter. I can't seem to get the type declaration correct. Any pointers?
best regards,
Mat
‎2008 Jun 18 9:38 PM
‎2008 Jun 18 9:38 PM
‎2008 Jun 19 12:33 PM
Hi Joy,
I'm still a lil confused on this one. Here is my sample code. I've defined the following subroutine:
FORM add_system_message CHANGING pv_message_id LIKE temsg-id. I call the function module 'SM02_ADD_MESSAGE' in the subroutine and pass pv_message_id as the import parameter.
I call the same subroutine as follows:
PERFORM add_system_message CHANGING gv_message_id.
where gv_message_id is defined as follows:
DATA: gv_message_id LIKE temsg-id.
The program compiles but balks when I run it...seems the parameter has an incompatible type. Am I missing something here?
regards,
Mat
‎2008 Jun 19 12:49 PM
Hi,
U have shown the PERFORM part. But how u defined it in the statement
FROM add_system_message CHANGING gv_message_id LIKE ??????.
...
ENDFORM.
It should also have same type. Check this and get back in case of any issue.
Thanks,
Vinod.
‎2008 Jun 19 12:51 PM
My mistake...the message_id parameter was fine. when i debugged I realized it was another variabel that had the worng type