Submit a report program with same selection screen with some values exclude

Dear All,
I have to  submit a stndard report program from a copied zprogram with same slection screen values ,
and in some slect-options some values will be excluded depending upon the zprogram.
How to make it.
I mean when i submit , same selction screen values should go along with , depending upon some condions i have to exclude some values .
for ex: selection screen from a to b
posting date should go same
but may be along with it i have to pass movem,ent type <> 202 to the submit screen ,.
how to do this?

Hi Rajendra
>What if i have to pass the movement type also 200 to 250 , with 202 and 203 exluded .
Use BT ( between ) operator for 200 to 250 :
lr_move_type-sign = 'I'.
lr_move_type-option = 'BT'.
lr_move_type-low = '200'.
lr_move_type-high = '250'.
COLLECT lr_move_type.
And use NE ( not equal )  operator to exclude 202 and 203 :
lr_move_type-sign = 'I'.
lr_move_type-option = 'NE'.
lr_move_type-low = '202'.
COLLECT lr_move_type.
lr_move_type-low = '203'.
COLLECT lr_move_type.
It works just this way.
> Secondly,
>
> If i have the selction sreen same in both the screen , is it possible to pass the same values as it is with out writing one by one selct-option and parameter?
No I don't think there is way to do it without writing one by one
but you may not specify for empty select-options.
Edited by: Bulent Balci on Aug 21, 2010 11:46 AM

