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

Regarding Pop Up Window

Former Member
0 Likes
639

Hi All,

I want a pop up window for saving the output file at the desired location

of user. How can I get the pop up window for "Saving" the file at desired

location.

Thanks in Advance. Pts will be rewarede.

Regards

Jitendra.

Hi All,

I want a pop up window for saving the output file at the desired location

of user. How can I get the pop up window for "Saving" the file at desired

location.

Thanks in Advance. Pts will be rewarede.

Regards

Jitendra.

4 REPLIES 4
Read only

Former Member
0 Likes
613

Hi Jitendra,

Use FM <b>F4_Filename</b>

Using this FM ucan select the location where u want to store the file.

Regards,

Hemant

Read only

Former Member
0 Likes
613

Hi Hemant,

I know this function module but when this pop up window comes

it has 2 buttons with lable " Open" and "Cancel".

I want to have the lable as "Save" and "Cancel".

How can this be done....

Thanks & Regards

Jitendra.

Read only

Former Member
0 Likes
613

use this FM:

F4_Filename.

Read only

mahaboob_pathan
Contributor
0 Likes
613

hi,

go through this code

u can down load to system.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.

CALL FUNCTION 'F4_FILENAME'

EXPORTING

PROGRAM_NAME = SYST-CPROG

DYNPRO_NUMBER = SYST-DYNNR

FIELD_NAME = 'P_FILE'

IMPORTING

FILE_NAME = P_FILE.

START-OF-SELECTION.

FILE = P_FILE.

CALL FUNCTION 'GUI_UPLOAD'

EXPORTING

FILENAME = FILE

FILETYPE = 'ASC'

  • HAS_FIELD_SEPARATOR = ' '

  • HEADER_LENGTH = 0

  • READ_BY_LINE = 'X'

  • DAT_MODE = ' '

  • IMPORTING

  • FILELENGTH =

  • HEADER =

TABLES

DATA_TAB = ITAB

  • EXCEPTIONS

  • FILE_OPEN_ERROR = 1

  • FILE_READ_ERROR = 2

  • NO_BATCH = 3

  • GUI_REFUSE_FILETRANSFER = 4

  • INVALID_TYPE = 5

  • NO_AUTHORITY = 6

  • UNKNOWN_ERROR = 7

  • BAD_DATA_FORMAT = 8

  • HEADER_NOT_ALLOWED = 9

  • SEPARATOR_NOT_ALLOWED = 10

  • HEADER_TOO_LONG = 11

  • UNKNOWN_DP_ERROR = 12

  • ACCESS_DENIED = 13

  • DP_OUT_OF_MEMORY = 14

  • DISK_FULL = 15

  • DP_TIMEOUT = 16

  • OTHERS = 17

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

LOOP AT ITAB.

WRITE:/ ITAB.

ENDLOOP.