‎2007 Jul 02 3:00 PM
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.
‎2007 Jul 02 3:03 PM
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
‎2007 Jul 02 3:03 PM
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
‎2007 Jul 02 3:04 PM
And for number 1) read this.
http://help.sap.com/saphelp_nw2004s/helpdata/en/79/c554a0b3dc11d5993800508b6b8b11/frameset.htm
Regards,
RIch Heilman
‎2007 Jul 02 3:07 PM
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.