Report to download a pgm in text format

Hi,
My requirement is to download the whole program in a text file, and all includes
in a separate text file correspondingly.I have to do this job using read report and scan statements.
Regards,
Asha

hi asha,
  use this report ,
REPORT ZDOWNLOAD line-size 255.
TABLES: TRDIR, TADIR,TRDIRT.
DATA: BEGIN OF REPLIST OCCURS 200, NAME(40) TYPE C, TITLE(70),END OF
REPLIST.
DATA: BEGIN OF BUFFER OCCURS 0, LINE(255) TYPE C, END OF BUFFER.
DATA: FILENAME TYPE string, FILELENGTH(10) TYPE C.
SELECT-OPTIONS : SO_NAME FOR TADIR-OBJ_NAME.
SELECT-OPTIONS : SO_DEVC FOR TADIR-DEVCLASS.
PARAMETERS : PATHNAME(40).
PARAMETERS: P_AUTHOR LIKE SY-UNAME DEFAULT SY-UNAME.
SELECT * FROM TADIR
WHERE DEVCLASS IN SO_DEVC
AND OBJECT = 'PROG'
AND OBJ_NAME IN SO_NAME.
SELECT * FROM TRDIR
WHERE NAME = TADIR-OBJ_NAME.
MOVE TRDIR-NAME TO REPLIST-NAME.
SELECT * FROM TRDIRT WHERE NAME = TADIR-OBJ_NAME
AND SPRSL EQ 'E'.
MOVE TRDIRT-TEXT TO REPLIST-TITLE.
APPEND REPLIST.
ENDSELECT.
ENDSELECT.
ENDSELECT.
LOOP AT REPLIST.
READ REPORT REPLIST-NAME INTO BUFFER.
INSERT INITIAL LINE INTO BUFFER INDEX 1.
MOVE REPLIST-TITLE TO BUFFER-LINE.
MODIFY BUFFER INDEX 1.
INSERT INITIAL LINE INTO BUFFER INDEX 2.
concatenate pathname replist-name '.txt' into filename.
*FILENAME = PATHNAME.
*FILENAME+40 = REPLIST-NAME.
*FILENAME+82 = '.'.
*FILENAME+84 = 'txt'. "helpful to replace with SY-SYSID
CONDENSE FILENAME NO-GAPS.
CALL FUNCTION 'GUI_DOWNLOAD'
  EXPORTING
    FILENAME                        = FILENAME
    FILETYPE                        = 'ASC'
  TABLES
    DATA_TAB                        = BUFFER
EXCEPTIONS
   FILE_WRITE_ERROR                = 1
   NO_BATCH                        = 2
   GUI_REFUSE_FILETRANSFER         = 3
   INVALID_TYPE                    = 4
   NO_AUTHORITY                    = 5
   UNKNOWN_ERROR                   = 6
   HEADER_NOT_ALLOWED              = 7
   SEPARATOR_NOT_ALLOWED           = 8
   FILESIZE_NOT_ALLOWED            = 9
   HEADER_TOO_LONG                 = 10
   DP_ERROR_CREATE                 = 11
   DP_ERROR_SEND                   = 12
   DP_ERROR_WRITE                  = 13
   UNKNOWN_DP_ERROR                = 14
   ACCESS_DENIED                   = 15
   DP_OUT_OF_MEMORY                = 16
   DISK_FULL                       = 17
   DP_TIMEOUT                      = 18
   FILE_NOT_FOUND                  = 19
   DATAPROVIDER_EXCEPTION          = 20
   CONTROL_FLUSH_ERROR             = 21
   OTHERS                          = 22
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDLOOP.
here u need to give object name,package and path where u want download........
if want all program from particular package than give * in program name
and vice versa
please dont froget to reward points
regards,
Imran

