2008 Jul 25 7:48 AM
HI experts , please tell me what type of message i should use for an error in f4 help perform,
i m uploading a file based on f4 help, i have written a subroutene on the based of f4 help , n inside that perform i am using an error message when user is uploading other file than xls(excel),
iThe report is giving the dump name DYNPRO_MSG_IN_HELP,
please suggest which type of message i should give there,
show me the code of that message also ,
thanks
rahul
HI experts , please tell me what type of message i should use for an error in f4 help perform,
i m uploading a file based on f4 help, i have written a subroutene on the based of f4 help , n inside that perform i am using an error message when user is uploading other file than xls(excel),
iThe report is giving the dump name DYNPRO_MSG_IN_HELP,
please suggest which type of message i should give there,
show me the code of that message also ,
thanks
rahul
2008 Jul 25 7:57 AM
2008 Jul 25 7:59 AM
Only Message type 'X' causes dump...Use any other type 'E', 'I', 'S'
2008 Jul 25 8:01 AM
Hi,
may i see your code?how did you declare all varible you passed in the function module?
thanks...
james
2008 Jul 25 8:02 AM
MEssage Type E and I are giving dump , please suggest any other message type with code also.
2008 Jul 25 8:04 AM
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
PERFORM get_file.
in that perfoem
FORM get_file .
DATA: lv_file TYPE string.
DATA: v_localfile TYPE localfile,
v_len TYPE i.
it_raw TYPE truxs_t_text_data.
geting the file name
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = sy-cprog
dynpro_number = sy-dynnr
IMPORTING
file_name = v_localfile.
IF v_localfile IS INITIAL.
MESSAGE text-006 TYPE 'E'.
ENDIF.
v_len = STRLEN( v_localfile ).
v_len = v_len - 3.
checking the file that it is xls or txt file
IF v_localfile+v_len(3) <> 'XLS' AND
v_localfile+v_len(3) <> 'xls'.
MESSAGE text-007 TYPE 'E'.
ENDIF.
p_file = v_localfile.
ENDFORM. " get_file
please help dump is coming on that error messages
2008 Jul 25 8:08 AM
only error n warning message is fiving dump , please suggest what message we can give for that help.
2008 Jul 25 8:09 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |