<?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 Problem in using a structure with a field of  data type 'RAW STRING' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-a-structure-with-a-field-of-data-type-raw-string/m-p/3475261#M835347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a ZBAPI that imports a structure which has 5 fields. I have defined this in the IMPORT tab of Tr.Code &amp;lt;SE37&amp;gt;.  One of the field of this structure is of data type 'RAW STRING'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to activate this BAPI, I get an error message as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module ZBAPI_ADD_CONFIG_DNA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"ZDAMPER_CON_DNA" Must be a flat structure. You cannot use internal table&lt;/P&gt;&lt;P&gt;strings, references, or structures as components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where ZDAMPER_CON_DNA is the table name that I am using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR TESTING PURPOSE, WHEN I CHANGE THE DATA TYPE FROM 'RAW STRING' TO JUST A CHAR OF LENGHT 5, IT WORKS FINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the source code of the simple BAPI that i am trying to activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION ZBAPI_ADD_CONFIG_DNA.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(CONFIG_DNA_DATA) TYPE  ZCONFIG_DNA_STRUCTURE&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(MESSAGE) TYPE  ZRETURNMESSAGE&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: ZDAMPER_CON_DNA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ZDAMPER_CON_DNA-CONFIG_ID       =     CONFIG_DNA_DATA-CONFIG_ID.&lt;/P&gt;&lt;P&gt;    ZDAMPER_CON_DNA-STRING_NAME     =     CONFIG_DNA_DATA-STRING_NAME.&lt;/P&gt;&lt;P&gt;    ZDAMPER_CON_DNA-STRING_FORMAT   =     CONFIG_DNA_DATA-STRING_FORMAT.&lt;/P&gt;&lt;P&gt;    ZDAMPER_CON_DNA-STRING_VALUE    =     CONFIG_DNA_DATA-STRING_VALUE.&lt;/P&gt;&lt;P&gt;    ZDAMPER_CON_DNA-OBJECT_NAME     =     CONFIG_DNA_DATA-OBJECT_NAME.&lt;/P&gt;&lt;P&gt;    INSERT ZDAMPER_CON_DNA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MESSAGE-SUBRC = sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        MESSAGE-RETURNMESSAGE = 'SuccessfullyInserted'.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;        MESSAGE-RETURNMESSAGE = 'Insert Failed'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=============&lt;/P&gt;&lt;P&gt;ANY KIND OF FEED BACK WILL BE HIGHLY APPRECIATED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;RAM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2008 18:34:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-07T18:34:21Z</dc:date>
    <item>
      <title>Problem in using a structure with a field of  data type 'RAW STRING'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-a-structure-with-a-field-of-data-type-raw-string/m-p/3475261#M835347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written a ZBAPI that imports a structure which has 5 fields. I have defined this in the IMPORT tab of Tr.Code &amp;lt;SE37&amp;gt;.  One of the field of this structure is of data type 'RAW STRING'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to activate this BAPI, I get an error message as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module ZBAPI_ADD_CONFIG_DNA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"ZDAMPER_CON_DNA" Must be a flat structure. You cannot use internal table&lt;/P&gt;&lt;P&gt;strings, references, or structures as components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where ZDAMPER_CON_DNA is the table name that I am using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR TESTING PURPOSE, WHEN I CHANGE THE DATA TYPE FROM 'RAW STRING' TO JUST A CHAR OF LENGHT 5, IT WORKS FINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the source code of the simple BAPI that i am trying to activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION ZBAPI_ADD_CONFIG_DNA.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(CONFIG_DNA_DATA) TYPE  ZCONFIG_DNA_STRUCTURE&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(MESSAGE) TYPE  ZRETURNMESSAGE&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: ZDAMPER_CON_DNA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ZDAMPER_CON_DNA-CONFIG_ID       =     CONFIG_DNA_DATA-CONFIG_ID.&lt;/P&gt;&lt;P&gt;    ZDAMPER_CON_DNA-STRING_NAME     =     CONFIG_DNA_DATA-STRING_NAME.&lt;/P&gt;&lt;P&gt;    ZDAMPER_CON_DNA-STRING_FORMAT   =     CONFIG_DNA_DATA-STRING_FORMAT.&lt;/P&gt;&lt;P&gt;    ZDAMPER_CON_DNA-STRING_VALUE    =     CONFIG_DNA_DATA-STRING_VALUE.&lt;/P&gt;&lt;P&gt;    ZDAMPER_CON_DNA-OBJECT_NAME     =     CONFIG_DNA_DATA-OBJECT_NAME.&lt;/P&gt;&lt;P&gt;    INSERT ZDAMPER_CON_DNA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    MESSAGE-SUBRC = sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        MESSAGE-RETURNMESSAGE = 'SuccessfullyInserted'.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;        MESSAGE-RETURNMESSAGE = 'Insert Failed'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=============&lt;/P&gt;&lt;P&gt;ANY KIND OF FEED BACK WILL BE HIGHLY APPRECIATED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;RAM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 18:34:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-a-structure-with-a-field-of-data-type-raw-string/m-p/3475261#M835347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T18:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using a structure with a field of  data type 'RAW STRING'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-a-structure-with-a-field-of-data-type-raw-string/m-p/3475262#M835348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ram,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no data element exists with the name RAW STRING ,&lt;/P&gt;&lt;P&gt;but check one of these names..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data element                   Short text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C2S_RAWSTRING                  C2-Server: Data Element of Type Rawstring&lt;/P&gt;&lt;P&gt;N2_RAWSTRING                   Byte String of Variable Length&lt;/P&gt;&lt;P&gt;QISRDRAW_STRING                Data in Format RAW Character String&lt;/P&gt;&lt;P&gt;RCF_RAWSTRING                  Rawstring&lt;/P&gt;&lt;P&gt;RPAP_TEMPLATE_RAWSTRING        Blob of Template File&lt;/P&gt;&lt;P&gt;RSRAWSTRING                    Raw String&lt;/P&gt;&lt;P&gt;RSRD_RAWSTRING                 Binary Content in the Broadcasting Framework&lt;/P&gt;&lt;P&gt;SWH_RAWSTRING                  Workflow: Data Type RAWSTRING&lt;/P&gt;&lt;P&gt;WDR_RAWSTRING                  Byte Sequence of Variable Length&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 7, 2008 5:15 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 19:51:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-a-structure-with-a-field-of-data-type-raw-string/m-p/3475262#M835348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T19:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using a structure with a field of  data type 'RAW STRING'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-a-structure-with-a-field-of-data-type-raw-string/m-p/3475263#M835349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sorry. The actual data element type is 'RAWSTRING' that I selected from the available drop down list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't find the listing that you are suggesting. However, I will see If I can manually enter them and try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestions and I will keep you posted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Mar 2008 13:11:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-a-structure-with-a-field-of-data-type-raw-string/m-p/3475263#M835349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-08T13:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using a structure with a field of  data type 'RAW STRING'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-a-structure-with-a-field-of-data-type-raw-string/m-p/3475264#M835350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can either change the importing parameter ot tables parameter and split the structure and have that many import parameters&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 09:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-a-structure-with-a-field-of-data-type-raw-string/m-p/3475264#M835350</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2008-03-10T09:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in using a structure with a field of  data type 'RAW STRING'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-a-structure-with-a-field-of-data-type-raw-string/m-p/3475265#M835351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, using a type VARILRAW solved this issue. Thanks to everyone for their kind response. I appreciate it a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2008 12:05:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-using-a-structure-with-a-field-of-data-type-raw-string/m-p/3475265#M835351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-10T12:05:10Z</dc:date>
    </item>
  </channel>
</rss>

