<?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 in module pool. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-in-module-pool/m-p/6917695#M1483811</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; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ITAB-SEL = 'X'. " Just Check in Debug wether this condition is getting satisfied or not
"Then only The TCode is called in your Posted COde&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below thread&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1533343"&gt;&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;in PAI
loop at itab.
module get_cursor.
endloop.

 module get_cursor.
get cursor field fnam value fval line tab_line. " Declare these varaibles in TOP Include
endmodule
CASE SY-UCOMM.
  WHEN 'LS24'.
  wa-SEL = 'X'.
read table ITAB with key sel = 'X'.  "or
read table itab index tab_line. " As obtained in the GET_CURSOR module

if sy-subrc = 0.
   SET PARAMETER ID 'MAT' FIELD itab-MATNR.
   SET PARAMETER ID 'WRK' FIELD itab-IWERKS.
   SET PARAMETER ID 'LGN' FIELD itab-lgnum.
CALL TRANSACTION 'LS24'. "AND SKIP FIRST SCREEN.
endif.
"Note: Since LS24 takes only single inputs you dont need to loop itab simple READ table is enough.
"As suggested by MADHU use Row selector on Table control otherwise use GET CURSOR method
    ENDCASE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 May 2010 09:13:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-20T09:13:50Z</dc:date>
    <item>
      <title>call transaction in module pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-in-module-pool/m-p/6917689#M1483805</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;&lt;/P&gt;&lt;P&gt;In my issue, I have a table control where I have 2 line items and if I select the first line for a call transaction, than the line in the header of internal table only triggers but not the selected line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone let me know what can be done in this case.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CASE SY-UCOMM.
  WHEN 'LS24'.
  ITAB-SEL = 'X'.
LOOP AT ITAB,
   SET PARAMETER ID 'MAT' FIELD ITAB-MATNR.
   SET PARAMETER ID 'WRK' FIELD ITAB-IWERKS.
*   SET PARAMETER ID 'LGN' FIELD RL01S-LGNUM.
ENDLOOP.
    CALL TRANSACTION 'LS24'. "AND SKIP FIRST SCREEN.
ENDCASE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regrds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 06:34:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-in-module-pool/m-p/6917689#M1483805</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T06:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction in module pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-in-module-pool/m-p/6917690#M1483806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Have u added the w/selcolm with name 'ITAB_SEL' in the properties of table control, if not add tat then it will work with the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;  WHEN 'LS24'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB where sel = 'X',&lt;/P&gt;&lt;P&gt;   SET PARAMETER ID 'MAT' FIELD ITAB-MATNR.&lt;/P&gt;&lt;P&gt;   SET PARAMETER ID 'WRK' FIELD ITAB-IWERKS.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SET PARAMETER ID 'LGN' FIELD RL01S-LGNUM.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION 'LS24'. "AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;ENDCASE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 06:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-in-module-pool/m-p/6917690#M1483806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T06:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction in module pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-in-module-pool/m-p/6917691#M1483807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use seperate workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CASE SY-UCOMM.
  WHEN 'LS24'.
  wa-SEL = 'X'.
LOOP AT ITAB into wa where sel = 'X'.
   SET PARAMETER ID 'MAT' FIELD wa-MATNR.
   SET PARAMETER ID 'WRK' FIELD wa-IWERKS.
ENDLOOP.
    CALL TRANSACTION 'LS24'. "AND SKIP FIRST SCREEN.
ENDCASE

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 06:42:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-in-module-pool/m-p/6917691#M1483807</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2010-05-20T06:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction in module pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-in-module-pool/m-p/6917692#M1483808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;H Gautam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not using work area in this  report if I need to use work area than i need to completely  modify the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any other way I can use such a logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 06:53:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-in-module-pool/m-p/6917692#M1483808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T06:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction in module pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-in-module-pool/m-p/6917693#M1483809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nikhil,&lt;/P&gt;&lt;P&gt;just do this in the flow logic Have u added the w/selcolm with name 'ITAB-SEL' in the properties of table control, if not add tat then it will work with the following code&lt;/P&gt;&lt;P&gt;added sel   field in the internal table &amp;amp; do the above step it will work there is not much change required&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'LS24'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB where sel = 'X',&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'MAT' FIELD ITAB-MATNR.&lt;/P&gt;&lt;P&gt;SET PARAMETER ID 'WRK' FIELD ITAB-IWERKS.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SET PARAMETER ID 'LGN' FIELD RL01S-LGNUM.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'LS24'. "AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;ENDCASE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 07:33:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-in-module-pool/m-p/6917693#M1483809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T07:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction in module pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-in-module-pool/m-p/6917694#M1483810</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;Yes I have done that. Still issue not solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will trigger if I have only 1 item level but incase I have more than one it takes the only header entry from internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 08:34:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-in-module-pool/m-p/6917694#M1483810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T08:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction in module pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-in-module-pool/m-p/6917695#M1483811</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; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ITAB-SEL = 'X'. " Just Check in Debug wether this condition is getting satisfied or not
"Then only The TCode is called in your Posted COde&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below thread&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="1533343"&gt;&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;in PAI
loop at itab.
module get_cursor.
endloop.

 module get_cursor.
get cursor field fnam value fval line tab_line. " Declare these varaibles in TOP Include
endmodule
CASE SY-UCOMM.
  WHEN 'LS24'.
  wa-SEL = 'X'.
read table ITAB with key sel = 'X'.  "or
read table itab index tab_line. " As obtained in the GET_CURSOR module

if sy-subrc = 0.
   SET PARAMETER ID 'MAT' FIELD itab-MATNR.
   SET PARAMETER ID 'WRK' FIELD itab-IWERKS.
   SET PARAMETER ID 'LGN' FIELD itab-lgnum.
CALL TRANSACTION 'LS24'. "AND SKIP FIRST SCREEN.
endif.
"Note: Since LS24 takes only single inputs you dont need to loop itab simple READ table is enough.
"As suggested by MADHU use Row selector on Table control otherwise use GET CURSOR method
    ENDCASE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 09:13:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-in-module-pool/m-p/6917695#M1483811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T09:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: call transaction in module pool.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-in-module-pool/m-p/6917696#M1483812</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;Thanks for your assistance issue solved. You rock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 10:07:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-transaction-in-module-pool/m-p/6917696#M1483812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T10:07:30Z</dc:date>
    </item>
  </channel>
</rss>

