‎2008 Nov 14 9:49 AM
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
‎2008 Nov 14 10:05 AM
*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
‎2008 Nov 14 10:05 AM
*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
‎2008 Nov 14 1:53 PM
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