<?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: Pleaase help in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/pleaase-help/m-p/3891181#M934441</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;1) the report prog. has used alv FM to display the o/p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) initially the default variant is passed to the report through the alv_dislpay_variant FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) then by using field catalog ur report is passing headings to the o/p. ( i.e ur o/p table should have field heads rite for that u r using field catalog and then passing this field catalog to ur FM alv_list _display)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) now u need a top of page in ur o/p display, so u wil import events into ur report prog. with the help of FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) that is why u have used user_command in ur FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6) now events of alv can be accessed bcoz u have passed user_command to bring the alv events to ur report prog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7) after using the top of page event, now ur output display should dispaly the top of page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; for that u r using another FM . alv_ commentary_write..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these are the interpretation of ur code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;feel free to ask doubts&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;regards&lt;/P&gt;&lt;P&gt;mano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 May 2008 07:59:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-28T07:59:21Z</dc:date>
    <item>
      <title>Pleaase help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pleaase-help/m-p/3891178#M934438</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;Below is a report.&lt;/P&gt;&lt;P&gt;I  am not clear withits o/p.&lt;/P&gt;&lt;P&gt;according to mu undertndg it shows details of the sflight table with default variant in the screen (initial screen)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i went through the code i dint practice it as i dnt have sap at home.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jaya&lt;/P&gt;&lt;P&gt;tables:sflight.******&lt;STRONG&gt;table decalaration&lt;/STRONG&gt;********&lt;/P&gt;&lt;P&gt;type-pools:slis.****&lt;STRONG&gt;alv function&lt;/STRONG&gt;***************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********&lt;STRONG&gt;internal table and work area declaration&lt;/STRONG&gt;********&lt;/P&gt;&lt;P&gt;data:wa_sflight type sflight,&lt;/P&gt;&lt;P&gt;     it_sflight type table of  sfligh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********&lt;STRONG&gt;field catalog  and layout decalartion&lt;/STRONG&gt;***********&lt;/P&gt;&lt;P&gt;data:fieldcatalog type slis_t_fieldcat_alv with heade line,&lt;/P&gt;&lt;P&gt;     gd_layout typ slis_layout-av,&lt;/P&gt;&lt;P&gt;     gd_repid like sy-repid, "Report name&lt;/P&gt;&lt;P&gt;     g_save type c value 'x',&lt;/P&gt;&lt;P&gt;     g_variant type disvariant,"for function module &lt;/P&gt;&lt;P&gt;     gx_variant type disvaraiant,"for function module&lt;/P&gt;&lt;P&gt;     g_exit type c,&lt;/P&gt;&lt;P&gt;     ispfli type table of spfli.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-002.&lt;/P&gt;&lt;P&gt;parameters:variant like disvariant-variant.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;gx_variant-report =sy-repid.&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_VARIANT_DEFAULT_GET'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_SAVE = G_SAVE.&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;CS_VARIANT =GX_VARIANT&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;NOT_FOUND = 2.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;VARIANT = GX_VARIANT-VARIANT.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;PERFORM DATA_RETRIEVAL.&lt;/P&gt;&lt;P&gt;FORM DATA_RETIEVAL.&lt;/P&gt;&lt;P&gt;SELECT * FROM SFLIGHT INTO TABLE IT_SFLIGHT.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM BUILD_FIELDCATALOG.&lt;/P&gt;&lt;P&gt;FORM FIELDCATALOG.&lt;/P&gt;&lt;P&gt;FIELDCATALOG-FILEDNAME = 'CARRID'.&lt;/P&gt;&lt;P&gt;FIELDCATALOG-SELTEXT_M = 'Airline Code'.&lt;/P&gt;&lt;P&gt;FIELDCATALOG-COL_POS = 0.&lt;/P&gt;&lt;P&gt;APPEND FIELDCATALOG TO FIELDCATALOG.&lt;/P&gt;&lt;P&gt;CLEAR FIELDCATLOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELDCATALOG-FILEDNAME = 'CONNID'.&lt;/P&gt;&lt;P&gt;FIELDCATALOG-SELTEXT_M = 'FLIGHT CONNECTION NUMBER'.&lt;/P&gt;&lt;P&gt;FIELDCATALOG-COL_POS = 1.&lt;/P&gt;&lt;P&gt;APPEND FIELDCATALOG TO FIELDCATALOG.&lt;/P&gt;&lt;P&gt;CLEAR FIELDCATLOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELDCATALOG-FILEDNAME = 'FLDATE'.&lt;/P&gt;&lt;P&gt;FIELDCATALOG-SELTEXT_M = 'Flight Date'.&lt;/P&gt;&lt;P&gt;FIELDCATALOG-COL_POS = 2.&lt;/P&gt;&lt;P&gt;APPEND FIELDCATALOG TO FIELDCATALOG.&lt;/P&gt;&lt;P&gt;CLEAR FIELDCATLOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELDCATALOG-FILEDNAME = 'PRICE'.&lt;/P&gt;&lt;P&gt;FIELDCATALOG-SELTEXT_M = 'AIRFARE'.&lt;/P&gt;&lt;P&gt;FIELDCATALOG-COL_POS = 3.&lt;/P&gt;&lt;P&gt;FIELDCATLOG_OUTPUTLEN = 20.&lt;/P&gt;&lt;P&gt;APPEND FIELDCATALOG TO FIELDCATALOG.&lt;/P&gt;&lt;P&gt;CLEAR FIELDCATLOG.   &lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM DISPLAY_ALV_REPORT.&lt;/P&gt;&lt;P&gt;GD_REPID =SY-REPID.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_CALLBACK_PROGRAM = GD_REPID.&lt;/P&gt;&lt;P&gt;I_CALLBACK_TOP_OF_PAGE = 'TOP-OF-PAGE'&lt;/P&gt;&lt;P&gt;I_CALLBACK_USER_COMMAND = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;IT_FIELDCAT = FIELDCATALOG[]&lt;/P&gt;&lt;P&gt;I_SAVE = 'X'&lt;/P&gt;&lt;P&gt;IS_VARIANT = G_VARIANT&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;T_OUTTAB = IT_SFLIGHT&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;PROGRAM_ERROR = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;DATA:T_HEADER TYPE SLIS_T_LISTHEADER,&lt;/P&gt;&lt;P&gt;WA_HEADER TYPE SLIS_LISTHEADER.&lt;/P&gt;&lt;P&gt;T_LINE LIKE WA_HEADER-INFO.&lt;/P&gt;&lt;P&gt;LD_LINES TYPE I.&lt;/P&gt;&lt;P&gt;LD_LINESC(10) TYPE C.&lt;/P&gt;&lt;P&gt;WA_HEADER-TYP = 'H'.&lt;/P&gt;&lt;P&gt;WA_HEADER-INFO = 'SFLIGHT TABLE REPORT'.&lt;/P&gt;&lt;P&gt;APPEND WA_HEADER TO T_HEADER.&lt;/P&gt;&lt;P&gt;CLEAR WA_HEADER.&lt;/P&gt;&lt;P&gt;WA_HEADER-TYP = 'S'.&lt;/P&gt;&lt;P&gt;WA_HEADER-KEY = 'DATE:'.&lt;/P&gt;&lt;P&gt;CONCATENATE SY-DATUM+6(2)'.'&lt;/P&gt;&lt;P&gt;SY-DATUM+4(2)'.'&lt;/P&gt;&lt;P&gt;SY-DATUM(4) INTO WA_HEADER-INFO. "todays date&lt;/P&gt;&lt;P&gt;APPEND WA_HEADER TO T_HEADER.&lt;/P&gt;&lt;P&gt;CLEAR: WA_HEADER.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;IT_LIST_COMMENTARY = T_HEADER.&lt;/P&gt;&lt;P&gt;ENDFORM. "top-of-page&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: jaya ec on May 28, 2008 9:43 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 07:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pleaase-help/m-p/3891178#M934438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-28T07:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pleaase help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pleaase-help/m-p/3891179#M934439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;fieldcatalog with &lt;STRONG&gt;header&lt;/STRONG&gt; line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Reward if helpful&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 07:46:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pleaase-help/m-p/3891179#M934439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-28T07:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pleaase help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pleaase-help/m-p/3891180#M934440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It simply displays the Air line details like Flight No, Flight Date and Fare in ALV grid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Paste the User Command Code also, it is missing in the code.&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;Kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 07:53:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pleaase-help/m-p/3891180#M934440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-28T07:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pleaase help</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/pleaase-help/m-p/3891181#M934441</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;1) the report prog. has used alv FM to display the o/p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) initially the default variant is passed to the report through the alv_dislpay_variant FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) then by using field catalog ur report is passing headings to the o/p. ( i.e ur o/p table should have field heads rite for that u r using field catalog and then passing this field catalog to ur FM alv_list _display)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) now u need a top of page in ur o/p display, so u wil import events into ur report prog. with the help of FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) that is why u have used user_command in ur FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6) now events of alv can be accessed bcoz u have passed user_command to bring the alv events to ur report prog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7) after using the top of page event, now ur output display should dispaly the top of page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; for that u r using another FM . alv_ commentary_write..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these are the interpretation of ur code...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;feel free to ask doubts&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;regards&lt;/P&gt;&lt;P&gt;mano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2008 07:59:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/pleaase-help/m-p/3891181#M934441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-28T07:59:21Z</dc:date>
    </item>
  </channel>
</rss>

