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

OPEN DATASET statement

Former Member
0 Likes
571

Hi experts,

How can I identify when I need to use "Encoding Default" or not in a OPEN DATASET statement?

I tried to see the version of my system, but both that I have are ECC 6, and both are No-Unicode, but one of them need to insert the ENCODING DEFAULT and the other don't.

Ex:

OPEN DATASET vl_archive FOR OUTPUT IN TEXT MODE.

or

OPNE DATASET vl_archive FOR OUTPUT IN TEXT MODE ENCODING DEFULT.

Thanks for your help!

Best Regards

Victor Marquise

4 REPLIES 4
Read only

former_member219762
Contributor
0 Likes
528

Hi Victor,

            Please go through this http://help.sap.com/abapdocu_702/en/abapopen_dataset_mode.htm#!ABAP_ALTERNATIVE_2@2@

Regards,

Sreenivas.

Read only

Former Member
0 Likes
528

The addition IN TEXT MODE opens the file as a text file. The addition ENCODING defines how the characters are represented in the text file. When writing in a text file, the content of a data object is converted to the representation entered after ENCODING, and transferred to the file. If the data type is character-type and flat, trailing blanks are cut off. In the data type string, trailing blanks are not cut off. The end-of-line marking of the relevant platform is applied to the transferred data by default. When reading from a text file, the content of the file is read until the next end-of-line marking, converted from the format specified after ENCODING into the current character format, and transferred to a data object.

The end-of-line marking depends on the operating system of the application server. In the MS Windows operating systems, the markings "CRLF" and " LF" are possible, while under Unix, only "LF" is used. If, when using Windows, an existing file is opened without the TYPE addition (see os_addition), the first end-of-line marking is found and used for the whole file. If a new file is created without the TYPE addition, the content of the profile parameter abap/NTfmode is used. If the profile parameter is not set, "CRLF" is used. If a file with the TYPE addition is opened and a valid value is contained in attr, this value is used.

http://help.sap.com/abapdocu_70/en/ABAPOPEN_DATASET_ENCODING.htm

Read only

Former Member
0 Likes
528

Hi Victor,

Check your software component versions (SAP_ABA, SAP_BASIS etc) on both systems, it may be different on both system.

Syntax may dependent on versions.

Regards

Praveen

Read only

Former Member
0 Likes
528

Hello,

Thanks for all answers... I saw every suggestion and I think that my case is the difference between the Support Packages like Praveen said...

I really appreciate everyone's help. thank you!

Regards