<?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: call function - abap error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-abap-error/m-p/3105728#M737250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By executing this code, you must get the run time error CALL_FUNCTION_CONFLICT_TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve this you can do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: L_EBELN LIKE EKKO-EBELN,
      L_EBELP LIKE EKPO-EBELP.

DATA: BETS LIKE EKBES OCCURS 0 WITH HEADER LINE.

L_EBELN =   LW_BSIS-ZUONR+0(10).
L_EBELP =   LW_BSIS-ZUONR+10(5).

CALL FUNCTION 'ME_READ_HISTORY'
  EXPORTING
    EBELN                    = L_EBELN
    EBELP                    = L_EBELP
  TABLES
    XEKBES = BETS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2007 14:35:02 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2007-11-21T14:35:02Z</dc:date>
    <item>
      <title>call function - abap error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-abap-error/m-p/3105726#M737248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I'm calling a function ME_READ_HISTORY there is an abap error appears. If I check the function manualy everything is ok.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ME_READ_HISTORY'&lt;/P&gt;&lt;P&gt;               EXPORTING&lt;/P&gt;&lt;P&gt;                  EBELN = lw_bsis-zuonr+0(10)&lt;/P&gt;&lt;P&gt;                  EBELP = lw_bsis-zuonr+10(5)&lt;/P&gt;&lt;P&gt;                  WEBRE = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              WEBRE = EKPO-WEBRE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;               TABLES&lt;/P&gt;&lt;P&gt;                   &amp;lt;b&amp;gt; XEKBES = BETS.&amp;lt;/b&amp;gt;  "here is an abap errror&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there is a problem because in lw_bsis are dupllicated ZUONR's. But I don't know how to call function just for unique records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I solved the select from table int with SORT INT by ZUONR.&lt;/P&gt;&lt;P&gt;DELETE ADJACENT DUPLICATES from int COMPARING ZUONR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bu i don't know how to do the same for the LW_BSIS work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Saso &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL FUNCTION 'ME_READ_HISTORY'&lt;/P&gt;&lt;P&gt;               EXPORTING&lt;/P&gt;&lt;P&gt;                  EBELN = lw_bsis-zuonr+0(10)&lt;/P&gt;&lt;P&gt;                  EBELP = lw_bsis-zuonr+10(5)&lt;/P&gt;&lt;P&gt;                  WEBRE = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              WEBRE = EKPO-WEBRE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;               TABLES&lt;/P&gt;&lt;P&gt;                    XEKBES = BETS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 14:22:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-abap-error/m-p/3105726#M737248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T14:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: call function - abap error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-abap-error/m-p/3105727#M737249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assign the ZUONR fields to a variable and then use them in the call function statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 14:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-abap-error/m-p/3105727#M737249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T14:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: call function - abap error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-abap-error/m-p/3105728#M737250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By executing this code, you must get the run time error CALL_FUNCTION_CONFLICT_TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve this you can do like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: L_EBELN LIKE EKKO-EBELN,
      L_EBELP LIKE EKPO-EBELP.

DATA: BETS LIKE EKBES OCCURS 0 WITH HEADER LINE.

L_EBELN =   LW_BSIS-ZUONR+0(10).
L_EBELP =   LW_BSIS-ZUONR+10(5).

CALL FUNCTION 'ME_READ_HISTORY'
  EXPORTING
    EBELN                    = L_EBELN
    EBELP                    = L_EBELP
  TABLES
    XEKBES = BETS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 14:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-abap-error/m-p/3105728#M737250</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2007-11-21T14:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: call function - abap error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-abap-error/m-p/3105729#M737251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 14:37:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-abap-error/m-p/3105729#M737251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T14:37:10Z</dc:date>
    </item>
  </channel>
</rss>

