‎2008 May 02 12:38 PM
i create Function Module with P1 as importing parametre . in source code of the Module fuction i call a FROM AA.
the problem that P1 is considerate as local parametre.
i want to use P1 in code of the FORM AA without passing as parametre in FROM.
can anybody help me please?
source of MF Z_SPLIT_LONG_TEXT
**********************************************************************************
FUNCTION Z_SPLIT_LONG_TEXT.
*"----
""Local interface:
*" IMPORTING
*" P1 LIKE TYPE1.
PRFORM AA
ENDFUNCTION.
&----
FORM AAA.
P1 = P1 + I
ENDFORM
‎2008 May 02 12:42 PM
Hi.
If you want to have P1 as a global parameter.
first you need to rename your importing parameter to say p2..
then
in SE37->Goto->Main Program.
you would find an Include XXXXXXXXXTOP program
where you can put your declaration.
santhosh
‎2008 May 02 12:47 PM
hi yassine82
declare ur p1 as reference insteed of like it will work
thanks & regards
snehi chouhan
‎2008 May 02 12:51 PM
Hi, I understand that you want to define a subroutine inside a function module and want to use the importing parameter. While this being the case, just declare a local variable with in that subroutine definition with using or changing parameters and while calling the routine use your importing parameter.
Regards,
Vijayalakshmi
‎2008 May 02 4:19 PM
I like to see in source code , importing parametr with the word " globale"
like this ( globale interface) instead of 'local interface'
FUNCTION Z_SPLIT_LONG_TEXT.
*"----
**""Globale interface:**
*" IMPORTING
*" VALUE(LIMIET) LIKE ZSPLIT-LIMIET
*" TABLES
*" TE_SPLITSEN STRUCTURE TLINE
*" GESPLITST STRUCTURE ZSPLIT
Edited by: yassine82 on May 2, 2008 5:20 PM
‎2008 May 02 8:29 PM
Forget about it.
Edited by: Micky Oestreich on May 2, 2008 9:34 PM