<?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 F4 help on ALV using oop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-alv-using-oop/m-p/3805620#M915365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created ALV using oop.&lt;/P&gt;&lt;P&gt;I want to have a editable F4 help on certain fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me sample code or the class and the method required for creation of the same.&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;Regards,&lt;/P&gt;&lt;P&gt;Neelambari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 May 2008 12:43:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-23T12:43:47Z</dc:date>
    <item>
      <title>F4 help on ALV using oop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-alv-using-oop/m-p/3805620#M915365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created ALV using oop.&lt;/P&gt;&lt;P&gt;I want to have a editable F4 help on certain fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please give me sample code or the class and the method required for creation of the same.&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;Regards,&lt;/P&gt;&lt;P&gt;Neelambari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 12:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-alv-using-oop/m-p/3805620#M915365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T12:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on ALV using oop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-alv-using-oop/m-p/3805621#M915366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please look on on_f4 event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in se38 type BCALV&lt;STRONG&gt;EVENT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e look at the program! its very helpful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 12:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-alv-using-oop/m-p/3805621#M915366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T12:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on ALV using oop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-alv-using-oop/m-p/3805622#M915367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, It is better and simple if you create structure and domain and filed. and use this fileds in alv catlog. then you will get automatically from dictionary. while creating field use possible value, these value you will get as f4 help. in this way we can aviod coding.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 13:17:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-alv-using-oop/m-p/3805622#M915367</guid>
      <dc:creator>sudhakar196</dc:creator>
      <dc:date>2008-05-23T13:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on ALV using oop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-alv-using-oop/m-p/3805623#M915368</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 refer to this program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************************************&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Report  ZALV_EDITF4DISPLAY                                    *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                               *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Published at SAPTechnical.COM                                 *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                               *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------" /&gt;REPORT zalv_editf4display.*Type pools for alv&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS : slis.*structure for t582a tbale&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF ty_table,&lt;/P&gt;&lt;P&gt;        infty TYPE infty,&lt;/P&gt;&lt;P&gt;        pnnnn TYPE pnnnn_d,&lt;/P&gt;&lt;P&gt;        zrmkz TYPE dzrmkz,&lt;/P&gt;&lt;P&gt;        zeitb TYPE dzeitb,&lt;/P&gt;&lt;P&gt;        dname TYPE dianm,&lt;/P&gt;&lt;P&gt;         davo TYPE davo,&lt;/P&gt;&lt;P&gt;        davoe TYPE davoe,&lt;/P&gt;&lt;P&gt;        END OF ty_table.*Structure for infotype text&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF ty_itext,&lt;/P&gt;&lt;P&gt;        infty TYPE infty,&lt;/P&gt;&lt;P&gt;        itext TYPE intxt,&lt;/P&gt;&lt;P&gt;        sprsl TYPE sprsl,&lt;/P&gt;&lt;P&gt;        END OF ty_itext.*Structure for output display&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF ty_output,&lt;/P&gt;&lt;P&gt;        infty TYPE infty,&lt;/P&gt;&lt;P&gt;        itext TYPE intxt,&lt;/P&gt;&lt;P&gt;        pnnnn TYPE pnnnn_d,&lt;/P&gt;&lt;P&gt;        zrmkz TYPE dzrmkz,&lt;/P&gt;&lt;P&gt;        zeitb TYPE dzeitb,&lt;/P&gt;&lt;P&gt;        dname TYPE dianm,&lt;/P&gt;&lt;P&gt;        davo TYPE davo,&lt;/P&gt;&lt;P&gt;        davoe TYPE davoe,&lt;/P&gt;&lt;P&gt;       END OF ty_output.*internal table and work area declarations&lt;/P&gt;&lt;P&gt;DATA : it_table TYPE STANDARD TABLE OF ty_table INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;       it_output TYPE STANDARD TABLE OF ty_output INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;       it_pbo TYPE STANDARD TABLE OF ty_output INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;       it_ittext TYPE STANDARD TABLE OF ty_itext INITIAL SIZE 0,&lt;/P&gt;&lt;P&gt;       wa_table TYPE ty_table,&lt;/P&gt;&lt;P&gt;       wa_output TYPE ty_output,&lt;/P&gt;&lt;P&gt;       wa_ittext TYPE ty_itext.*Data declarations for dropdown lists for f4&lt;/P&gt;&lt;P&gt;DATA: it_dropdown TYPE lvc_t_drop,&lt;/P&gt;&lt;P&gt;      ty_dropdown TYPE lvc_s_drop,&lt;/P&gt;&lt;P&gt;*data declaration for refreshing of alv&lt;/P&gt;&lt;P&gt;      stable TYPE lvc_s_stbl.*Global variable declaration&lt;/P&gt;&lt;P&gt;DATA: gstring TYPE c.&lt;/P&gt;&lt;P&gt;*Data declarations for ALV&lt;/P&gt;&lt;P&gt;DATA: c_ccont TYPE REF TO cl_gui_custom_container,         "Custom container object&lt;/P&gt;&lt;P&gt;      c_alvgd         TYPE REF TO cl_gui_alv_grid,         "ALV grid object&lt;/P&gt;&lt;P&gt;      it_fcat            TYPE lvc_t_fcat,                  "Field catalogue&lt;/P&gt;&lt;P&gt;      it_layout          TYPE lvc_s_layo.                  "Layout*ok code declaration&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  ok_code       TYPE ui_func.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;initialization eventINITIALIZATION.&lt;/STRONG&gt;start of selection event&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.*select the infotypes maintained&lt;/P&gt;&lt;P&gt;  SELECT infty&lt;/P&gt;&lt;P&gt;          pnnnn&lt;/P&gt;&lt;P&gt;          zrmkz&lt;/P&gt;&lt;P&gt;          zeitb&lt;/P&gt;&lt;P&gt;          dname&lt;/P&gt;&lt;P&gt;          davo&lt;/P&gt;&lt;P&gt;          davoe&lt;/P&gt;&lt;P&gt;          FROM t582a UP TO 10 ROWS&lt;/P&gt;&lt;P&gt;          INTO CORRESPONDING FIELDS OF TABLE it_table.* *Select the infotype texts&lt;/P&gt;&lt;P&gt;  IF it_table[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT itext&lt;/P&gt;&lt;P&gt;             infty&lt;/P&gt;&lt;P&gt;             sprsl&lt;/P&gt;&lt;P&gt;             FROM t582s&lt;/P&gt;&lt;P&gt;             INTO CORRESPONDING FIELDS OF TABLE it_ittext&lt;/P&gt;&lt;P&gt;             FOR ALL ENTRIES IN it_table&lt;/P&gt;&lt;P&gt;             WHERE infty = it_table-infty&lt;/P&gt;&lt;P&gt;             AND sprsl = 'E'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;*Apppending the data to the internal table of ALV output&lt;/P&gt;&lt;P&gt;  LOOP AT it_table INTO wa_table.    wa_output-infty = wa_table-infty.&lt;/P&gt;&lt;P&gt;    wa_output-pnnnn = wa_table-pnnnn.&lt;/P&gt;&lt;P&gt;    wa_output-zrmkz = wa_table-zrmkz.&lt;/P&gt;&lt;P&gt;    wa_output-zeitb = wa_table-zeitb.&lt;/P&gt;&lt;P&gt;    wa_output-dname = wa_table-dname.&lt;/P&gt;&lt;P&gt;    wa_output-davo = wa_table-davo.&lt;/P&gt;&lt;P&gt;    wa_output-davoe = wa_table-davoe.* For texts    READ TABLE it_ittext INTO wa_ittext WITH KEY infty = wa_table-infty.&lt;/P&gt;&lt;P&gt;    wa_output-itext = wa_ittext-itext.&lt;/P&gt;&lt;P&gt;    APPEND wa_output TO it_output.&lt;/P&gt;&lt;P&gt;    CLEAR wa_output.  ENDLOOP.* Calling the ALV screen with custom container  CALL SCREEN 0600.*On this statement double click  it takes you to the screen painter SE51.&lt;/P&gt;&lt;P&gt;*Enter the attributes&lt;/P&gt;&lt;P&gt;*Create a Custom container and name it CCONT and OK code as OK_CODE.&lt;/P&gt;&lt;P&gt;*Save check and Activate the screen painter.&lt;/P&gt;&lt;P&gt;*Now a normal screen with number 600 is created which holds the ALV grid.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PBO of the actual screen ,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here we can give a title and customized menus&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*create 2 buttons with function code 'SAVE' and 'EXIT'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;GIVE A SUITABLE TITLE&lt;STRONG&gt;&amp;amp;---------------------------------------------------------------------&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0600  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE status_0600 OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'DISP'.&lt;/P&gt;&lt;P&gt;  SET TITLEBAR 'ALVF4'.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_0600  OUTPUT&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;calling the PBO module ALV_GRID.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  PBO  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE pbo OUTPUT.*Creating objects of the container&lt;/P&gt;&lt;P&gt;  CREATE OBJECT c_ccont&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;          container_name = 'CCONT'.*  create object for alv grid&lt;/P&gt;&lt;P&gt;  create object c_alvgd&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;  i_parent = c_ccont.*  SET field for ALV&lt;/P&gt;&lt;P&gt;  PERFORM alv_build_fieldcat.* Set ALV attributes FOR LAYOUT&lt;/P&gt;&lt;P&gt;  PERFORM alv_report_layout.&lt;/P&gt;&lt;P&gt;  CHECK NOT c_alvgd IS INITIAL.* Call ALV GRID  CALL METHOD c_alvgd-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      is_layout                     = it_layout&lt;/P&gt;&lt;P&gt;      i_save                        = 'A'&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      it_outtab                     = it_output&lt;/P&gt;&lt;P&gt;      it_fieldcatalog               = it_fcat&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;      program_error                 = 2&lt;/P&gt;&lt;P&gt;      too_many_lines                = 3&lt;/P&gt;&lt;P&gt;      OTHERS                        = 4.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.ENDMODULE.                 " PBO  OUTPUT&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  alv_build_fieldcat&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     &amp;lt;--P_IT_FCAT  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*subroutine to build fieldcatFORM alv_build_fieldcat.  DATA lv_fldcat TYPE lvc_s_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR lv_fldcat.  lv_fldcat-row_pos   = '1'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-col_pos   = '1'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-fieldname = 'INFTY'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-tabname   = 'IT_OUTPUT'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-outputlen = 8.&lt;/P&gt;&lt;P&gt;  lv_fldcat-scrtext_m = 'Infotype'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-icon = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND lv_fldcat TO it_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR lv_fldcat.  lv_fldcat-row_pos   = '1'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-col_pos   = '2'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-fieldname = 'PNNNN'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-tabname   = 'IT_OUTPUT'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-outputlen = 15.&lt;/P&gt;&lt;P&gt;  lv_fldcat-scrtext_m = 'Structure'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-icon = ''.&lt;/P&gt;&lt;P&gt;  APPEND lv_fldcat TO it_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR lv_fldcat.  lv_fldcat-row_pos   = '1'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-col_pos   = '3'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-fieldname = 'ITEXT'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-tabname   = 'IT_OUTPUT'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-outputlen = 60.&lt;/P&gt;&lt;P&gt;  lv_fldcat-scrtext_m = 'Description'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-icon = ''.&lt;/P&gt;&lt;P&gt;  APPEND lv_fldcat TO it_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR lv_fldcat.&lt;/P&gt;&lt;P&gt;  lv_fldcat-row_pos   = '1'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-col_pos   = '5'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-fieldname = 'ZRMKZ'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-tabname   = 'IT_OUTPUT'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-outputlen = 1.&lt;/P&gt;&lt;P&gt;  lv_fldcat-scrtext_m = 'PERIOD'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-icon = ''.&lt;/P&gt;&lt;P&gt;  APPEND lv_fldcat TO it_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR lv_fldcat.  lv_fldcat-row_pos   = '1'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-col_pos   = '6'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-fieldname = 'ZEITB'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-tabname   = 'IT_OUTPUT'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-outputlen = 5.&lt;/P&gt;&lt;P&gt;  lv_fldcat-scrtext_m = 'Time constraint'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-edit = 'X'.&lt;/P&gt;&lt;P&gt;*To avail the existing F4 help these are to&lt;/P&gt;&lt;P&gt;*be given in the field catalogue&lt;/P&gt;&lt;P&gt;  lv_fldcat-f4availabl = 'X'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-ref_table = 'T582A'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-ref_field = 'ZEITB'.  APPEND lv_fldcat TO it_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR lv_fldcat.  lv_fldcat-row_pos   = '1'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-col_pos   = '7'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-fieldname = 'DNAME'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-tabname   = 'IT_OUTPUT'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-outputlen = 15.&lt;/P&gt;&lt;P&gt;  lv_fldcat-scrtext_m = 'Dialogmodule'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-icon = ''.&lt;/P&gt;&lt;P&gt;  APPEND lv_fldcat TO it_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR lv_fldcat.  lv_fldcat-row_pos   = '1'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-col_pos   = '8'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-fieldname = 'DAVO'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-tabname   = 'IT_OUTPUT'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-outputlen = 15.&lt;/P&gt;&lt;P&gt;  lv_fldcat-scrtext_m = 'Start'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-edit = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND lv_fldcat TO it_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR lv_fldcat.  lv_fldcat-row_pos   = '1'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-col_pos   = '9'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-fieldname = 'DAVOE'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-tabname   = 'IT_OUTPUT'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-outputlen = 15.&lt;/P&gt;&lt;P&gt;  lv_fldcat-scrtext_m = 'End'.&lt;/P&gt;&lt;P&gt;  lv_fldcat-icon = ''.&lt;/P&gt;&lt;P&gt;  APPEND lv_fldcat TO it_fcat.&lt;/P&gt;&lt;P&gt;  CLEAR lv_fldcat.&lt;/P&gt;&lt;P&gt;*To create drop down for the field 'DAVO'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;with our own f4 help&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ty_dropdown-handle = '1'.&lt;/P&gt;&lt;P&gt;  ty_dropdown-value = ' '.&lt;/P&gt;&lt;P&gt;  APPEND ty_dropdown TO it_dropdown.&lt;/P&gt;&lt;P&gt;  ty_dropdown-handle = '1'.&lt;/P&gt;&lt;P&gt;  ty_dropdown-value = '1'.&lt;/P&gt;&lt;P&gt;  APPEND ty_dropdown TO it_dropdown.&lt;/P&gt;&lt;P&gt;  ty_dropdown-handle = '1'.&lt;/P&gt;&lt;P&gt;  ty_dropdown-value = '2'.&lt;/P&gt;&lt;P&gt;  APPEND ty_dropdown TO it_dropdown.&lt;/P&gt;&lt;P&gt;  ty_dropdown-handle = '1'.&lt;/P&gt;&lt;P&gt;  ty_dropdown-value = '3'.&lt;/P&gt;&lt;P&gt;  APPEND ty_dropdown TO it_dropdown.  CALL METHOD c_alvgd-&amp;gt;set_drop_down_table&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      it_drop_down = it_dropdown.&lt;/P&gt;&lt;P&gt;  LOOP AT it_fcat INTO lv_fldcat.&lt;/P&gt;&lt;P&gt;    CASE lv_fldcat-fieldname.&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;To assign dropdown in the fieldcataogue&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;      WHEN 'DAVO'.&lt;/P&gt;&lt;P&gt;        lv_fldcat-drdn_hndl = '1'.&lt;/P&gt;&lt;P&gt;        lv_fldcat-outputlen = 15.&lt;/P&gt;&lt;P&gt;        MODIFY it_fcat FROM lv_fldcat.&lt;/P&gt;&lt;P&gt;    ENDCASE.&lt;/P&gt;&lt;P&gt;  ENDLOOP.ENDFORM.                    " alv_build_fieldcat&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  alv_report_layout&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     &amp;lt;--P_IT_LAYOUT  text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Subroutine for setting alv layout&lt;/P&gt;&lt;P&gt;FORM alv_report_layout.&lt;/P&gt;&lt;P&gt;  it_layout-cwidth_opt = 'X'.&lt;/P&gt;&lt;P&gt;  it_layout-col_opt = 'X'.&lt;/P&gt;&lt;P&gt;  it_layout-zebra = 'X'.ENDFORM.                    " alv_report_layout* PAI module of the screen created. In case we use an interactive ALV or&lt;/P&gt;&lt;P&gt;*for additional functionalities we can create OK codes&lt;/P&gt;&lt;P&gt;*and based on the user command we can do the coding.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  PAI  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE pai INPUT.*To change the existing values and refresh the grid&lt;/P&gt;&lt;P&gt;*And only values in the dropdown or in the default&lt;/P&gt;&lt;P&gt;*F4 can be given , else no action takes place for the dropdown&lt;/P&gt;&lt;P&gt;*and error is thrown for the default F4 help and font changes to red&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and on still saving, value is not changed  c_alvgd-&amp;gt;check_changed_data( ).&lt;/STRONG&gt;Based on the user input&lt;/P&gt;&lt;P&gt;*When user clicks 'SAVE;&lt;/P&gt;&lt;P&gt;  CASE ok_code.    WHEN 'SAVE'.*A pop up is called to confirm the saving of changed data&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'POPUP_TO_CONFIRM'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          titlebar       = 'SAVING DATA'&lt;/P&gt;&lt;P&gt;          text_question  = 'Continue?'&lt;/P&gt;&lt;P&gt;          icon_button_1  = 'icon_booking_ok'&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          answer         = gstring&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          text_not_found = 1&lt;/P&gt;&lt;P&gt;          OTHERS         = 2.&lt;/P&gt;&lt;P&gt;      IF sy-subrc NE 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.*When the User clicks 'YES'&lt;/P&gt;&lt;P&gt;      IF ( gstring = '1' ).&lt;/P&gt;&lt;P&gt;        MESSAGE 'Saved' TYPE 'S'.&lt;/P&gt;&lt;P&gt;*Now the changed data is stored in the it_pbo internal table&lt;/P&gt;&lt;P&gt;        it_pbo = it_output.&lt;/P&gt;&lt;P&gt;*Subroutine to display the ALV with changed data.&lt;/P&gt;&lt;P&gt;        PERFORM redisplay.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;*When user clicks NO or Cancel&lt;/P&gt;&lt;P&gt;        MESSAGE 'Not Saved'  TYPE 'S'.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;**When the user clicks the 'EXIT; he is out&lt;/P&gt;&lt;P&gt;    WHEN 'EXIT'.&lt;/P&gt;&lt;P&gt;      LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;  ENDCASE.  CLEAR: ok_code.ENDMODULE.                 " PAI  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  REDISPLAY&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM redisplay .*Cells of the alv are made non editable after entering OK to save  CALL METHOD c_alvgd-&amp;gt;set_ready_for_input&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_ready_for_input = 0.*Row and column of the alv are refreshed after changing values  stable-row = 'X'.&lt;/P&gt;&lt;P&gt;  stable-col = 'X'.*REfreshed ALV display with the changed values&lt;/P&gt;&lt;P&gt;*This ALV is non editable and contains new values&lt;/P&gt;&lt;P&gt;  CALL METHOD c_alvgd-&amp;gt;refresh_table_display&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      is_stable = stable&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      finished  = 1&lt;/P&gt;&lt;P&gt;      OTHERS    = 2.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.ENDFORM.                    " REDISPLAY &lt;/P&gt;&lt;P&gt;***************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&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;Syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 13:39:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-alv-using-oop/m-p/3805623#M915368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T13:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on ALV using oop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-alv-using-oop/m-p/3805624#M915369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this example a it is of drop down. I want F4 help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2008 14:27:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-alv-using-oop/m-p/3805624#M915369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-23T14:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: F4 help on ALV using oop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-alv-using-oop/m-p/3805625#M915370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 07:26:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/f4-help-on-alv-using-oop/m-p/3805625#M915370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-15T07:26:23Z</dc:date>
    </item>
  </channel>
</rss>

