06-28-2010 9:56 AM
Hi
I use FM similar to HR_EVENT_RULES_PA0000 to fetch data and then save data in an own created table.
In that FM I have a perform and in that perform I will save the data, but under the perform all data is lost.
The form is in the bottom of the same FM.
How come?
Thanks // Peter B
06-28-2010 10:00 AM
Hi Peter,
check whether the table c9ontaining data to be saved is declared globally. it would be declared locally.
Also optionally you can pass that table as uisng parameter to save_perform.
Hope this is helpful.
Regards,
Uma Dave
06-28-2010 12:51 PM
To clarify a little the previous answer - data declared in a function module, and the parameters (unless set otherwise), are local to the function module - i.e. not visible in any forms.
It is better programming practice to pass parameters to forms, rather than using global variables, by the way.
mtt