Submit selection screen options of one report to another report

hi ,
  My requirement is as follows . i have a report with a selection screen .The report fetches data from a ztable according to multiple parameters and select options in the selection screen. The mandatory parameters are two diffrent dates according to which the data is fetched. If one of the dates is the CURRENT date then the data  to be fetched is not present in the Ztable as the data is updated daily at midnight. What is required if the user enters the current date in one of the dates then my report should save the selection screen parameters present in therest of the select options and submit these parameters to the second report which updates the data into the table so that my report can fetch it accordingly. If i am getting a bit confusing i am sorry . This is the best i could explain .If any clarififcations are required please ask. Please could u help me with this problem and guide me how to do this . Thanks in advances and helpful answers will be rewarded.

Hi,
When you start an executable program, the standard selection screen normally appears, containing the selection criteria and parameters of both the logical database connected to the program and of the program itself. When you start an executable program using SUBMIT, there are various additions that you can use to fill the input fields on the selection screen:
SUBMIT... [VIA SELECTION-SCREEN]
[USING SELECTION-SET <var>]
[WITH <sel> <criterion>]
[WITH FREE SELECTIONS <freesel>]
[WITH SELECTION-TABLE <rspar>].
Ex.
The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
REPORT REP1.
DATA NUMBER TYPE I.
PARAMETERS PARAMET(14).
SELECT-OPTIONS SELECTO FOR NUMBER.
The program REP1 is called by the following program using various parameters:
REPORT REP2 NO STANDARD PAGE HEADING.
DATA: INT TYPE I,
RSPAR LIKE RSPARAMS OCCURS 10 WITH HEADER LINE.
RANGES SELTAB FOR INT.
WRITE: 'Select a Selection!',
SKIP.
FORMAT HOTSPOT COLOR 5 INVERSE ON.
WRITE: 'Selection 1',
/ 'Selection 2'.
AT LINE-SELECTION.
CASE SY-LILLI.
WHEN 4.
SELTAB-SIGN = 'I'. SELTAB-OPTION = 'BT'.
SELTAB-LOW = 1. SELTAB-HIGH = 5.
APPEND SELTAB.
SUBMIT REP1 VIA SELECTION-SCREEN
WITH PARAMET EQ 'Selection 1'
WITH SELECTO IN SELTAB
WITH SELECTO NE 3
AND RETURN.
WHEN 5.
RSPAR-SELNAME = 'SELECTO'. RSPAR-KIND = 'S'.
RSPAR-SIGN = 'E'. RSPAR-OPTION = 'BT'.
RSPAR-LOW = 14. RSPAR-HIGH = 17.
APPEND RSPAR.
RSPAR-SELNAME = 'PARAMET'. RSPAR-KIND = 'P'.
RSPAR-LOW = 'Selection 2'.
APPEND RSPAR.
RSPAR-SELNAME = 'SELECTO'. RSPAR-KIND = 'S'.
RSPAR-SIGN = 'I'. RSPAR-OPTION = 'GT'.
RSPAR-LOW = 10.
APPEND RSPAR.
SUBMIT REP1 VIA SELECTION-SCREEN
WITH SELECTION-TABLE RSPAR
AND RETURN.
ENDCASE.
Regards,
Bhaskar

