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

Problem in creating a file on Application Server

Former Member
0 Likes
444

Hi,

I am facing an issue while creating a file on the application server.

I am creating a file with sales data from SAP and saving it on the application server.

At the end of this operation, I am calling a Unix script to push this file from SAP to an external system.

The issue I am facing is - at every month end, when I run a job for creating the file (its a custom program which is scheduled to run periodically), I get a strange scenario where a BLANK FILE gets created on the application server even though the data tables are not blank.

Also the user id gets changed to UID = 1400 when I run this job for the first time when a BLANK FILE gets created.

When I delete this file and run the job again, though, the file gets created WITH DATA.

The user name remains DEVADM (Dev Admin), as it should be for the scheduled jobs.

What could be the possible reasons for this?

Please help me in this direction.

Thank you.

Regards,

Keerthi

2 REPLIES 2
Read only

Former Member
0 Likes
411

Hi,

You are using OPEN DATASET ? And what is the sy-subrc ?

Can you post some lines of your code?

Best regards,

Leandro Mengue

Read only

Romerito
Explorer
0 Likes
411

Hi,

How do you write this file on server?

Using "OPEN DATASET"? If yes, the folder on the application server may not have permission to write in existing file check with adimin of the application server if the folder is set with permissions 777.

Regards,

Romerito Mendes Silva