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

CATT - Runtime error CALL_FUNCTION_CONFLICT_TYPE

Former Member
0 Likes
460

Hi,

I want to automate a process to export a report output into Excel, so I try to use CATT.

I successfully ran program and created its output report in Excel format. But, when I save the file into a folder on my computer I got a "Runtime error CALL_FUNCTION_CONFLICT_TYPE".

How can I automate the process to save a report (in Excel format) into my local folder?

Thank you very much,

TB

2 REPLIES 2
Read only

jayanthi_jayaraman
Active Contributor
Read only

Former Member
0 Likes
359

Hi,

Automating a report to save a excel file in to your local folder does require the change in the file name when it is saved. say the case when the program gets executed for multiple times then the file which will be saved for the multiple times with the same file name will have the last run data.

so in all case just change the filename while saving with a random number attached to its end.

so while creating the file name:

ws_random type i.

call function 'QF05_RANDOM_INTEGER'

IMPORTING

RAN_INT_MAX = 10000

RAN_INT_MIN = 1

EXPORTING

RAN_INT = ws_random

EXCEPTIONS

INVALID_INPUT.

concatenate 'C:\test' ws_random '.XLS' into ws_filename.

call function 'WS_DOWNLOAD'

exporting

filename = ws_fielname

tables

datatab = i_data

exceptions

"

"

Regards,

Jagath