Sap abap programming string encryption-MD5_CALCULATE_HASH_FOR_CHAR, md5hash

Source: Internet
Author: User

Sap abap programming string encryption-MD5_CALCULATE_HASH_FOR_CHAR, md5hash
DATA: str1 TYPE c LENGTH 12 VALUE 'zxcv ',
Str2 TYPE c LENGTH 32,
Str3 TYPE c LENGTH 32.


Call function 'md5 _ CALCULATE_HASH_FOR_CHAR'
EXPORTING
Data = str1
Length = 0
* VERSION = 1
IMPORTING
Hash = str2.

WRITE:/'Original:', str1.

WRITE:/'modify: ', str2.



How does SAP abap split strings?

DATA: tel type CHAR50,
TEL1 TYPE CHAR25,
TEL2 TYPE CHAR25.

TEL = '2014; 123456789 '.

Split tel at '; 'into TEL1 TEL2.

WRITE:/TEL1, TEL2.

How to define a string with single quotes in SAP's abap programming? Such as John's

LW_NAME = 'johns '.
Add a pair of quotation marks before the quotation marks.
Hope to help you.
If you can help, please adopt it.

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: info-contact@alibabacloud.com 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.