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

Error:Type-pools is not defined

Former Member
0 Likes
874

Hello experts,

I m new to screen programming, so despite of SDN Search help I m not able to populate values in my list box tab which I inserted in customer data subscreen In TCode ME22N thoudgh User Exit.

My Code is generating an error

Program SAPLXM06,Screen 0111

Statement "TYPE-POOLS" is not defined. Check your spelling.

*process before output.

*module status_0111.

*process after input.

*module user_command_0111.

type-pools: vrm.

parameters: lb_stat(20) type c as listbox visible length 1.

at selection-screen output.

perform build_drop_down_list.

start-of-selection.

write:/ lb_stat.

************************************************************************

  • build_drop_down_list

************************************************************************

form build_drop_down_list.

data: name type vrm_id,

list type vrm_values,

value like line of list.

clear list. refresh list.

name = 'LB_STAT'.

value-key = 'Y'.

value-text = 'YES'.

append value to list.

value-key = 'N'.

value-text = 'NO'.

append value to list.

  • Set the values

call function 'VRM_SET_VALUES'

exporting

id = name

values = list.

endform.

Plz suggest me the correct solution

Ravi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
631
*process before output.
module status_0111. "uncomment this
*process after input.
module user_command_0111. "uncomment this

UnComment the abovesaid lines and check again.

Regards

Karthik D

2 REPLIES 2
Read only

Former Member
0 Likes
632
*process before output.
module status_0111. "uncomment this
*process after input.
module user_command_0111. "uncomment this

UnComment the abovesaid lines and check again.

Regards

Karthik D

Read only

uwe_schieferstein
Active Contributor
0 Likes
631

Hello Ravi

Global declarations like TYPE-POOLS belong into the TOP-include of the Exit-function group. When you look into include LXM06TOP you see the following declarations:


FUNCTION-POOL XM06.     "MESSAGE-ID ..

  INCLUDE LXM06TAP.      " Global Data For SAP Formpool and Templates

  INCLUDE ZXM06TOP.      " Global Data <<<< for customer data definitions

Implement the Z-TOP-include and put the TYPE-POOLS definition in there.

Regards

Uwe