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

Using ABAP function calls in HANA

Former Member
0 Likes
1,636

Hi everyone,

I am very new to the ABAP workspace. Is it possible to call ABAP function modules from the HANA database? We have a long raw field in a table that we would like to convert to text. Any help would be greatly appreciated!

Thanks,

Anu

Hi everyone,

I am very new to the ABAP workspace. Is it possible to call ABAP function modules from the HANA database? We have a long raw field in a table that we would like to convert to text. Any help would be greatly appreciated!

Thanks,

Anu

8 REPLIES 8
Read only

Vinod_Chandran
Active Contributor
0 Likes
1,128

Hi Anu,

Can you try using the 'string' function available in the Calculated column? You have to use either Calculation view or Analytic view for this.

Thanks

Vinod

Read only

0 Likes
1,128

Hi Vinod,

This field that is coming into HANA is unreadable text. There is a function module called Read_Text that will output a readable string, but I have no idea how to call it within HANA.

Thanks,

Anu

Read only

yeushengteo
Product and Topic Expert
Product and Topic Expert
0 Likes
1,128

Hi Anu,

ABAP calling to HANA DB is possible... I believe nothing for the reverse manner presently.

Regards.

YS

Read only

0 Likes
1,128

Hi Anu,

The READ_TEXT function module is to read Text ids. For this you need the text id information like ID, NAME, OBJECT etc. You have mentioned that the HANA DB contains unreadable text. Can you please explain more about the requirement? From where you are planning to call this FM? What format is the unreadable text?

Thanks

Vinod

Read only

0 Likes
1,128

We are implementing SLT at a client site. We read tables in from ECC like STXH and STXL. There's a raw field in STXL that contains hexadecimal characters and it seems like we have to use the read_text function module with the correct parameters to decrypt the string.

Since SLT just passes the data, I think it would be best if we could call the function module from HANA since we have access to both tables.

There were a lot of posts out there suggesting that we use the function module in ECC to fill a z table with the decrypted strings, but the table would not be real time. And that defeats the purpose of SLT.

Any help or thoughts would be appreciated!

Thanks!

Anu

Read only

yeushengteo
Product and Topic Expert
Product and Topic Expert
0 Likes
1,128

Hi,

If SLT has the capability for you to include own user-exit transformation ABAP logic and output the string data into another customized table to save the "decrypt" string content, it may be possible to achieve what you want. Inside the user exit you have to call FM READ_TEXT to decrypt the LRAW content.

Is this kind of user-exit available in SLT?

Regards.

YS

Read only

0 Likes
1,128

Hi Anu,

Please try the following.

Take the transaction iuuc_repl_content for the advanced replication settings.

Select the configuration and then select the table.

You should be able to add ABAP code for a field using this transaction.

Check the OSS note 1733714 for more information.

Thanks

Vinod

Read only

Former Member
0 Likes
1,128

Hi Anu -

I know this post is a bit old, but I have a similar requirement to bring the texts from the READ_TEXT function module into HANA. We are using SLT for the replication of all other data into HANA.  Did you find a solution to address this?

Thank you,

Katie