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

help needed with fm download

Former Member
0 Likes
366

Hi,

I AM ABLE TO DOWNLOAD THE TEXT FILE INTO TAB DELIMITED FILE.

BUT THE PROBLEM IS THAT I NEED THE TAB IMMEDIATELY AFTER THE VALUE.

SAY IF I HAVE A FIELD OF LENGTH 20 BUT THE VALUE IS ONLY 15 DIGITS

I NEED TAB IMMEDIATELY AFTER 15 DIGITS BUT WHAT MY CODE IS DOING IS

IT WRITES 15 DIGIT VALUE THEN LEAVE 5 DIGIT BLANK SPACE AND THEN GIVES TAB

EX

FLD1 IS LENGTH 10

FLD2 IS LENGTH 8

THIS IS WHAT I AM GETTING

FLD1 FLD2

1234567899 TEST

9 TESTF

I NEED SOMETHING LIKE THIS

12345678 TEST

1 TESTF

Thanks

2 REPLIES 2
Read only

Former Member
0 Likes
342

U need to define your internal table with character fields and you can use the below option.

Set the below parameter as X

TRUNC_TRAILING_BLANK - 'X': Blanks are removed.

Read only

ferry_lianto
Active Contributor
0 Likes
342

Hi,

Please try to set parameter WRITE_FIELD_SEPARATOR = 'X' in FM GUI_DOWNLOAD.

Regards,

Ferry Lianto