Similar Messages

  • SUBMIT a report without showing the selection-screen

    hey guys,
      i want to submit a report(rep2) from my report.(rep1)
    rep2 has selection-screen.(it also has ldb associated).
    i am apssing all the data for selection-screen(of rep2) using an itab.
    but now i dont want selection-screen of rep2 to be displayed when rep1 is executed.
    how to go about?

    Dear Kumar,
    you can use the below specified variants
    SUBMIT <REPORT NAME>
    1. ... USING SELECTION-SET vari
    2. ... WITH p op f SIGN s
    3. ... WITH p BETWEEN f1 AND f2 SIGN s
    4. ... WITH p NOT BETWEEN f1 AND f2 SIGN s
    5. ... WITH p IN sel
    6. ... WITH SELECTION-TABLE seltab
    7. ... WITH FREE SELECTIONS texpr
    Eg.,
    CLEAR paramtrs.
        REFRESH paramtrs.
        PERFORM append_selection_table USING :
                      'SO_NUM' 'P' 'EQ' 123456
                      'ITEM'   'P' 'EQ'  abcdef,
                      'POS'    'P' 'EQ'  10.
        SUBMIT <abc>  WITH SELECTION-TABLE paramtrs AND RETURN.
    FORM append_selection_table USING fname ftype fopre fvalue.
      MOVE : fname  TO paramtrs-selname,
             ftype  TO paramtrs-kind,
             fopre  TO paramtrs-option,
             fvalue TO paramtrs-low.
      APPEND paramtrs.
    ENDFORM.
    where SO_NUM, ITEM AND POS  are the report abc's input selection screen.

  • How to submit a  report program to a standard program.

    I want to submit a report program to a slection screen program which is standard with some values. can any one help me out.
    here is the code.
    CONSTANTS:  w_object(10)   type c value  'ZCOST2',
               k_projet(10)   TYPE c VALUE 'AIN_AUSA2',
               k_ssprojet(10) TYPE c VALUE 'ZCOST2'.
    SUBMIT /sapdmc/sap_lsmw_bi_recording
                     via selection-screen
                     WITH p_keep = 'X'
                     WITH p_object = w_object
                     WITH p_projec = k_projet
                     WITH p_subpro = k_ssprojet and return.

    Hi
    Try this...
    SUBMIT /sapdmc/sap_lsmw_bi_recording
                 WITH p_keep = 'X'
                 WITH p_object = w_object
                 WITH p_projec = k_projet
                 WITH p_subpro = k_ssprojet
                  AND return.
    Note:  No need to mention 'VIA Selection Screen', it's not a mandatory.....

  • BI: Virtual Provider for ECC Report with same selection parameters

    Dear all,
    I have attached screen shot of ECC report selection screen with contain Material, Plant and Dates. As report is bit complex and I need to use just ITAB (internal table) of it for further use in BEx Query and for Dashboard purposes.
    Problem: I need to call this report by creating Virtual Provider in BI so that I get data from ECC at runtime as it is shares report so I can't able to save any data in transparent table as report calculated opening balances at runtime.
    It is possible for me by using function module i can get itab by submit return and then create Data Source for it ?
    As i make copy of FM ZZRSAX_BIW_GET_SIMPLE i cannot use submit there due to OPEN CURSOR mechanism there.
    Kindly anyone suggest how it is possible to call report with same selection parameters for creation of virtual provider.
    Please mention if i miss any point in explaining problem.
    Feel free to ask for any query.
    Many thanks.
    Hoping for positive and quick responses.

    please create 2 reports as given below.-
    REPORT  ZSZP_00007.
    parameters a(5) .
    parameters b(5) .
    parameters c(5) .
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF screen-name = 'A' or screen-name = 'B' .
      get parameter id 'aaaaaaaaaaa' field a.
      get parameter id 'bbbbbbbbbbb' field B.
    screen-input = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    start-of-selection.
    your logic
    REPORT  zszp_00005.
    PARAMETERS a(5).
    PARAMETERS b(5).
    START-OF-SELECTION.
      SET PARAMETER ID 'aaaaaaaaaaa' FIELD a.
      SET PARAMETER ID 'bbbbbbbbbbb' FIELD b.
    your logic
    SUBMIT zszp_00007 VIA SELECTION-SCREEN.
    i hope this approach will solve your problem.
    thanks
    Swanand

  • SUbmit program where the selection screen called has tab screens

    Hello folks,
                    Anyone ever used the submit command where the program called has tab screens on its intial screen? I would like to do this and do not want to have the selection screen display, so I am hoping there is some way to inform the submit command that I have multiple tabs to fill selection criteia on.
    Cheers,
    Ross Goodman

    Hi,
    Try using
    Submit prog_name  USING SELECTION-SCREEN dynnr
    or
    SUBMIT prog_name USING SELECTION-SET  'Variant'
    I guess this should meet your requirement.
    however I have not tried it for Selection screen with tabs.
    Let me know how it goes...!!1
    Regards,
    Nikhil

  • How to run the program in back ground with out selection screen ?

    Hi,
    I want to run the program in back ground but don't have selection screen. How to run this program in back ground
    as program has no selection screen.
    Waiting for quick response.
    Best Regards,
    Padhy
    Moderator message: basic, please search for available information/documentation.
    Edited by: Thomas Zloch on Feb 21, 2011 12:43 PM

    Hi,
    Go to transaction SE38 --> Execute --> Background.
    If your program contains selection screen, you have to pass your input values as variants.

  • Can you giv me a brief introduction regarding selection screen with one eg:

    Hello
    can you giv me a brief introduction regarding selection screen with one eg:

    Hi Ranjith,
    Selection Screens
    Selection screens are one of the three types of screen in the R/3 System, along with dialog screens and lists. You use them whenever you want the user to enter either a single value for a field or fields, or to enter selection criteria.
    Function
    ABAP programs use screens to obtain input from users. The most general type of screen is a dialog screen, which you create using the ABAP Workbench tools Screen Painter and Menu Painter These tools allow you to create screens for data input and output. However, each of these screens requires its own flow logic.
    Defining and Calling Selection Screens
    You often use screens purely for data input . In these cases, you can use a selection screen. Selection screens provide a standardized user interface in the R/3 System.  Users can enter both single values and complex selections.  Input parameters are primarily used to control the program flow, while users can enter selection criteria to restrict the amount of data read from the database. You can create and save predefined sets of input values in the ABAP Editor for any selection screen. These are called variants.  Texts on the selection screen are stored as language-specific selection texts in the program text elements.  If you start an executable report using the SUBMIT statement, the input fields of the selection screen also serve as a data interface.
    Defining and Calling Selection Screens
    You define selection screens using ABAP statements in a program.  Simple statements allow you to create input fields, checkboxes, and radio buttons, and design the screen layout.  If you want to create a screen exclusively for data input, you do not need to create it using the normal dialog programming tools. When you create a selection screen, the system automatically assumes the tasks of the Screen Painter and Menu Painter.
    The rules for calling and defining selection screens in ABAP programs depend on the program type:
    ·         Executable program (type 1) without logical database
    You can use a single standard selection screen and as many user-defined selection screens as you wish. The standard selection screen is called automatically when you start the program.  User-defined selection screens, on the other hand, are called using the CALL SELECTION-SCREEN statement in a program.  The standard selection screen always has the screen number 1000. User-defined selection screens can have any screen number except 1000.
    ·         Executable program (type 1) with logical database
    The standard selection screen for an executable program linked to a logical database is made up of the logical database selections and the program selections.
    ·         Module pools (type M) and function modules (type F)
    You can only use user-defined selection screens in module pools and function modules. These can have any number apart from 1000. You can only call a selection screen from a function module using the CALL SELECTION-SCREEN statement. You can also define selection screens as Subscreens and incorporate them in screens or tabstrip controls.
    Hope this is useful.
    regards
    Ram
    Message was edited by:
            Ramanujan Chitrakootam

  • Restrict 'Executing report in background' from selection screen

    I want user to not to select option for executing report in background from Selection Screen of the program.
    i.e. 'Execute Program in Background' option in 1st menu bar tab should either be disabled OR if user clicks on it then he should get error message on selection screen itself.
    Thanks,
    Falguni

    Hi Falguni,
    Write the code based on function code SJOB in the event AT SELECTION-SCREEN. Write the following code :
    AT SELECTION-SCREEN
    CASE SY-UCOMM.
    WHEN 'SJOB'.
    MESSAGE E000 WITH 'You cannot schedule background job'.
    ENDCASE.
    Thanks & Regards,
    Faheem.

  • Multiple selection screens with status gui

    Hi,
    I want to make a report with two selection screens and i should create a status gui for these two.
    So, I've tried to do, the following:
    * FIRST SCREEN
    SELECTION-SCREEN BEGIN OF BLOCK bk WITH FRAME.
    PARAMETERS: pa(200) TYPE c.
    SELECT-OPTIONS: so FOR sflight-carrid.
    SELECTION-SCREEN END OF BLOCK bk.
    * /FIRST SCREEN
    * SECOND SCREEN
    SELECTION-SCREEN BEGIN OF SCREEN 2000.
    SELECTION-SCREEN BEGIN OF BLOCK bk1 WITH FRAME.
    PARAMETERS: pa2(200) TYPE c.
    SELECTION-SCREEN END OF BLOCK bk1.
    SELECTION-SCREEN END OF SCREEN 2000.
    * /SECOND SCREEN
    AT SELECTION-SCREEN OUTPUT.
      SET PF-STATUS 'Z_STAT'.
      SET TITLEBAR 'COISO'.
    AT SELECTION-SCREEN.
      IF sy-dynnr EQ '1000'.
        CASE sy-ucomm.
          WHEN 'BACK' OR 'EXIT' OR 'CANC'.
            LEAVE TO SCREEN 0.
          WHEN 'EXECUTAR'.
            CALL SELECTION-SCREEN 2000.
            IF sy-subrc <> 0.
              LEAVE TO SCREEN 1000.
            ENDIF.
        ENDCASE.
    The problem is that on the first selection screen i have the status gui that I've created, but when i use CALL SELECTION-SCREEN 2000
    the status gui (Z_STAT) is not assigned with the screen 2000.
    Is this possible? If yes how, and how can i capture which button on status gui of screen 2000 was clicked, because the field sy-ucomm after the call selection-screen 2000 is not updated?
    Regards,
    Pedro Bessa

    harsh bhalla,
    its the same report. with two selection-screens. Can't i have status gui for both of them?
    Gurpreet Singh,
    I have a selection screen. Not a screen. Can a have a pbo for a selection-screen? or one for each selection-screen?
    The table SSCRFIELDS and the field sy-ucomm stays with the value from the first selection-screen.
    Regards,
    Pedro Bessa

  • Report which has four selection screens called in a specific order

    Hi All,
    In a report, how can I call multiple selection screens predefined, and  create BDC recording in the program based on the values entered in the selection screens. The selection screens are 4 in my scenario in a specific order. Please send across sample code which has the logic to call multiple selection screens and create BDC recording for sales order, delivery, PGI..Thanks
    Ricky

    If ur option is to creat multiple screens...go for tabstrip option in ur report and record it.
    selection-screen begin of screen 001 as subscreen.
    selection-screen begin of block b1 with frame title text-001.
    selection-screen begin of line.
    selection-screen comment 2(10) text-003.
    parameters:par1 type marc-matnr.
    selection-screen end of line.
    selection-screen end of block b1.
    selection-screen end of screen 001.
    selection-screen begin of screen 002 as subscreen.
    selection-screen begin of block b2 with frame title text-002.
    selection-screen begin of line.
    selection-screen comment 2(10) text-003.
    parameters:par2 type marc-matnr.
    selection-screen end of line.
    selection-screen end of block b2.
    selection-screen end of screen 002.
    selection-screen begin of tabbed block tabstrip for 10 lines.
    selection-screen tab (15) tabs1 user-command t1 default screen 001.
    selection-screen tab (15) tabs2 user-command t2 default screen 002.
    selection-screen end of block tabstrip.
    initialization.
    tabs1 = 'TAB1'.
    tabs2 = 'TAB2'.

  • Logical database sdf in custom program not triggering selection screen?

    I added logical Database SDF (screen 905) to a custom program - but the selection screen is not getting triggered.
    Do I have to associate these somewhere?
    Thanks,
    Ven

    HI,
    Declare this statement after the Report Statement in the program.
    TABLES : SKA1, SKB1.
    You will get the selection screen now.

  • How to deal with dynamic selection screen elements when macros are used?

    Hello experts,
    This is regarding the dynamic selection screen elements. Actually the requirement is to modify the existing standard report program RFUMSV00 by copying it into a Z report, adding a few selection screen elements and new fields in the output. I actually did everything required except for the one thing that is going out of my reach.
    There are a certain fields which are coming when they are not supposed to get displayed. I don't understand the code because of its obsoleteness. Neither can I debug it because it is just data declaration.
    This is the code where there is a fault. If I copy the entire code into a new Z report, I'm getting new fields like Entry Date, Document Type, Reference Transaction,  Reference key, Logical system.
      DEFINE selection_screen_line.
      selection-screen: begin of line.
      parameters &3 like &4 default 'X' modif id mc4.
      selection-screen: comment (30) &1 for field &3 modif id mc4.
      selection-screen: comment pos_low(10) text-019
                        for field &2 modif id mc4.  "neu
      parameters &2 like rfums_alv-variante modif id mc4.
      selection-screen:
          position pos_high.
      selection-screen: pushbutton (15) text-028
                        user-command &5 modif id mc4.
      selection-screen end of line.
    END-OF-DEFINITION.
    Kindly, suggest me the right solution.

    In the program attributes ( SE38 > RFUMSV00 > GOTO > Properties ), you will find a logical database BRF declared. The include DBBRFSEL is part of the selection screen of this logical database.
    The selection screen is actually the selection screen of this logical database.
    Under the Logical Database field, there is a Selection screen field where you can input which selection screen of the logical database to be used.
    But, this is just to change the selection screen that is displayed. To completely suppress it you need to remove logical database declaration from the properties of the program and call it inside your program through function module.
    You cannot just remove it from the declaration because many of its variables are used in the program.
    So call it using function module as the first step in INITIALIZATION section of the program.
    The syntax and function module to call it in your program can be found in the following thread :
    How to hide the selection screen of a Logical datebase?
    Regards,
    Ashish

  • How can i  display output in the same selection screen?

    I've a requirement. Suppose in my selection screen there are three input fields. On the basis of this selection screens input It will  display the output in the same selection screen. Can it be possible? .
    Can it be possible to modify the default screen no for the selection screen 1000?
    Thanks in advance.
    Abhijit

    Hi Abijit,
    Whatever changes made in STANDARD SELECETION SCREEN 1000 or screens generated using 'SELECTION-SCREEN' statements, are not permanent.
    It will get back to its original appearance, while you execute again or some time later.
    Whenever you get into 'CHANGE' mode of these screens, an information will be displayed as follows ;
    Selection screen: Report generation makes screen
    changes ineffective
    Regards,
    R.Nagarajan.

  • How to replace the existing selection screen with new selection screen

    Hi,
    I have first selection screen with parametre as a table name, then I have created dynamic selection screen as 2nd selection screen with different fields of that table as select options. This is done using genaration of dynamic report. Now If I click on button on this 2nd selction screen , then I want to replace this 2nd dynamic selection screen , with the other selection screen fields.
    Can anybody guide me, How to do replace one slection screen with different selection screen.
    and one imp thing is this selction screen is populating with dynamic fields on it.
    Regards,
    Mrunal

    As I can understand you want to make some of the screen field to disable or visible on screen  depending upon the interaction of user with screen 1.
    You may use this example code in PBO of screen 2.
    LOOP AT SCREEN.
        " action has been taken to modify the area office screen as per the option chosen at screen 99.
        CASE ACTION.
            " if the user has taken up the option of UPLOAD
          WHEN 'UP'.     " screen processing while we upload the plan
            " during upload we will make dates as output fields only
            IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
              SCREEN-INPUT = 0.
              MODIFY SCREEN.
            ENDIF.
            " also make 2 buttons disabled
            IF SCREEN-NAME = 'AO_DO' OR SCREEN-NAME = 'AO_VE'.
              SCREEN-ACTIVE = 0.
              MODIFY SCREEN.
            ENDIF.
          WHEN 'DN'.      " screen processing while we upload the approved plan
            " during upload we will make dates as output fields only
            IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
              SCREEN-INPUT = 0.
              MODIFY SCREEN.
            ENDIF.
            " also make 2 buttons disabled
            IF SCREEN-NAME = 'AO_UP' OR SCREEN-NAME = 'AO_VE'.
              SCREEN-ACTIVE = 0.
              MODIFY SCREEN.
            ENDIF.
          WHEN 'VW'.      " screen processing while we view the plan
            " during upload we will make dates as output fields only
            IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
              SCREEN-INPUT = 0.
              MODIFY SCREEN.
            ENDIF.
            " also make 2 buttons disabled
            IF SCREEN-NAME = 'RLGRAP-FILENAME' OR SCREEN-NAME = 'FNAME'.
              SCREEN-ACTIVE = 0.
              MODIFY SCREEN.
            ENDIF.
            " and hide the file input field
            IF SCREEN-NAME = 'AO_DO' OR SCREEN-NAME = 'AO_UP'.
              SCREEN-ACTIVE = 0.
              MODIFY SCREEN.
            ENDIF.
        ENDCASE.
      ENDLOOP.

  • Alv is not appearing in the same Selection Screen

    Hi people..
    First time using  cl_gui_docking_container.
    I have a problem, my alv is not appearing in the same Selection Screen.
    is there somethign wrong with my code? it doesnt even show a dump or catch.
    Regards
    DATA: lo_dock TYPE REF TO cl_gui_docking_container,
           lo_cont TYPE REF TO cl_gui_container.
    DATA: gr_table      type ref to cl_salv_table,
           gr_functions  type ref to cl_salv_functions,
           gr_display    type ref to cl_salv_display_settings,
           gr_columns    type ref to cl_salv_columns_table,
           gr_column     type ref to cl_salv_column_table,
           gr_sorts      type ref to cl_salv_sorts,
           gr_agg        type ref to cl_salv_aggregations,
           gr_filter     type ref to cl_salv_filters,
           gr_layout     type ref to cl_salv_layout,
           color         type lvc_s_colo,
           key           type salv_s_layout_key.
       SELECT * INTO TABLE tbl_datos_items FROM zsd_micros_bd.
    CHECK lo_dock IS INITIAL.
      CREATE OBJECT lo_dock
           EXPORTING
             repid = sy-cprog
             dynnr = sy-dynnr
             ratio = 70
             side  = cl_gui_docking_container=>dock_at_bottom
             name  = 'DOCK_CONT'.
         IF sy-subrc <> 0.
           MESSAGE 'Error in the Docking control' TYPE 'S'.
         ENDIF.
    TRY.
    lo_cont ?= lo_dock.
    cl_salv_table=>factory(
    exporting r_container      = lo_cont
                 container_name = 'DOCK_CONT'
                 list_display   = if_salv_c_bool_sap=>false
    importing r_salv_table = gr_table
    changing t_table = tbl_datos_items  ).
    CATCH cx_salv_msg .
    ENDTRY.
    gr_functions = gr_table->get_functions( ).
    gr_functions->set_all( abap_true ).
      gr_display = gr_table->get_display_settings( ).
      gr_display->set_striped_pattern( cl_salv_display_settings=>true ).
      gr_display->set_list_header( 'Items de Ventas' ).
      gr_table->display( )

    Hi ,
    First you have to create you own screen ( dynpro )  with a screen number ( 0101 for exemple )  , you need to pu a custom control in it , name the custom control ( lo_cont )
    For the screen created you need to create a module for the PBO , in this module you sould put you code for displaying the liste :
    Module STATUS_0101 output.
    TRY.
    lo_cont ?= lo_dock.
    cl_salv_table=>factory(
    exporting r_container      = lo_cont
                 container_name = 'DOCK_CONT'
                 list_display   = if_salv_c_bool_sap=>false
    importing r_salv_table = gr_table
    changing t_table = tbl_datos_items  ).
    CATCH cx_salv_msg .
    ENDTRY.
    gr_functions = gr_table->get_functions( ).
    gr_functions->set_all( abap_true ).
      gr_display = gr_table->get_display_settings( ).
      gr_display->set_striped_pattern( cl_salv_display_settings=>true ).
      gr_display->set_list_header( 'Items de Ventas' ).
      gr_table->display( ).
    Endmodule.
    and give the screen number when calling  lo_dock 
    CREATE OBJECT lo_dock 
           EXPORTING
             repid = sy-cprog
             dynnr = '0101'.
    tested
    Regards

