<?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: F4 Help Multiple selection - Output issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-multiple-selection-output-issue/m-p/7799095#M1586909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;* Following Type and Table will have data to be shown in popup to select multiple rows.
TYPES: BEGIN OF ty_infty,
         infty     TYPE infotyp,
         itext     TYPE intxt,
         selec     TYPE oax,
       END OF ty_infty.

DATA: wa_infty    TYPE ty_infty,
      it_infty    TYPE STANDARD TABLE OF ty_infty.


  DATA : lv_selfield TYPE slis_selfield,
         l_exit TYPE char1.

*ALV Screen Field Catalogue
DATA:  it_fieldcat TYPE slis_t_fieldcat_alv,
       wa_fieldcat TYPE slis_fieldcat_alv.


* First create field cateloge, where first field will be check box.
  clear wa_fieldcat.
  wa_fieldcat-col_pos   = 1.
  wa_fieldcat-outputlen = 3.
  wa_fieldcat-fieldname = 'Selection'.     
  wa_fieldcat-tabname   = 'IT_INFTY'.
  wa_fieldcat-rollname  = ' '. 
  wa_fieldcat-checkbox  = 'X'.
  append wa_fieldcat to it_fieldcat.   clear wa_fieldcat.

  clear wa_fieldcat.
  wa_fieldcat-col_pos   = 1.
  wa_fieldcat-outputlen = 3.
  wa_fieldcat-fieldname = 'INFTY'.
  wa_fieldcat-tabname   = 'IT_INFTY'.
  wa_fieldcat-rollname  = 'INFTY '.
  wa_fieldcat-checkbox  = ' '.
  append wa_fieldcat to it_fieldcat.   clear wa_fieldcat.

  clear wa_fieldcat.
  wa_fieldcat-col_pos   = 1.
  wa_fieldcat-outputlen = 3.
  wa_fieldcat-fieldname = 'ITEXT'.
  wa_fieldcat-tabname   = 'IT_INFTY'.
  wa_fieldcat-rollname  = 'INTXT '.
  wa_fieldcat-checkbox  = ' '.
  append wa_fieldcat to it_fieldcat.   clear wa_fieldcat.


  CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
    EXPORTING
      i_title                 = 'Infotype Selection'(d01)
      i_selection             = 'X'
      i_allow_no_selection    = 'X'
      i_zebra                 = 'X'
      i_checkbox_fieldname    = 'SELEC'
      i_tabname               = 'IT_INFTY'
      it_fieldcat             = it_fieldcat[]
      i_callback_program      = sy-repid
    IMPORTING
      es_selfield             = lv_selfield
      e_exit                  = l_exit
    TABLES
      t_outtab                = it_infty
    EXCEPTIONS
      program_error           = 1
      OTHERS                  = 2 .
IF sy-subrc = 0.
* Here you can loop talbe IT_INFTY which will have 'X' in SELEC field for which you will select in popup. 
Endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Mar 2011 07:39:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-03-18T07:39:31Z</dc:date>
    <item>
      <title>F4 Help Multiple selection - Output issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-multiple-selection-output-issue/m-p/7799091#M1586905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using below FM to generate F4 help with multiple value selection option. &lt;/P&gt;&lt;P&gt;Issue:&lt;/P&gt;&lt;P&gt;The output of F4 help is coming up in &lt;STRONG&gt;normal list display&lt;/STRONG&gt; rather than advanced grid display, this happens only when i make multiple_choice = 'X'.&lt;/P&gt;&lt;P&gt;If the multiple_choice = ' ', F4 output is coming up in grid format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me to get F4 help with Multiple value selection, i need to get the output of &lt;STRONG&gt;F4 in advanced grid format&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        retfield        = 'FIELD1'&lt;/P&gt;&lt;P&gt;        dynpprog        = sy-cprog&lt;/P&gt;&lt;P&gt;        dynpnr          = sy-dynnr&lt;/P&gt;&lt;P&gt;        dynprofield     = 'S_N1'&lt;/P&gt;&lt;P&gt;        value_org       = 'S'&lt;/P&gt;&lt;P&gt;        multiple_choice = 'X'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        value_tab       = it_values&lt;/P&gt;&lt;P&gt;        return_tab      = it_return&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        parameter_error = 1&lt;/P&gt;&lt;P&gt;        no_values_found = 2&lt;/P&gt;&lt;P&gt;        OTHERS          = 3.&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;Thanks,&lt;/P&gt;&lt;P&gt;Chandru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 15:51:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-multiple-selection-output-issue/m-p/7799091#M1586905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-16T15:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help Multiple selection - Output issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-multiple-selection-output-issue/m-p/7799092#M1586906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi p,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's not a bug, it's a feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No way - except do yur own programming.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 21:09:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-multiple-selection-output-issue/m-p/7799092#M1586906</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-03-16T21:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help Multiple selection - Output issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-multiple-selection-output-issue/m-p/7799093#M1586907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please guide me other options to meet this requirement?&lt;/P&gt;&lt;P&gt;Is there any alternate FM's that i need to look at?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chandru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 10:30:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-multiple-selection-output-issue/m-p/7799093#M1586907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-17T10:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help Multiple selection - Output issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-multiple-selection-output-issue/m-p/7799094#M1586908</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;Can someone help me with this question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chandru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 07:13:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-multiple-selection-output-issue/m-p/7799094#M1586908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-18T07:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: F4 Help Multiple selection - Output issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-multiple-selection-output-issue/m-p/7799095#M1586909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;* Following Type and Table will have data to be shown in popup to select multiple rows.
