<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv/m-p/2570199#M586776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CTCF_SET_EDIT_MASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this FM may help you......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or develop your logic using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE /(30) time USING EDIT MASK &lt;/P&gt;&lt;P&gt;                       'RRThe duration is __:__:__'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3A) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same with justification.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: /(60) 'Left'   LEFT-JUSTIFIED, &lt;/P&gt;&lt;P&gt;       /(60) 'Center' CENTERED, &lt;/P&gt;&lt;P&gt;       /(60) 'Right'  RIGHT-JUSTIFIED. &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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2007 14:07:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-07T14:07:44Z</dc:date>
    <item>
      <title>problem in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv/m-p/2570197#M586774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;hope all are doing good..&lt;/P&gt;&lt;P&gt;im working on alvs using function modules reuse_alv*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.How can we handle date values.for example 13072007 had to be displayed in 13.07.2007 in ALV using function modules.&lt;/P&gt;&lt;P&gt;2.how to handle top-of-page in alv using function modules?&lt;/P&gt;&lt;P&gt;3. how to handle left and right justification in alvs using function modules?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;urgent plss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;jack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 14:02:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv/m-p/2570197#M586774</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T14:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv/m-p/2570198#M586775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  i_fieldcat_alv  type slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;  i_events        type slis_t_event,&lt;/P&gt;&lt;P&gt;  i_event_exit    type slis_t_event_exit,&lt;/P&gt;&lt;P&gt;  i_list_comments type slis_t_listheader,&lt;/P&gt;&lt;P&gt;  i_excluding     type slis_t_extab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global Variables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------------------------" /&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  w_variant          like disvariant,&lt;/P&gt;&lt;P&gt;  wx_variant         like disvariant,&lt;/P&gt;&lt;P&gt;  w_variant_save(1)  type c,&lt;/P&gt;&lt;P&gt;  w_exit(1)          type c,&lt;/P&gt;&lt;P&gt;  w_repid            like sy-repid,&lt;/P&gt;&lt;P&gt;  w_user_specific(1) type c,&lt;/P&gt;&lt;P&gt;  w_callback_ucomm   type slis_formname,&lt;/P&gt;&lt;P&gt;  w_print            type slis_print_alv,&lt;/P&gt;&lt;P&gt;  w_layout           type slis_layout_alv,&lt;/P&gt;&lt;P&gt;  w_html_top_of_page type  slis_formname,&lt;/P&gt;&lt;P&gt;  w_fieldcat_alv     like line of i_fieldcat_alv,&lt;/P&gt;&lt;P&gt;  w_excluding        like line of i_excluding,&lt;/P&gt;&lt;P&gt;  w_events           like line of i_events,&lt;/P&gt;&lt;P&gt;  w_event_exit       like line of i_event_exit,&lt;/P&gt;&lt;P&gt;  w_list_comments    like line of i_list_comments.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; perform event_build.&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;      Form  event_build&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;form event_build.&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  call function 'REUSE_ALV_EVENTS_GET'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            i_list_type = 0&lt;/P&gt;&lt;P&gt;       importing&lt;/P&gt;&lt;P&gt;            et_events   = i_events.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  read table i_events&lt;/P&gt;&lt;P&gt;       with key name = slis_ev_top_of_page&lt;/P&gt;&lt;P&gt;       into w_events.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    move 'ALV_TOP_OF_PAGE' to w_events-form.&lt;/P&gt;&lt;P&gt;    modify i_events from w_events index sy-tabix.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  read table i_events&lt;/P&gt;&lt;P&gt;       with key name = slis_ev_end_of_list&lt;/P&gt;&lt;P&gt;       into w_events.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    move 'ALV_END_OF_LIST' to w_events-form.&lt;/P&gt;&lt;P&gt;    modify i_events from w_events index sy-tabix.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  read table i_events&lt;/P&gt;&lt;P&gt;       with key name = slis_ev_end_of_page&lt;/P&gt;&lt;P&gt;       into w_events.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    move 'ALV_END_OF_PAGE' to w_events-form.&lt;/P&gt;&lt;P&gt;    modify i_events from w_events index sy-tabix.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.&lt;/P&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;      FORM alv_end_of_list                                          *&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 alv_end_of_list.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  clear: i_list_comments[].&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  w_list_comments-typ = 'A'. "H = Header, S = Selection, A = Action&lt;/P&gt;&lt;P&gt;  w_list_comments-key = ''.&lt;/P&gt;&lt;P&gt;  w_list_comments-info = 'End of list'.&lt;/P&gt;&lt;P&gt;  append w_list_comments to i_list_comments.&lt;/P&gt;&lt;P&gt; &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 = i_list_comments&lt;/P&gt;&lt;P&gt;            i_logo             = 'ZMYOBJECTKEY'&lt;/P&gt;&lt;P&gt;            i_end_of_list_grid = 'X'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.&lt;/P&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;      FORM alv_end_of_page                                          *&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 alv_end_of_page.&lt;/P&gt;&lt;P&gt; &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;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 14:04:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv/m-p/2570198#M586775</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T14:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv/m-p/2570199#M586776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CTCF_SET_EDIT_MASK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this FM may help you......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or develop your logic using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE /(30) time USING EDIT MASK &lt;/P&gt;&lt;P&gt;                       'RRThe duration is __:__:__'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3A) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same with justification.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: /(60) 'Left'   LEFT-JUSTIFIED, &lt;/P&gt;&lt;P&gt;       /(60) 'Center' CENTERED, &lt;/P&gt;&lt;P&gt;       /(60) 'Right'  RIGHT-JUSTIFIED. &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;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 14:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv/m-p/2570199#M586776</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T14:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv/m-p/2570200#M586777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if you goto SE38 and give BCALV* then press F4 then you will all the SAP standard ALV demo programs, you will all the answers in those programs, you can look at the programs based on the Description of the program&lt;/P&gt;&lt;P&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 14:08:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv/m-p/2570200#M586777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T14:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: problem in alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv/m-p/2570201#M586778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jack,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check these,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Maintain the field as date or 8 character, for which you would like to show the date format. Before passing the internal table to the ALV FunctionModule, you can change the format of the value to date using &lt;/P&gt;&lt;P&gt;CONCATENATE &amp;lt;FIELD&amp;gt;&lt;EM&gt;0(2) '.' &amp;lt;FIELD&amp;gt;&lt;/EM&gt;2(2) '.' &amp;lt;FIELD&amp;gt;+4(4) INTO &amp;lt;FIELD&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Regarding the Usage of TOP OF PAGE event, refer to the code below,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DATA: gc_formname_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gt_list_top_of_page TYPE slis_t_listheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM display_output1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            i_callback_program       = wa_repname&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            i_callback_pf_status_set = 'STATUS_SET'(003)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            i_callback_user_command  = 'USER_COMMAND'(004)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            i_callback_top_of_page   = 'TOP_OF_PAGE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            is_layout                = i_layout1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            it_fieldcat              = i_fieldcat1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            t_outtab                 = i_first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " display_output&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;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM top_of_page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: theader TYPE slis_t_listheader,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        waheader TYPE slis_listheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  waheader-typ  = c_h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'Selection Criteria '(t01) ' '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               INTO  waheader-info SEPARATED BY space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND waheader TO theader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR waheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  waheader-typ  = c_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'Sales Organization'(s02)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               s_vkorg-low 'TO'(s03) s_vkorg-high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               INTO  waheader-info SEPARATED BY space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND waheader TO theader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR waheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  waheader-typ  = c_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'Distribution Channel'(s04)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               s_vtweg-low 'TO'(s03) s_vtweg-high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               INTO  waheader-info SEPARATED BY space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND waheader TO theader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR waheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  waheader-typ  = c_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'Sold-To-Party :'(s05)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               s_kunnr-low  'TO'(s03) s_kunnr-high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               INTO  waheader-info SEPARATED BY space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND waheader TO theader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR waheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  waheader-typ  = c_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'Plant :'(s06)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               s_werks-low 'TO'(s03) s_werks-high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               INTO  waheader-info SEPARATED BY space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND waheader TO theader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR waheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  waheader-typ  = c_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'Billing Date :'(s07)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               s_fkdat-low 'TO'(s03) s_fkdat-high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               INTO  waheader-info SEPARATED BY space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND waheader TO theader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR waheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  waheader-typ  = c_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'Billing Type :'(s08)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               s_fkart-low  'TO'(s03) s_fkart-high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               INTO  waheader-info SEPARATED BY space ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND waheader TO theader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR waheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  waheader-typ  = c_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'Billing Number :'(s09)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               s_vbeln-low 'TO'(s03) s_vbeln-high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               INTO  waheader-info SEPARATED BY space ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND waheader TO theader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR waheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  waheader-typ  = c_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'Sales Order Number :'(s10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               s_slord-low  'TO'(s03) s_slord-high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;               INTO  waheader-info SEPARATED BY space ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND waheader TO theader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR waheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  waheader-typ  = c_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'Reference :'(s11)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  s_ihrez-low 'TO'(s03) s_ihrez-high&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                 INTO  waheader-info SEPARATED BY space .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND waheader TO theader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR waheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT rb_loc IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR v_filenam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    v_filenam = p_avpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM retrieve_filename CHANGING v_filenam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    waheader-typ  = c_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE 'AVP Filename :'(s12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   v_filenam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   INTO  waheader-info SEPARATED BY space .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND waheader TO theader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR waheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR v_filenam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    v_filenam = p_sapf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM retrieve_filename CHANGING v_filenam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    waheader-typ  = c_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE 'SAP Filename :'(s13)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                    v_filenam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   INTO  waheader-info SEPARATED BY space .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND waheader TO theader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR waheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSEIF NOT rb_net IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    waheader-typ  = c_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE 'Logical Path :'(s14)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   p_dsser&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   INTO  waheader-info SEPARATED BY space .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND waheader TO theader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR waheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR v_filenam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    v_filenam = p_avpfil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM retrieve_filename CHANGING v_filenam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    waheader-typ  = c_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE 'AVP Filename :'(s12)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   v_filenam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   INTO  waheader-info SEPARATED BY space .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND waheader TO theader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR waheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR v_filenam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    v_filenam = p_sapfil.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM retrieve_filename CHANGING v_filenam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    waheader-typ  = c_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE 'SAP Filename :'(s13)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   v_filenam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                   INTO  waheader-info SEPARATED BY space .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    APPEND waheader TO theader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CLEAR: waheader, v_filenam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&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;  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            it_list_commentary = theader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " TOP_OF_PAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Right Justification and Left Justification in ALV doesn't require Function Modules, You can use JUST property within the Field Catalog.&lt;/P&gt;&lt;P&gt;eg.   W_FIELDCATALOG-JUST        =  'R'.  "for right justification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if this helps,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 14:10:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-alv/m-p/2570201#M586778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T14:10:15Z</dc:date>
    </item>
  </channel>
</rss>