Similar Messages

  • Hide selection screen option on the base of Transaction code

    Hi ,
    i have created one report with two diffrenet transaction code .
    now we have two different selection  options on the base of Transaction code.
    how can i do coding for this .
    anyone has any sample code ..
    thanks,
    Jack

    Thanks Subramanian,
    INITIALIZATION.
    if sy-tcode = tcd1.
    perform first_selection_screen.
    elseif sy-tcode = tcd2.
    perform second_selection_screen.
    endif.
    FORM first_selection_screen..
    SELECTION-SCREEN BEGIN OF BLOCK s1 WITH FRAME TITLE text-s02.
    SELECT-OPTIONS: s_date  FOR  vbrk-fkdat.
    SELECT-OPTIONS: s_kunag  FOR  vbrk-kunag.
    SELECTION-SCREEN END OF BLOCK s1.
    ENDFORM.
    But in this perform if i write code for selection-screen then it gives me syntax error.
    error message: within form or function module, selection-screen option is not allowed.
    Thanks,
    Jack

  • How do I use dual displays to have a full screen app on one monitor and another full screen app or the desktop on the other?

    How do I use dual displays to have a full screen app on one monitor and another full screen app or the desktop on the other?
    I want to have my itunes visualizer on my TV which is connected via HDMI adapter, and still have access to full screen itunes and my desktop on the main display.
    Any suggestions?  App downloads that can do this?  Please let me know.

    You can't do it.  This has been an issue since Lion.

  • Can we run one report from another Report in reports 6i

    Actually my requirement is i want to run 4 reports from another report(driver report) by passing parameter same as the driver report.
    i want to see the out put on the screen report by report next to driver report output.is it possible?? actually i got the solution for printing or taking file. but i want to show the output on the screen.
    Edited by: user9165808 on Feb 16, 2010 3:21 AM

    I used SRW.RUN_REPORT () . But my question that is it possible to show report in batches on screen??
    Edited by: user9165808 on Feb 19, 2010 4:23 AM

  • How to call a report in another report?reply plz

    how to call a report in another report?

    hi,
    chk this.
    *Code used to populate 'select-options' & execute report 
    DATA: seltab type table of rsparams,
          seltab_wa like line of seltab.
      seltab_wa-selname = 'PNPPERNR'.
      seltab_wa-sign    = 'I'.
      seltab_wa-option  = 'EQ'.
    * load each personnel number accessed from the structure into
    * parameters to be used in the report
      loop at pnppernr.
        seltab_wa-low = pnppernr-low.
        append seltab_wa to seltab.
      endloop.
      SUBMIT zreport with selection-table seltab
                                    via selection-screen.
    *Code used to populate 'parameters' & execute report 
    SUBMIT zreport with p_param1 = 'value'
                    with p_param2 = 'value'.
    Other additions for SUBMIT
    *Submit report and return to current program afterwards
    SUBMIT zreport AND RETURN.
    *Submit report via its own selection screen
    SUBMIT zreport VIA SELECTION-SCREEN.
    *Submit report using selection screen variant
    SUBMIT zreport USING SELECTION-SET 'VARIANT1'.
    *Submit report but export resultant list to memory, rather than
    *it being displayed on screen
    SUBMIT zreport EXPORTING LIST TO MEMORY.
    *  Once report has finished and control has returned to calling
    *  program, use function modules LIST_FROM_MEMORY, WRITE_LIST and
    *  DISPLAY_LIST to retrieve and display report.
    Regards
    Anver

  • Reg:how to include a report in another report.

    Hi,
    Can anyone please tell me how to call a report from another report.
    My requirement is for example please see the below requirement :
    In report1 I write the logic.
    Zreport1.
    select kunnr name1 from kna1 into table itab.
    loop at itab.
    write: / itab-kunnr,itab-name.
    endloop.
    In report 2 i write the declaration.
    Zreport2.
    Tables:kna1.
    data:begin of itab occurs 0,
    kunnr like kna1-kunnr,
    name1 like kna1-name1,
    end of itab.
    Now I want to include or call the report1 in report2 .Can anyone please tell me how it can be done??

    Hi,
    write the submit statement as SUBMIT ZREPORT1 AND RETURN  in ZREPORT2 program..
    If you dont execute the ZREPORT1 independently then its better you write that in a ZINCLUDE... and
    include that in your second program where ever necessary..
    for that check this...
    +ZINCLUDE+
    select kunnr name1 from kna1 into table itab.
    loop at itab.
    write: / itab-kunnr,itab-name.
    endloop.
    *ZINCLUDE ends here...
    *Use the above ZINCLUDE as below...
    Report Zreport2.
    Tables:kna1.
    data:begin of itab occurs 0,
    kunnr like kna1-kunnr,
    name1 like kna1-name1,
    end of itab.
    INCLUDE ZINCLUDE. " this will do the task mentioned in the include above...
    I would rather suggest to go for the second method that is _ Specifying ZINCLUDE_ coz for the first one.. you need to
    have data declarations and which is not necessary for just a simple select query.. if you are processing
    any further in the first program then go for the first method_( SUBMIT STATEMENT)_ by declaring the necessary variables..
    This would solve your issue...
    Good luck
    Narin
    Edited by: Narin Nandivada on Sep 9, 2008 4:37 PM

  • Calling a report from another report

    Hi,
    Is there any way ,(any built in ) to call a report from another report in Report Builder 2000 and Report Builder 6i.
    Regards

    Try to call report from report by a button in the calling report:
    1     In the Layout Model view, click in the tool palette. Note
    2     Click and drag a rectangle.
    3     Double-click the button object to display the Property Palette.
    4     Under the Button Label node, set the Label Type property to either Text or Icon:
    n     If the button label is text, set the Text property to the text you want to appear on the button.
    n     If the button label is an icon, set the Icon Name property to the name of the file containing the icon (the file must reside in the directory specified by the UI_ICON environment variable).
    5     Under the Button Behavior node, set the Type property to PL/SQL.
    6     Double-click the PL/SQL Trigger property value field.
    7     In the PL/SQL Editor, define the PL/SQL for the action trigger or format trigger when the button is clicked in the formatted report.
    8     Set other properties as desired.
    9     To activate the button, run the report, then display it in the Runtime Previewer.

  • Calling a Report from another Report.....URGENT

    Hi,
    I am calling a report from another report using hyperlink. I want that this new report should come in a new page.
    Can any body help me where i can set this property, so that the new report will open in a new page.
    Thanks in advance
    Regards
    Kamal

    Try to call report from report by a button in the calling report:
    1     In the Layout Model view, click in the tool palette. Note
    2     Click and drag a rectangle.
    3     Double-click the button object to display the Property Palette.
    4     Under the Button Label node, set the Label Type property to either Text or Icon:
    n     If the button label is text, set the Text property to the text you want to appear on the button.
    n     If the button label is an icon, set the Icon Name property to the name of the file containing the icon (the file must reside in the directory specified by the UI_ICON environment variable).
    5     Under the Button Behavior node, set the Type property to PL/SQL.
    6     Double-click the PL/SQL Trigger property value field.
    7     In the PL/SQL Editor, define the PL/SQL for the action trigger or format trigger when the button is clicked in the formatted report.
    8     Set other properties as desired.
    9     To activate the button, run the report, then display it in the Runtime Previewer.

  • Can we call a report in another report?

    I have developed a XMLP report for AR receivables for a customer and another XMLP report for AP vouchers for a customer.
    Now my requirement is to develop a report for AR/AP Balance for a customer,which is combination of above 2(ie AR Receivables report + AP vouchers report).
    What is the possible solution to above mentioned requirement??
    Can I call a report from another report(for ex AP vouchers report from AR Receivables report).Is this possible?
    If yes,please explain...
    Or are there any alternatives to this requirement??
    Thanks in advance!!

    Hi,
    Calling another report in a report? Not sure about your requirement but you can do fnd_submit/fnd_request.
    OR, if you need AR/AP balance,... here's an alternative solution:
    If you're in R12, there is the "Automatic Netting (AP/AR)" feature in Payables. You could check on the available report if it fits your need.
    In 11i, you may run "Supplier Customer Netting Report" (ARXSCN). This is an OReport(RDF) and could be converted to XMLP. This report is designed to display the net balances in AP and AR for Vendors and Customers with the same name, NIF Code, or VAT Registration.
    Hope this helps.
    Rownald

  • Two selection screen problem in one report

    i have a two selection screens 1000 & 2000 in single report , which needs to be executed one after the other ,
    the problem is when i execute second selection screen(2000) , the cursor is going back to at-selection-screen once again.
    but i need to trigger start-of-selection directly after executing second selection screen,
    the first selection screen 1000 will be executed with the help of select options..
    the sample code is below .
    at-selection-screen.
        perform validations.
       call selection screen 2000.
        at selection screen on value request p_adm
    start-of-selection.
       main logic

    Moderator message - Cross post locked
    Rob

  • Need to restrict selection screen entries in logical database in HR report

    After creating custom HR Report Category using Logical database, I need to restrict the options available in the in the selection Screen
    for example- for company code i m getting 182 entries, but after running the program, selection-options for company code, i need only first 3 entries, don't want remailing entries
    how can i do this?

    Hi
    You can retrieve the required entries into an internal table and use FM F4IF_INT_TABLE_VALUE_REQUEST to provide them under F4 help.
    Regards
    Raj

  • Selection screen control for a field in the report painter report

    Hi,
    Could you please advice me as to how we can add exclude selection functionality for a field on the selection screen of a report made by trhough report painter report.
    Your prompt reply will be really appreciated.
    Thanks,
    Ramesh.

    look at this code and try
    select-options : S_NODEID for ZNODETAB-ZNODEID.
    at selection-screen on value-request for s_nodeid-low
    perform f4_nodeid using 'S_NODEID-LOW'.
    at selection-screen on value-request for s_nodeid-low
    perform f4_nodeid using 'S_NODEID-HIGH'.
    end-of-selection.
    FORM f4_nodeid  USING    p_field.
      declare it_node.
    select znodeid from ZNODETAB into table it_node.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'ZNODEID'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = p_field
          value           = space
          value_org       = 'S'
          display         = 'F'
        TABLES
          value_tab       = it_node
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
    endform

  • How to restric the selection screen option

    Hi,
       This is my first time to use this site. I am working on report which is OM report using PCH logical DB. when I run the report it runs for all OBJID instead of running for the select one(the one I use on selection screen).
    Does any one has any Idea why is this doing that and how to fix it.

    after GET OBJEC uss te folliwng check..
    CHECK OBJID in PCHOBJID.
    ~Suresh

  • Selection Screen options for Tcode CRM_DNO_MONITOR - Transaction Monitor

    Hi all,
    I need information regarding the selection screen when i am executing the Tcode CRM_DNO_MONITOR.
    When i am executing CRM_DNO_MONITOR in the selection screec there are follwing options:
    Mine
    My Department
    My colleagues
    My Team(s)
    In the selection screen if choose "Mine" option am able to see the o/p and if i select any other options am not getting the o/p. So It would be great if any one explain what are these options for and how they are use full ?
    If i want to delete the unwanted selection criteria is that possible.
    Thank you in advance,
    Regards
    Vijay

    solved myself...!

  • SUBMIT - selection screen

    Hi all
    I want to call a REPORT using SUBMIT and at the same time this REPORT has a selection screen with two parameters P_FIELD1 and P_FIELD2. I want to also pass two values to this two parameters when I call the REPORT.
    Someone please help me.
    Waiting............

    Hi,
    Please take a look at the example below:
    SUBMIT zdealer_contacts_add_edit AND RETURN
                                         WITH p_kunnr = v_kunnr
                                         WITH p_name1 = p_name1  "AVH
                                         WITH p_cdseq = space
                                         WITH p_flag = 'A'
                                         WITH p_addr = it_zts0001-zaddress
                                         WITH p_pers = it_zts0001-zcperson
                                         WITH p_numb = it_zts0001-zcnumber
                                         VIA SELECTION-SCREEN.
    Hope this helps...
    P.S. Please award points for useful answers.

