How to filiter in abap report

Hi Frds
I have created abap report ,in selection screen Project,year,period and Company code is given.Now the end user asking me to restrict the output of the report based on company code which we giving in selection screen..
For Example:
User1          150 (Company code)
User2          160 (Company code)
User3          170 (Company code)
User4          180 (Company code)
the user1 should able run only 150 company code report outputs only,if he gives company code other then 150 ,the error message should raise .Like this for all user .
The user must run only his company code related projects.
Thanks
By
Pari

hi,
how do you identify different users,
if you can identify the users..
you can sort and group the table by company code.
Then based on the condition you can pass the data to the alv
Any way fieldcatalog is same for all the structure.
It is just the structure you pass is the different.
So group the table.
Append the data of that particular company code to different and merge that with field catalog..
This is a rough solution what i have in mind.
Hope this might help you..
Thank you.

Similar Messages

  • How to call  an abap report in BSP..

    hi all,
    Please can anybody tell me how to call an abap report in BSP application.....since I am new to BSP....
    with regards,
    Santosh

    check this thread
    Urgent!!  How to call a custom transaction or an ABAP program in BSP?

  • How to shedule an abap report to run paralely in more background session

    I wander how to shedule an abap report to run paralely in more background session.
    I am afraid of parallel locking.

    Hi,
    You can schedule different jobs with same program name.
    Use ENQUEUE_ & DEQUEUE_ to lock/unlock the records being process. The lock objects can be created in SE11.
    Best regards,
    Prashant

  • How to create a ABAP report off of SRM box for live data?

    How to create a ABAP report off of SRM box for live data?
    Thanks in advance.
    York.

    you can try infoset query:
    STEP - A:
    1. Go to T Code RSQ02 and give the InfoSet name & select CREATE.
    2. Provide the Name(Description) and Data Source i.e. for eg here i take "DIRECT READ OF TABLE" = /BIC/AODS100. Then CONTINUE.
    3. Select what to Include in the 3 options available with the POPUP, here "INCLUDE ALL TABLE FIELDS". Then Check the fields and click GENERATE(one RED and WHITE round icon).
    4. Now provide the PACKAGE for the INFOSET. Come Back(F3).
    STEP - B: optional(If u want to create a new user group)
    1. Select ENVIRONMENT -> USER GROUPS. Provide the User Group name and CREATE.
    2. Provide Description and SAVE.
    3. Provide PACKAGE and SAVE. Come Back (F3) to the Initial Screen.
    4. Click Role/User Group Assignment. Select Newly Created User Group or an existing one. Then SAVE (CTRL + S). F3.
    STEP - C:
    1. Select ENVIRONMENT -> Queries. Provide the query name and CREATE.
    2. Select the INFOSET u have created and assigned the user group.
    3. Provide the Title and Select BASIC LIST. There you have to select (check) the fields you want to display, SAVE and then TEST. It will ask for Variant, just CONTINUE.

  • How to find existed abap reports?

    how to find existed abap reports?

    Hi abapdoubts,
    on wich time do you want to find?
    In runtime? Than sy-repid.
    on dialog?  take F1 with further Infoemation.
    On the GUI on the riht_button corner, there are somw Information too.
    regards, Dieter

  • How to port a ABAP report into ITS? Please help!

    Hi Experts,
              I have a ABAP report that contains a selection screen with 3 select-option elements and a search button. On pressing search button an ALV grid opens with data from a SAP table based on selection screen criteria.
    I want to web enable it so that it can be accessed from Enterprise Portal. i will be using IAC iview in Portal.
    Now the IAC iview needs my ABAP report to be ported to ITS?
    1.How to port it to ITS? What are the steps?
    2.In order to port in to ITS do I need to change my ABAP code?
    3.Are there any known limitations of porting ABAP reports in ITS? For example Performance, ALV not supported, Table control not supported etc.
    4. Does it handle dynamic programming?
    5. Are there any documentation for porting report to ITS?
    6. How much time effort it will be for porting ABAP reportys to ITS?
    To add some more points. SAP transaction iview is not allowed in my organization. Webdynpro/BSP is also not supported. Thats why I am using IAC iview which needs ITS.
    Please help
    Thanks
    Gopal
    Message was edited by: gopalkrishna baliga

    hi,
      step1.create a transaction for ABAPreport in SE93.
      step2.Go to transaction SICF and create a service in the following path sap/bc/gui/sap/its.
    Check the following Url to create a service.
    /people/durairaj.athavanraja/blog/2005/08/21/running-your-first-its-webgui-application-in-sap-netweaver-04-abap-edition--nsp
      step3. create a system object setting the following property categories.
       1.Connector
       2.Usermanagement
       3.ITS
       4.WAS
    In the usermanagement do the user mapping.
    step4. While creating  an IAC iview, in the third step for the <b>Internet Application Component (IAC)</b> property give the service name you have created in SICF.
    you need not change the abap code. The only limitation while porting abap report in ITS is you cannot view the icons in the tool bar, instead you view the buttons.
    ALV is supported. Functionality wise nothing will change except the appearance mainly with the icons.
    Regards,
    Gopi

  • How to Call general ABAP Report in WDA?

    Hi All,
    Is it possible to run our general ABAP report in our WDA.
    If yes how can i move....
    Thanks & regards,
    Ravi

    David Pietroniro wrote:
    > Hello,
    >
    > You can call your report using the SUBMIT command to call it like a job. Follow an example on how to do this (from ABAP Help).
    > But this is only usefull if this report only process data and don't show data on screen, because this data can´t be showed in the web dynpro via write commands like described in the threads before.
    >
    > Regards.
    Actually with a few changes you are close to a solution here.  There is way to get the output of the report and convert it to HTML.  You will need to have a little wrapper application around your report. You will have to run this wrapper as a background job or via RFC (pointing to destination NONE). Here is a sample:
    * SELECTION SCREEN LAYOUT                                              *
    selection-screen begin of block two with frame title text-002.
    parameter: prog like sy-repid.
    parameter: vari1 like raldb-variant.
    selection-screen end of block two.
    .....Other Processing....
    submit (prog) and return
               exporting list to memory
               using selection-set vari1.
      call function 'LIST_FROM_MEMORY'
           tables
                listobject = itab
           exceptions
                not_found  = 1.
      if sy-subrc ne 0.
        leave program.
      endif.
      call function 'WWW_HTML_FROM_LISTOBJECT'
       exporting
    *    REPORT_NAME         =
         template_name       = 'WEBREPORTING_REPORT'
        tables
          html                = html_tab
          listobject          = itab.
    Once the data is converted into HTML it is more usable from WD.  You can't really display it directly within WD, but you could push it out as a file attachment from WD using cl_wd_runtime_services=>attach_file_to_response.
    This is a lot of work and I still think it might be easier to fire a linkToURL or Exit Plug and navigate to the ITS/WebGUI.

  • How to call a abap report in BSP

    hi all,
    Please can anybody tell me how to call abap report in BSP..
    with regards,
    Santosh.

    Also see below BSP tutorial
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/101c3a1cf1c54be10000000a114084/content.htm
    Regards.

  • How to schedule an abap report program to run every day, weekend etc..

    Hi,
    I want to schedule an abap report program to run every day, week, fortnight or month and the output to be redirected to the printer. How to achieve this ?
    thanks

    Hi,
    go to t.code sm36 there give the name of the program which u want to eecute in background if u want u can give periodic that depends upon ur requirement from there in sm37 u can check the stauts and directly print from there
    hope i am clear to u
    plzz reward if it is useful...

  • How to Develop the ABAP Reports in Business One

    HI all;
    am New to SAP Business One,
    How to Develop the Z Reports in Business One ? like Normal ALV Reports and other??
    Can we have the ABAP Editor and Other Transaction in Business One.
    -Ravi

    Hi Sharma,
    Thanks for Your Replay,
    This is what my requirement !.
    Hi Experts,
    Here we are integrating SAP Business One with 3rd Party tool. !!
    We need to Develop Customize Report in Business one and These Reports Out Put Will Convert into XML Files (Third Party System Can Understand Only XML files) and stored in Application Server/ Presentation Server.
    How to Develop the u2018Z/Yu2019 Reports in Business one ? Can we use SE38 (R/3 ABAP Editor and other T-codes) in Business One.? Or  is there any tools to develop the Business One Reports ?  How to Convert the Report out put into XML File?
    Thanks,
    Upender.

  • How to dispaly the ABAP reports in SUS

    Hi Experts,
    Please tell me the detailed steps to dispaly the ABAP reports developed in SRM in SUS.
    Please elt me know the entiire steps.
    Thanks in Advance,
    Manu

    Hi Sharma,
    Thanks for Your Replay,
    This is what my requirement !.
    Hi Experts,
    Here we are integrating SAP Business One with 3rd Party tool. !!
    We need to Develop Customize Report in Business one and These Reports Out Put Will Convert into XML Files (Third Party System Can Understand Only XML files) and stored in Application Server/ Presentation Server.
    How to Develop the u2018Z/Yu2019 Reports in Business one ? Can we use SE38 (R/3 ABAP Editor and other T-codes) in Business One.? Or  is there any tools to develop the Business One Reports ?  How to Convert the Report out put into XML File?
    Thanks,
    Upender.

  • How to send an abap report to an HTML file?

    hello this a two part question and This is the first question and I will post the next question after I am done with this.
    So here goes.
    My question is how do I send/download an abap report and convert it to an HTML file?
    Thanks guys take care!

    Hi Chand,
    This code will help.
    Generate an HTML file from a Report in ABAP  
    data: begin of itab occurs 0,
          matnr type mara-matnr,
          mtart type mara-mtart,
          matkl type mara-matkl,
          groes type mara-groes,
          end of itab.
    data: ifields type table of w3fields with header line.
    data: ihtml   type table of w3html   with header line.
    select * into corresponding fields of table itab
              from mara up to 100 rows.
    call function 'WWW_ITAB_TO_HTML'
    EXPORTING
    *   TABLE_ATTRIBUTES       = 'BORDER=1'
    *   TABLE_HEADER           =
        ALL_FIELDS             = 'X'
      tables
        html                   = ihtml
        fields                 = ifields
    *   ROW_HEADER             =
        itable                 = itab
    check sy-subrc = 0.
    call function 'GUI_DOWNLOAD'
         exporting          filename = 'c:test.html'
         tables          data_tab = ihtml

  • How to send an ABAP report to Microsoft Outlook

    Hi All.
    May you please help me out on this one, i am trying to send an ABAP report to Microsoft Outlook? I am not even sure where to start so please help me out i know you can help me...
    Kind Regards,
    Fred.

    Hi,
    Here is the example program
    *& Report  ZSENDEMAIL                                                  *
    *& Example of sending external email via SAPCONNECT                    *
    REPORT  zsendemail                    .
    PARAMETERS: psubject(40) type c default  'Hello',
                p_email(40)   type c default '[email protected]' .
    data:   it_packing_list like sopcklsti1 occurs 0 with header line,
            it_contents like solisti1 occurs 0 with header line,
            it_receivers like somlreci1 occurs 0 with header line,
            it_attachment like solisti1 occurs 0 with header line,
            gd_cnt type i,
            gd_sent_all(1) type c,
            gd_doc_data like sodocchgi1,
            gd_error type sy-subrc.
    data:   it_message type standard table of SOLISTI1 initial size 0
                    with header line.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    Perform populate_message_table.
    *Send email message, although is not sent from SAP until mail send
    *program has been executed(rsconn01)
    PERFORM send_email_message.
    *Instructs mail send program for SAPCONNECT to send email(rsconn01)
    perform initiate_mail_execute_program.
    *&      Form  POPULATE_MESSAGE_TABLE
          Adds text to email text table
    form populate_message_table.
      Append 'Email line 1' to it_message.
      Append 'Email line 2' to it_message.
      Append 'Email line 3' to it_message.
      Append 'Email line 4' to it_message.
    endform.                    " POPULATE_MESSAGE_TABLE
    *&      Form  SEND_EMAIL_MESSAGE
          Send email message
    form send_email_message.
    Fill the document data.
      gd_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      gd_doc_data-obj_langu = sy-langu.
      gd_doc_data-obj_name  = 'SAPRPT'.
      gd_doc_data-obj_descr = psubject.
      gd_doc_data-sensitivty = 'F'.
    Describe the body of the message
      clear it_packing_list.
      refresh it_packing_list.
      it_packing_list-transf_bin = space.
      it_packing_list-head_start = 1.
      it_packing_list-head_num = 0.
      it_packing_list-body_start = 1.
      describe table it_message lines it_packing_list-body_num.
      it_packing_list-doc_type = 'RAW'.
      append it_packing_list.
    Add the recipients email address
      clear it_receivers.
      refresh it_receivers.
      it_receivers-receiver = p_email.
      it_receivers-rec_type = 'U'.
      it_receivers-com_type = 'INT'.
      it_receivers-notif_del = 'X'.
      it_receivers-notif_ndel = 'X'.
      append it_receivers.
    Call the FM to post the message to SAPMAIL
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           exporting
                document_data              = gd_doc_data
                put_in_outbox              = 'X'
           importing
                sent_to_all                = gd_sent_all
           tables
                packing_list               = it_packing_list
                contents_txt               = it_message
                receivers                  = it_receivers
           exceptions
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                others                     = 8.
    Store function module return code
      gd_error = sy-subrc.
    Get it_receivers return code
      loop at it_receivers.
      endloop.
    endform.                    " SEND_EMAIL_MESSAGE
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          Instructs mail send program for SAPCONNECT to send email.
    form initiate_mail_execute_program.
      wait up to 2 seconds.
      if gd_error eq 0.
          submit rsconn01 with mode = 'INT'
                        with output = 'X'
                        and return.
      endif.
    endform.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    Regards
    Sudheer

  • 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

  • Need details on how to make custom ABAP report archive enabled

    Hi All,
    We are working in our project to make custom reports as archive enabled so that they can read archived data.
    Need some information on the below queries.
    1.Is there any function module to read selected data from archive file? For example i don't want to read the whole BKPF table data from archive file instead want to get belnr and bukrs only.
    2. What are the perfromance measure which can be taken while making an existing program archive enabled
    3. Important archiving tables which can help for the above.
    4. When i use the function module "Archive_open_for_read' then system displays a pop up to select the archive files based on the archive object.
    Considering that all the reports are run in background how do i make sure that in background run all the archive files are selected and processed.
    Thanks in advance for your valuable suggestions...
    Regards/Ajay

    Hi Ajay,
    1.  You have to create a separate field catelogus and AIS according to your requirement with the required fields you want . Because the standard structures and field catelogues contains many fields from all tables. So before doing the read operation you have to deactivate the standard AIS and activate your newly created AIS .
    2. Can you give some more details for this question to be answered.
    3. The important archiving tables used are ARCH_IDX,ARCH_RPRG,ARCH_DEF.
    4. While scheduling the Read process in batch mode , it will give you three criterias to be entered.
         . Spool Parameters
         (ii). Start date
         (iii). Archive selection of files.
        Unless you enter values for any one of these options , You cannot execute the batch job.
    Hope this would help you.
    Regards - Swarna.

Maybe you are looking for

  • Photoshop CS4 and Power PC G5

    I need Photoshop CS4 to open raw files from a Canon 7D. Adobe tells me I will have to buy from a reseller. That is fine but I have two questions (1) Will CS4 run on Power PC G5-non Intel processor? (2) Can I assume reseller version of CS4 Photoshop w

  • My wireless network is no longer working

    I had a wireless network created through my iMac. I unstalled a secuirty update as prompted by the computer and now the airport/network preferences are not locating the network. help please!

  • P2 Transfer Idles on select clips - P2 transfer issues in 5.1.4

    Hi this is my first HD/p2 project. I'm having an issue where some clips are idling out when i try to tranfer them to .movs. What's weird to me is that the first day of the shoot, all P2 transfers to .movs went fine. then on the second day for some re

  • Sending multi records as response from DB adapter

    Hi all, Thanks in advance. Using DB adapter how to send multiple records as a response. for ex. i am querying by the deptno 10, i will get 4 records i want to send these 4 records as response. thanx pudur

  • JNI Callback from remote process

    I have an application that calls back from C to Java in multiple situations. In some, I have been successful using the technique of calling AttachCurrentThread as described, for example, in various places, e.g., http://java.sun.com/developer/onlineTr