2011 Jul 21 9:12 AM
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
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
2011 Jul 21 9:15 AM
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.
2011 Jul 21 9:20 AM
2011 Jul 21 9:29 AM
Do you have debugging rights in your users system. If so try that. Otherwise, activate your program once again, and try transporting it again.
2011 Jul 21 9:53 AM
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.
2011 Jul 21 10:05 AM
hello ram
already tried ... the code posted is the second attempt
2011 Jul 21 10:20 AM
2011 Jul 21 10:21 AM
2011 Jul 21 10:41 AM
null
Edited by: belgio2 on Jul 21, 2011 11:44 AM
Edited by: belgio2 on Jul 21, 2011 11:44 AM
2011 Jul 21 10:41 AM
the message is -Select a valid function-
by inserting a break point on the form the program does not stop
2011 Jul 21 10:42 AM
the message is -Select a valid function-
by inserting a break point on the form the program does not stop
2011 Jul 21 10:42 AM
the message is -Select a valid function-
by inserting a break point on the form the program does not stop
2011 Jul 21 12:06 PM
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
2011 Jul 21 1:57 PM
solved thanks .... had disgraced the status codes during transport
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |