<?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 Re: BAPI: Data type string in FM's structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-type-string-in-fm-s-structure/m-p/7601733#M1568422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Verdam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try creating your own data element in SE11 and using it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to use CHAR339 as both input and output parameters of an RFC enabled FM. So not sure why you are receiving that error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jovito&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jan 2011 08:54:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-01-05T08:54:24Z</dc:date>
    <item>
      <title>BAPI: Data type string in FM's structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-type-string-in-fm-s-structure/m-p/7601728#M1568417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;      I have created a BAPI and use FM as a part of it. However, when I use the structure for the export parameter as a string field and get error message "String not allowed in structure".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Then I tried to use data type BAPITLINE and it's work fine, but it can only use for CHAR132 (my data is about 270 - 300 characters long)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Any solution for creating BAPI and use string as an import parameter ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 05:58:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-type-string-in-fm-s-structure/m-p/7601728#M1568417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-05T05:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI: Data type string in FM's structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-type-string-in-fm-s-structure/m-p/7601729#M1568418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;use  SRMHLSTRNG type, it is string type and your function will be ok.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FUNCTION ZHHTEST01.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     REFERENCE(ILINE) TYPE  SRMHLSTRNG
*"  EXPORTING
*"     REFERENCE(ELINE) TYPE  SRMHLSTRNG
*"----------------------------------------------------------------------

ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 06:29:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-type-string-in-fm-s-structure/m-p/7601729#M1568418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-05T06:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI: Data type string in FM's structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-type-string-in-fm-s-structure/m-p/7601730#M1568419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try type CHAR339.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ParameterName      Type      Associated Type            Short Text
MY_String          TYPE	     CHAR339	                Character 339&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jovito.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 06:37:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-type-string-in-fm-s-structure/m-p/7601730#M1568419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-05T06:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI: Data type string in FM's structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-type-string-in-fm-s-structure/m-p/7601731#M1568420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           I have tried to use data type SRMHLSTRNG but it's having an error "Data type SRMHLSTRNG cannot be used for methods" in SWO1&lt;/P&gt;&lt;P&gt;          and then I tried to change data type to char339 but it's having an error "Data type CHAR339 cannot be used for methods".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Any solution for this, please help !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 07:26:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-type-string-in-fm-s-structure/m-p/7601731#M1568420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-05T07:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI: Data type string in FM's structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-type-string-in-fm-s-structure/m-p/7601732#M1568421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think it is possible to use a STRING type parameter in a BAPI, convert the string to an internal table of text of structure BAPITGB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 08:18:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-type-string-in-fm-s-structure/m-p/7601732#M1568421</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-01-05T08:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI: Data type string in FM's structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-type-string-in-fm-s-structure/m-p/7601733#M1568422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Verdam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try creating your own data element in SE11 and using it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to use CHAR339 as both input and output parameters of an RFC enabled FM. So not sure why you are receiving that error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jovito&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 08:54:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-type-string-in-fm-s-structure/m-p/7601733#M1568422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-05T08:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI: Data type string in FM's structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-type-string-in-fm-s-structure/m-p/7601734#M1568423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are less restrictions on RFC enabled FM than on BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check [Actions in the ABAP Dictionary |http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/43/b46c3953c111d395fa00a0c94260a5/frameset.htm] in [BAPI Programming Guide (CA-BFA)|http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm]&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;STRONG&gt;Conventions for BAPI Data Structures&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Each parameter must refer to a data structure in the ABAP Dictionary&lt;/U&gt;. In the case of structured parameters this is always to the whole BAPI data structure. But if the parameter consists of only one field, it must refer to a field in a BAPI structure.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;STRONG&gt;Conventions for BAPI/ALE Integration&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that an IDoc for asynchronous communication can be generated from a BAPI, the following conditions must be satisfied:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI structure names must not be longer than 27 characters, otherwise the automatically generated name for the associated segment will be too long and will have to be changed manually later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;STRONG&gt;Reason&lt;/STRONG&gt;&lt;/SPAN&gt;  : The segment is generated following the convention &amp;lt;BAPI structure name&amp;gt; + &amp;lt;three digit number&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This graphic is explained in the accompanying text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Single fields in a data structure can only be a maximum of 250 bytes.&lt;/U&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So the length of any single parameter (not structure) of the BAPI can not exceed 250.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jan 2011 09:28:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-data-type-string-in-fm-s-structure/m-p/7601734#M1568423</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2011-01-05T09:28:40Z</dc:date>
    </item>
  </channel>
</rss>

