Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6126443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:22:28+00:00 2026-05-23T16:22:28+00:00

I am trying to calculate a SHA2 checksum on a string in ABAP. I

  • 0

I am trying to calculate a SHA2 checksum on a string in ABAP. I have come across the functions CALCULATE_HASH_FOR_CHAR and CALCULATE_HMAC_FOR_CHAR. However, CALCULATE_HASH_FOR_CHAR only can calculate a SHA1 (entering SHA2 returns nothing).

By contrast, CALCULATE_HMAC_FOR_CHAR seems to rely on entries maintained in the SecureStorage, so this is not really helpful to me (and I’m not sure it will give me the results I need).

Also, after seeing how FM SSFH_F4_HASHALG returns possible values for hash algorithms, it seems that the possible values are dependent on the version of sapseculib that you have installed.

Any ideas how else I can calculate a SHA2 hash in ABAP?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:22:30+00:00Added an answer on May 23, 2026 at 4:22 pm

    OK, it seems that the answer is to use class CL_ABAP_MESSAGE_DIGEST (and then specify SHA256 as the algorithm). This information is in note 1410294 (Support SHA2-family for Message Digest and HMAC) and requires a certain kernel patch level etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to calculate the sub_total field based on: total_full + total_half. however
I am trying to calculate edit distances of a string against a collection to
I'm trying to calculate how many minutes have elapsed between a saved DateTime and
I am trying to calculate an aspect ratio for an image: Log.d(img.width:, String.valueOf(img.getIntrinsicWidth())); Log.d(img.height:,
I am trying to calculate sum of 'price' field of an 'observableArray'. I have
I am trying to calculate the medoid in matlab. However, i don't know how
i am trying calculate the amount but having troble with jQuery .. can you
I am trying to calculate the maximum length of a string to print. I
I'm trying to calculate the load on a server I have to build. I
I m trying to calculate sum of a list of records. I have 3

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.