https://archive.sap.com/discussions/thread/1089149

     First check above link where my problem is solved.

  General Solution (which might help):

    Go to T-code SE80 to navigate your own function group, and then activate it. The main reason of a failure on creating a simple function module or group lies in here.