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

Spaces issue in out bound interface

Former Member
0 Likes
753

Hi,

Iam working on outbound interface.Total the file length is 455 chars.

The last two fileds are 6 spaces.One field is 3 chars and another field is 3 chars.

After the file is generated the 6spaces is not showing.Insted of that one when hardcoded some values the 6 spaces is filling with hard coded values.When i remove the hardcoded values the 6 spaces is not showing.How i will get the last 6 spaces.

Regards,

Sujan

7 REPLIES 7
Read only

Former Member
0 Likes
725

Hi,

Declare the fields as type c and the length as mentioned u will get the solution....

Thanks & Regards

Ashu SIngh

Read only

0 Likes
725

Hi,

I have declared same before that like

field48 type char3,

field49 type char3.

But iam getting the space error

Regards,

sujan

Read only

Former Member
0 Likes
725

Hi,

Could you plz tell me the error .... u are getting..

Regards

Ashu

Read only

Former Member
0 Likes
725

How are you passing data into the file?

Is it through OPEN DATASET?

If it is through this, you need to specify RESPECTING BLANKS

Regards,

Shailaja

Read only

Former Member
0 Likes
725

Hi Sujan,

While transferring data record to data set use LENGTH parameter.

Then it'll preserve your trailing spaces

Definately it works.

Ex:


DATA : len TYPE i VALUE 455. "length of your record


TRANSFER <record> TO <dataset> LENGTH len.

Read only

Former Member
0 Likes
725

Hi,

Use CONCATENATE statement with RESPECTING BLANKS addition.

Regards,

Kumar Bandanadham

Read only

Former Member
0 Likes
725

thanks.