Skip to Content
0
Former Member
Feb 17, 2009 at 08:03 PM

Trailing Space at the end of Record

42 Views

Hi,

I need a blank space at end of header record when transferring data to a file on application server.

Appreciate help.

Code:

wa_header-empty = space. " Length 4 type char

wa_header-rec_type = 'ZREF'. " Length 4 , constant

wa_header-partner_id = '1234' " Length 35 type char

wa_header-i_usr_id = 'COMPANY'. " Length 35 type char

wa_header-p_id_qualf = space. " Length 4 type char

TRANSFER wa_header TO g_out_file.

Desired output: enclosed in brackets.

[ ZREF1234 COMPANY ]

The desired output has 28 trailing space after the text 'COMPANY'.