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

Transfer Dataset

Former Member
0 Likes
510

Hi All....

Need some infomation on Transfer Dataset. When i am sending some data(lets say 100 records) from in an internal table to application server using trnasfer data set in "TEXT Mode", I am getting data. but data i am getting in the file as 100 records(Line By Line). But if send in Binary formate i will get in a Single line.

If i want data in single line when i am sending using "TEXT Mode" What i have to do....??

Now i am working on BW(and I know ABAP, but i am not expert) and need to send some data to non-sap systems in fixed length output format. So i need entire data in a single line(means all 100 lines one after another - side by side).

Eg: In Internal Table record contains

Rec1 - Fld1 Fld2 Fld3....Fld4

Rec2 - Fld1 Fld2 Fld3....Fld4

Rec3 - Fld1 Fld2 Fld3....Fld4

In Text mode i am getting .....

Rec1 - Fld1 Fld2 Fld3....Fld4

Rec2 - Fld1 Fld2 Fld3....Fld4

Rec3 - Fld1 Fld2 Fld3....Fld4

But i want continuation....like.....

Fld1 Fld2 Fld3....Fld4 Fld1 Fld2 Fld3....Fld4 Fld1 Fld2 Fld3....Fld4....(continuation).

Thanks In Advance.

Srini

3 REPLIES 3
Read only

Former Member
0 Likes
486

HI Srini,

This may not be a refined way of doing it, but you can try it nonetheless.

data wa_itab type string.

Loop at itab.

concatenate wa_itab itab into wa_itab.

endloop.

and then move the wa_itab to the dataset using transfer dataset statement.

REgards,

Ravi

Read only

Former Member
0 Likes
486

hi Srini,

is there any problem if you use binary mode.

because if you use binary mode you can get the data in single line.

vijay

Read only

0 Likes
486

Hi Vijay.

There is a problem using Binery mode. I am sending data to external Non- SAP systems, they want in text format only.

Ravikanth..

I am doing in the same way.... But i want all the data(100 records) in one line.... line after line.

Srini