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

syntax meaning

Former Member
0 Likes
531

Hi everyone,

1.In the syntax

Open dataset <dsn> for <input/output/append>

in <text/binary> mode

encoding default

message v_msg

Could u plz tell me what encoding means and plz explain me in detail.....

2.And also in the structure BDCMSGCOLL the field messagetype has options (A/E/W/I/S)

So could u plz explain the options of this message type.

3.And another doubt is could u plz explain in detail how to handle error handling in call transaction.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
486

2) Message type is whether the message is an error message, information message, warning message, success message, or Abend(abort) message.

3 Error handleing in call transaction is simply reading the internalt table from the MESSAGES into <Itab> extension of the statement. It has the structure BDCMSGCOLL and contains the messages, you can handle accordingly, meaning report them to the user.

REgards,

Rich Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
487

2) Message type is whether the message is an error message, information message, warning message, success message, or Abend(abort) message.

3 Error handleing in call transaction is simply reading the internalt table from the MESSAGES into <Itab> extension of the statement. It has the structure BDCMSGCOLL and contains the messages, you can handle accordingly, meaning report them to the user.

REgards,

Rich Heilman

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
486
Read only

Former Member
0 Likes
486

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 additions after ENCODING determine in which character representation the content of the file is handled.

DEFAULT

In a Unicode system, the designation DEFAULT corresponds to the designation UTF-8, and the designation NON-UNICODE in a non-Unicode system.

UTF-8

The characters in the file are handled according to the Unicode character representation UTF-8.

NON-UNICODE

In a non-Unicode system, the data is read or written without being converted. In a Unicode system,the characters in the file are handled according to the non-Unicode-codepage that would be assigned to the current text environment according to the database table TCP0C, at the time of reading or writing in a non-Unicode system.

If the addition ENCODING is not specified in non-Unicode programs, the addition NON-UNICODE is used implicitly.