<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic encrypt data in ABAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-data-in-abap/m-p/1276533#M151644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;ich will send data from HR via an email-attachment (.txt) to an external Company. The data are selected and send in a Abap-Report. Because there sensitive Data, i will encrypt them in Abap. The Receiver shell decrypt the attachment without Abap, only in Windows by a special Key, Pin etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone an Idea to solve this Problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Apr 2006 08:10:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-20T08:10:14Z</dc:date>
    <item>
      <title>encrypt data in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-data-in-abap/m-p/1276533#M151644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;ich will send data from HR via an email-attachment (.txt) to an external Company. The data are selected and send in a Abap-Report. Because there sensitive Data, i will encrypt them in Abap. The Receiver shell decrypt the attachment without Abap, only in Windows by a special Key, Pin etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone an Idea to solve this Problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2006 08:10:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-data-in-abap/m-p/1276533#M151644</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-20T08:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: encrypt data in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-data-in-abap/m-p/1276534#M151645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be u can use function module &lt;/P&gt;&lt;P&gt;SSFS_ENCODE_TEXT to encrypt data from text to UTF-8 format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sharath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2006 10:13:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-data-in-abap/m-p/1276534#M151645</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-20T10:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: encrypt data in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-data-in-abap/m-p/1276535#M151646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this link:&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1121237"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2006 10:19:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-data-in-abap/m-p/1276535#M151646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-20T10:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: encrypt data in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-data-in-abap/m-p/1276536#M151647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dieter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try CL_BSP_UTILITY=&amp;gt;ENCODE_STRING, it was mentioned in the BSP Advanced Programming book, but I don't have with me now and I don't remember the details:-(&lt;/P&gt;&lt;P&gt;As far as I remember it uses a commonly used encryption type, so probable you can find a windows based decrypter application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2006 11:45:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-data-in-abap/m-p/1276536#M151647</guid>
      <dc:creator>Peter_Inotai</dc:creator>
      <dc:date>2006-04-20T11:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: encrypt data in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-data-in-abap/m-p/1276537#M151648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;sorry Sharath and Peter but we have 4.6C, and the Class/Function isn't in our System.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think i have to describe my problem in more detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First i read in Abap some Data and put it in an internal table. Then i send it via "SO_DOCUMENT_SEND_API1" with &lt;/P&gt;&lt;P&gt;Receiver Typ "U" to an external Receiver as an Attachment. This Attachment shell be secuered by Cryptation or by Password.&lt;/P&gt;&lt;P&gt;The Receiver shell open this Attachment with Password &lt;/P&gt;&lt;P&gt;or any other Key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2006 12:35:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-data-in-abap/m-p/1276537#M151648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-20T12:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: encrypt data in ABAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-data-in-abap/m-p/1276538#M151649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dieter,&lt;/P&gt;&lt;P&gt; I had a similar problem and the below code worked for me.&lt;/P&gt;&lt;P&gt; you can try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztest_encrypt_test.

DATA: o_encryptor        TYPE REF TO cl_http_utility.

DATA: v_ac_string  TYPE string VALUE 'Chaithanya',
      v_dc_string TYPE string,
      p_file TYPE string,
      x_file TYPE string.

DATA: BEGIN OF i_data OCCURS 0,
      data TYPE string,
      END OF i_data.
DATA: BEGIN OF i_dedata OCCURS 0,
      data TYPE string,
      END OF i_dedata.

PARAMETERS: l_file TYPE rlgrap-filename,
            e_file TYPE rlgrap-filename.
PARAMETERS: encode RADIOBUTTON GROUP g1,
            decode RADIOBUTTON GROUP g1.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR l_file.
  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
      field_name = l_file
    CHANGING
      file_name  = l_file.

  p_file = l_file.

AT SELECTION-SCREEN ON VALUE-REQUEST FOR e_file.
  CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
    EXPORTING
      field_name = e_file
    CHANGING
      file_name  = e_file.

  x_file = e_file.

START-OF-SELECTION.

* Create object for Encryption
  CREATE OBJECT o_encryptor.
  CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename = p_file
      filetype = 'ASC'
    TABLES
      data_tab = i_data.

  IF encode = 'X'.

    LOOP AT i_data.
      CALL METHOD cl_http_utility=&amp;gt;if_http_utility~encode_base64
        EXPORTING
          unencoded = i_data-data
        RECEIVING
          encoded   = v_dc_string.
      i_dedata-data = v_dc_string.
      APPEND i_dedata.


      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename = x_file
          filetype = 'ASC'
        TABLES
          data_tab = i_dedata.

    ENDLOOP.

  ELSE.
    LOOP AT i_data.
      CALL METHOD cl_http_utility=&amp;gt;if_http_utility~decode_base64
        EXPORTING
          encoded = i_data-data
        RECEIVING
          decoded = v_ac_string.

      i_dedata-data = v_ac_string.
      APPEND i_dedata.


      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename = x_file
          filetype = 'ASC'
        TABLES
          data_tab = i_dedata.

    ENDLOOP.

  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 13:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/encrypt-data-in-abap/m-p/1276538#M151649</guid>
      <dc:creator>chaithanya_mk</dc:creator>
      <dc:date>2007-04-18T13:19:43Z</dc:date>
    </item>
  </channel>
</rss>

