<?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: How To call a Tcode From a Program and returning back ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342775#M1230554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Try it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Tables:
  mara.

Data:
  t_mara like standard table of mara.

Select * from mara into table t_mara.

Loop at t_mara into mara.
  Write:/ mara-matnr.
  Hide: mara-matnr.
Endloop.

At line-selection.

  SET PARAMETER ID  'MAT' FIELD mara-matnr.
  Call transaction 'MM03' and skip first screen.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here in the list output double click on a particular matnr, it will take you to t-code mm03 for that matnr and when you click back button from mm03, it will come back to list output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pritam Ghosh on Mar 18, 2009 2:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2009 13:08:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-18T13:08:09Z</dc:date>
    <item>
      <title>How To call a Tcode From a Program and returning back ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342770#M1230549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement, i have to show all the open orders as in the the tcode va05  and return back to the my program. so how to display the tcode and getting back to my program. please help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 12:50:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342770#M1230549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T12:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: How To call a Tcode From a Program and returning back ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342771#M1230550</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;set parameter id ' '.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'VA05' and skip first screen  . " This way you get to call a tcode from a report program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 12:53:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342771#M1230550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T12:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: How To call a Tcode From a Program and returning back ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342772#M1230551</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 the code: &lt;/P&gt;&lt;P&gt;SET PARAMETER ID pid FIELD fieldname.&lt;/P&gt;&lt;P&gt;        CALL TRANSACTION 'VA05'.&lt;/P&gt;&lt;P&gt;       "SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pid can be found out by going to se11 and check the dataelement of the fieldname there in further characteristics you can find the parameter id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Qamar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Qamar Javed on Mar 18, 2009 6:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 12:55:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342772#M1230551</guid>
      <dc:creator>qamar_javed</dc:creator>
      <dc:date>2009-03-18T12:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: How To call a Tcode From a Program and returning back ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342773#M1230552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keep a custom button on application toolbar.Give a Fcode. then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write down the following code in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PF-STATUS &amp;lt;pf-status name&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND.&lt;/P&gt;&lt;P&gt; CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;   When 'Trans'. "assume it is your FCode name&lt;/P&gt;&lt;P&gt;        Call Transaction 'VA01'.&lt;/P&gt;&lt;P&gt;   ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From Va01 you can back to your list by clicking the &lt;STRONG&gt;BACK&lt;/STRONG&gt; button &lt;STRONG&gt;(Green Colored)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it solve your Problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sarbajit Majumdar on Mar 18, 2009 6:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 12:59:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342773#M1230552</guid>
      <dc:creator>sarbajitm</dc:creator>
      <dc:date>2009-03-18T12:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: How To call a Tcode From a Program and returning back ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342774#M1230553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Try using call transaction logic&lt;/P&gt;&lt;P&gt;2. You can use Recording too. I've done it once to go to a delivery transaction and return.&lt;/P&gt;&lt;P&gt;3. Goto system-&amp;gt; status, get the program name, use SUBMIT &amp;amp; RETURN logic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 13:07:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342774#M1230553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T13:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: How To call a Tcode From a Program and returning back ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342775#M1230554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Try it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Tables:
  mara.

Data:
  t_mara like standard table of mara.

Select * from mara into table t_mara.

Loop at t_mara into mara.
  Write:/ mara-matnr.
  Hide: mara-matnr.
Endloop.

At line-selection.

  SET PARAMETER ID  'MAT' FIELD mara-matnr.
  Call transaction 'MM03' and skip first screen.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here in the list output double click on a particular matnr, it will take you to t-code mm03 for that matnr and when you click back button from mm03, it will come back to list output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pritam Ghosh on Mar 18, 2009 2:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 13:08:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342775#M1230554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T13:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: How To call a Tcode From a Program and returning back ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342776#M1230555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can call like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;submit SAPMV75A and return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 13:51:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342776#M1230555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T13:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: How To call a Tcode From a Program and returning back ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342777#M1230556</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 something like:-&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SET PARAMETER ID '&amp;lt;param_id&amp;gt;' FIELD '&amp;lt;field_name&amp;gt;'.

CALL TRANSACTION 'VA05' AND SKIP FIRST SCREEN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Get the parameter id from transaction va05 by pressing F1 on field on initial screen and check the technical settings, write this parameter id in place of &amp;lt;param_id&amp;gt;&lt;/P&gt;&lt;P&gt;For the value to set, you have to pass these values form tha calling program, so use the field name containing the value for that field in place of &amp;lt;field_name&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will be moved to the second screen of transaction VA05.&lt;/P&gt;&lt;P&gt;Click back button to return back to your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2009 04:54:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342777#M1230556</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-19T04:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: How To call a Tcode From a Program and returning back ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342778#M1230557</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 like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET PARAMETER ID '&amp;lt;paramid&amp;gt;' fieldname '&amp;lt;fnam&amp;gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'VA05' and SKIP first screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jyothi CH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2009 05:25:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342778#M1230557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-19T05:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: How To call a Tcode From a Program and returning back ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342779#M1230558</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;P&gt;Basic syntax to call the transaction is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SET PARAMETER ID &amp;lt;id name&amp;gt; FIELD &amp;lt;filedname&amp;gt;.
 CALL TRANSACTION &amp;lt;TCOde&amp;gt; AND SKIP FIRST SCREEN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your are using ALV then snippet is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM user_command  USING okcode    LIKE sy-ucomm
                       lselfield TYPE slis_selfield.

  CASE okcode.
    WHEN '&amp;amp;IC1'. " SAP standard code for double-clicking
      CASE lselfield-sel_tab_field."check if double click is only on
        WHEN 'ITAB-AUFNR'."aufnr not on any other field
          SET PARAMETER ID 'ANR' FIELD lselfield-value.
          CALL TRANSACTION 'IW32' AND SKIP FIRST SCREEN.
      ENDCASE.
  ENDCASE.

Endform.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2009 05:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342779#M1230558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-19T05:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: How To call a Tcode From a Program and returning back ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342780#M1230559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have got your answer mark it as answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Qamar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2009 05:42:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-call-a-tcode-from-a-program-and-returning-back/m-p/5342780#M1230559</guid>
      <dc:creator>qamar_javed</dc:creator>
      <dc:date>2009-03-19T05:42:56Z</dc:date>
    </item>
  </channel>
</rss>