TYPES: BEGIN OF ty_infty,
         infty     TYPE infotyp,
         itext     TYPE intxt,
         selec     TYPE oax,
       END OF ty_infty.

DATA: wa_infty    TYPE ty_infty,
      it_infty    TYPE STANDARD TABLE OF ty_infty.


  DATA : lv_selfield TYPE slis_selfield,
         l_exit TYPE char1.

*ALV Screen Field Catalogue
DATA:  it_fieldcat TYPE slis_t_fieldcat_alv,
       wa_fieldcat TYPE slis_fieldcat_alv.


* First create field cateloge, where first field will be check box.
  clear wa_fieldcat.
  wa_fieldcat-col_pos   = 1.
  wa_fieldcat-outputlen = 3.
  wa_fieldcat-fieldname = 'Selection'.     
  wa_fieldcat-tabname   = 'IT_INFTY'.
  wa_fieldcat-rollname  = ' '. 
  wa_fieldcat-checkbox  = 'X'.
  append wa_fieldcat to it_fieldcat.   clear wa_fieldcat.

  clear wa_fieldcat.
  wa_fieldcat-col_pos   = 1.
  wa_fieldcat-outputlen = 3.
  wa_fieldcat-fieldname = 'INFTY'.
  wa_fieldcat-tabname   = 'IT_INFTY'.
  wa_fieldcat-rollname  = 'INFTY '.
  wa_fieldcat-checkbox  = ' '.
  append wa_fieldcat to it_fieldcat.   clear wa_fieldcat.

  clear wa_fieldcat.
  wa_fieldcat-col_pos   = 1.
  wa_fieldcat-outputlen = 3.
  wa_fieldcat-fieldname = 'ITEXT'.
  wa_fieldcat-tabname   = 'IT_INFTY'.
  wa_fieldcat-rollname  = 'INTXT '.
  wa_fieldcat-checkbox  = ' '.
  append wa_fieldcat to it_fieldcat.   clear wa_fieldcat.


  CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
    EXPORTING
      i_title                 = 'Infotype Selection'(d01)
      i_selection             = 'X'
      i_allow_no_selection    = 'X'
      i_zebra                 = 'X'
      i_checkbox_fieldname    = 'SELEC'
      i_tabname               = 'IT_INFTY'
      it_fieldcat             = it_fieldcat[]
      i_callback_program      = sy-repid
    IMPORTING
      es_selfield             = lv_selfield
      e_exit                  = l_exit
    TABLES
      t_outtab                = it_infty
    EXCEPTIONS
      program_error           = 1
      OTHERS                  = 2 .
IF sy-subrc = 0.
* Here you can loop talbe IT_INFTY which will have 'X' in SELEC field for which you will select in popup. 
Endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2011 07:39:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-multiple-selection-output-issue/m-p/7799095#M1586909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-18T07:39:31Z</dc:date>
    </item>
  </channel>
</rss>

