Generate a report in text file format

Hello Experts,
       I need to write a program to generate a report in a text file format which is later saved on a directory in the application server. I have the fields with the sources defined and also the filters, selections, rows and columns. For example:-
0company code (US) as the filter, 0CALDAY as the selection, CUSTNAM as the object in the row with sources coming from BUKRS and ZSD_CCUST. Can someone initiate or direct me to an already existing forum or throw some light on the issue.
Thanks,

Hi,
As mentioned above, the Open Hub service allows to extract data from an InfoCube/ODS/InfoObject and then store it a database table or flat file stored in the application server. You can start in transaction RSBO and create an InfoSpoke there.
To schedule an extraction using an InfoSpoke, you need to place it in a process chain.

Similar Messages

  • RWRBE60.exe error when generating a report to a file format

    Hi people,
    I'm employed as a consultant by a major Petrochemical facility in South Africa.
    My problem is as follows:
    Our product dispatching system contains a number of reports which need to be generated to a file format (either PDF, RTF or Text).
    Whenever one of the users attempts to do the above in the Reports Previewer
    (by clicking on "File" -> "Generate to File" -> "Text"); the following error is displayed:
    "RWRBE60.exe - Application Error. The instruction at 0x00281036 referenced memory at 0x00000000. The memory could not be read."
    This error only occurs when they attempt to run a report through the Application itself.
    I've recompiled and executed the same report(s) using Reports Builder 6, and it generates the file(s) with no problems whatsoever!
    Only when running said reports through the Production application, does this error appear.
    Your feedback will be highly appreciated!
    Thanks!

    This certainly looks like a bug, but you should probably check and make sure that you're on the latest patch set (or at least patch set 10 - Reports 6.0.8.19) before contacting support and pursuing further.
    Hope this helps,
    Danny

  • Print report into TEXT file format

    How am I going to produce a text file report from report builder?
    -- I want all the layout header, page number, time as preview windows.
    -- I use charactor mode to build the report, then use option "generate to file - delimited".(but the layout was messy)
    -- After save the file, the layout is totally different from preview window.
    How can I overcome this problem. Thank you for helping.

    hello Tan Chin Chye,
    if you create your report in character mode, then if you pass/set parameter mode to character, then you can create text file by supplying values for parameters destype (file), desformat (selected printer file - you may customize some for yourself - number of characters per line, number of lines pre page, some control sequences ...) and desname (name of file to create). not sure about creating such file from previewer, but you can try print and then print to file option ... in character mode this should produce plain text ...
    hth
    petr valouch, brainbench mvp for oracle programming, http://www.brainbench.com

  • How to generate reports in text file without totals

    Hi!!!
    Does anybody knows how can I generate a report in text file
    (separated by |), but without the lines with totalizations ?
    In my application, the user can choose if he wants the output
    in HTML,PDF or a text file. So, the solution to this question
    must be implemented in code.
    Thanks a lot,
    Anderson.

    If you put a formatting trigger on any item or frame and return FALSE, it will disappear.
    So the totals need to be within a frame which has a trigger which returns false if text file is chosen.

  • How can we generate the reports in html or text file formats?

    Hi,
    Is there any package that can help in creating HTMLDB reports in .txt files or .html files? (Similar to TEXT_IO in Oracle Forms)
    How can we generate the reports in html or text file formats from HTMLDB?
    Thanks in Advance
    Renjith

    Hello all.
    Bi Publisher is great, but has a very high price tag. It's even more expensive than Forms & Reports Services. We are considering APEX to replace Forms & Reports on the web, but the reporting limitations are still a problem.
    I wonder if there is another option.
    Thanks

  • 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.

  • Is it possible to export the out put of Crystal report into text file?

    Hi All,
    Is it possible to export the out put of Crystal report into text file?

    Hi
    Yes, Go to File --> Export --> Export Report --> Under Format select TEXT & select the destination as "Disk file"(defaultly selected)
    Give the proper details as per your requirement for "Characters per inch" & "Number of lines per page" & click on 'OK"
    In "Choose Export file" window, select the destination folder & provide file name. click on "SAVE"
    Regards
    Ashwini

  • Help needed  while exporting crystal reports to HTML file format using java

    Help needed  while exporting crystal reports to HTML file format using java api(not using crystalviewer).i want to download the
    html file of the report
    thanks

    the ReportExportFormat class does not have HTML format, it has got to be XML. Export to HTML is available from CR Designer only.
    Edited by: Aasavari Bhave on Jan 24, 2012 11:37 AM

  • "  Displaying the Report in PDF file Format "

    Hai Friend's,
    I have Developed a Report in Web-Intelligence .My Report is having 50 Collums and 600 Rows. The Report is too big Report. when the Save the Report in PDF File format, The PDF file Format Report is Consisting of 10 Pages, The Report Output is not coming in One Page. But my user want the Report  all the Field's :: Collumms,Rows in one Page.can Anybody let me know the solution.

    Hi Ashok,
    You can change the page size and orientation in the web.xml in the following folder.
    Web Intelligence default Page size Modification u2013 Follow these steps:
    1. Open the defaultconfig.xml file found in the following directory:
    servername\Program Files\Business Objects\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\webiApplet\AppletConfig
    2. Look for the following code near the top of the page:
    <KEY VALUE="page*default">
    <FORMAT NAME="A4" ORIENTATION="portrait" />
    </KEY>
    3. Change this to:
    <KEY VALUE="page*default">
    <FORMAT NAME="LETTER" ORIENTATION="portrait" />
    </KEY>
    4. Save the file.
    All the Best,
    Madhu...

  • Save a report (or text file) in pdf format?

    Hi,
    I like to save a kind of log file in a non changeable format like pdf.
    I'm using the DSC module under LabVIEW are there some possibilities?
    Or is there a chance to save text file into a postscript file?
    Thanks for help,
    martin

    Hallo Martin,
    to be able to write to a PDF file you need some extra software that is able to create those files.
    Most of those programs are installing themselves as printer drivers, so if you want to wrate a table into a pdf file you will have to create a report and print it. LabVIEW insrtalls a couple of exaples regarding report generation, online I found an example for "printing" the frontpanel screen into a PDF.
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DF2556A4E034080020E74861&p_node=DZ52084&p_source=External
    Ingo Schumacher
    Systems Engineer Sound&VibrationNational Instruments Germany

  • Any way to generate trace report from the TKPROF formatted trace file?

    As titled.
    Is there any automatically way to make a report on SQL tuning report from the TKPROF formatted trace file(or from the dynamic performance views)
    Paul

    Dave,
    That's what report queries are for, take a look at shared components. Walk through the create report query wizard, and on the final page, you'll get a URL that you can use to integrate this with your page. You'll find the same URL when editing your report query afterwards.
    Alternatively, suppose you already have you report page, but don't want to always go there, you can just copy that report region print link (reference my answer to your previous question), and make that the target of a branch or from another page.
    Regards,
    Marc

  • How to save report in text (.txt) format using SSRS

    Hello 
    I am using some .rdl file to generate reports and this is using SSRS. But only thing I did that I have changed the configuration file in C drive as below :
    Here 
     Collapse | Copy Code
    <Extension Name="TXT" Type="Microsoft.ReportingServices.Rendering.CsvRenderer.CsvReport,Microsoft.ReportingServices.CsvRendering"> 
        <OverrideNames> 
            <Name Language="en-US">TXT (Pipe Delimited Text File)</Name> 
        </OverrideNames> 
        <Configuration> 
            <DeviceInfo> 
                <FieldDelimiter>|</FieldDelimiter> 
                <Extension>TXT</Extension> 
                <Encoding>ASCII</Encoding> 
            <NoHeader>true</NoHeader> 
            </DeviceInfo> 
        </Configuration> 
    </Extension> 
    The TXT is added to the drop down . But when I am saving the report it is not saving in .txt format. It is taking .CSV format. Kindly help to save report in txt format.

    Hi Chat89,
    By design, SQL Server Reporting Services render a report to CSV (text) format with a comma (,) as FieldDelimiter in .CSV FileExtension. So if we want to display Pipe FieldDelimiter in .txt format, we can modify those setting in the RSReportserver.config
    file as below:
    Please navigate to RSReportserver.config file: <drive:>\Program Files\Microsoft SQL Server\MSRS11.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, add the new 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>
                <FieldDelimiter>|</FieldDelimiter>
                <FileExtension>TXT</FileExtension>
            <NoHeader>true</NoHeader>
            </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.aspx
    If you have any other questions, please feel free to ask.
    Thanks,
    Katherine xiong
    Katherine Xiong
    TechNet Community Support

  • Printing into Text file Format

    Hi All,
    I wish and hope everyone are fine..
    Now that coming to matter. I require information regarding check printing.
    In transaction F-58 we use to do payments for vendors and print checks accordingly.
    In this concern if I want to take the printout of the check in text format, that is to create an output file as abcd.txt on desktop or anywhere else.
    So that i can take the print from that text file anytime afterwards.
    regards
    PSNG

    hello Tan Chin Chye,
    if you create your report in character mode, then if you pass/set parameter mode to character, then you can create text file by supplying values for parameters destype (file), desformat (selected printer file - you may customize some for yourself - number of characters per line, number of lines pre page, some control sequences ...) and desname (name of file to create). not sure about creating such file from previewer, but you can try print and then print to file option ... in character mode this should produce plain text ...
    hth
    petr valouch, brainbench mvp for oracle programming, http://www.brainbench.com

  • How to download a ABAP report to text file

    Hi Experts,
      I want to save a ABAP report to a local file in my PC (*txt format).  Since it uses a lot of includes, I have to download those ones too..   Is there is quickway to save the main program and all it's subprograms to a text file ?
    Regards
    Shibu

    Hi,
    Try this report, it will solve u r problem,
    TABLES:TRDIR.
    SELECT-OPTIONS: PGMNAME FOR TRDIR-NAME.
    CONSTANTS:  LINESIZE value 2048.
    PARAMETERS:
                 HEADING AS CHECKBOX DEFAULT 'X',
                 FGROUP AS CHECKBOX,
                 USER LIKE TRDIR-CNAM DEFAULT '*',
                 DOWNLOAD AS CHECKBOX default 'X',
                 pa_TEXTP AS CHECKBOX,
                 DOWNDIR(80) DEFAULT 'C:\temp\',
                 chg_date(8) default '19000101',
                 chg_time(6) default '000000'.
                PGMNAME like TRDIR-NAME.
    DATA:
         W_TEXT(128),
         W_FILENAME(128),
         W_PROGRAM_LOW(8),
         W_PROGRAM_HIGH(8).
    DATA:
        _texttab type textpool,
         texttab type standard table of textpool initial size 0
           with header line,
        BEGIN OF TEXTTAB OCCURS 0,
                        ID(1),
                        KEY(8),
                        ENTRY(70),
        END         OF TEXTTAB,
         BEGIN OF ABAPTAB OCCURS 500,
                        LINE(72),
                          line(LINESIZE),
         END         OF ABAPTAB,
         BEGIN OF TRTAB OCCURS 0,
                         NAME LIKE         TRDIR-NAME,
                         ENTRY LIKE       TEXTTAB-ENTRY,
                         CDAT LIKE         TRDIR-CDAT,
                         UDAT LIKE         TRDIR-UDAT,
         END                 OF TRTAB,
         BEGIN OF TRFTAB OCCURS 0,
                         NAME LIKE         TRDIR-NAME,
                         ENTRY LIKE       TEXTTAB-ENTRY,
                         CDAT LIKE         TRDIR-CDAT,
                         UDAT LIKE         TRDIR-UDAT,
         END OF TRFTAB.
    START-OF-SELECTION.
         IF FGROUP = ' '.
                         PERFORM LOAD_TRDIR_PROGRAM.
                         PERFORM PROCESS_PROGRAM.
         ELSE.
                         PERFORM LOAD_TRDIR_FGROUP.
                         PERFORM PROCESS_FGROUP.
         ENDIF.
    *&                                         form load_trdir_program.
    FORM LOAD_TRDIR_PROGRAM.
         SELECT * FROM TRDIR
                         WHERE NAME IN PGMNAME
                           and sdate >= chg_date
                           and stime >= chg_time.
                         IF USER <> '*'.
                                         CHECK TRDIR-UNAM = USER OR
                                         TRDIR-CNAM = USER.
                         ENDIF.
                         CLEAR: TEXTTAB.
                         REFRESH: TEXTTAB.
                         CLEAR: TRTAB.
                         READ TEXTPOOL TRDIR-NAME INTO TEXTTAB LANGUAGE 'E'.
                         IF SY-SUBRC = 0.
                                         READ TABLE TEXTTAB WITH KEY 'R'.
                                         MOVE TEXTTAB-ENTRY TO TRTAB-ENTRY.
                         ENDIF.
                         MOVE TRDIR-NAME         TO TRTAB-NAME.
                         MOVE TRDIR-CDAT         TO TRTAB-CDAT.
                         MOVE TRDIR-UDAT         TO TRTAB-UDAT.
                         APPEND TRTAB.
                         CLEAR: TEXTTAB.
         ENDSELECT.
    ENDFORM.     "         load_trdir_program
    *&                                         Form load_trdir_fgroup
    FORM LOAD_TRDIR_FGROUP.
         SELECT * FROM TRDIR
                         WHERE NAME BETWEEN 'SAPLYYYY' AND 'SAPLZZZZ'.
                         CHECK TRDIR-UNAM = USER OR TRDIR-CNAM = USER.
                         CLEAR: TEXTTAB.
                         CLEAR: TRTAB.
                         REFRESH: TEXTTAB.
                         READ TEXTPOOL TRDIR-NAME INTO TEXTTAB LANGUAGE 'E'.
                         IF SY-SUBRC = 0.
                                         READ TABLE TEXTTAB WITH KEY 'R'.
                                         MOVE TEXTTAB-ENTRY TO TRTAB-ENTRY.
                         ENDIF.
                         MOVE TRDIR-NAME TO TRTAB-NAME.
                         MOVE TRDIR-CDAT TO TRTAB-CDAT.
                         MOVE TRDIR-UDAT TO TRTAB-UDAT.
                         APPEND TRTAB.
                         CLEAR: TEXTTAB.
         ENDSELECT.
         LOOP AT TRTAB.
                         MOVE-CORRESPONDING TRTAB TO TRFTAB.
                         APPEND TRFTAB.
                         MOVE TRTAB-NAME+3(5) TO W_PROGRAM_LOW.
                         MOVE '%' TO W_PROGRAM_LOW+5(1).
                         MOVE TRTAB-NAME+3(5) TO W_PROGRAM_HIGH.
                         MOVE 'MMMMMMMM' TO W_PROGRAM_HIGH.
                         SELECT * FROM TRDIR
                                         WHERE NAME LIKE W_PROGRAM_LOW.
    *where name between w_program_low and w_program_high.
                                         CHECK TRDIR-NAME+5(1) <> '$'.
                                         CHECK TRDIR-NAME(5) =
                                         TRTAB-NAME+3(5).
                                         READ TEXTPOOL TRDIR-NAME INTO
                                         TEXTTAB LANGUAGE 'E'.
                                         READ TABLE TEXTTAB WITH KEY 'R'.
                                         MOVE TEXTTAB-ENTRY TO TRFTAB-ENTRY.
                                         MOVE TRDIR-NAME TO TRFTAB-NAME.
                                         MOVE TRDIR-CDAT TO TRFTAB-CDAT.
                                         MOVE TRDIR-UDAT TO TRFTAB-UDAT.
                                         APPEND TRFTAB.
                         ENDSELECT.
         ENDLOOP.
    ENDFORM.     " load_trdir_fgroup.
                                                    FORM PROCESS_PROGRAM
    FORM PROCESS_PROGRAM.
         LOOP AT TRTAB.
                         READ REPORT TRTAB-NAME INTO ABAPTAB.
                         IF DOWNLOAD = 'X'.
                             PERFORM DOWNLOAD_PROGRAMS USING TRTAB-NAME.
                         ELSE.
                             PERFORM LIST_PROGRAMS USING TRTAB-NAME.
                         ENDIF.
                         IF pa_TEXTP = 'X'.
                              READ TEXTPOOL TRTAB-NAME INTO TEXTTAB LANGUAGE
                              'E'.
                                 IF SY-SUBRC = 0 AND DOWNLOAD = 'X'.
                                     PERFORM DOWNLOAD_TEXTPOOL USING
                                     TRTAB-NAME.
                                 ENDIF.
                                     LOOP AT TEXTTAB.
                                         WRITE:/
                                         TEXTTAB-ID,
                                         TEXTTAB-KEY,
                                         TEXTTAB-ENTRY.
                                     ENDLOOP.
                         ENDIF.
         ENDLOOP.
    ENDFORM.
                                                    FORM PROCESS_fgroup
    FORM PROCESS_FGROUP.
         LOOP AT TRFTAB.
                         READ REPORT TRFTAB-NAME INTO ABAPTAB.
                         IF DOWNLOAD = 'X'.
                             PERFORM DOWNLOAD_PROGRAMS USING TRFTAB-NAME.
                         ELSE.
                             PERFORM LIST_PROGRAMS         USING TRFTAB-NAME
                         ENDIF.
                         IF pa_TEXTP = 'X'.
                             READ TEXTPOOL TRFTAB-NAME INTO TEXTTAB LANGUAGE
                             'E'.
                                 IF SY-SUBRC = 0 AND DOWNLOAD = 'X'.
                                      PERFORM DOWNLOAD_TEXTPOOL USING
                                      TRFTAB-NAME.
                                      LOOP AT TEXTTAB.
                                               WRITE:/
                                               TEXTTAB-ID,
                                               TEXTTAB-KEY,
                                               TEXTTAB-ENTRY.
                                      ENDLOOP.
                                 ENDIF.
                         ENDIF.
         ENDLOOP.
    ENDFORM.
    *&                                       Form DOWNLOAD_PROGRAMS
    FORM DOWNLOAD_PROGRAMS USING NAME.
         W_TEXT = 'Downloading'.
         W_TEXT+15(8) = NAME.
         CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
              EXPORTING
                    TEXT = W_TEXT
              EXCEPTIONS
                    OTHERS = 1.
         clear w_filename.
         MOVE DOWNDIR TO W_FILENAME(80).
        MOVE NAME TO W_FILENAME+20(8).
        MOVE '.txt' TO W_FILENAME+28(4).
        CONDENSE W_FILENAME NO-GAPS.
         concatenate w_filename name '.doc' into w_filename.
         condense w_filename no-gaps.
         CALL FUNCTION 'WS_DOWNLOAD'
              EXPORTING
                   FILENAME = W_FILENAME
                   FILETYPE = 'ASC'
              TABLES
                   DATA_TAB = ABAPTAB
              EXCEPTIONS
                   FILE_OPEN_ERROR = 1
                   FILE_WRITE_ERROR = 2
                   INVALID_FILESIZE = 3
                   INVALID_TABLE_WIDTH = 4
                   INVALID_TYPE = 5
                   NO_BATCH = 6
                   UNKNOWN_ERROR = 7
                   OTHERS = 8.
    ENDFORM.   " DOWNLOAD_PROGRAMS
    *&                                         Form LIST_PROGRAMS
    FORM LIST_PROGRAMS         USING NAME.
         LOOP AT ABAPTAB.
                         WRITE:/ NAME, ABAPTAB-LINE.
         ENDLOOP.
    ENDFORM.     " LIST_PROGRAMS
    *&                                       Form DOWNLOAD_TEXTPOOL
    FORM DOWNLOAD_TEXTPOOL                 USING NAME.
         W_TEXT = 'Textpool...'.
         W_TEXT+15(8) = NAME.
         CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
                EXPORTING
                        TEXT = W_TEXT
                EXCEPTIONS
                        OTHERS = 1.
         MOVE DOWNDIR TO W_FILENAME(80).
         MOVE TRTAB-NAME TO W_FILENAME+20(8).
         MOVE '.tpl' TO W_FILENAME+28(4).
         CONDENSE W_FILENAME NO-GAPS.
         CALL FUNCTION 'WS_DOWNLOAD'
              EXPORTING
                   FILENAME = W_FILENAME
                   FILETYPE = 'ASC'
              TABLES
                   DATA_TAB = TEXTTAB
              EXCEPTIONS
                   FILE_OPEN_ERROR = 1
                   FILE_WRITE_ERROR = 2
                   INVALID_FILESIZE = 3
                   INVALID_TABLE_WIDTH = 4
                   INVALID_TYPE = 5
                   NO_BATCH = 6
                   UNKNOWN_ERROR = 7
                    OTHERS = 8.
    ENDFORM.             " DOWNLOAD_TEXTPOOL
    TOP-OF-PAGE.
         IF HEADING = 'X'.
            Place your heading here:
                    call function 'Z_WRITE_HEADER_FOOTER'
                            exporting
                              type = 'H'
                            exceptions
                              others = 1.
            skip 1.
         ENDIF.
    Regards
    Nilesh

  • How to download data into a text file format ?

    Hi, all.
    My situation now is: I have a report pogram which can retrieve data from database, and I would like to export or download those data to outside as a text file (.txt) in my local computer.
    So, does anyone know how to do it? i mean my report coding should add on or enhance with what coding in order to do like that.
    Thanks in advance.

    Hi,
    Use GUI_DOWNLOAD Function module.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
      BIN_FILESIZE                  =
        filename                      = 'FILEPATH'* 
    FILETYPE                      = 'ASC'
      APPEND                        = ' '
       WRITE_FIELD_SEPARATOR         = 'X'  (Field separator )
      HEADER                        = '00'
      TRUNC_TRAILING_BLANKS         = ' '
      WRITE_LF                      = 'X'
      COL_SELECT                    = ' '
      COL_SELECT_MASK               = ' '
      DAT_MODE                      = ' '
      CONFIRM_OVERWRITE             = ' '
      NO_AUTH_CHECK                 = ' '
      CODEPAGE                      = ' '
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
      WRITE_BOM                     = ' '
    IMPORTING
      FILELENGTH                    =
      tables
        data_tab                      = t_customer ( give internal tablename )
    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.                                 " IF SY-SUBRC

Maybe you are looking for