Similar Messages

  • Download a request in text format

    Hi,
    I want to download a request in readable text format.
    How do I go about it?
    If I download the data file, it opens in non-readable binary format.
    Saba.

    Hi,
    My problem is that I have a Unicode ECC 6.0 system.
    I want to upload requests from 4.7 to ECC 6.0.But since 4.7 is Non-Unicode & ECC is Unicode ,I am unable to upload the requests(for screen layouts) to ECC.
    I can upload reports by converting them to ASCII format,but the same is giving errors for requests.
    Hence I want to know if there is some way of downloading requests in text format,so that I can get the same layouts in ECC 6.0.

  • Force email download in HTML or text format on iPhone/iPad with ActiveSync (Exchange 2010 SP3)

    Hi,
    When an HTML email with attachment is received on iPhone/iPad (iOS 8.2),
    it can be downloaded in three cases of
    intermittents ways :
    - The full message is downloaded in HTML format
    - The message is download in text format and a
    "Download full message" link is displayed
    at the bottom of the message
    - The message is displayed in text format,
    but continues to download the rest of the message.
    When the download is complete, the message is displayed
    in HTML format.
    This behavior is intermittent. The Apple's support
    says it is a particular configuration on Exchange server
    that causes this behavior.
    I want to know if there is a way to fix
    this problem and force download email
    either in text or HTML format ?
    This problem occurs on iPhones/iPad
    (iOS8.2) with ActiveSync account (Exchange 2010
    SP3). It occurs also with Outlook.com account.
    On the Exchange 2010 SP3 server, The MaxEmailBodyTruncationSize
    and MaxEmailHTMLBodyTruncationSize settings are
    unlimited in ActiveSync policies.
    Thank you for your help.

    Hi,
    We can configure Exchange ActiveSync Mailbox Policy Properties to force device download HTML or text format email.
    Use the EMC to view or configure Exchange ActiveSync Mailbox Policy by the following steps:
    In the console tree, navigate to Organization Configuration >
    Client Access.
    In the result pane, click the Exchange ActiveSync Mailbox Policies tab, and then select the policy you want to view or configure.
    In the action pane, click Properties.
    Under the Sync Settings tab, check or uncheck the box
    Allow HTML-formatted e-mail. Select this check box to enable e-mail messages that are formatted in HTML to be synchronized to the mobile phone. If this check box isn't selected, all e-mail messages will be converted to plain text before synchronization.
    And use this command to configure whether allow text messaging on the mobile phone. The Exchange Enterprise Client Access License is required to change the values of this setting.
    Set-ActiveSyncMailboxPolicy -Identity PolicyName –AllowTextMessaging $True
    For more information, please refer to this document.
    https://technet.microsoft.com/en-us/library/bb123484(v=exchg.141).aspx
    Best Regards.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Lynn-Li
    TechNet Community Support

  • APEX Report Data Download in Excel and PDF format

    Hi,
    Can someone please guide me how to download APEX report data in Excel and PDF format.I know this is possible through BI Publisher but that is extra Licence cost for client so i don't want to use that option.
    Thanks in advance.
    Regards
    Prabhat Mishra

    1005844 wrote:
    Hi ,
    Thanks for Reply,
    I am using APEX 4.2 but when i am trying to download the IR data then getting 3 options only(CSV,HTML and Email).
    PrabhatWell, Excel should understand the .csv format for offloads. Perform web seraches to see what can be done for pdfs

  • How to create a link for download a file in text format

    Hi expect,
    I want to create a link when I link that link a text file should get download which i'm specified in jsp page. I tried by using hyper link it didn't get downloaded just it opened as it is. How can I resolve the problem.

    Swati.S wrote:
    in href provide another jsp name or servlet and pass filename as request parameter to this jsp or servlet. In called jsp or servlet set content type to application/forcedownload.Yes, that works (usually), but, IMHO, is nothing but a hack that you shouldn't use (and I could care less how often it is currently used in varying hacked scripts, such as this bogus force-download PHP script I've seen). That is an invalid MIME type (or at least unofficial/non-standard mime tye that most browsers will have no association for), so, since the browser doesn't know what to do with it, it'll ask the user what to do. And even that is not 100% certain. All I need do is create a mime-type to application association for that MIME type and, guess what, it doesn't work again (at least not the way you intended).
    The server should not be concerned with what the client does with the file linked to.

  • Report in text format

    I have a report need to send (output) in text format thru form 6i , please help

    Hi,
    Try adding there parameters when calling the report. (To view the report, the DESTYPE parameter will be SCREEN
         ADD_PARAMETER(PL_ID, 'DESTYPE', TEXT_PARAMETER, 'FILE');
         ADD_PARAMETER(PL_ID, 'DESFORMAT', TEXT_PARAMETER, 'DELIMITED');
    -- If you didn't mention the DESNAME parameter, then the output will be generated in the application folder named report_name.lis
         ADD_PARAMETER(PL_ID, 'DESNAME', TEXT_PARAMETER, '<file_path>');Regards,
    Manu.
    If this answer is helpful or correct, please mark it. Thanks.

  • Export report in text format

    Hi.
    I am still downloading the trial ver of cr 2008, but I would to know urgently that if it is possible to export report in utf-8 text format given the data is retrieved from ms/sql table in ucs-2 format
    Many Tks

    Hi,
    yes it is possible to export a report in text format.
    U just need to do a bit formatting for that.(only for display pupose)
    Regards,
    Misra P.

  • Text format error in ALV report

    Hi Experts,
    I am trying to download the ALV report output in to text format but the system is not downloaded the columns correctly. some of the columns are repeating and the alignment also not correct.
    Please let me know if anyone have solution for this.
    Reward points for good solutions.
    Regards,
    Venkat

    use the Option(SHort Cut) CTRLSHFTF9
    Local File->Spread sheet option.
    And download to excel file.
    Text file you can see format distorted, though it is not distorted.
    Better use XLS format.
    IF columns are repeating then the problem is with the Fieldcatalog.

  • Crystal report : Export to Text format from BI Launch pad

    Hi,
    We are facing issue in exporting the Crystal report to text format option from BI Launch pad view mode. Currently BI launch pad doesn’t support export to Text format option for crystal report in view mode. But export to text format option is feasible in schedule mode. But customer is not interested in exporting the reports through schedule mode.
    Please advise, if we have any alternative way of exporting the crystal report to text format option from BI Launch pad.
    Thanks,
    Chinnu A

    Hi Chinnu,
    The question is better suited to be asked in the BI Platform space.
    -Abhilash

  • Report in text format show break page !!

    when i generate a report in char mode, in a text file, it show a break page between the head section and the principal section. there is any way to delete this break page (a line command or properties ( i specify a desformat no_ff)).
    thanks.

    To get a output data to a text file that contains no form feeds ( page breaks ), or other control characters in the output), do followings:
    Modify the printer definition file to eliminate form feeds
    a. Invoke a text editor and open the file dflt.prt.
    b. Move to the following line:
    after pages control(L)
    Remove "control(L)" so the line appears as shown
    below:
    after pages
    Removing the control sequence from the printer definition file will keep the output from breaking between pages when the report is formatted.
    Thanks
    The Oracle Reports Team

  • Can anyone tell me why I am unable to download a template word doc from webmail onto my mac without it opening in text format? I just need the original document format.

    Can anyone tell me why I am unable to download a template word doc from webmail onto my mac without it opening in text format? I just need the original document format.

    Where to begin... and why would you ask here? (workstation owners)
    Places I can think to try, after google of course....
    Forum devoted to something like Word / Mactopia or Pages.... whether you are using Office 2011, and no idea what browser or webmail (IMAP, Gmail, other)
    And then there really are notebook with subforum for MacBook Pro
    Apple Site Map
    Apple Support Mail
    Apple Support

  • How do I generate a report in text format

    How do I generate a report in text format and send it to both a file and to a printer?
    Solved!
    Go to Solution.

    I run a series of tests on multiple stations and I need to generate a report, both electronic and one to be printed for a DHR (device history record), for each station. If I use file i/o as you suggested is the preferred approach to generate an electronic file and make the report from that, or generate both the electronic and hard copy report from arrays as the measurement data is acquired. Note that the electronic data is more detailed than the data in the hardcopy report.

  • Blank Lines in Oracle Reports in Text Format

    Hi all,
    I m in a problem that , I generate an Oracle report in text format there is two additional blank lines in text format.But when I view this report in report editor there is no blank lines.There is actually only 15 lines in my report but in text format it shows 17 lines.How can I avoid this prblm.pls help.
    thanks
    jobuin

    Is the Design in Character Units set to Yes?
    How are you viewing your layout in report editor? Are you viewing with Grid?
    If it is Yes and with grid, try to fit your layout objects within the Grid.

  • SSRS reports in text format

    hi
    how can i save a report in text format using ssrs 2008 R2

    Hi Gourav,
    By default, SQL Server Reporting Services render a report to .CSV File Extension with CSV rendering extension. While device information settings for the CSV rendering extension allow us to change its format from .csv to .txt format, we can modify FileExtension
    setting in the RSReportserver.config file as below:
    Please navigate to RSReportserver.config file: <drive:>\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\RSReportserver.config.
    Backup the RSReportserver.config file before we modify it, open the RSReportserver.config file with Notepad format.
    In the <Render> section, modify the code for the CSV extension like this:
    <Extension Name="CSV" Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering">
       <OverrideNames>
            <Name Language="en-US">TXT (Pipe Delimited Text File)</Name>
        </OverrideNames>
        <Configuration>
            <DeviceInfo>
                <FileExtension>TXT</FileExtension>
            </DeviceInfo>
        </Configuration>
    </Extension>
    Save the RSReportserver.config file.
    For more information about CSV Device Information Settings, please see:
    http://msdn.microsoft.com/en-us/library/ms155365(v=sql.105).aspx
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine xiong
    Katherine Xiong
    TechNet Community Support

  • Extra spaces in TEXT format report

    hi
    i have a report with in the text format, when i generate this report it is generating a space (as end of page) between the pages, and when i save the file as text file these spaces are still their.
    how can we remove these spaces before generating the text file?? , i donot want to change on the text file after generating it
    any tips??
    Mahdi Charara

    hi
    thank you for ur answer,
    i removed the extra line space, but still i have a problem on this report, when it is opening in the text format thier is a junk character appearing instead of the page break, it is a small box with character symbol of "FF" , i donot know from where this character comming, how to remove it?
    is there another way of opening the text result directly from the "view output" option other than opining it in the browser and then save as text?
    Mahdi Charara

Maybe you are looking for

  • Pages '08 Crashes before printing

    Any time I try to print from Pages '08 it immediately crashes. Any thoughts?

  • Linux and Electrical Engineering

    Hi, I'm a student of EE and I'd like to share some experiences about good softwares for Linux. Which are good programs, which are being actively developed, which are not, etc. The reason I'm creating this topic and not searching is that it seems to b

  • White / coloured dot in iphone 5 photos and videos

    I have started getting a small white /coloured dot, a reflection possibly, when taking photos, video or vines with the iphone 5. Occurs when shooting towards a bright light. Occurs in the daytime when the sun is out, in the vicinity of but not shooti

  • Unable to Connect T7900 To DVD Player

    i had bought philips DVP 550 DVD Player which supports 7.1 channel system and i had also bought a Creative T7900. But i m not able to connect the T7900's Stereophonic Pins to the DVD Player, as there are 8 Audio RCA pins to the DVD Player as (Front l

  • Has anyone's Contact Form quit working with the latest Muse update?

    I've removed Captcha, reCaptcha, and still I'm getting the message, "ERROR: An error occurred. Image verification failed. If you believe this is incorrect, please contact your system administrator or go back and re-submit the form." This form worked