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 dynamic file names

Former Member
0 Likes
663

hiii ,

iam doing BDC . i want to download data into an excel sheet . when i try to give a file name dynamically using parameters option , it is giving dump error ..... if someone knows how to do it , help me out

regards ,

varma

hiii ,

iam doing BDC . i want to download data into an excel sheet . when i try to give a file name dynamically using parameters option , it is giving dump error ..... if someone knows how to do it , help me out

regards ,

varma

4 REPLIES 4
Read only

Former Member
0 Likes
508

u can used ws_download FM.

Read only

Former Member
0 Likes
508

if you are using <b>ws_download</b> then use filename of the type <b>rlgrap-FILENAME</b>.If you are using <b>GUI_UPLOAD</b> then declare file name of the type <b>string.</b>

Read only

Former Member
0 Likes
508

what does the dump say??

declare filename as RLGRAp-filename

Read only

Former Member
0 Likes
508

HI RAVI,

declare File parameter as:

PARAMETER: P_FILE LIKE RLGRAP-FILENAME.

if u r using GUI_DOWNLOAD.

UNDER AT SELECTION-SCREEN ON VALUE REQUEST FOR <FILE>.

at selection-screen on value-request for p_file.

perform file_help using p_file.

form file_help using p_p_file.

data: l_filepath type ibipparms-path.

CALL FUNCTION 'F4_FILENAME'

  • EXPORTING

  • PROGRAM_NAME = SYST-CPROG

  • DYNPRO_NUMBER = SYST-DYNNR

  • FIELD_NAME = ' '

IMPORTING

FILE_NAME = l_filepath

.

p_p_file = l_filepath.

endform. " file_help

hope this helps,

do reward if it helps,

priya.