<?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: user command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/1599335#M269110</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;In one user command you can call 2 transactions by checking the field selected. See the following code.&lt;/P&gt;&lt;P&gt;FORM dispaly_tran USING user_command LIKE sy-ucomm sobj TYPE slis_selfield. &lt;/P&gt;&lt;P&gt;  CHECK NOT sobj-value IS INITIAL.&lt;/P&gt;&lt;P&gt;  IF sobj-fieldname = 'BELNR'&lt;/P&gt;&lt;P&gt;    SET PARAMETER ID 'BLN' FIELD sobj-value.&lt;/P&gt;&lt;P&gt;    SET PARAMETER ID 'BUK' FIELD p_bukrs.&lt;/P&gt;&lt;P&gt;    SET PARAMETER ID 'GJR' FIELD p_gjahr.&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;  ELSEIF sobj-fieldname = 'EBELN'.&lt;/P&gt;&lt;P&gt;    SET PARAMETER ID 'BES' FIELD sobj-value.&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                        "   DISPALY_ORDER_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Oct 2006 07:09:34 GMT</pubDate>
    <dc:creator>rajeshkumar_kaveti</dc:creator>
    <dc:date>2006-10-13T07:09:34Z</dc:date>
    <item>
      <title>user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/1599333#M269108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I set 2 user command in my ALV list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using reuse alv display, in that I have used 'user command'. but i need to call 2 standard transaction for 2 flds in the list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 06:58:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/1599333#M269108</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-13T06:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/1599334#M269109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  You can do that in the same user command. If the routine for user command, you can check for the the field FIELDNAME in the parameter rs_selfield passed to the routine. This field will give the field name on which the user command happened. Based on that, you can call any of the transactions that is required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 07:07:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/1599334#M269109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-13T07:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/1599335#M269110</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;In one user command you can call 2 transactions by checking the field selected. See the following code.&lt;/P&gt;&lt;P&gt;FORM dispaly_tran USING user_command LIKE sy-ucomm sobj TYPE slis_selfield. &lt;/P&gt;&lt;P&gt;  CHECK NOT sobj-value IS INITIAL.&lt;/P&gt;&lt;P&gt;  IF sobj-fieldname = 'BELNR'&lt;/P&gt;&lt;P&gt;    SET PARAMETER ID 'BLN' FIELD sobj-value.&lt;/P&gt;&lt;P&gt;    SET PARAMETER ID 'BUK' FIELD p_bukrs.&lt;/P&gt;&lt;P&gt;    SET PARAMETER ID 'GJR' FIELD p_gjahr.&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;  ELSEIF sobj-fieldname = 'EBELN'.&lt;/P&gt;&lt;P&gt;    SET PARAMETER ID 'BES' FIELD sobj-value.&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                        "   DISPALY_ORDER_FORM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2006 07:09:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-command/m-p/1599335#M269110</guid>
      <dc:creator>rajeshkumar_kaveti</dc:creator>
      <dc:date>2006-10-13T07:09:34Z</dc:date>
    </item>
  </channel>
</rss>

