<?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: Problem in alv user command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-user-command/m-p/8587421#M1661295</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In place of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if rs_selfield-sel_tab_field = '1-SAL_NO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF rs_selfield-fieldname = '1-SAL_NO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For both the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if rs_selfield-fieldname = '1-SAL_NO'.&lt;/P&gt;&lt;P&gt;        set parameter id 'AUN' field wa_final-sal_no.&lt;/P&gt;&lt;P&gt;        call transaction 'VA03' and skip first screen.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt; if rs_selfield-fieldname = '1-BIL_NO'.&lt;/P&gt;&lt;P&gt;          set parameter id 'VF' field wa_final-bil_no.&lt;/P&gt;&lt;P&gt;          call transaction 'VF03' and skip first screen.&lt;/P&gt;&lt;P&gt;endif.&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;Priyanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2012 11:24:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-16T11:24:33Z</dc:date>
    <item>
      <title>Problem in alv user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-user-command/m-p/8587419#M1661293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing an interactive alv report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the output i am displaying sal order no, bill no etc..&lt;/P&gt;&lt;P&gt;when i am click sal no it takes me to VA03 and when click on bil no it takes me to VF03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what happend is  when i am clicking on any one of the above it takes me to second tcode only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my code is..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
form double_click using r_ucomm     like sy-ucomm
                        rs_selfield type slis_selfield.
  clear : wa_final.
  case r_ucomm.
    when '&amp;amp;IC1'.
    read table it_final into wa_final index rs_selfield-tabindex.
     if rs_selfield-sel_tab_field = '1-SAL_NO'.
        set parameter id 'AUN' field wa_final-sal_no.
        call transaction 'VA03' and skip first screen.
     else. rs_selfield-sel_tab_field = '1-BIL_NO'.
          set parameter id 'VF' field wa_final-bil_no.
          call transaction 'VF03' and skip first screen.
        endif.
    endcase.

  endform. " double_click.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 10:54:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-user-command/m-p/8587419#M1661293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-16T10:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in alv user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-user-command/m-p/8587420#M1661294</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;STRONG&gt;change rs_selfield-sel_tab_field to rs_selfield-fieldname.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;STRONG&gt;read table it_final into wa_final index rs_selfield-tabindex.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;if rs_selfield-fieldname = '1-SAL_NO'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;set parameter id 'AUN' field wa_final-sal_no.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;call transaction 'VA03' and skip first screen.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;elseif rs_selfield-fieldname = '1-BIL_NO'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;          &lt;STRONG&gt;set parameter id 'VF' field wa_final-bil_no.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;          &lt;STRONG&gt;call transaction 'VF03' and skip first screen.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;endif.&lt;/STRONG&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;Madhukar Shetty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 11:16:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-user-command/m-p/8587420#M1661294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-16T11:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in alv user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-user-command/m-p/8587421#M1661295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In place of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if rs_selfield-sel_tab_field = '1-SAL_NO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF rs_selfield-fieldname = '1-SAL_NO'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For both the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if rs_selfield-fieldname = '1-SAL_NO'.&lt;/P&gt;&lt;P&gt;        set parameter id 'AUN' field wa_final-sal_no.&lt;/P&gt;&lt;P&gt;        call transaction 'VA03' and skip first screen.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt; if rs_selfield-fieldname = '1-BIL_NO'.&lt;/P&gt;&lt;P&gt;          set parameter id 'VF' field wa_final-bil_no.&lt;/P&gt;&lt;P&gt;          call transaction 'VF03' and skip first screen.&lt;/P&gt;&lt;P&gt;endif.&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;Priyanka&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 11:24:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-user-command/m-p/8587421#M1661295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-16T11:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in alv user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-user-command/m-p/8587422#M1661296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much madhu &amp;amp; priyanka.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the correct code is...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  case r_ucomm.
    when '&amp;amp;IC1'.
        clear : wa_final.
    read table it_final into wa_final index rs_selfield-tabindex.

     if rs_selfield-FIELDNAME = 'SAL_NO'.  "here we change from 1_sal_no to sal_no
        set parameter id 'AUN' field wa_final-sal_no.
        call transaction 'VA03' and skip first screen.

     else. rs_selfield-FIELDNAME = 'BIL_NO'.  "here we change from 1_bil_no to bil_no
          set parameter id 'VF' field wa_final-bil_no.
          call transaction 'VF03' and skip first screen.
     endif.
    endcase.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnak you so much for giving the idea of FIELDNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: anurag.radha on Feb 16, 2012 12:36 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: anurag.radha on Feb 23, 2012 1:06 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: anurag.radha on Feb 23, 2012 1:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 11:35:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-user-command/m-p/8587422#M1661296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-16T11:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in alv user command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-user-command/m-p/8587423#M1661297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 12:07:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv-user-command/m-p/8587423#M1661297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-23T12:07:27Z</dc:date>
    </item>
  </channel>
</rss>

