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

queery

Former Member
0 Likes
899

thanks.

when i use cal function gui_download ,how to get sys date on notepad that is file name as bkpf_extract_20090731.

regards

swathi

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
863

HI,

DATA : FNAME LIKE RLGRAP-FILENAME.

Use Concatenation befor calling GUI_DOWNLOAD.

CONCATENATE M_PATH SY-DATUM SY-UZEIT INTO FNAME

SEPARATED BY '_'.

CONCATENATE FNAME '.txt' INTO FNAME.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

FILENAME = FNAME

TABLES

DATA_TAB = I_DNLD.

Regds,

Anil

Edited by: Anil Katoch on Jul 31, 2009 12:48 PM

7 REPLIES 7
Read only

Former Member
0 Likes
864

HI,

DATA : FNAME LIKE RLGRAP-FILENAME.

Use Concatenation befor calling GUI_DOWNLOAD.

CONCATENATE M_PATH SY-DATUM SY-UZEIT INTO FNAME

SEPARATED BY '_'.

CONCATENATE FNAME '.txt' INTO FNAME.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

FILENAME = FNAME

TABLES

DATA_TAB = I_DNLD.

Regds,

Anil

Edited by: Anil Katoch on Jul 31, 2009 12:48 PM

Read only

GauthamV
Active Contributor
0 Likes
863

Use proper subject line in future



DATA : file_name TYPE string.
DATA:file(45) TYPE c .

    CONCATENATE 'C:\' 'bkpf_extract_' sy-datum '.txt' INTO file.
    file_name = file.

    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename                        = file_name
       filetype                        = 'ASC'
      TABLES
        data_tab                        = it_data.
   

Read only

Former Member
0 Likes
863

Hi,

DATA:wk_file(40) TYPE c,

wk_file_name TYPE string.

CONCATENATE 'C:\' 'bkpf_extract_' sy-datum '.txt' INTO wk_file.

wk_file_name = wk_file.

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

filename = wk_file_name

filetype = 'ASC'

TABLES

data_tab = <pass your internal table here>.

Read only

faisalatsap
Active Contributor
0 Likes
863

Hi, Swathi

First of all Welcome to SDN

Please always use meaningful Subject Line for you Post

Test the code given in above two replies those will solve out your problem.

Regards,

Faisal

Read only

Former Member
0 Likes
863

This message was moderated.

Read only

0 Likes
863

Hi, Dear

I think you didn't read the [Forum Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] if Yes than please read first carefully and if No mean you have read than you must read these more carefully

Because you are posting again and again against the Forum Rules.

Please always Search Before Posting and Open New Thread for your Query but don't think that some one will write all the code for you just try first your end and if face any problem than post.

Please don't mind just go through this link [Forum Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]

Thanks and Best Regards,

Faisal

Read only

matt
Active Contributor
0 Likes
863

Please read the Rules of Engagement