Skip to Content
avatar image
Former Member

Perform in a function module

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jun 28, 2010 at 09: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

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 28, 2010 at 11:51 AM

    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

    Add comment
    10|10000 characters needed characters exceeded