<?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 transaction problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-problem/m-p/3592748#M865080</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 this code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM user_command USING ucomm LIKE sy-ucomm sel TYPE slis_selfield .
  DATA : v_repid LIKE sy-repid.

  v_repid = sy-repid.

  DATA: lv_ucomm TYPE sy-ucomm,
  v_ebeln1 TYPE ekko-ebeln.


  lv_ucomm = sy-ucomm.

***REFRESH T_SER.
***REFRESH IT_SER03.
***REFRESH IT_OBJK.


  CASE ucomm.

    WHEN '&amp;amp;IC1'.


      IF sel-fieldname = 'EBELN'.
        v_ebeln1 = sel-value.

*       READ TABLE it_final INTO wa_final WITH KEY ebeln1 = sel-value.
        READ TABLE itab  WITH KEY ebeln = sel-value.
        unpack v_ebeln1 to v_ebeln1.
        SET PARAMETER ID 'BES' FIELD v_ebeln1.
        CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.

      ENDIF.
  ENDCASE.
ENDFORM.                    "USER_COMMAND

*ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Nehru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Mar 2008 12:55:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-18T12:55:39Z</dc:date>
    <item>
      <title>Call transaction problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-problem/m-p/3592747#M865079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is with a report that displays a ALV Grid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At click on a field in that alv it calls another transaction. Everything is ok until, inside that transaction, at some points there are several "COMMIT WORK" lines. After the first commit work line, it leaves the called transaction and return to the caller report without executing the code remained after the "COMMIT WORK" line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i tell the report to call that transaction without returning after every  commit?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Andrei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 12:53:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-problem/m-p/3592747#M865079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T12:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Call transaction problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-problem/m-p/3592748#M865080</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 this code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM user_command USING ucomm LIKE sy-ucomm sel TYPE slis_selfield .
  DATA : v_repid LIKE sy-repid.

  v_repid = sy-repid.

  DATA: lv_ucomm TYPE sy-ucomm,
  v_ebeln1 TYPE ekko-ebeln.


  lv_ucomm = sy-ucomm.

***REFRESH T_SER.
***REFRESH IT_SER03.
***REFRESH IT_OBJK.


  CASE ucomm.

    WHEN '&amp;amp;IC1'.


      IF sel-fieldname = 'EBELN'.
        v_ebeln1 = sel-value.

*       READ TABLE it_final INTO wa_final WITH KEY ebeln1 = sel-value.
        READ TABLE itab  WITH KEY ebeln = sel-value.
        unpack v_ebeln1 to v_ebeln1.
        SET PARAMETER ID 'BES' FIELD v_ebeln1.
        CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.

      ENDIF.
  ENDCASE.
ENDFORM.                    "USER_COMMAND

*ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Nehru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 12:55:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-problem/m-p/3592748#M865080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T12:55:39Z</dc:date>
    </item>
  </channel>
</rss>

