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

Query related to interface programming

Former Member
0 Likes
600

Hi,

I need to download the data to XML file. I have hard coded the file path in the Report Program. This Report should be shceduled for every night.

But the problem is that since I have hard coded the path, whenever the program is deployed to production system there will be a problem regarding the file path.

Can any body throw some light on how to avoid hard coding of the filepath ?

Reward points are assured.

Best Regards

Bhagat.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
568

Since it is schedule job, i'm assuming you are using application server. In that case, you will have same directory structure like DIR_TRANS, DIR_DATA etc. Otherwise, you can use logical filename.

5 REPLIES 5
Read only

Former Member
0 Likes
569

Since it is schedule job, i'm assuming you are using application server. In that case, you will have same directory structure like DIR_TRANS, DIR_DATA etc. Otherwise, you can use logical filename.

Read only

0 Likes
568

Hi sanjay,

Thanks for your reply.

Can we have XML down load to application server ?

I am not using Application Server for it. Can I use Application Server for XML down load also ?

I am using GUI_Download.

Can you throw some light on it ?

Best Regards

Bhagat.

Read only

0 Likes
568

Yes, you can download XML to application server also. You need to use OPEN DATASET, TRANSFER etc for downloading.

For XML, are you using CALL TRANSFORMATION or other FM?

Read only

0 Likes
568

Yes I am using CALL TRANSFORMATION ID.

Can you send me some example code for Down loading the data to XML output on Application Server ?

Read only

0 Likes
568

I dont have sample code but you can search this forum with XML and download and you will find the example.