Calling SAP REPORT

Hi,
I want to call SAP report from external system. How can we do that, do we ave an RFC/BAPI which submits any report and gives back results?
Regards
Munish Garg

>
MunishGarg wrote:
> Output will in a table which will have only one field of type string or char256.
This will limit the FM to the reports that are capable of returning such output (e.g. ABAP lists). If, for example, a report has an ALV output then I seriously doubt this would work.
You were asking previously for essentially a universal function, which could run any report. It's not difficult to find an FM that would start a report, but data return from the report - that's where I see a challenge.
If you're willing to limit such FM to certain types of reports then it will probably be easier/faster to create your own FM anyway. Since there is a lot riding on an assumption, I'd want more control over the program and SAP might change their FMs at any time.

Similar Messages

  • CALL a report from WDA using SUBMIT to sap-spool

    Hi,
    I need to call a report from one of the methods of a WDA application.
    The out of this report is a sapscript. I want show it in WDA (PDF).
    The report is called when a user clicks EXECUTE button.
    The piece of the code is:
      call function 'GET_PRINT_PARAMETERS'
        exporting
          immediately            = 'X'
          new_list_id            = 'X'
          no_dialog              = 'X'
          receiver               = sy-uname
          release                = 'X'
          sap_cover_page         = 'X'
        importing
          out_archive_parameters = t_arcpar
          out_parameters         = t_pripar
          valid                  = i_valid
        exceptions
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          others                 = 4.
          submit hbrcced0
                          with pnppernr-low eq i_pernr
                          with pnpbukrs-low eq t_p0001-bukrs
                          with pnpbegda     eq i_begda
                          with pnpendda     eq i_endda
                          with p_expot      eq ''
                          with ano          eq v_gjahr
                          with respcc       eq v_sachn
                         to sap-spool
                         spool   parameters t_pripar
                         archive parameters t_arcpar
                         without spool dynpro
                         and return.
        if sy-calld eq ''.
          message 'err' type 'E'.
        else.
    If i execute this code in WDA, the sy-calld never is equal 'X'.
    But if i execute it in program (SE38) the sy-calld is 'X'.
    How i can call the program 'hbrcced0' in WDA ?
    Cheers,
    Silvio Galery

    Hi Silvio,
    a submit REPORT to spool does work from WDA.
    ONLY when "and return" is used.
    You have that, so it should work.
    Note you had print immediate on, so it will be output on printer,
    and not available to read after the call.
    (which option was the keep after print?, I would have to check docu)
    The sy-calld will be set to X  inside the REPORT when it is running.
    After the submit has run back inside WDA it is of course reset to space again.
    Cheers
    Phil.

  • CALL WEBI Report from SAP Portal

    Hi Experts,
    I need to call WEBI report from SAP Portal, is it possible?
    The submitted report will be opened in the same window?
    Kind Regads.

    Hi
    You can call SAP portal from WebI Report...
    insert blank cell in the report / or select the cell whaere do you want to in the report
    and then Right click and select hyper link.
    Enter the portal address
    It will be opened in the same or new window based on your settings.
    Target Window : New Window ..then it will open new window.

  • Call  an internal SAP report

    Hello everyone, I would help you if you can :).
    I have an add-ons that adds buttons to the "Sale".
    Now I would like to add a button to create a PDF invoice.
    I  have  call  an internal SAP report , with code 'INV20001' in table [RDOC]
    Who can help me?
    Thanks to all for the info that you give me.
    PS sorry for my bad English
    Edited by: Ste Righetti on Mar 6, 2012 9:52 AM

    Hi,
    Ask our friends at the [Reports Forum|http://forums.oracle.com/forums/forum.jspa?forumID=84]
    You might want to fix your keyboard first, because too much caps, exclamation marks and question marks make the chance some expert will respond much smaller.

  • Call SAP transaction out of a Crystal Report

    Hi there,
    is there a possibility to call a SAP transaction and maybe even pass a parameter (like e.g. project number) out of a Crystal Report?
    Are there any SSO scenarios?
    Thanks in advance
    With kind regards
    Sebastian

    Hi Sebastian Wörner,
    Could you please expand what exactly you are looking for ?
    Calling SAP transaction out of Crystal Report?
    Thanks,
    Sastry

  • Open an HTML file from a SAP Report

    Hi all!
    I would like to open an HTML file, that`s in a local directory of my PC, from a SAP Report.
    It is an alv list, where I have added a pushbotton. And I would like to code the utility of open a local html file, when someone push it.
    Anybody knows if it is possible?
    Thx

    Here is some sample code.
    report zrich_0002.
    call method cl_gui_frontend_services=>execute
      EXPORTING
        DOCUMENT               = 'C:test.html'
    *    APPLICATION            =
    *    PARAMETER              =
    *    DEFAULT_DIRECTORY      =
    *    MAXIMIZED              =
    *    MINIMIZED              =
    *    SYNCHRONOUS            =
    *  EXCEPTIONS
    *    CNTL_ERROR             = 1
    *    ERROR_NO_GUI           = 2
    *    BAD_PARAMETER          = 3
    *    FILE_NOT_FOUND         = 4
    *    PATH_NOT_FOUND         = 5
    *    FILE_EXTENSION_UNKNOWN = 6
    *    ERROR_EXECUTE_FAILED   = 7
    *    others                 = 8
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Please remember to award points accordingly and mark this post as solved when you problem is solved.  Thanks.
    Also, Welcome to SDN!!
    Regards,
    Rich Heilman

  • Calling a report from a remote system

    Hello All,
    Any idea on this issue will be of great help.
    The scenario is like this.
    a. There are two SAP systems. SYS1 and SYS2.
    b. SYS2 has ALV reports which need to be executed from SYS1.
    c. I applied the following logic which successfully calls the report in SYS1 but does not show up in the ALV format.
    d. The following is the logic used.
    There is an RFC enabled function module in SYS2 that has the statement SUBMIT EXPORTING.... Within the same FM, the LIST_MEMORY imports the report contents. This FM since it is being called from SYS1, sends back the imported contents from SYS2 to SYS1.
    e. In SYS1, the WRITE_LIST is being used that prints the report.  BUT THIS SHOWS THE OUTPUT in the form of a normal report.
    My question is, how do I show the contents in the ALV format.
    Please note,, the reuse_alv..list..display FM cannot be used as the internal table that is imported in SYS1 has the data in the RAW format.
    Any help??/
    Thanks for your time

    Yes, you can do that using the RFC, but you won't be able to send any parameters thru the selection screen.
    report zrich_0003 no standard page heading.
    data: source type table of  PROGTAB with header line,
          output like listzeile occurs 10 with header line.
    call function 'RFC_ABAP_INSTALL_AND_RUN'
               destination <system_name>
             exporting
               mode                = space
               programname         = <the_program_name>
             tables
                program            = source
                writes             = output.
    loop at output.
      write:/ output.
    endloop.
    Regards,
    Rich Heilman
    Message was edited by: Rich Heilman

  • Calling a Report from Bapi

    Dear  all,
    I am trying to create a customer from external system through bapi. For this is i have to follow these steps.
    1)  I am trying to call a report from external system through bapi.
    2)  I want to pass data from bapi to a bdc program and run it to create a customer.
    3) After creating a customer I need to send the  ceated customer no again to the bapi from where i passed the data to bdc.
    is it possible .
    Give me a good idea on this how to work with it.
    Regards,
    Madhu.

    Hi Madhu,
    SAP has already given standard BAPI to create customer creation "BAPI_CUSTOMER_CREATEFROMDATA". So there is no need for you to create any thing new. Jut test this BAPI first whether this suit your requirement or not. If it satisfy your requirement then call it directly from external system. On how to call this BAPI or other BAPis searc google or SDn you will definetaly find something.
    second approach is if nothing works for you( No BAPI satisfy your requirement) then only go for BDC aapproach. To do that, create a RFC function module( BAPi and RFC FM are diff thing, they looks same  but they are not ). Inside your RFC FM directly write the BDC code to create customer.
    Regards
    Anurag

  • Calling a Report program in Web Dynpro methods

    Hi,
         Can any one suggest how i can call a Report created in SE38 in Webdynpro?. I tried to call it using Submit statement. But its throwing some error.

    Hi,
    Please refer these  links -
    https://forums.sdn.sap.com/click.jspa?searchID=29253250&messageID=7731540
    report list output on a webdynpro view
    Please paste the error or check it in ST22.
    Regards,
    Lekha.

  • Can we call a report program or schemas in  Routine [dynamic action] ???

    Dear SAP Crew,
    In dynamic action, we can call routines through indicatiors.
    In that routine, Can we call a report program or schemas???
    Kindly clarify with some scenario.
    Thks & Rgds
    Krish Sathya

    Hi Krish,
    In the routine you should be able to SUBMIT the program/report you need to execute.
    Cheers,
    Aditya

  • Calling SAP script program in BAPI and want to display in html format

    Dear All,
    I am writing bapi and calling sap script program in it.
    I want output in html format pl suggest me
    same coding is working for report giving error in sapscript only.
    types: begin of tt_html,
                 html type w3html,
           end of tt_html.
    data: list_tab type standard table of abaplist.
    SELTAB-SELNAME = 'S_INVNO'.
    SELTAB-KIND = 'S'.
    SELTAB-SIGN = 'I'.
    SELTAB-OPTION = 'EQ'.
    SELTAB-LOW =  INVOICE_NUM1.
    SELTAB-HIGH = INVOICE_NUM2.
    APPEND SELTAB.
    submit ZSDRDINVPNBRPT with selection-table seltab
    exporting list to memory and return.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = MTAB_REPORT_LIST
      EXCEPTIONS
        not_found  = 1
        OTHERS     = 2.
        CALL FUNCTION 'WRITE_LIST'
         EXPORTING
           WRITE_ONLY       = 'X'
          TABLES
            listobject       = MTAB_REPORT_LIST
         EXCEPTIONS
           EMPTY_LIST       = 1
           OTHERS           = 2.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    CALL FUNCTION 'WWW_LIST_TO_HTML'
           TABLES
                HTML   = MTAB_REPORT_HTML
           EXCEPTIONS
                OTHERS = 1.
    LOOP AT MTAB_REPORT_HTML.
    ENDLOOP.

    For displaying output in html format,
    u can either use BSP ( Business Server Pages)
    or Webdynpro.
    Reward if helpful.

  • Looking for Standard SAP report

    Hello forum,
    Can some one tell me if there is a standard SAP report that would compare or can be used to compare a delivery order with a sales order and show the changes made in terms of quantity? I am looking for the report name
    Thanks in advance,
    K

    Hello,
    Can some one tell me if there is a standard SAP report that would compare or can be
    used to compare a delivery order with a sales order and show the changes made in
    terms of quantity? I am looking for the report name
    I think your requirement can't be met with standard functionality. The best way to for mapping this requirement would be to create a Custom Report involving two below things.
    Use the program which is called when we access Sales Order --> Environment --> Changes.
    Use the table for delivery item level LIPS for Quantity comparision.
    Kindly try out this approach and let us know if any further issues comes into picture.
    Regards,
    Sarthak

  • Call BW Report in BSP

    Hi,
    How to pass variable values to a BW report from BSP and hence call the report with these values withing the BSP.
    I have a BW report, for which I want to change the initial variable screen.
    Thanks,
    CD

    Look at below link. It might help you.
    [Integrate BW Queries Within BSP|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/web-application-server/g-i/how%20to%20integrate%20bw%20queries%20within%20bsp.article]
    Raja

  • How to call standard report with in zprogram?

    Hi Sap experts,
    How to call standard report with in zprogram.
    For example if country is 'US' then call Zprogram(zprog_US).Inside zprogram call standard report(rhecm_change_proc_status).If country is 'CA' then call zprogram.Inside zprogram call standard report.For same othercountres like 'PR','GB','ES'.Actually HR_ECM_READ_FEATURE_CARGP will having the input as employee id and will return the CAREA(County like 'US','PR'......).Kindly help me what is the procedure?
    Regards,
    Sujan

    >
    sujan T wrote:
    > Thanks for your reply.
    >
    >    What is the logic to call the standard report from zprogram?Inside the zpogram how to call standard report?
    >
    > Regards,
    > Sujan
    no special logic is required
    If u want to use
    RPUAUDOO IN THE ZREPORT.
    Put the submit button where ever required
    ex: In zreport after certain process reacedu want to call then use
    submit rpuaudoo and return.
    Regards
    Sas

  • Calling Crystal report

    Dear All
    Can you please assists me with code to call Crystal reports in Abap program.
    Thank you in advance
    William

    hi,
    please see :
    http://help.sap.com/saphelp_nw04s/helpdata/en/e3/156e3fefa13042e10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/004aacbb-4983-2b10-8da7-cdff5dcbb948
    it will help you
    regards
    rahul

Maybe you are looking for

  • Hpvpldrv09

    HI, I have a problem which seems to be unknown here. After installing a Officejet 8600 pro on an XP Pro SP3 maschine it is not possible to print or even look at the printer settings from other software. OO 3.3 crashes when printing and the document n

  • Saving source code

    Hi Experts, is there any possibility to save the source code with 1 step? (E.g. main program in one file, includes in another file(s), etc...) So I would like to save the main program and every subroutines that belongs to it into one or different TXT

  • Non-Ascii charaters

    Does acrobat.com supports non-ascii characters in file names? Please have a look on screen shots. Regards Bartek

  • Nothing happens when I print.

    Nothing happens when I try to print if I'm using Photoshop, or Acrobat. Sometimes nothing happens in InDesign, but it worked fine with illustrator. I haven't had any printing problems with other non-adobe applications. Also Photoshop can find my scan

  • Selected a clip and it says no clip selected...so I can't edit?

    I am editing a movie and I selected a clip and it keeps saying no clip selected...so now I can edit the clip....help!!!!