Maybe you are looking for

  • Flash not working in Safari 5

    Flash has been buggy for me in Safari 5, ever since I updated the Flash player last week to "10.1 r53". Either Flash files don't play at all, or just the audio plays without video. Per the instructions on these boards, I have: 1. reset Safari 2. unin

  • Iphone stuck in recovery after ios5

    well went to update my iphone to the ios 5 today all was going ok till it downloaded it sed it was looking for drivers then downloaded the drivers then i got a error and it put my phone into recovery mode itunes says i need to restore it to factory a

  • Something really crazy

    here are two codes. They're basically the same except for one line, System.out.printf("(%d,%d)\n",c,d);which has little to do with what the whole code is supposed to do, which is to randomly erase pixels of an image. The problem is that when you exec

  • SQL 2005 with ERP2005 (ECC 6.0) Unicode

    Hi All, I need a few questions to be answered. Can anybody tell me as to what would be the initial size of the database after an installation of ECC 6.0 Unicode with database as SQL 2005. Is there any minimum hardware requirements that would have to

  • Spry in dynamic HTML

    Hi, i want to use the Spry Framework with dynamic loaded HTML. To do so i load HTML in an div-Element and afterwards i call 'Spry.Data.initRegions(obj);', where obj is the object of the div with the dynamic content. I have set: 'Spry.Data.Region.debu