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

Regarding Transfer statement in OPEN DATASET

siddu_ch
Explorer
0 Likes
857

Hi All,

I am calling call transformation statement twice in my program and creating 2 xml files.

One as lv_xml_string

Second one as lv_xml_string1.

When i transferred the first xml file using open dataset to the application server its coming fine.

When i am trying to send the second one it is appending to the first one.

I want output 2 files not as single one.

Can anyone suggest me what to do?

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
825

You need to close the first dataset and open another dataset

Hi All,

I am calling call transformation statement twice in my program and creating 2 xml files.

One as lv_xml_string

Second one as lv_xml_string1.

When i transferred the first xml file using open dataset to the application server its coming fine.

When i am trying to send the second one it is appending to the first one.

I want output 2 files not as single one.

Can anyone suggest me what to do?

Thanks

5 REPLIES 5
Read only

Former Member
0 Likes
826

You need to close the first dataset and open another dataset

Read only

0 Likes
825

Thanks for the reply.

I did that but i cannot see the first file. It is writing the second file.

I need 2 xml files in the output

Any other advice please?

Read only

0 Likes
825

What does your code look like. I agree with the last post that doing a close dataset 'first dataset' then open dataset 'second dataset' should work.

Read only

0 Likes
825

change the destination

OPEN DATASET <dsn>

OPEN DATASET <dsn2>

Read only

0 Likes
825

problem solved.

I need to open another dataset with another filename.

Thanks for your replies