<?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: ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2855758#M669387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The class is basically a list writer. Have a look at my sample report &amp;lt;b&amp;gt;ZUS_SDN_CL_DOPR_WRITER&amp;lt;/b&amp;gt;. Just play around with the class methods to understand their functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZUS_SDN_CL_DOPR_WRITER
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  zus_sdn_cl_dopr_writer
  LINE-SIZE 132
  NO STANDARD PAGE HEADING.


DATA:
  go_writer    TYPE REF TO cl_dopr_writer,
  gd_title_1 TYPE string,
  gd_title_part1 TYPE string,
  gd_title_part2 TYPE string,
  gd_hlp_txt TYPE c LENGTH 130,
  gd_hlp_txt1 TYPE c LENGTH 15,
  gd_hlp_string TYPE string,
  gd_raster  TYPE p,
  gd_hlp_lines TYPE i,
  gd_hlp_i TYPE i.


START-OF-SELECTION.

  CREATE OBJECT go_writer.

  CONCATENATE syst-datum syst-uzeit syst-uname
    INTO gd_title_1
    SEPARATED BY '  //  '.

  CALL METHOD go_writer-&amp;gt;new_table
    EXPORTING
      id_title        = gd_title_1
      id_type         = '4'
*        ID_RULER_STRING =
      .
  go_writer-&amp;gt;title_write( ).

* Text elements:
*  700	Customer
*  701	Number
*  702	Business Area
*  703	Sorting
*  704	Field

  go_writer-&amp;gt;add_header_field( text-700 ).
  go_writer-&amp;gt;add_header_field( text-701 ).
  go_writer-&amp;gt;add_header_field( text-702 ).
  go_writer-&amp;gt;add_header_field( text-703 ).
  go_writer-&amp;gt;add_header_field( '' ).

  go_writer-&amp;gt;ruler_write( ).

  gd_title_1 = 'New title - table of type = 1'.

  CALL METHOD go_writer-&amp;gt;new_table
    EXPORTING
      id_title = gd_title_1
      id_type  = '1'.

  go_writer-&amp;gt;add_group_header_field( text-550 ).
  go_writer-&amp;gt;add_header_field( text-551 ).
  go_writer-&amp;gt;add_header_field( text-552 ).
  go_writer-&amp;gt;add_header_field( text-553 ).
  go_writer-&amp;gt;add_header_field( text-554 ).
  go_writer-&amp;gt;add_header_field( text-555 ).
  go_writer-&amp;gt;add_header_field( text-556 ).
  go_writer-&amp;gt;add_header_field( text-557 ).
  go_writer-&amp;gt;add_header_field( text-558 ).
  go_writer-&amp;gt;add_header_field( text-559 ).
  go_writer-&amp;gt;add_header_field( text-560 ).

  RESERVE 10 LINES.
  go_writer-&amp;gt;title_write( ).
  go_writer-&amp;gt;ruler_write( ).

END-OF-SELECTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2007 20:49:00 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2007-10-03T20:49:00Z</dc:date>
    <item>
      <title>ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2855757#M669386</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;&lt;/P&gt;&lt;P&gt;Any body knows about the class &amp;lt;b&amp;gt;CL_DOPR_WRITER&amp;lt;/b&amp;gt;? what is the purpose of this class hw can we use it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;useful answers rewared&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;sunil kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 11:56:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2855757#M669386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T11:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2855758#M669387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The class is basically a list writer. Have a look at my sample report &amp;lt;b&amp;gt;ZUS_SDN_CL_DOPR_WRITER&amp;lt;/b&amp;gt;. Just play around with the class methods to understand their functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZUS_SDN_CL_DOPR_WRITER
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  zus_sdn_cl_dopr_writer
  LINE-SIZE 132
  NO STANDARD PAGE HEADING.


