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

Fields Filled With Blanks

Former Member
0 Likes
664

Hi Experts.

I'm downloading a file in text format to send it to the bank, the bank request the file with a standard line size : 187, so i need to fill my fields with blanks if every single field does not fullfill it's own lenght. ex :

DATA : BEGIN OF it_test OCCURS 0,

NAME(50)

END OF it_test.

Now, when i fill the the internal table not every name has 50 Chars, some of them has 20, 15, 35, so i need to fill the rest of the field with blanks.

Tnks for the hlp.

4 REPLIES 4
Read only

Former Member
0 Likes
630

When you use <b>GUI_DOWNLOAD</b> all fields gets filled with blanks to fulfil the data size...

Greetings,

Blag.

Read only

Former Member
0 Likes
630

no problem automatically it will be filled with blanks

Read only

Former Member
0 Likes
630

Hi,

DATA : BEGIN OF it_test OCCURS 0,

NAME(50)

END OF it_test.

So the name is a charecter type, we can not add the spaces for the rest, but you can add the DOT(.) at the last so that it will take the spaces

Regards

Sudheer

Read only

Former Member
0 Likes
630

If you are writting the data to the application server via open dataset and transer - the transfer command includes a length specifier.