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

user_command

Former Member
0 Likes
1,160

Hello everyone,

someone tell me why this code works on an environment and another not? command the user does not feel this is the code ...

4.7 are both

CONSTANTS: CA_USER_COMMAND TYPE SLIS_FORMNAME VALUE 'USER_COMMAND'.

va_repid = sy-repid.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

  • I_interface_check = ''

i_callback_program = va_repid

i_callback_pf_status_set = ca_status

I_CALLBACK_USER_COMMAND = CA_USER_COMMAND

.................................................. ........

----


-

FORM * * USER_COMMAND

----


-

FORM user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

CASE r_ucomm.

WHEN '& IC1'.

IF p_zmod = 'OMF' OR p_zmod = 'OTF' OR p_zmod = 'CAF' ................

.................

thanks in advance for the answer

13 REPLIES 13
Read only

lijisusan_mathews
Active Contributor
0 Likes
1,101

You mean this code works fro you , but not for your user (in production )??

If thats the case check if it is activated, in the production and check if this code exists there.

Read only

0 Likes
1,101

yes are equal and the code is active???

Read only

0 Likes
1,101

Do you have debugging rights in your users system. If so try that. Otherwise, activate your program once again, and try transporting it again.

Read only

Former Member
0 Likes
1,101

Hi,

Try with as below code.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

EXPORTING

  • I_interface_check = ''

i_callback_program = va_repid

i_callback_pf_status_set = ca_status

I_CALLBACK_USER_COMMAND = 'USER_COMMAND'

Ram.

Read only

0 Likes
1,101

hello ram

already tried ... the code posted is the second attempt

Read only

0 Likes
1,101

Isnt there an error message or so that comes atleast

Read only

0 Likes
1,101

Isnt there an error message or so that comes atleast

Read only

0 Likes
1,101

null

Edited by: belgio2 on Jul 21, 2011 11:44 AM

Edited by: belgio2 on Jul 21, 2011 11:44 AM

Read only

0 Likes
1,101

the message is -Select a valid function-

by inserting a break point on the form the program does not stop

Read only

0 Likes
1,101

the message is -Select a valid function-

by inserting a break point on the form the program does not stop

Read only

0 Likes
1,101

the message is -Select a valid function-

by inserting a break point on the form the program does not stop

Read only

0 Likes
1,101

Hi belgio,

'use a valid function' means this does not come from your posted code. Probably your status is not defined or set properly. When calling FM REUSE_ALV_USER_COMMAND you must create a usable status.

Regards,

Clemens

Read only

0 Likes
1,101

solved thanks .... had disgraced the status codes during transport