<?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: Going to a tcode at line selection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863381#M671517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Narendran and Rob.&lt;/P&gt;&lt;P&gt;Points assigned to you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2007 20:42:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-01T20:42:52Z</dc:date>
    <item>
      <title>Going to a tcode at line selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863373#M671509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus.&lt;/P&gt;&lt;P&gt;I am writing a program which displays the list of sales org and the status of the material (obsoleted or active) by giving the material name in the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the program displays a list of 3 columns - material, sales org, material status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Now if I select one of the row, then a particular tcode  (CO09) screen should appear with the data taken from the line selection and some other default data required for the tcode.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me out to write the code for the bold part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 19:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863373#M671509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T19:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Going to a tcode at line selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863374#M671510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report test.

data: ivbak type table of vbak with header line.
 
data : cursor_field(30),
       field_value(30) .
 
select-options: s_vbeln for ivbak-vbeln.
 
start-of-selection.
 
  select * into corresponding fields of table ivbak
      from vbak
          where vbeln in s_vbeln.
 
  loop at ivbak.
    format hotspot on.
    write:/ ivbak-vbeln.
    hide ivbak-vbeln.
    format hotspot off.
  endloop.
 
at line-selection.
 
  set parameter id 'AUN' field ivbak-vbeln.
  call transaction 'VA03' and skip first screen.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 20:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863374#M671510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T20:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Going to a tcode at line selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863375#M671511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sri...&lt;/P&gt;&lt;P&gt;Assigned points.&lt;/P&gt;&lt;P&gt;I have one more question. In the first I get an output of material, sales org and material status.&lt;/P&gt;&lt;P&gt;Is there a way that I proceed to line selection and go to tcode only if the material status is a specific value.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 20:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863375#M671511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T20:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Going to a tcode at line selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863376#M671512</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;Use Hide statement only in specific conditions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF it_mara-mtart = '1234'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Hide only in specific conditions..&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     HIDE it_mara-matnr.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP. &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;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 20:30:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863376#M671512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T20:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Going to a tcode at line selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863377#M671513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report test.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data: ivbak type table of vbak with header line.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data : cursor_field(30),&lt;/P&gt;&lt;P&gt;       field_value(30) .&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select-options: s_vbeln for ivbak-vbeln.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  select * into corresponding fields of table ivbak&lt;/P&gt;&lt;P&gt;      from vbak&lt;/P&gt;&lt;P&gt;          where vbeln in s_vbeln.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  loop at ivbak.&lt;/P&gt;&lt;P&gt;    format hotspot on.&lt;/P&gt;&lt;P&gt;    write:/ ivbak-vbeln.&lt;/P&gt;&lt;P&gt;    hide ivbak-vbeln.&lt;/P&gt;&lt;P&gt;    format hotspot off.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;at line-selection.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="10" type="ul"&gt;&lt;P&gt;Cond to check if material status is a particular value&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;    GET CURSOR FIELD field1.   "Use GET CURSOR&lt;/P&gt;&lt;P&gt;    CHECK field1(4) EQ 'JTAB'.   "CHECK HERE&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  set parameter id 'AUN' field ivbak-vbeln.&lt;/P&gt;&lt;P&gt;  call transaction 'VA03' and skip first screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 20:32:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863377#M671513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T20:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Going to a tcode at line selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863378#M671514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll also need the plant for CO09.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 20:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863378#M671514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T20:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Going to a tcode at line selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863379#M671515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Start with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ztest LINE-SIZE 80 MESSAGE-ID 00.

TABLES marc.

START-OF-SELECTION.
  SELECT * FROM marc UP TO 10 ROWS.

    WRITE: /001 marc-matnr, marc-werks.
    HIDE :      marc-matnr, marc-werks.

  ENDSELECT.

AT LINE-SELECTION.
  SET PARAMETER ID 'MAR' FIELD marc-matnr.
  SET PARAMETER ID 'WRK' FIELD marc-werks.

  CALL TRANSACTION 'CO09' AND SKIP FIRST SCREEN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 20:40:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863379#M671515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T20:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Going to a tcode at line selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863380#M671516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sri.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 20:40:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863380#M671516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T20:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Going to a tcode at line selection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863381#M671517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Narendran and Rob.&lt;/P&gt;&lt;P&gt;Points assigned to you.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Balu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 20:42:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/going-to-a-tcode-at-line-selection/m-p/2863381#M671517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T20:42:52Z</dc:date>
    </item>
  </channel>
</rss>

