Call standard report

Dear All,
I have requiriment  for standard report  MMBE (stock related data)  .How to call standard report in
web dynpro using  abap.
Regards,
s.Ramakrishna.

Hi Ramakrishna,
We usually use SUBMIT statement to call a report.
For example,
SUBMIT ztest WITH par1 = lv_par1 AND RETURN.
Here par1 is the parameter of the report. If there are no parameters, we can simply use
SUBMIT ztest  AND RETURN.
Regards,
Manogna

Similar Messages

  • 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 standard report to my custom report

    Hi ALL,
    i need to call a standard report into my custom report
    for example :
    i am having a report with all PR related data
    now i am having nearly 20000 purchase requisitons and there related data .
    now i will get all the Source of supply for each PR
    using bapi BAPI_SOURCEDETERMINE_GETSOS.
    now i am having all the PR's and source of supply
    then i need to assign source of supply .
    using the standard report RM06BZ00.
    then how to call this report and assign source of supply .
    Will be there any performance considerations for calling this report in a loop (20000)
    and how to catch the result
    if source of supply  was assigned ok
    if not how.
    Thanks in advance .
    siva

    Hi Prabhu,
    Use the Submit Statement for calling the standard report u can use the options available with the submit statement for passing any parameters ,
    for reference u can refer following code....
    MOVE: 'S_LIFNR' TO seltab_wa-selname,
            'S'      TO seltab_wa-kind,      " SELECT-OPTION
            'I'      TO seltab_wa-sign,
            'EQ'     TO seltab_wa-option,
            ct1_key-lifnr TO seltab_wa-low.
      APPEND seltab_wa TO seltab.
      CLEAR seltab_wa.
      MOVE: 'S_DOCNO' TO seltab_wa-selname,
            'S'      TO seltab_wa-kind,      " SELECT-OPTION
            'I'      TO seltab_wa-sign,
            'EQ'     TO seltab_wa-option,
            ct1_key-docno TO seltab_wa-low.
      APPEND seltab_wa TO seltab.
      CLEAR seltab_wa.
      MOVE: 'S_DOCTYP' TO seltab_wa-selname,
            'S'      TO seltab_wa-kind,      " SELECT-OPTION
            'I'      TO seltab_wa-sign,
            'EQ'     TO seltab_wa-option,
            ct1_key-doctyp TO seltab_wa-low.
      APPEND seltab_wa TO seltab.
      CLEAR seltab_wa.
      MOVE: 'P_CT1' TO seltab_wa-selname,
            'P'      TO seltab_wa-kind,      " SELECT-OPTION
            'I'      TO seltab_wa-sign,
            'EQ'     TO seltab_wa-option,
            'X' TO seltab_wa-low.
      APPEND seltab_wa TO seltab.
      CLEAR seltab_wa.
      SUBMIT zexc_ct1_prg
       via selection-screen
          WITH  SELECTION-TABLE seltab.

  • Calling standard Report from a zprogram

    Hi Experts,
    We want to call ME5J transaction code from a zprogram using Submit statement.
    We used following code to call the report
    SUBMIT RM06BKPS WITH TCNT-PROF_DB EQ '000000000001' WITH CN_PROJN IN PROJECT  EXPORTING LIST TO MEMORY AND RETURN.
    After using this statement we are getting output of the report. We don't need to display the result. We want to fetch data from above report using
    CALL FUNCTION 'LIST_FROM_MEMORY'.
    How to hide output display of ME5J?
    Regards,
    Sibin

    Hello,
    you can use the class cl_salv_bs_runtime_info=>get_data_ref to get the standard report output without displaying the ALV grid.
    Check the Blog by glen simpson.
    http://scn.sap.com/community/abap/blog/2011/07/07/gain-programmatic-access-to-data-of-sapgui-alv-reports
    you would get the result in a type table declared and then do the Processing as per the requirement.
    Sample code for same.
    *& Report  ZCALL_STANDARD*&*&---------------------------------------------------------------------**&*&*&---------------------------------------------------------------------*
    REPORT zcall_standard.
    TABLES : cdhdr.
    PARAMETERS : udate TYPE sy-datlo DEFAULT sy-datlo OBLIGATORY,
                 udate_to TYPE sy-datlo DEFAULT sy-datlo OBLIGATORY,
                 utime_fr TYPE sy-timlo DEFAULT sy-timlo OBLIGATORY,
                 utime_to TYPE sy-timlo DEFAULT sy-timlo OBLIGATORY.SELECT-OPTIONS : user FOR cdhdr-username.
    FIELD-SYMBOLS <lt_data>             TYPE ANY TABLE.DATA:          lr_data               TYPE REF TO data,
           ls_metadata TYPE cl_salv_bs_runtime_info=>s_type_metadata.DATA          lr_data_descr          TYPE REF TO cl_abap_datadescr.
    DATA: r_alv_table         TYPE REF TO cl_salv_table,
          r_func              TYPE REF TO cl_salv_functions.DATA: r_display           TYPE REF TO cl_salv_display_settings.
    DATA: r_columns           TYPE REF TO cl_salv_columns.DATA: r_column            TYPE REF TO cl_salv_column.
    DATA: lr_events           TYPE REF TO cl_salv_events_table,
          lr_functions_list   TYPE REF TO cl_salv_functions_list.
    cl_salv_bs_runtime_info=>set(
             EXPORTING display  = abap_false
                       metadata = abap_true
                       data     = abap_true ).
    SUBMIT rsvtprot  WITH cusobj = 'V_T001B'
             WITH dbeg = udate*                 WITH tbeg = utime_fr
             WITH dend = udate_to*                 WITH tend = utime_to
             WITH users = user[]
             WITH alv_grid = 'X' AND RETURN.
    TRY.
        cl_salv_bs_runtime_info=>get_data_ref(
             IMPORTING r_data_descr      = lr_data_descr ).
        CREATE DATA lr_data           TYPE HANDLE lr_data_descr.
        ASSIGN lr_data->*           TO <lt_data>.
        cl_salv_bs_runtime_info=>get_data(
          IMPORTING
            t_data      = <lt_data>
    *            TRY.
        CALL METHOD cl_salv_bs_runtime_info=>get_metadata
          RECEIVING
            value = ls_metadata.*             CATCH cx_salv_bs_sc_runtime_info .*            ENDTRY.
      CATCH cx_salv_bs_sc_runtime_info.
        MESSAGE `Unable to retrieve ALV data` TYPE 'E'.
    ENDTRY.
    cl_salv_bs_runtime_info=>clear_all( ).
    CALL METHOD cl_salv_table=>factory
      IMPORTING
        r_salv_table = r_alv_table
      CHANGING
        t_table      = <lt_data>.
    CALL METHOD r_alv_table->get_functions
      RECEIVING
        value = r_func.
    CALL METHOD r_func->set_all
      EXPORTING
        value = abap_true.
    r_display = r_alv_table->get_display_settings( ).
    r_display->set_striped_pattern( cl_salv_display_settings=>true ).
    lr_functions_list = r_alv_table->get_functions( ).
    r_columns = r_alv_table->get_columns( ).
    r_columns->set_optimize( if_salv_c_bool_sap=>true ).
    CALL METHOD r_alv_table->display.

  • Calling standard reports into zreport

    Hello Everybody,
    I got a requirement, regarding asset scheduling.
    The are many standard ALV reports for aSset scheduling,
    Out of which i have to combine two alv output's  into one smartform.
    Is there any solution for the above, where i can call a standard report in my Z program, with out displaying the data, and getting the data into a internal table.
    Regards
    Sunil

    Hi,
    For that first you need to take a zcopy of the both reports and put them together(commenting the ALV part) so that you can pass the required inputs and then collect the internal table so that you can pass it to a smartform.
    Regards
    Karthik D

  • Suppress Messages when calling Standard Report AR02 with SUBMIT report

    Hi there,
    I've seen quite a few posts on this topic, but have not found an answer that works.
    I have created a Fixed Asset FI report which calls SAP Standard report for tcode AR02 (Program ragitt_ALV01) a number of times and uses the data that is passed back.
    The problem is that if run for a previous closed fiscal year, an Info message pops up multiple times, which is annoying. I would like to get rid of this.
    I've already made a copy of the AR02 Program RAGITT_ALV01 to try and stop the message, but as this is based on a logical database, I can't get to the source of the message as in normal report code.
    If tried various options for the SUBMIT keyword, without success.
    Any thoughts, suggestions appreciated.
    Thanks,
    David

    Hi Nabheet
    thanks for reply. I can see the MESSAGE statement alright, by using the debugger to stop at MESSAGE but the problem is that it is deep in SAP standard code, within logical database functionality, so I can't make a copy of code and comment out the line.
    I have also tried to "switch off" the message(AU172) in T100S - without success.
    Thanks,
    David

  • How to call standard report in web dynpro abap.

    Hi All,
       I need the output of one standard report e.g RHXSTR00 on web dynpro abap.
       How can I achieve this?
       Please help!!! Points will be rewarded.
       Thanks in advance!
    Cheers,
    Darshna.

    Hi Darshna,
    The report result is ALV and in most of the cases we generally do not have function modules or any other easy way to get the output.
    In such cases the best approach which we follow is, to run this in background mode and generate the spool and display the ouput in PDF.
    But if intertactive form is not present in your requirement then we need to debug the logic of the report (if no FM or class present) and get the results and display it in the View.
    Best regards,
    Suresh

  • Call Std Report

    Hello Experts,
    I want to fetch PRD Qty matching Std. Report MCP6--GR Qty, can i call standard report MCP6, to get Prd Qty...
    plz suggest.
    Aastha

    hI,
    You can call this program RMCFSERI as a submit and using memory you can use these output into your report.
    Regards,
    Sathvik

  • How to call Report 6i/9i Oracle Standard Report into Discoverer 10g

    How to call Report 6i Standared report into Duscoverer 10g as there is a requirement to create or transfer Oracle Standard report into Discoverer.
    1) Account Analysis Subledger Details(180 Char) - Standard Report 6i as i want the same report in Discoverer 10g.
    2) Aging Report -- 7 bucket --Standard report in 6i,how to transfer in Discoverer 10g.
    Is is possible to Transfer from Report 6i to Discoverer or How to Create this report in Discoverer 10g.
    Please advice,
    Sushant

    Well, if I had to do it, here's how I'd start.
    1. Get the SQL from the Oracle Report and then create a database view that's more generic based on the SQL but still gets the answers.
    For example, you'd not code many conditions, etc. but the database view would be pointing to the correct Oracle Apps tables / views.
    Once you've got the view, bring it in to Disco Admin, etc. and create a report from it that now adds the extra conditions needed. That way you can use the underlying concept without hard coding things like dates, etc. which you would ask the user at run time.
    However ... as you may well know ... Oracle Reports can do some 'strange and/or powerful things' on the fly and, for example, it may be something like a temporary table generated for the report, etc. so may become a much bigger issue.
    2. If you have NoetixViews views then they'll most likely already have the views for these queries already created as they're reasonable for what's needed in an Oracle environment.
    3. I'd see if there is already a pre-defined BIS view that covers this as well. Again, you're in an area that's pretty popular so if a BIS view already covers much of the same info then you've got a create view 'head start' already. Check views owned by Apps starting with the application plus FV or FG (the one you'd really want) such as: GLFG_Budgets_To_Actuals to see what I mean.
    Russ

  • How to call our smartform in standard report

    Hi friends,
    How to call Zee smartform from standard report without affecting stadard flow.
    Thanks,
    Yogesh

    Hi,
      do it this way.
    in the ALV function call
    give in
    exporting
    I_CALLBACK_USER_COMMAND = 'user_command '
    write a subroutine
    FORM user_command USING whatcomm TYPE sy-ucomm whatrow TYPE
    slis_selfield.
    case whatcomm.
    when 'print'.
    call 2 function modules here
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING FORMNAME = P_FORM "Your form name
    variant = ' '
    direct_call = ' '
    IMPORTING FM_NAME = FM_NAME
    EXCEPTIONS NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    EXIT.
    ENDIF.
    calling the generated function module
    CALL FUNCTION FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS = CPARAM
    OUTPUT_OPTIONS = OUTOP
    USER_SETTINGS = SPACE
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    IMPORTING
    JOB_OUTPUT_INFO = TAB_OTF_DATA
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endcase.
    endform.
    This is an example in the function gereated call give you own importing and exporting parameters.
    Regards
    Kiran Sure

  • Calling Standard program in Z report

    Hi,
    Zreport is calling the MB5B Transaction program ( rm07mlbd ) using the submit statement.
    Here i have to take the values of Total/Val. of Receipts & Total/Value of Issues and do the some extra calculation in ZREPORT.
    But when i used the below statements, i am able to get the whole output of the MB5B transaction into internal table. But How to get the specified values only i.e. Total/Val. of Receipts & Total/Value of Issues.
      SUBMIT rm07mlbd AND RETURN WITH SELECTION-TABLE seltab
                                      EXPORTING LIST TO MEMORY.
          CALL FUNCTION 'LIST_FROM_MEMORY'
            TABLES
              listobject = itab_list
            EXCEPTIONS
              not_found  = 4
              OTHERS     = 8.
         CALL FUNCTION 'LIST_TO_ASCI'
            EXPORTING
              list_index         = -1
            TABLES
              listasci           = vlist
              listobject         = itab_list
            EXCEPTIONS
              empty_list         = 1
              list_index_invalid = 2
              OTHERS             = 3.
          CALL FUNCTION 'LIST_FREE_MEMORY'.
    Thanks in Advance
    Balu

    It would be hard to extract the result from the spool-type data received, did you try to find an exit, BAdI or Enhancement point in the standard report where you could export the relevant internal table 
    (e.g.. use an implicit enhancement point at start or end of form [LISTAUSGABE1|http://www.sdn.sap.com/irj/scn/advancedsearch?query=listausgabe1] in include [RM07MLBD_FORM_02|http://www.sdn.sap.com/irj/scn/advancedsearch?query=rm07mlbd_form_02] where you could export [G_T_BELEGE|http://www.sdn.sap.com/irj/scn/advancedsearch?query=g_t_belege], of course check first that you are called from an external report [sy-calld|http://help.sap.com/abapdocu_70/en/ABENSYSTEM_FIELDS.htm])
    Regards,
    Raymond

  • Calling standard printer driver program RVADOR01 from ALV report

    I have ALV report (Sales order documents) and one of columns in report is icon type with print preview link (hotspot). When user press icon, I would like to call standard print program RVADOR01 (actually we have custom Z_RVADOR01 and custom smartform which are working fine when using Document -> Output in VA03) to display print preview. I don't know how to call (trigger) print driver routine and pass needed parameters to it (ex. SO number).
    Marko

    Actually I did that. But then you are at least three clicks away from print preview screen. For testing purpose I've created custom smartform and run it from my report. It is working like I want. Now, instead of my procedure I want to run standard printer driver program with needed parameters. I believe that all it needs is document number (vbeln) and all the rest is already there, program, smatform... I just don't know how to use it (ex. pass parameters).
    I know I maybe complicating too much but I am ABAP beginner and want to learn as much as possible. Thank you anyway!

  • Reading values from standard report in custom report dynamically

    Hello Gurus,
    I have a strange requirement, We have some standard reports which displays output in drop down blocked data. I want to create a custom report which will get that data in my internal tables.
    Just to elaborate this requirement, I will give you a example:
    I have a standard report which output as first line 'A' and second line as 'B'. Now when I press drop down in 'A', it displays line items say 1,2,3,4,5.... Similarly block 'B' once when pressed displays line items 6,7,8,9,10.
    Here I want a custom report which directly read data from this standard report and gives us the values of line items 1,2,3,4,5 in one internal table and similarly items 6,7,8,9,10 in another internal table.
    Hope the question clarifies the requirement now.
    Request you to please provide the resolution.
    Thanks,
    Harjeet

    Hi Harjeet,
    Use sumit statement for standard program and export the list to  memory. and then read list from memory and use in your custom program.
    Use below code for reference.
    DATA: t_list TYPE abaplist OCCURS 0.
    SUBMIT rfdopr10
                    ************** your options
                    AND RETURN
                    EXPORTING LIST TO MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject       = t_list
      EXCEPTIONS
        NOT_FOUND        = 1
        OTHERS           = 2.
    BR,
    Vijay

  • In Standard Report Of ALV How Can Set PF Status.

    In Standard Report Of ALV How Can Set PF Status.
    Thanking in anticipation.

    in the call function module, you pass the PF status parameter.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = pgm
       <i> <u>  i_callback_pf_status_set = 'SET_PF_STATUS'</u></i>
          it_fieldcat              = fieldcat
          is_variant               = disvariant
          is_layout                = layout
          is_print                 = print
          i_save                   = 'A'
          it_events                = eventcat
          it_sort                  = sortcat
          i_callback_user_command  = 'USER_COMMAND'
        TABLES
          t_outtab                 = a_output
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    ENDFORM.                    "LIST_DISPLAY
    FORM SET_PF_STATUS *
    FORM set_pf_status USING extab TYPE slis_t_extab.
      SET PF-STATUS 'ZZSTD'.
    ENDFORM.                    "set_pf_status
    Here double Click on ZZSTD. IT will take you to a different screen and you have to set it.
    Ster.

  • 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

Maybe you are looking for

  • How to use the date picker in Web dynpro java

    Hi, I want to add date picker to enter a date while developing webdynpro application. How can i do that. Regards, H.V.Swathi

  • WebDynpro for beginners - Installing Netweaver Developer Studio

    Hi, I am new SAP technology and I want to start with WebDynpro for JAVA. I have basics in Java and don't know anything about SAP, ABAP etc. I was going through webdynpro tutorials and It is mentioned that to develop applications we need to install Ne

  • Exception while starting Managed Server

              Hi,           I am getting 'Connection Refused' exception while starting the Managed Server.Attached           log has the complete trace. It was working fine till few days back and I havent           changed any configuration.           I

  • Where'd my timeline and canvas go?

    I just tried to open up a project in progress by going to File-->Open recent. When the project opens up there is no timeline or canvas. I tried going to window-->arrange-->standard, but they still don't appear. If I just look in window, timeline and

  • Multiple service policies on ASA

    I created a service policy that uses REGEX expressions to limit access to certain websites on my ASA firewall. I then applied this policy to the interface However, the global policy still exists on the firewall (the default), which, by design affects