<?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_BUS1077_CHANGE failling for identifier long texts in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bus1077-change-failling-for-identifier-long-texts/m-p/7253364#M1527916</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was really stuck by the above mentioned issue. I get rid of it by my continious re-thinking.&lt;/P&gt;&lt;P&gt;I am giving the solution, it might help anyone facing the simmilar problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of creating the 'Long Text' for any identifier in EHS, the BAPI_BUS1077_CREATE needs to be used for the below 2 situations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Identifier does not exists at all.&lt;/P&gt;&lt;P&gt;2. Identifier exists, but with a small text (&amp;lt;=132 characters).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the 2nd case, I assumed that I need to use BAPI_BUS1077_CHANGE, as the identifier already exists, but it was returning error, as the Long text was not existing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ipsita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Sep 2010 13:51:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-27T13:51:47Z</dc:date>
    <item>
      <title>BAPI_BUS1077_CHANGE failling for identifier long texts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bus1077-change-failling-for-identifier-long-texts/m-p/7253363#M1527915</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;I am facing a typical problem with the Lonag Texts of the Identifiers.&lt;/P&gt;&lt;P&gt;The problem arises when I want to modify an Identifier (Chemical Name) from a small text (&amp;lt;= 132 characters) to a Long Text (&amp;gt;132 characters). But it works fine when either creating a new identifier, or changing a small text to another small text, or changing a long text to another long text, or changing a long text to a small text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I am using is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'BAPI_BUS1077_CHANGE'
    EXPORTING
      FLG_HEADER                     = 'X'
      flg_ident                      = 'X'
      flg_ident_longtext             = 'X'
    TABLES
      return                         = i_bapiret2
      sub_header                     = i_bapi1077rh
      ident_header                   = i_bapi1077ri2
      ident_headerx                  = i_bapisubrix2
      ident_longtext                 = i_bapi1077il
      ident_longtextx                = i_bapisubilx.

* Tables for the Long Text:
  w_bapi1077il-ref_recnri = w_bapi1077ri-record_no.
  w_bapi1077il-text_line  = p_ident.
  APPEND w_bapi1077il TO i_bapi1077il.

  w_bapisubilx-ref_recnri = 'X'.
  w_bapisubilx-text_line  = 'X'.
  APPEND w_bapisubilx TO i_bapisubilx.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI_BUS1077_CHANGE is returning the below errors:&lt;/P&gt;&lt;P&gt;At least one error occurred during processing&lt;/P&gt;&lt;P&gt;No values are available for the key specified&lt;/P&gt;&lt;P&gt;At least one lock error occurred during processing&lt;/P&gt;&lt;P&gt;            &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ipsita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use code tags.&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Sep 24, 2010 12:37 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Sep 2010 16:19:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bus1077-change-failling-for-identifier-long-texts/m-p/7253363#M1527915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-24T16:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_BUS1077_CHANGE failling for identifier long texts</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bus1077-change-failling-for-identifier-long-texts/m-p/7253364#M1527916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was really stuck by the above mentioned issue. I get rid of it by my continious re-thinking.&lt;/P&gt;&lt;P&gt;I am giving the solution, it might help anyone facing the simmilar problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of creating the 'Long Text' for any identifier in EHS, the BAPI_BUS1077_CREATE needs to be used for the below 2 situations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Identifier does not exists at all.&lt;/P&gt;&lt;P&gt;2. Identifier exists, but with a small text (&amp;lt;=132 characters).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the 2nd case, I assumed that I need to use BAPI_BUS1077_CHANGE, as the identifier already exists, but it was returning error, as the Long text was not existing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ipsita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 13:51:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-bus1077-change-failling-for-identifier-long-texts/m-p/7253364#M1527916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-27T13:51:47Z</dc:date>
    </item>
  </channel>
</rss>

