Insert a link to call a report program.

Hello all!
Im new in ABAP developing, and I have a Z Workflow that I need to put a link in a user decision step.
When the user will accept or refuse an workflow in sbwp transaction, the user wants see a link and when he clicks in this link,
a report program is called.
How can I do it, in this decision step?
Thank you!

Hello,
I understand that if a user selects one option(from the decision step), he will receive a mail with the work item. The link from the work item will show him service entry sheet. If he clicks the link, he will see service entry sheet and after that he will see the report.
If i understood right, you can create custom method in the subtype of the object BUS2091. In the method enter the code:
submit "report_name".
Check the syntax of the submit instruction for passing select-options and parameters to the report.
For the other option of the decision step, you can create another custom method.
Efren
Edited by: Efren23 on Jun 20, 2011 1:52 PM

Similar Messages

  • Calling a Report Program In Web Dynpro Using Submit statment

    Hi all,
             Can any one suggest how can i call a report program form Web Dynpro using Submit statment. I tried to call it its showing Field symbols not defined error. Is their any other ways to call Report in a Web Dynpro?. I have posted the error message when i tried using SUBMIT ZRR AND RETURN CONTROL
    Field symbol has not yet been assigned.
    The error occurred on the application server mnghcmsap_HRS_00 and in the work process 1 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Form: CHECKBOX_OUT of program SAPLKKBL
    Form: GEN_LINE_OUT of program SAPLKKBL
    Form: DATA_OUT_SIMPLE of program SAPLKKBL
    Form: LIST_OUTPUT_NEW of program SAPLKKBL
    Form: FIRST_LIST_DISPLAY of program SAPLKKBL
    Module: LIST_DISPLAY of program SAPLKKBL
    Function: K_KKB_LIST_DISPLAY of program SAPLKKBL
    Method: PRINT_BACKEND of program CL_GUI_ALV_GRID===============CP
    Method: SET_TABLE_FOR_FIRST_DISPLAY of program CL_GUI_ALV_GRID===============CP
    Form: PBO of program SAPLSLVC_FULLSCREEN
    Edited by: VINMANO on Jul 22, 2009 2:54 PM

    HI,
    Its possible to call report program from Web dunpro...
    chk out dis link,
    calling report(se38) in webdynpro abap
    By the way are using field symbol anywhere and left it unassigned?
    Thanks,
    Divya.S

  • 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 a report program in another program.

    can we call on report program in another report program. If yes, please give me the right syntax. Thanks in Advance.

    Hi,
      Use SUBMIT AND RETURN statement. In below given codes,
    I'm sending an internal table t_spfli to a memory id abc. After that I'm calling another program by using SUBMIT <program name> AND RETURN.
    Check these two programs
    PROGRAM 1
    REPORT  z_abap_memory.
    DATA:
      w_carrid TYPE spfli-carrid,
      BEGIN OF fs_spfli,
        carrid LIKE spfli-carrid,
        connid LIKE spfli-connid,
        fltime LIKE spfli-fltime,
      END OF fs_spfli.
    DATA:
      t_spfli LIKE
        TABLE OF
              fs_spfli.
    SELECT-OPTIONS:
      s_carrid FOR w_carrid.
    START-OF-SELECTION.
      PERFORM get_spfli.
      PERFORM disp_spfli.
    AT LINE-SELECTION.
      IF sy-lsind EQ 1.
        EXPORT t_spfli TO MEMORY ID 'ABC'.
        SUBMIT z_ABAP_MEMORY1 AND RETURN.
      ENDIF.
    END-OF-SELECTION.
      PERFORM disp_spfli.
    *&      Form  get_spfli
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM get_spfli .
      SELECT carrid
             connid
             fltime
        FROM spfli
        INTO TABLE t_spfli
       WHERE carrid IN s_carrid.
    ENDFORM.                    " get_spfli
    *&      Form  disp_spfli
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM disp_spfli .
      LOOP AT t_spfli INTO fs_spfli.
        WRITE: / fs_spfli-carrid,
                 fs_spfli-connid,
                 fs_spfli-fltime.
             HIDE:
        fs_spfli-carrid,
        fs_spfli-connid.
      ENDLOOP.
    ENDFORM.                    " disp_spfli
    PROGRAM 2
    REPORT  z_abap_memory1.
    DATA:
      BEGIN OF fs_spfli,
        carrid LIKE spfli-carrid,
        connid LIKE spfli-connid,
        fltime LIKE spfli-fltime,
      END OF fs_spfli,
      fs_fl LIKE fs_spfli.
    DATA:
      BEGIN OF fs_flight,
        carrid LIKE sflight-carrid,
        connid LIKE sflight-connid,
        fldate LIKE sflight-fldate,
      END OF fs_flight.
    DATA:
      t_spfli LIKE
        TABLE OF
              fs_spfli.
    DATA:
      t_fl LIKE t_spfli.
    DATA:
      t_flight LIKE
         TABLE OF
               fs_flight.
    IMPORT t_spfli FROM MEMORY ID 'ABC'.
    t_fl = t_spfli.
    SELECT carrid
           connid
           fldate
      FROM sflight
      INTO TABLE t_flight
      FOR ALL ENTRIES IN t_spfli
    WHERE carrid = t_spfli-carrid
       AND connid = t_spfli-connid.
    LOOP AT t_flight INTO fs_flight.
      WRITE: / fs_flight-carrid,
               fs_flight-connid,
               fs_flight-fldate.
    ENDLOOP.
    Regards
    Abhijeet

  • Calling one report program from another

    Hi All,
             i am calling one report program from my program & exporting it's output to SAP-SPOOL using SUBMIT statement. I want to fetch the spool no in my program for this spool. Please guide me how this can be achieved? i have tried SYST- SPONO but it's not working.
    Thanks & Regards,
    Chetan.

    Hi,
    Initially check this it might be helpful  to u.
    http://help.sap.com/saphelp_sm40/helpdata/en/30/cc154219fce12ce10000000a1550b0/content.htm.
    Even use the function module slike Job_open , Job_close  this is also one of the methid to achive spool requests.
    Regards,
    Sana.
    Reward with points if found helpful..

  • Calling a Report Program from Web Dynpro

    Hi all,
              I have a requirement, where i have to call a report program from web dynpro?. Wether its possible to call a report program in web dynpro?. Is we can call it, how this functionality has to be achived?

    Hello,
    Yes it is possible to call report using SUBMIT statement from one of the method defined in COMPONENTCONTROLLER's method tab.
    Once you define the method with SUBMIT statement then call that method with proper event.
    Rest configuration will remain same for ABAP webdynpro.
    Hope this helps.
    Thanks,
    Augustin.

  • Itz possible to call one report program into another program

    hi guys,
                i had a doubt that can i call a report program into another report program by declaring their name into the second program like as we calling Includes ,function modules and like class and their methods .
    if  anybody done this or know how to do this,  give me the details and explination about this  friends
    if it possible with screenshots and codings
    Thanks & Regards
    Saigijeo

    Please search before posting, do not ask basic questions here.
    Always do your own work before turning to the community with specific problems.
    Thread locked.
    Thomas
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]

  • Can we call a report program in smartforms

    hai
       I need my report progrm output should be called in smartforms.
    i.e my report  output is displayed in a table in smartforms
    pls give suggestion

    Hi,
    You cannot call report program in smartform.
    But,you can call the smartform in your report program.
    Refer these links:
    how to write driver programming in smartforms
    what is the basic purpose of driver program
    Regards,
    Sravanthi

  • Report with select list and link to call another report

    Hi,
    I am trying to do 2 reports (REPORT1 and REPORT2).
    The first is a summary report (REPORT1).
    This report will display sales figures for the year. Now, I need to have a select list in the result set that will have 2 options, depending on which option is chosen, I want to call REPORT2 with the select list as a parameter. How can I do this ?
    Let me try to explain what I did.
    I created REPORT1 on Page 100
    SELECT YEAR, sum(YTD_SALES), APEX_ITEM.SELECT_LIST(1,'DEPARTMENT','Department;DEPARTMENT,Division;DIVISION') Drilldown FROM SALES_ANALYSIS WHERE YEAR > 2000
    GROUP BY YEAR ORDER BY YEAR
    I created 2 hidden items namely P100_YEAR and P100_DRILLDOWN
    I also made the column YEAR as a link and specified both P100_YEAR and P100_DRILLDOWN as parameters to be passed.
    Next, I created REPORT2
    SELECT YEAR, DECODE(:P100_DRILLDOWN, 'Department', department, 'Division', Division) dept_div, sum(YTD_SALES) ytd_sales
    FROM SALES_ANALYSIS
    WHERE YEAR = :P100_YEAR
    When I run Report 1, it's fine, when I choose either Department or Division from the Select List and click on the link to call Report 2, report 2 is displayed, but the value being passed for P100_DRILLDOWN is not correct and as a result, I am unable to get correct results for Report 2
    Am I missing something ? Are there any alternate ways to do what I'm doing ?
    Thanks,
    Ashok

    Hi Ashok,
    The link definition will not know the value selected in the list as it is constructed only when the page is being rendered. You would need to create some javascript to handle this. I've done that here: [http://apex.oracle.com/pls/otn/f?p=267:182]
    The link on the EMPNO column has been defined in the HTML Expression setting for the column instead of the Link section. The HTML Expression that I have used is:
    &lt;a href="#" onclick="javascript:doDrilldown('#EMPNO#',this);"&gt;#EMPNO#&lt;/a&gt;And, in the page's HTML Header setting, I have added in:
    &lt;script type="text/javascript"&gt;
    function doDrilldown(empno,group)
    var g;
    var p = group.parentNode;
    while (p.tagName != "TR")
      p = p.parentNode;
    var x = p.getElementsByTagName("SELECT");
    if (x.length &gt; 0)
      g = x[0].value;
    var url = "f?p=&APP_ID.:183:&SESSION.::::P183_EMPNO,P183_GROUP:" + empno + "," + g;
    document.location.href = url;
    &lt;/script&gt;When a link is clicked, the doDrilldown function is called passing in the EMPNO value and the "this" object (which identifies the object triggering the call). The function starts from that object and goes up in the HTML tag tree to the nearest TR tag (the row tag that the link is on) and then finds the first SELECT list item on the row and gets its value. It then constructs a URL using this and the EMPNO value and performs a redirect to the second page (page 183 in this example).
    Andy

  • Inserting a link to BI Publisher report and passing the dashboard prompts

    I have an answers dashboard where there are various prompts (say P1, P2, P3, P4  -all these are date prompts )and various  reports.
    These Prompts are stored as Presentation variable say var1, var2, var3, var4.
    I need to insert a Link on this page to a BI Publisher Report.  BI Publisher report also has some prompts say D1, D2, D3 , D4, D5, D6
    The link should take the values from the prompts of this page and open the BI Publisher report with D1= value of Prompt P1,
    D2= value of prompt P2, D3= value of Prompt P3, and D4= value of Prompt P4.
    I was easily able to use an action link -> "Navigate to Web Page" option.  I gave the URL for this BI Publisher report and clicking on that link takes me to the report.
    But I am still figuring out out to send the values of the prompts.
    The BI Publisher Report is :
    - built from an RTF template.
    - uses a SQL Query with Bind variables to get the value of its prompts D1, D2, D3, D4, D5, D6.
    - Suppose D1 is bind variable :date1, D2 is bind variable :date2, D3 is bind variable :date3 and D4 is bind variable :dat4.
    So my first try was to append the value of bind variable to the URL
    https://xxname.server.com/analytics/saw.dll?bipublisherEntry&Action=open&itemType=.xdo&bipPath=%2FSurvey%2FPhoneCount%20Record.xdo&path=%2Fshared%2FSurvey%2FPhoneCount%20Record.xdo.xdo&date1=var1
    Can someone suggest the steps I need to take to make this work.
    Thanks

    Hi, I am facing the same issue (OBIEE 11g version0
    Please let me know if you found any solution or workaround for this?
    Thanks!!

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

  • How to call the Report program into Function module

    Hi Experts,
    Actually I want to create the DataSource. But I have only the ALV report program. I need to create function module but I don’t know how to call the ALV report program using in function module  
    So could you please any one send the Document or step by step method?
    Advance Thanks,
    Sathis

    If the report is just based out of a table than create a Generic Extractor using View.
    If its an InfoSet query than create a Generic Extractor on that InfoSet.
    If its an ABAP report than create a Generic Extractor using FM
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33

  • Call Normal Report program in workflow?

    Hi all,
        My requirement is that i want to call a simple report program in workflow?
    eg-when i entered material num ,the data related to that material is displayed from MARA table.
      when i execute my workitem ,i want that output of report to be displayed.
    i have created a z object in that i called one z  method ,in that method i have written,
      'SUBMIT PrgName AND RETURN.
    but it is not working.
    Thanks and Regards,
    Arpita.

    Hi Arpita,
    I am not sure if a report program can be called from workflow. But would it be possible for you to convery your report program into a BO method? A BO method can be easily called from a workflow.
    Please clarify if you have a different requirement.
    Regards,
    Saumya

  • Using web link to call the report by passing the parameter but report blank

    Hi,
    I have using web link to prompt to generate the report(Quotation Format) by passing SR number in Service Request object.
    The result return is blank report, the URL link that i put in as below :-
    https://secure-ausomxega.crmondemand.com/OnDemand/user/analytics/saw.dll?Go&Options=rfd&Path=/shared/Company_AEGA-3V6GLL_Shared_Folder/SR%20Quotation&Action=Navigate&P0=1&P1=eq&P2="Service Request"."SR Num"&P3=%%%SR_Number%%%
    If preview in report folder, the report is generated with the output.
    Is my syntax having problem or the method cannot be done this way?
    Please advise

    Hi Alex,
    I manage to get the report output but the result is always same.
    i have checked the filter, the filter is calling the SR number.
    When i try to output to PDF an error prompt :-
    Sax parser returned an exception. Message: Expected entity name for reference, Entity publicId: , Entity systemId: , Line number: 335, Column number: 12
    Error Details
    Error Codes: UH6MBRBC
    Thanks
    SK

  • Calling A Report Program From DIALOG Program ?

    Hi helping Minds ,
    My requirement is like....
    I have a screen, where Datas Are displayed after all the calculation in TABLECONTROL .
    The user wants a button REPORT on the same Screen ,
    By clicking the REPORT button, it will call a SELECTION SCREEN to enter tthe input to dispaly the report list.
    After entering the data in selection screen , it will display the LIST output ,
    So my doubt is I have all the Data in * DIALOG SCREEN* ,which i have  stored in INTERNAL TABLE .
    and when i will dispaly the output i have to dispaly all those data which are in those INTERNAL TABLE. so how to transfer those INTERNAL TABLE data of Dialog Screen to REPORT , so that i can Dispaly them in LIST OUTPUT in report .
    Pls suggest me ?

    Hi,
    If i am not wrong.....you have the data to be displayed as a report in an internal table......when report button is pressed you want to display one selection screen .....and depending on the selection screen input search you want ti segregate the data of this internal table ...and show as list display.......
    if that is the case .....store the internal table data globally .....and ...when that button is clicked call the selection screen by usong POPUP_GET_VALUES.. with the requred fields or call your own screen  with the layout designed .......and get the search criteria data and sort the internal table according the search adn display in ALV ......for ALV creation in module pool see the link below ...
    [alv in module pool]
    Thanks,
    Shailaja Ainala.

Maybe you are looking for

  • Share The Network

    Just wondering the procedure to get your referral credit. I sent my friend the confirmation code before he signed up for installation, he called to set everything up and mentioned that he had the referral confirmation code. The agent did not take the

  • Vista / Flash performance problem

    I have a well-patched / McAfee / Firewall Dell / Vista Business laptop. 2Gb, plenty of horsepower. I have uninstalled Flash, rebooted, reinstalled flash WIN 9,0,124,0, but I seem to have a performance problem that other Vista workstations do not have

  • Lightable and 1.1.2

    Lightable is much more responsive w/the new upgrade, but it still has an annoying quality. The table leaps often from one extreme to the other, meanint from lower rt. corner to upper left corner, often when you either try to drag an image on, or use

  • Forms aren't adding up correctly and italics?

    Hello, I'm filling in a form which someone else has prepared. There are 3 boxes that i have to input numbers in to and then at the top of the form they all add up. This worked fine the first time i did it. I have now saved the doc as another name and

  • I keep getting no service on my iphone 4s anyone kno how to fix it?

    i keep getting no service on my iphone anyone know how to fix the problem?