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

Space padding does not work in open dataset statement

Former Member
0 Likes
450

Hello,

We are currently upgrading 4.6C system to ERP 6.0. Now we have abap program problem in open dataset statment.

By the way, system is not Unicode based in ERP 6.0.

Issue:

File created by the following statement does not containg trailing space before line break.

Statement:

Open dataset wa_file_name for output in text mode.

wg_text = 'A'

transfer wg_text to wa_file_name length 2.

Output:

A

(only A is printed and no traiing space after that)

We have tested legacy mode but in vein.

Actually this problem does not happen in R/3 Enterprise.

Any input is welcome.

Regards,

Kazuya

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
409

Try Using

OPEN DATASET wa_file_name FOR OUTPUT IN TEXT MODE ENCODING DEFAULT

Hope this helps

Regards

Vinayak

2 REPLIES 2
Read only

Former Member
0 Likes
410

Try Using

OPEN DATASET wa_file_name FOR OUTPUT IN TEXT MODE ENCODING DEFAULT

Hope this helps

Regards

Vinayak

Read only

0 Likes
409

Thanks a lot for your reply.

I tired it but didn't work!

Other option such as NON-UNICODE didn't work either.

Any other idear?

Thanks for your support.

Kazuya