Skip to Content
0
Former Member
Jun 09, 2009 at 05:53 PM

data shared between function modules in same function group..

168 Views

Hi,

I have a FG say ZXXX which has a top inculde with a variable ZVBELN declared of type VBELN. I have two Function modules in that group ZFM1 and ZFM2. I want to set the value of ZVBELN via ZFM1 and read it in ZFM2. The value for ZVBELN will be passed to ZFM1 as an importing paramete and my statement ZVBELN = ZIMP_VBELN will move the value.

Then can I read this value in my ZFM2 like this

If not ZVBELN is initial.

..

..

endif.

so it will be like from one program i will say "call function zfm1 exporting zimp_vbeln = '080000'."

and from another program i will say "call function zfm2......" and i want the value 08000 to be available there in zvbeln !!

This is a very basic question but I am a bit doubtful on that as I do not have any access to sandbox system, i cannot try this out... pl do confirm..

thks