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

Function to encrypt and decrypt a text

Former Member
0 Likes
750

Created the following report to encrypt and decrypt a text. But, for me i am not getting proper output.

*&---------------------------------------------------------------------*
*& Report  ZRPASS
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

REPORT  zrpass.

DATA : in_txt1 TYPE char32, in_txt TYPE char32, out_txt TYPE char32, final_txt TYPE char32.

in_txt1 = 'RAJESH'.



CALL FUNCTION 'FIEB_PASSWORD_ENCRYPT'
   EXPORTING
     im_decrypted_password = in_txt1
   IMPORTING
     ex_encrypted_password = out_txt.

final_txt = out_txt.

CALL FUNCTION 'FIEB_PASSWORD_DECRYPT'
   EXPORTING
     im_encrypted_password = final_txt
   IMPORTING
     ex_decrypted_password = in_txt.


WRITE: /, in_txt1,
           out_txt,
           in_txt,
           final_txt.

my OUTPUT:

I am getting [NULL] output.

Pls tell me what is the problem????

1 ACCEPTED SOLUTION
Read only

former_member194152
Contributor
0 Likes
673

Hi Rajesh,

Instead of function module you can use class of HTTP utility, please see below thread for more detail:

http://scn.sap.com/thread/209399

Regards,

Gagan

2 REPLIES 2
Read only

former_member194152
Contributor
0 Likes
674

Hi Rajesh,

Instead of function module you can use class of HTTP utility, please see below thread for more detail:

http://scn.sap.com/thread/209399

Regards,

Gagan

Read only

0 Likes
673

Thanks