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

FM xxl_simple_api

Former Member
0 Likes
655

hi,

i'm using Funtion module xxl_simple_api to download contents of internal table to spread sheet. Every thing works fine but i need to specify the path manually everytime i run the program, is there any way to default the path?. your help would be appreciated.

Thanks,

ravi.

hi,

i'm using Funtion module xxl_simple_api to download contents of internal table to spread sheet. Every thing works fine but i need to specify the path manually everytime i run the program, is there any way to default the path?. your help would be appreciated.

Thanks,

ravi.

3 REPLIES 3
Read only

Former Member
0 Likes
528

Hello,

Why don't you build a selection screen for it where you have a fields with a value request which can browse for a file. You can also then give a default for the filename.

Is that what you mean?

Read only

Former Member
0 Likes
528

i dont find any parameter to pass the path to the function moudule and i need to have that even though i recieve the input from the selection screen.

thanks,

ravi

Read only

Former Member
0 Likes
528

Hi,

It's better to use another FM 'SAP_CONVERT_TO_XLS_FORMAT'

call function 'SAP_CONVERT_TO_XLS_FORMAT'

exporting

  • I_FIELD_SEPERATOR = seper

  • I_LINE_HEADER = 'X'

I_FILENAME = P_FILE

tables

I_TAB_SAP_DATA = itab

exceptions

CONVERSION_FAILED = 1.

Svetlin