Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Module pool ????

Former Member
0 Kudos

HI EXPERTS,

I HAVE CALLED A FUNCTION MODULE IN A MODULE POOL PROGRAM. BUT I AM GETTING A SYNTAX ERROR THAT "STATEMENT IS NOT ACCESSIBLE" IN THE LINE WHERE THE FUNCTION MODULE IS CALLED . COULD ANYONE TELL ME WHAT MIGHT BE THE PROBLEM? THANKS IN ADVANCE.

REGARDS,

RAMANA

8 REPLIES 8

Former Member
0 Kudos

Hi,

check if you have uncommented the EXPORTING statement.

regards,

pankaj singh

Former Member
0 Kudos

paste in ur code here.

we can help u out

Former Member
0 Kudos

Hello,

You might be having an unconditional LEAVE statement as the statement just before calling the function module.

Regards,

Manoj

Former Member
0 Kudos

HI EXPERTS,

I AM PASTING MY CODE HERE.

PROGRAM zdemo9.

TABLES:ess_life_event_menu.

DATA:BEGIN OF itab OCCURS 0.

INCLUDE STRUCTURE ess_life_event_menu.

DATA:END OF itab.

CONTROLS:tc1 TYPE TABLEVIEW USING SCREEN 100.

CALL FUNCTION 'ESS_GET_LIFE_EVENT_MENU'

EXPORTING

ess_live_event = 'PZM3'

uname = sy-uname

  • IMPORTING

  • LE_DESC =

  • LE_OPEN =

  • LE_OPEN_M =

TABLES

ess_le_menu = itab

  • ESS_LE_COLOR_TABLE =

  • ERROR_MESSAGE =

  • ESS_LE_EP =

  • EXCEPTIONS

  • NO_PERNR = 1

  • OTHER = 2

  • OTHERS = 3

.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

0 Kudos

where have u used the statment call screen <screen number>

Paste ur full coding

0 Kudos

in which event u r writing this piece of code?

0 Kudos

Insert the CALL FUNCTION statement inside a module in the PBO/PAI of the screen as per your requirement. You can nest it inside any perform called from the module as well.

Former Member
0 Kudos

wRITE UR CODE IN ANY PAI OR PBO MODULE AND THAT TOO INSIDE ANY PERFORM,

THANKS