Maybe you are looking for

  • How do I get my CF card to stop unexpectedly ejecting on my new Macbook Pro?

    I have two Macs - a 5 year old Mac Pro and a new 15 inch Macbook Pro with Retina display. Both run Mavericks. Both have Photoshop Lightroom 4. I tried importing some photos today using. USB CF card reader today. Thumbnails of the photos came up fine,

  • Adding field in a smart form select statement

    hi, i am modifying a report in which i have to add sortl from kna1 in the select statement . when i try to modify the statement it gives error as i ahev defined the value in the global variable . plzz help me out as help will be definately rewarded.

  • Iphoto on ipad mini

    Hi I have some photos on my ipad mini which I want to remove and replace with just one album that is on my airbook. However, when I click the album in itunes on my mac then click sync there are no changes happening on the ipad. Can any one help? Than

  • With Range Expander I cannot connect to GOOGLE site~ Please HELP ME~!

    I purchased this range expander a month ago, since then I cannot connect to the GOOGLE and some other websites. Can anyone know what the problem is? I tried everything the google site and the other people suggested yet it did not work. Please help me

  • Data returned from cfpdf action=read

    I'm trying to figure out how to determine if a PDF retrieved using cfpdf action=read has been flattened. If I attempt to flatten an already-flattened PDF I get a "Source does not have any form. Cannot specify flatten for the WRITE action in the cfpdf