CALL A TRANSACTION  IN SIMPLE REPORT AND RETURN BACK TO REPORT

I 'VE A REQUIREMENT IN WHICH I HAVE TO MAKE A REPORT PROGRAM. IN THIS REPORT PROGRAM I HAVE TO CALL A TRANSACTION cs11 IN BACKGROUND AND THEN PICK ITS OUTPUT VALUE (DISPLAYED IN alv GRID OF cs11) AND THEN RETURN BACK TO MAIN PROGRAM. DO SOME CALCULATION WITH THE BROUGHT DATA AND THEN DISPLAY THEM ON THE REPORT alv OUTPUT.
iS THIS POSSIBLe? IF YES? HOW.
PLEASE HELP.

try creating two reports.....ztest_a and ztest_b
do your call transaction in ztest_b
in ztest_a you can write submit ztest_a and return....
see if this works...
Message was edited by:
        Priyank Jain

Similar Messages

  • How To call a Tcode From a Program and returning back ?

    Dear All,
    I have a requirement, i have to show all the open orders as in the the tcode va05  and return back to the my program. so how to display the tcode and getting back to my program. please help?

    Hi,
    Basic syntax to call the transaction is:
    SET PARAMETER ID <id name> FIELD <filedname>.
    CALL TRANSACTION <TCOde> AND SKIP FIRST SCREEN.
    If your are using ALV then snippet is :
    FORM user_command  USING okcode    LIKE sy-ucomm
                           lselfield TYPE slis_selfield.
      CASE okcode.
        WHEN '&IC1'. " SAP standard code for double-clicking
          CASE lselfield-sel_tab_field."check if double click is only on
            WHEN 'ITAB-AUFNR'."aufnr not on any other field
              SET PARAMETER ID 'ANR' FIELD lselfield-value.
              CALL TRANSACTION 'IW32' AND SKIP FIRST SCREEN.
          ENDCASE.
      ENDCASE.
    Endform.
    Pooja

  • Statutory Reports and Returns

    Hi Every one,
    I want to know that whether the statutory reports and returns to be submitted in india is available in India or we have to customize and develop one.
    I am not that aware of Forms...I have just gone to PE51 and tried to create a remuneration statement , thats all.
    Also if the returns and reports formats are available in SAP . what is the Transaction Code to see and customize the forms available........
    Please help to solve the query
    Thanks And regards
    Srijit

    Hai..
    Form 24  Form 16   Form 217(A) Other statutory deductions like section 80,88,  89(1), professional Tax... etc..
    EASY ACCESS,HR,PY,ASIA,INDIA,SUBSEQUENT REPORTS, PERPAYROLL PERIOD, LEGAL REPORTS..
    Manohar

  • Statutory reports and returns in India .....

    Hi Every one,
    I want to know that whether the statutory reports and returns to be submitted in india is available in India or we have to customize and develop one.
    I am not that aware of Forms...I have just gone to PE51 and tried to create a remuneration statement , thats all.
    Also if the returns and reports formats are available in SAP . what is the Transaction Code to see and customize the forms available........
    Please help to solve the query

    Hai..
    Apart from Form 16, Form 24 Form 217(A).. there are many statutory reports to be maintained...
    isbtcprd2\SAPHelp_470SR1\helpdata\EN\dd\38a63a04227748e10000000a11402f\frameset.htm
    Kindly go through the link.. might be helpful to u...
    Manohar

  • We can not clear all recents(30 recents call).  When Tango show "No recents call". We touch other buttons and come back to Recents button again.  It still show 30 recents call.

    We can not clear all recents(30 recents call).  When Tango show "No recents call". We touch other buttons and come back to Recents button again.  It still show 30 recents call.

    No one here is going to do anything about it. Send feedback to Apple.
    http://www.apple.com/feedback/ipad.html
    Basic troubleshooting steps. 
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 

  • RE: COPA report and customer line item report not matching

    Hi All,
    COPA report and customer line item reports (fd10n) are not matching please let me know the reason.

    ok

  • How to show view tab Main Report and all of Sub Report in one action through Visual FoxPro

    How to show all view tab (Main Report and all of Sub Report) in one action.
    I already know how to show Main Report with this code sample:
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=this.Parent.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    Inside the 'MyReport.rpt' it has 2 subreports:
    1. MySubReport_1
    2. MySubReport_2
    I try to show MySubReport_1 and MySubReport_2 together with their own Main Report with this code sample:
    oRptRun=createobject("CrystalRuntime.Application")
    oRptView=this.Parent.oleRptViewer
    oRptOpen=oRptRun.OpenReport('MyReport.rpt')
    oRptSub1=oRptOpen.OpenSubreport('MySubReport_1')
    oRptSub2=oRptOpen.OpenSubreport('MySubReport_2')
    oRptView.ReportSource=oRptOpen
    oRptView.ViewReport
    Did I miss something because there was only view tab 'Preview' (Main Report) shown without view tab MySubReport_1 and MySubReport_2.
    Thank you.

    Your right, there is only one tab to view the report.
    To open the subreports you will need to click on them in the main report. I don't know of a way to open them programmatically like you are doing here
    http://diamond.businessobjects.com/robhorne</a>

  • If I buy an unlocked iphone 6 in the uk and have a uk sim card in it initially, will i be able to use my german sim card in it when i'm in germany and return back to my UK sim card on my return?

    If I buy an unlocked iphone 6 in the uk and have a uk sim card in it initially, will i be able to use my german sim card in it when i'm in germany and return back to my UK sim card on my return?

    Yes. But make sure you buy it at an Apple Store. Other stores selling SIM free iPhones will sell those that will usually lock to the carrier whose SIM is used to first activate the phone. Then you will be stuck.

  • TS1702 Why My iPhone 4s close most of my apps when i opened them immediately and return back to home screen

    Why My iPhone 4s close most of my apps when i opened them immediately and return back to home screen ?
    What is the problem and how can i fix it ?

    Download a free app and see if that helps, you can delete the app later if you do not want it.

  • Remove latest macbook update "yosemite" and return back to "maverick"

    Hi,
    I have just updated my macbook pro to the new software "Yosemite", now my drawing program, AutoCAD does not open...
    I really need this program for work... Is there anyway i can remove this update and return back to my original system, (maverick) i think it was...
    Thankyou in advance
    Greg

    If you have a complete backup or clone of your Mac before you installed Yosemite, you can erase the Mac and restore the backup.

  • Calling BSP from report and return control back ?

    Hi All,
          My requirement is as follows :-
    1. I am calling a BSP from report using CL_GUI_HTML_VIEWER->show_url. The BSP page is displayed successfully.
    2. Then, I perform some operations and want to return some data back to the main program (from where it was called - Report) and continue execution from there
    How do I accomplish the second requirement (Control doesnt come back once I close the BSP) ?
    Regards,
    Ashish

    how to generate events from html code in the html control back to your ABAP check out this demo program
    SAPHTML_EVENTS_DEMO
    say for example, in your case you are showing the BSP in GUI HTML control and on clicking a link you want to pass some data from your link to ABAP program and the ABAP should receive the value and process it and may be comeback to same BSP or go some to some other screen/transaction.
    steps to follow:
    after creating the html control
    register event for call back and call the BSP url.
    create object hviewer
                 exporting
                   parent = mycont.
        myevent-eventid = hviewer->m_id_sapevent.
        myevent-appl_event = 'x'.
        append myevent to myevent_tab.
        call method hviewer->set_registered_events
          exporting
            events = myevent_tab.
        create object evt_receiver.
        set handler evt_receiver->on_sapevent
                    for hviewer.
        hviewer->enable_sapsso(
          exporting
            enabled    = 'X'
          exceptions
            cntl_error = 1
            others     = 2
        if sy-subrc <> 0.
        endif.
        call method hviewer->show_url
          exporting
            url = wf_url.
    in your BSP the link should look like below
    A HREF=SAPEVENT:TAGS?value to be passed to your ABAP> link text </a
    when you click this link in bsp then you can then capture the value "TAGS" to know which link was clicked and the value passed after the ?
    link is just one option, you can also send whole form data.
    this type of link and form will only work when your BSP is invoked within HTML contro. if its invoked from standalone browser these wont work. so you amy want to dynamically show/hide "sapevent" links based on where it runs.
    Hope this is clear. if not do getback.
    Regards
    Raja
    Edited by: Durairaj Athavan Raja on Sep 9, 2008 1:04 PM

  • How to call an alv report from another program and return back

         Hello ,
    I am calling one abap program (Prgm B) from another program (Prgrm A).
    Here, Prgm B is an ALV report. I have fetch some data from Prgem B that gets stored in an internal table.
    Now, I am using below code in Prgrm A,
      SUBMIT Prgrm B VIA SELECTION-SCREEN
                          WITH SELECTION-TABLE rspar
                          EXPORTING LIST TO MEMORY
                          AND RETURN.
    When Prgrm A executed, it lead me to selection screen of Prgrm B and when I click F8, it shows me the report output, In short, it doesnt return back to Prgrm A. It ends up showing me the alv report if Prgrm B even afetr using RETURN statement.
    I want to get back to Prgrm A by fetching some data from Prgrm B.
    Please let me know, if i am missing something.
    Regards,
    Seema

    Hi Seema,
    Refer below code.
    DATA: v_matnr LIKE mara-matnr.
    DATA: t_listobject TYPE abaplist OCCURS 0 WITH HEADER LINE.
    DATA: t_mara TYPE mara OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF t_ascilist OCCURS 0,
             line(200).
    DATA: END OF t_ascilist.
    data var(3) type c.
    SELECT-OPTIONS: s_matnr FOR v_matnr.
    var = '  3'.
    START-OF-SELECTION.
       SUBMIT ztestaks1 WITH s_matnr IN s_matnr EXPORTING LIST TO MEMORY
       AND RETURN.
       CALL FUNCTION 'LIST_FROM_MEMORY'
            TABLES
                 listobject = t_listobject
            EXCEPTIONS
                 not_found  = 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.
       ELSE.
         CALL FUNCTION 'LIST_TO_ASCI'
    *     EXPORTING
    *       LIST_INDEX               = -1
    *       WITH_LINE_BREAK          = ' '
           TABLES
             listasci                 = t_ascilist
             listobject               = t_listobject
           EXCEPTIONS
             empty_list               = 1
             list_index_invalid       = 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.
         ELSE.
           WRITE:/ 'Below are the lines from the submitted program.'.
           LOOP AT t_ascilist.
             WRITE:/ t_ascilist-line.
           ENDLOOP.
           SKIP 2.
         ENDIF.
       ENDIF.
       IMPORT t_mara FROM MEMORY ID 'T_MARA'.
       WRITE:/
    'Here is the output from the table exported from the submitted program.'
       LOOP AT t_mara.
         WRITE:/ t_mara-matnr.
       ENDLOOP.
    Submitted program
    REPORT  ZTESTAKS1.
    DATA: v_matnr LIKE mara-matnr,
           v_maktx LIKE makt-maktx.
    DATA: t_mara TYPE mara OCCURS 0 WITH HEADER LINE.
    DATA: BEGIN OF t_makt OCCURS 0,
             matnr LIKE makt-matnr.
    DATA: END OF t_makt.
    SELECT-OPTIONS: s_matnr FOR v_matnr,
                     s_maktx FOR v_maktx.
    START-OF-SELECTION.
       SELECT matnr INTO TABLE t_makt
                    FROM makt
                   WHERE matnr IN s_matnr
                     AND maktx IN s_maktx.
    if not t_makt[] is initial.
       SELECT * FROM mara
                INTO TABLE t_mara FOR ALL ENTRIES IN t_makt
               WHERE matnr = t_makt-matnr.
    endif.
       EXPORT t_mara TO MEMORY ID 'T_MARA'.
       WRITE:/ 'This list is from the submitted program'.
       SKIP 1.
       LOOP AT t_mara.
         WRITE:/ t_mara-mtart.
       ENDLOOP.
    Hopes this helps you.
    Thanks,
    Ashok.

  • How to submit a report and return a table?

    Sumbit RVKRED01 and return .
    then how to get table value from report RVKRED01 ???

    Follow the below example:
    SUBMIT rashsd14
                          WITH vbeln IN l_rsdsselopt
                          WITH dbasar = c_x
                          EXPORTING LIST TO MEMORY AND RETURN.
    *Getting the list from memory
                          REFRESH t_tab1.
                          CALL FUNCTION 'LIST_FROM_MEMORY'
                            TABLES
                              listobject = t_tab1
                            EXCEPTIONS
                              not_found  = 1.
                          IF sy-subrc <> 0.
                          ENDIF.
    *Converting to ASCII
                          REFRESH t_tab2.
                          CALL FUNCTION 'LIST_TO_ASCI'
                            TABLES
                              listasci           = t_tab2
                              listobject         = t_tab1
                            EXCEPTIONS
                              empty_list         = 1
                              list_index_invalid = 2.
                          IF sy-subrc <> 0.
                            WRITE: / 'LIST_TO_ASCI error'(098).
                          ENDIF.
                          IF t_tab2 IS NOT INITIAL.
                            DELETE t_tab2 INDEX 1.
                            DELETE t_tab2 INDEX 1.
                            DELETE t_tab2 INDEX 1.
                            DESCRIBE TABLE t_tab2 LINES g_tabix.
                            DELETE t_tab2 INDEX g_tabix.
                          ENDIF.
                          REFRESH t_vbka1.
                          IF t_tab2 IS NOT INITIAL.
                            LOOP AT t_tab2 INTO wa_tab2.
                              CLEAR wa_vbka-vbeln.
                              REPLACE ALL OCCURRENCES OF '|' IN wa_tab2-vbeln WITH space.
                              CONDENSE wa_tab2-vbeln.
                              CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                                EXPORTING
                                  input  = wa_tab2-vbeln
                                IMPORTING
                                  output = wa_vbka-vbeln.
                             wa_vbka-vbeln = wa_tab2-vbeln.
                              APPEND wa_vbka TO t_vbka1.
                            ENDLOOP.
                            SORT t_vbka1 BY vbeln.
                          ENDIF.

  • Call the program first two screens and return

    Hi all,
    I am coding an Zprogram in that i have to call an Standard Report Program ( ex:- RFFOUS_T ) and execute.
    and in  that standard program  i need to execute upto the first two screeens only after the first two screens i need to come back to my Zprogram
    How can i do this.
    Regards
    Ajay

    Hi Ajay,
    SUBMIT  RFFOUS_T  WITH SELECTION-TABLE i_rspar AND RETURN.
    where i_rspar contains the value u want to pass to next report programs output screen
    with structure as         i_rspar  TYPE  STANDARD TABLE OF rsparams.
    Try with it
    it may help you.

  • UCCX 8.5 - Historical Reports - Traffic Analysis report and Application Performance Analysis report different calls presented

    Hi,
    Please Advice.
    When I compare Traffic Analysis report and Application report, Calls presented are not same. Please Help !
    Also attached herwith the reports

    Mohammed,
    It is common, in many of the Cisco Express 8.5 environments we have looked at, for the Total Incoming Calls given on a Traffic Analysis report to be a higher number than an Application Report.
    The Traffic Analysis Report counts every unique sessionID (unique call) that is inbound (contact type of 1).  The Application Reports do a similar thing but qualify (filter) only the records that have an application assigned.
    There are simply times where inbound calls have been directed to an "agent" without having an applicaiton assigned.
    The best thing the reporting user can do is to run a query on his or her database such as: 
         select * from ContactCallDetail where contactType=1and startDateTime > '2012-11-16 10:00:00' and startDateTime < '2012-11-16 11:00:00';
    Usually when an application is not assigned to the record in the ContactCallDetail table it is because the destination type is equal to 1, which is an 'Agent' instead of a 'route point'.
    So if you modify your select statement to filter by destinationType, you can quickly find the records that don't have the application assigned. 
    Example:  select * from ContactCallDetail where contactType = 1 and destinationType = 1 and startDateTime > '2012-11-16 10:00:00 and startDateTime < 2012-11-16 11:00:00';
    When you look at these records, you will see the agent that took the call from the destinationID field.  The number in that field should match up with the field called 'resourceID' in a table called 'resouce';
         Example:  select * from resource where resouce=6011; where 6011 was the number you found in the destinationID field.
    If there is still confusion about the source of the call - then talk to that agent and find out what is was.
    Good Luck and let me know if you need further help.
    Ron Reif
    [email protected]

Maybe you are looking for

  • BAdI for BP Change in ISA

    Hi Gurus, We are on CRM 4.0. We have a requirement where whenever a customer changes his personal details in ISA (B2C scenario), an activity should be generated. Can anyone help me with some workaround/ BAdI, to achieve this scenario? Reward is gaura

  • Adobe Reader X - Runtime error - Windows 7

    What am I doing wrong? Any ideas? Installed Reader X 3 times since yesterday onto differnt Windows 7 machines - including once onto a clean Windows 7 Enterprise 32bit install (i.e. no old versions of anything to remove) - and on all atempts once the

  • PDF Scanned in a PDF Text document?

    How can I convert a PDF Scanned file in a PDF text document?? Regards

  • Can I use my 7900GT in a MacPro?

    I'm considering buying a MacPro and retiring my PC. I have a PCIe 7900GT, which out paces the 7300GT in the MacPro by a significant margin. Rather than fork over $250 for the X1900XT, can I just stick with the 7300GT, then swap out the cards when it

  • Cell Offload will Happen for pl/sql Block with variables

    Hello Experts, i am working on procedures on exadata now. i was confused with cell offload in exadata. somehow offload is not happening when i ran the sql statement in in pl/sql block with variables. here are my findings. when i ran insert into from