Application Development and Automation 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: 
Read only

Module pool ????

Former Member
0 Likes
859

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
Read only

Former Member
0 Likes
832

Hi,

check if you have uncommented the EXPORTING statement.

regards,

pankaj singh

Read only

Former Member
0 Likes
832

paste in ur code here.

we can help u out

Read only

Former Member
0 Likes
832

Hello,

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

Regards,

Manoj

Read only

Former Member
0 Likes
832

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.

Read only

0 Likes
832

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

Paste ur full coding

Read only

0 Likes
832

in which event u r writing this piece of code?

Read only

0 Likes
832

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.

Read only

Former Member
0 Likes
832

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

THANKS