07-03-2007 4:55 AM
Hi
I have created one function module and used subroutines. Form definations are written in the TOP include.
Select * from mata into table i_mara where plnat = '105'
if sy-sunrc eq 0.
perform call_marc.
endif.
In above statment when sy-subrc eq 0. it is going to topi nclude as form defination is call_marc is written in Top include. I am not able to see data in I_marc once i enter in the call_marc.
Can any one suggest the solution.
Regards
Raj
07-03-2007 5:00 AM
Welcome TO SDN.
To view internal tables, variables and work areas globaly in a function Group they need to be declared in the TOP include.
Subroutines/ Form Includes are not the part of TOP include. They need to be declare in a seperate INCLUDE.
Regards,
Amit
Reward all helpful replies.
07-03-2007 5:01 AM
Hey Raj,
If the table is defined as local then you can't get the data in the include for the same.
Define all your global tables in TOP include.
Regards,
Atish
07-03-2007 5:01 AM
Hi,
Check how did u declared l_marc.
whether it is local variable or global variable.
as if it is local variable u can't see the values in that.
u need to declare it as global variable.
Local variable means with in the form.
Global means global to entire program.
Regards,
07-03-2007 5:06 AM
07-03-2007 5:23 AM
Hi,
you wn't see it if the table is local!
if you want to see L_marc data in form call_marc,
Select * from mata into table i_mara where plnat = '105'
if sy-sunrc eq 0.
perform call_marc <b>tables I_marc.</b>
endif.
Reegards,
Sooness.