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

Function Module which can create a File...?

Former Member
0 Likes
1,129

Hi All,

I need a function a module which can create a file in a specified directory with a specified name from an internal table.

Basically a function module which will have following input parameters

File name

Directory

Field Delimiter

Internal table

For eg; GUI_DOWNLOAD

But this Function Module doesn’t work in the back ground.

Cheers,

Chaitu.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
837

Hi chaitanya,

I couldn't find a function module which will help for your requirement.

Instead there is some other alternate solution for that one.

1) u can use open dataset to create a file name and store in the application server.

2) using transaction CG3Z - u can transfer a file from the front end to the application server.

Regards...

Arun.

3 REPLIES 3
Read only

Former Member
0 Likes
838

Hi chaitanya,

I couldn't find a function module which will help for your requirement.

Instead there is some other alternate solution for that one.

1) u can use open dataset to create a file name and store in the application server.

2) using transaction CG3Z - u can transfer a file from the front end to the application server.

Regards...

Arun.

Read only

rainer_hbenthal
Active Contributor
0 Likes
837

First of all, what has this to do with object oriented abap?

Second, there is no way to create a file on the presentation server while the program is running in background. Running in background, the report does not have a connection to sapgui.

You can create files on the application server using open dataset.

Read only

0 Likes
837

Hello Chaitu

Not sure if there is a function module or class available for download on application server.

However, Rainers answer appears to be not fully correct:

[Download Data from Application Server Files to Presentation Server|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0901cba-f49e-2910-748c-d7ce4c0c4c1c]

[Communication to Presentation Server in Background Mode|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9831750a-0801-0010-1d9e-f8c64efb2bd2]

Regards

Uwe