Calculate the MD5 value of ABAP.

Source: Internet
Author: User

Currently, md5_calculate_hash_for_char and md5_calculate_hash_for_raw are used for MD5 calculation. In string Calculation
When using MD5, the former is relatively large, but if the string contains Chinese characters, if it is parsed in other languages (such as Java), the MD5 value may be different. Because md5_calculate_hash_for_char processes the characters before calculating the hash value.


ReadCodeWe can know that the core function is used.
Calculate_hash_for_raw, similarly, calculate_hash_for_char. Therefore, you can use these two functions to calculate MD5.


For example:

span {
font-family: "Courier";
font-size: 12pt;
color: #000000;
Background: # cce8cf;
}< br/>. l1s32 {
color: # 3399ff;
}< br/>. l1s33 {
color: #4da619;
}< br/>. l1s52 {
color: # 0000ff;
}< br/> -->
call function 'calculate _ hash_for_char '
ALG = 'md5'
DATA = xml_string
hash = hash
internal_error = 1
others = 2.


In this way, the MD5 value can be calculated.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.