DATA:
  go_writer    TYPE REF TO cl_dopr_writer,
  gd_title_1 TYPE string,
  gd_title_part1 TYPE string,
  gd_title_part2 TYPE string,
  gd_hlp_txt TYPE c LENGTH 130,
  gd_hlp_txt1 TYPE c LENGTH 15,
  gd_hlp_string TYPE string,
  gd_raster  TYPE p,
  gd_hlp_lines TYPE i,
  gd_hlp_i TYPE i.


START-OF-SELECTION.

  CREATE OBJECT go_writer.

  CONCATENATE syst-datum syst-uzeit syst-uname
    INTO gd_title_1
    SEPARATED BY '  //  '.

  CALL METHOD go_writer-&amp;gt;new_table
    EXPORTING
      id_title        = gd_title_1
      id_type         = '4'
*        ID_RULER_STRING =
      .
  go_writer-&amp;gt;title_write( ).

* Text elements:
*  700	Customer
*  701	Number
*  702	Business Area
*  703	Sorting
*  704	Field

  go_writer-&amp;gt;add_header_field( text-700 ).
  go_writer-&amp;gt;add_header_field( text-701 ).
  go_writer-&amp;gt;add_header_field( text-702 ).
  go_writer-&amp;gt;add_header_field( text-703 ).
  go_writer-&amp;gt;add_header_field( '' ).

  go_writer-&amp;gt;ruler_write( ).

  gd_title_1 = 'New title - table of type = 1'.

  CALL METHOD go_writer-&amp;gt;new_table
    EXPORTING
      id_title = gd_title_1
      id_type  = '1'.

  go_writer-&amp;gt;add_group_header_field( text-550 ).
  go_writer-&amp;gt;add_header_field( text-551 ).
  go_writer-&amp;gt;add_header_field( text-552 ).
  go_writer-&amp;gt;add_header_field( text-553 ).
  go_writer-&amp;gt;add_header_field( text-554 ).
  go_writer-&amp;gt;add_header_field( text-555 ).
  go_writer-&amp;gt;add_header_field( text-556 ).
  go_writer-&amp;gt;add_header_field( text-557 ).
  go_writer-&amp;gt;add_header_field( text-558 ).
  go_writer-&amp;gt;add_header_field( text-559 ).
  go_writer-&amp;gt;add_header_field( text-560 ).

  RESERVE 10 LINES.
  go_writer-&amp;gt;title_write( ).
  go_writer-&amp;gt;ruler_write( ).

END-OF-SELECTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 20:49:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2855758#M669387</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-10-03T20:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2855759#M669388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe Schieferstein ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx a lot for ur useful answer. I still i have some dbts plesae could you clear that.&lt;/P&gt;&lt;P&gt;1.Is there any documentation reagarding the Cl_dopr_writer so that i learn hw each method works. &lt;/P&gt;&lt;P&gt;2.When we are giveing header fields  in first colum it is taking 3-4 variables in first column and after that a new column is generationg ? y so?  i mean in first column it is taking some 3 to 4 varibles names and after that a new column is generating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.Can u give me a example such as taking a database table getting the values in internal table and getting output list using Cl_dopr_writer.? i have understood how to give the header name but i dont know how to assaing values in that. Please help me out coz atleast if i get the documentation reading all the methos how they use also i can try my self i have a requriremnt in which they used cl_dopr_writer so i cant understand anything my requirent is to insert a new field in between already existing fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot it was very useful answer to me....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sunil kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 05:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2855759#M669388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T05:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2855760#M669389</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;use of CL_DOPR_WRITER &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;class CL_DOPR_WRITER (variable LO_WRITER in the report). You have to do some debugging of the report in order to understand how its methods work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if usaefull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 05:46:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2855760#M669389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T05:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2855761#M669390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sunil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My sample report is based on the coding of the two reports which use class CL_DOPR_WRITER. Do some debugging of these rather simple reports in order to understand how to create an entire list. It is not that difficult.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 06:51:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/2855761#M669390</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-10-04T06:51:25Z</dc:date>
    </item>
  </channel>
</rss>

