<?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 Calling Program RKAEP000 with submit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-rkaep000-with-submit/m-p/8599528#M1662295</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to call the program of transaction 'KSB1'. i know the pgm name - RKAEP000. &lt;/P&gt;&lt;P&gt;when i call using the submit statement, I'm getting the error - " - transaction code not defined."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know how to pass the condition of transaction code in the SUBMIT statement.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ELSEIF repname = 'KSB1'.
    SUBMIT (repname) TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                   SPOOL PARAMETERS lw_pripar
*                 VIA SELECTION-SCREEN
*                   t_code eq 'KSB1'
                     USING SELECTION-SCREEN 100
                   WITH SELECTION-TABLE rspar
*                      eq 'KSB1'
                   AND RETURN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found one thread which has the solution but the correct statement is not available. They say to give the condition of tcode with the submit statement. I dont know how to give the condition in the submit statement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guys waiting for your reply..&lt;/P&gt;&lt;P&gt;Help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdur Rafique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Mar 2012 07:44:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-03-07T07:44:58Z</dc:date>
    <item>
      <title>Calling Program RKAEP000 with submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-rkaep000-with-submit/m-p/8599528#M1662295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to call the program of transaction 'KSB1'. i know the pgm name - RKAEP000. &lt;/P&gt;&lt;P&gt;when i call using the submit statement, I'm getting the error - " - transaction code not defined."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know how to pass the condition of transaction code in the SUBMIT statement.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ELSEIF repname = 'KSB1'.
    SUBMIT (repname) TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                   SPOOL PARAMETERS lw_pripar
*                 VIA SELECTION-SCREEN
*                   t_code eq 'KSB1'
                     USING SELECTION-SCREEN 100
                   WITH SELECTION-TABLE rspar
*                      eq 'KSB1'
                   AND RETURN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found one thread which has the solution but the correct statement is not available. They say to give the condition of tcode with the submit statement. I dont know how to give the condition in the submit statement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guys waiting for your reply..&lt;/P&gt;&lt;P&gt;Help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdur Rafique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 07:44:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-rkaep000-with-submit/m-p/8599528#M1662295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-07T07:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Program RKAEP000 with submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-rkaep000-with-submit/m-p/8599529#M1662296</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;please try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WITH p_tcode = 'KSB1'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is defined in include RKAEPSCM.&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;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 07:50:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-rkaep000-with-submit/m-p/8599529#M1662296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-07T07:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Program RKAEP000 with submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-rkaep000-with-submit/m-p/8599530#M1662297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear klaus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried giving that code, when i debugged, it goes to the below function module.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'K_LINE_ITEM_LOGICAL_KEY_GET'
  EXPORTING
    i_tcode            = v_tcode
  IMPORTING
    e_item_group       = c_item_group
    e_rep_object       = c_rep_object
    e_update           = gd-update
  EXCEPTIONS
    unknow_transaction = 1.

IF sy-subrc = 1.
  MESSAGE e496(kb).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here in the debugging mode i saw the value for v_tcode as "SE38" and got the error as "Transaction code not defined".&lt;/P&gt;&lt;P&gt;Can you please help me on this.&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;Regards,&lt;/P&gt;&lt;P&gt;Abdur Rafique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 07:58:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-rkaep000-with-submit/m-p/8599530#M1662297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-07T07:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Program RKAEP000 with submit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-rkaep000-with-submit/m-p/8599531#M1662298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Klaus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the solution, thanks for you help.&lt;/P&gt;&lt;P&gt;Initially i declared the variable t_code as data but we need to define as parameter with no-display and pass the value with the Submit statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
p_tcode TYPE sy-tcode NO-DISPLAY.
 ELSEIF repname = 'RKAEP000'.
   SUBMIT (repname) TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                  SPOOL PARAMETERS lw_pripar
                VIA SELECTION-SCREEN
                  WITH p_tcode EQ 'KSB1'
                    USING SELECTION-SCREEN 100
                  WITH SELECTION-TABLE rspar
                  AND RETURN.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This submit statement will pick the required transaction from that particular program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdur Rafique&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 08:07:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-program-rkaep000-with-submit/m-p/8599531#M1662298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-07T08:07:52Z</dc:date>
    </item>
  </channel>
</rss>

