‎2009 Jun 23 6:18 AM
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
‎2009 Jun 23 6:33 AM
Hi,
Declare the fields as type c and the length as mentioned u will get the solution....
Thanks & Regards
Ashu SIngh
‎2009 Jun 23 6:41 AM
Hi,
I have declared same before that like
field48 type char3,
field49 type char3.
But iam getting the space error
Regards,
sujan
‎2009 Jun 23 8:07 AM
Hi,
Could you plz tell me the error .... u are getting..
Regards
Ashu
‎2009 Jun 23 8:10 AM
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
‎2009 Jun 23 8:17 AM
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.
‎2009 Jun 23 9:58 AM
Hi,
Use CONCATENATE statement with RESPECTING BLANKS addition.
Regards,
Kumar Bandanadham
‎2009 Oct 21 1:28 PM