Application Development 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: 

Regarding Transfer statement in OPEN DATASET

siddu_ch
Explorer
0 Kudos

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

Former Member
0 Kudos

You need to close the first dataset and open another dataset

5 REPLIES 5

Former Member
0 Kudos

You need to close the first dataset and open another dataset

0 Kudos

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?

0 Kudos

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.

0 Kudos

change the destination

OPEN DATASET <dsn>

OPEN DATASET <dsn2>

0 Kudos

problem solved.

I need to open another dataset with another filename.

Thanks for your replies