<?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: Exporting BDC program to Word or Notepad file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-bdc-program-to-word-or-notepad-file/m-p/3673731#M884765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Rahul,
You are always welcome.

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Apr 2008 08:06:14 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2008-04-14T08:06:14Z</dc:date>
    <item>
      <title>Exporting BDC program to Word or Notepad file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-bdc-program-to-word-or-notepad-file/m-p/3673725#M884759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hellow sirs,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is ther any way out for Automating the Export of BDC program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;( Source Code) into Word file or note pad file..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.. whenever i run my BDC it performs its function as well as it copy its Source Code into Word File..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanking  you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 02:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-bdc-program-to-word-or-notepad-file/m-p/3673725#M884759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T02:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting BDC program to Word or Notepad file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-bdc-program-to-word-or-notepad-file/m-p/3673726#M884760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
HI Rahul .
Check this sample program to download source code of the program . Club your BDC program and this to get ur req done.

&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  YDWNLD_REP
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  ydwnld_rep.

TABLES: trdir,trdirt,devaccess,tadir.

DATA: BEGIN OF itab OCCURS 0,
      text(300),
      END OF itab.
DATA program LIKE rlgrap-filename .

DATA: BEGIN OF int_reposrc OCCURS 0,
      progname LIKE trdir-name,
      END OF int_reposrc.

*------------------------------------------------------------------*
SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME.
*PARAMETER CNAM LIKE TRDIR-CNAM.
SELECT-OPTIONS: author FOR trdir-cnam.
SELECT-OPTIONS: pogram FOR trdir-name OBLIGATORY.
PARAMETERS: filename LIKE rlgrap-filename OBLIGATORY DEFAULT 'C:\'.
SELECTION-SCREEN END OF BLOCK b1.
*------------------------------------------------------------------*

SELECT * FROM devaccess.
  CLEAR author.
  author-sign = 'I'.
  author-option = 'EQ'.
  author-low =  devaccess-uname.
  APPEND author.
ENDSELECT.

SELECT name  FROM trdir INTO TABLE int_reposrc
                      WHERE name IN pogram
                      AND   cnam  IN author.

LOOP AT int_reposrc.
  CLEAR: itab,program.
  REFRESH itab.
  READ REPORT int_reposrc-progname INTO itab.
  IF sy-subrc = 0.
    CLEAR trdirt.
    SELECT SINGLE * FROM trdirt WHERE name  =  int_reposrc-progname
                                AND   sprsl = 'E'.

    CLEAR tadir.

    SELECT SINGLE * FROM tadir WHERE obj_name = int_reposrc-progname.
    CONCATENATE filename tadir-devclass '\' int_reposrc-progname '-'
                 trdirt-text '.TXT'  INTO program.
    IF NOT itab[] IS INITIAL.
      CALL FUNCTION 'WS_DOWNLOAD'
        EXPORTING
          filename                = program
          filetype                = 'DAT'
        TABLES
          data_tab                = itab
        EXCEPTIONS
          file_open_error         = 1
          file_write_error        = 2
          invalid_filesize        = 3
          invalid_type            = 4
          no_batch                = 5
          unknown_error           = 6
          invalid_table_width     = 7
          gui_refuse_filetransfer = 8
          customer_error          = 9
          no_authority            = 10
          OTHERS                  = 11.

    ENDIF.
  ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;
I hope that it helps u .
Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 03:13:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-bdc-program-to-word-or-notepad-file/m-p/3673726#M884760</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-04-11T03:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting BDC program to Word or Notepad file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-bdc-program-to-word-or-notepad-file/m-p/3673727#M884761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can write a program to meet your requirement.  Just record the BDC of se38 as followed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto se38&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mention the program name.&lt;/P&gt;&lt;P&gt;display.&lt;/P&gt;&lt;P&gt;export from se38.  There is an option to export the file from SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will export your source code to a word file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 03:17:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-bdc-program-to-word-or-notepad-file/m-p/3673727#M884761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T03:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting BDC program to Word or Notepad file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-bdc-program-to-word-or-notepad-file/m-p/3673728#M884762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hellow venkat&lt;/P&gt;&lt;P&gt;thanks for ur response..&lt;/P&gt;&lt;P&gt; i know there is a ooption&lt;/P&gt;&lt;P&gt;but i want to perform this thing thru program. i dont want to do manuallly &lt;/P&gt;&lt;P&gt;i want to automate..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks. and Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 03:20:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-bdc-program-to-word-or-notepad-file/m-p/3673728#M884762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T03:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting BDC program to Word or Notepad file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-bdc-program-to-word-or-notepad-file/m-p/3673729#M884763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a heaps&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;P&gt;i m goin to use wil let you know as soon as i get things done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 03:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-bdc-program-to-word-or-notepad-file/m-p/3673729#M884763</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-11T03:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting BDC program to Word or Notepad file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-bdc-program-to-word-or-notepad-file/m-p/3673730#M884764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thankin you so much.. Venkat..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this works really well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i'm assigning u points as my Gesture for ur effort..!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and yes can u emailme . step by step method for Creating Reports using LDB method and ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 07:56:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-bdc-program-to-word-or-notepad-file/m-p/3673730#M884764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T07:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting BDC program to Word or Notepad file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-bdc-program-to-word-or-notepad-file/m-p/3673731#M884765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;
Rahul,
You are always welcome.

Regards,
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 08:06:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exporting-bdc-program-to-word-or-notepad-file/m-p/3673731#M884765</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2008-04-14T08:06:14Z</dc:date>
    </item>
  </channel>
</rss>

