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

help regarding f4 help

Former Member
0 Likes
922

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

7 REPLIES 7
Read only

Former Member
0 Likes
898

please help?

Read only

0 Likes
898

Only Message type 'X' causes dump...Use any other type 'E', 'I', 'S'

Read only

0 Likes
898

Hi,

may i see your code?how did you declare all varible you passed in the function module?

thanks...

james

Read only

0 Likes
898

MEssage Type E and I are giving dump , please suggest any other message type with code also.

Read only

0 Likes
898

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

Read only

0 Likes
898

only error n warning message is fiving dump , please suggest what message we can give for that help.

Read only

0 Likes
898

Hi ,

i think u can use message of type 'I'.

thanks,

Ananth