Empty selection options  after report run

Hi,
After the execution of my abap report sap returns to the selection options screen in which all the selected values from the run are still mentioned. How can i refresh the selection screen (so no values in the selection options after the report run) ?
this is the code (all parameters as you can see) :
  parameters :  p_matnr   like mara-matnr default ''.
  parameters :  p_werks   like mard-werks default 'XYZ', 
                p_lgort   like mard-lgort default ''.    
selection-screen skip 1.
  parameters :  p_qty     like sy-tabix default 1.
selection-screen skip 1.
  parameters :  p_file    like RLGRAP-FILENAME memory id GXD.
with regards

hi
i tried for select-options try for parameters
at selection-screen .
if sy-ucomm = 'ONLI'. " Only when execute is pressed
v_low = s_kunnr-low.
v_high = s_kunnr-high . " Hang on to this for select statement
clear s_kunnr[].
clear s_kunnr. " Clear the screen parameter
endif.
for your program
data : matnr like mara-matnr,  " variables are taken so that we can have the values for further                                     operations         
      werks like mard-werks,
       lgort like mard-lgort,
       qty like sy-tabix,
       file like RLGRAP-FILENAME.
at selection-screen.
if sy-ucomm = 'ONLI'. " Only when execute is pressed
matnr = p_matnr.
clear p_matnr.
werks = p_werks.
clear p_werks.
lgort = p_lgort.
clear p_lgort.
qty = p_qty.
clear p_qty.
file = p_file.
clear p_file.
endif.
start-of-selection. " write what ever code you have for the start-of-selection
NOTE "Remove the memory id for p_file otherwise it will not be cleared
regards
prasanth

Similar Messages

  • Remove screen values for select options after report runs

    I have a report that runs and when it is finished there is garbage in 3 select-option fields.  I put it there because i want the report to run if the field is blank.  here is a sample of that code.
    IF SO_APS = '  '.
        SO_APS = 'IEQn'.
        APPEND SO_APS.
      ENDIF.
    what happens is that there is an displayed after the report is finished, and I don't want to confuse the end users.

    You can try clearing it as the last statement.
    clear  SP_APS.   Refresh SO_APS.
    If that doesn't work, then try FREE MEMORY as the last executable statement.
    Regards,
    Rich Heilman

  • Ignoring empty select-option inputs

    Hi all,
    Have 3 input select options as follows:
    select-options: so_retnr for vbak-vbeln.
    select-options: so_matnr for mara-matnr.
    select-options: so_bstnr for vbak-bstnk.
    Iam using the above 3 select options in the following select.
    Now the user can fill-in all the above select inputs or any 1 or 2 of them.
    In my select statement I want to use only those select-options filled in by the user so that it wont make a full table search for the empty select-option input.
    Is there any easy way to check that in the select statement.
      select vbakvbeln vbakbstnk vbakihrez vbakaudat vbak~auart
           vbapmatnr vbaparktx vbap~kwmeng into corresponding fields
           of table gt_zrritab from vbak inner join vbap on
            vbakvbeln = vbapvbeln
            where  vbak~vbeln in so_retnr and
                   vbap~matnr in so_matnr and
                    vbak~bstnk in so_bstnr and
                    vbak~auart = 'ZRR'.
    Regards
    P

    data: t_string type string.
    if not so_retnr[] is initial and not so_matnr[] is initial and not so_bstnr[] is initial.
      t_string = 'vbakvbeln IN so_retnr AND vbapmatnr IN so_matnr AND vbak~bstnk IN so_bstnr'.
    elseif not so_retnr[] is initial and not so_matnr[] is initial and so_bstnr[] is initial
    t_string = 'vbakvbeln IN so_retnr AND vbapmatnr IN so_matnr.
    elseif not so_retnr[] is initial and so_matnr[] is initial and not so_bstnr[] is initial
      t_string = 'vbakvbeln IN so_retnr AND vbakbstnk IN so_bstnr'.
    elseif.
    etc....
    endif.
      SELECT vbakvbeln vbakbstnk vbakihrez vbakaudat vbak~auart
      vbapmatnr vbaparktx vbap~kwmeng INTO CORRESPONDING FIELDS
      OF TABLE gt_zrritab FROM vbak INNER JOIN vbap ON
      vbakvbeln = vbapvbeln
      WHERE (t_string)
       AND vbak~auart = 'ZRR'.
    zashok

  • Problem in displaying selection options in report

    Hi Team,
    There is a report running in production. It has one select option for data element PROJ-PSPNR.
    But the requirement changes and the selection option should be for PROJ-PSPID instead.
    I started changing the code in development box and deleted the selection text in text element for previous select option and put the description of the new one.
    In development it is showing perfect. I transported the transport request to quality and pre-production.
    In quality also it is looking fine. But in pre-prod, the text option of the select option is not coming. Besides the icon on the button at the right of two text boxes of that select option is also not showing.
    (The button on which we click to input multiple values in the select option).
    Now I am in a fix. Why this is happening and what I should do?
    Mainak

    Hi Mainak,
    Do the follwing steps:
    1) check that selection-text of that select-options are transported or not.
    2) if tranported may be some activation problme.....for that you need to do on thing.
                 go to your pre-production box, there in the report generate the program again by
                 program-->Generate....  it will genereate the your program. so that the missing will appear.
    Thanks!

  • Select options in report painter COPA

    In report painter when we go to "maintain selection options", the
    "exclude from selection" is greyed out.
    Any suggestions?

    HI, guess SAPNET 516557 will help.
    BR Christian

  • Multiple selection tab on Custom F4 of select option in report

    Hi folks ,
      how to get MULTIPLE SELECTION tab on extension of my selec option of report screen.
    If i pass Multiple_choice = 'X' in fm 'F4IF_INT_TABLE_VALUE_REQUEST' check boxes are appearing of each my f4 values when i press f4, i dnt want like this i want it my extension as Multiple selection as how it appears for standard 4 helps.
    <removed by moderator>
    Thanks,
    Shwetha
    Edited by: Thomas Zloch on Jan 7, 2012 10:32 PM

    Hi Clemen,
    Any selectin screens element(select-option) if we click on extension we will get a pop up window with  SINGLE VALUES,SELECT RANGES,EXCLUDE SINGLE VALUES, EXCLUDE RANGES bottome of this window we are having some icons along with it we have MULTIPLE SELECTION Tab.if we click on multiple selection tab we will be getting our all values with checkboxes each front of it so that we can select multiple vlaues at a time for the particular f4 .
    i want this multiple selection tab for my custome F4, iam not getting this MULTIPLE SELECTION tab.
    for example you can check for select-option of account group(T077D-KTOKD).
    in F4 function module if iam using paramter MULTIPLE_CHOICE = 'X', iam not getting the extension pop window with singlevalues, select ranges etc ., instead of it iam getting all my f4 fields with the checkboxes infront of each of it.
    please throw some light it is very urgent.
    please tell me iam using following parameters in function module please let me know if i need to use any other to get it..
    with the following if iam selecting multiple also i am able to see only last value in selection(inpopup window)
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'ATWRT'
          dynpprog        = sy-cprog
          dynpnr          = sy-dynnr
          dynprofield     = 'S_CHVAL1-HIGH'
          display         = c_sp
          value_org       = c_s
          multiple_choice = 'X'
          callback_program = sy-repid
        TABLES
          value_tab       = t_finals
          return_tab      = t_return4
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc = 0.
        READ TABLE t_return4." WITH KEY retfield = 'S_CHVAL1'.
        IF sy-subrc EQ 0.
          s_chval1-high = t_return4-fieldval.
        ENDIF.
      ENDIF.
    Thanks,
    Shwetha
    Edited by: swetha rishi on Jan 8, 2012 11:15 AM

  • How to show select option on report

    Using the excel based bex tool is there a way to show what the user picked in the select-option on the report so when the print it.
    Thanks

    Hi Richard,
    check the "Display text elements"- option in Bex. If I understanf correctly this is what you are looking for.
    Go to "Business Explorer" -> "Layout" - "Display Text elements"
    Regards,
    Michael
    Message was edited by: Michael S

  • Assigning Data-Type Select-Option from Report to Method

    Hi Specialists,
    How can I solve the following task smart?  It’s a quiet simple task. In my Report I’ve some Select-Option-Data-Types and I want to assign this data-type an Abpab-Object-Method. Is it possible to do this in a smart fashion. I’ve fight with the Abap-Syntax und at the end I’ve found a tricky way of assigning the Select-Option parameter to the Abap-Object-Method.
    If somebody have a smart idea for this problem, pleas let me know.
    Thankx.
    Hallo Spezialisten,
    ich hätte da eine Frage wie man folgende Aufgabe elegant lösen kann.
    Es ist ganz einfach, ich möchte von einen Report einen Select-Option-Datentyp an eine Abapobject Methode übergeben. Ich hatte sehr lange gekämpft bis ich ein umständlichen weg gefunden habe die parameter vom reprot an die mehtode zu übergen.
    Falls jemand da eine gut Idee hätte wäre mir das nächste mach sehr geholfen.
    Danke

    Hi 
    Here is the Program with  Selection screen and   the Class & Methods.
    REPORT demo_abap_objects_methods NO STANDARD PAGE HEADING.
    * Global Selection Screens
    SELECTION-SCREEN BEGIN OF: SCREEN 100 TITLE tit1, LINE.
    PARAMETERS members TYPE i DEFAULT 10.
    SELECTION-SCREEN END OF: LINE, SCREEN 100.
    SELECTION-SCREEN BEGIN OF: SCREEN 200 TITLE tit2.
    PARAMETERS: drive    RADIOBUTTON GROUP actn,
                stop     RADIOBUTTON GROUP actn,
                gearup   RADIOBUTTON GROUP actn,
                geardown RADIOBUTTON GROUP actn.
    SELECTION-SCREEN END OF: SCREEN 200.
    * Class Definitions
    CLASS: c_biker DEFINITION DEFERRED,
           c_bicycle DEFINITION DEFERRED.
    CLASS c_team DEFINITION.
      PUBLIC SECTION.
        TYPES: biker_ref TYPE REF TO c_biker,
               biker_ref_tab TYPE STANDARD TABLE OF biker_ref
                                           WITH DEFAULT KEY,
               BEGIN OF status_line_type,
                 flag(1)  TYPE c,
                 text1(5) TYPE c,
                 id       TYPE i,
                 text2(7) TYPE c,
                 text3(6) TYPE c,
                 gear     TYPE i,
                 text4(7) TYPE c,
                 speed    TYPE i,
               END OF status_line_type.
        CLASS-METHODS: class_constructor.
        METHODS: constructor,
                 create_team,
                 selection,
                 execution.
      PRIVATE SECTION.
        CLASS-DATA: team_members TYPE i,
                    counter TYPE i.
        DATA: id TYPE i,
              status_line TYPE status_line_type,
              status_list TYPE SORTED TABLE OF status_line_type
                               WITH UNIQUE KEY id,
              biker_tab TYPE biker_ref_tab,
              biker_selection LIKE biker_tab,
              biker LIKE LINE OF biker_tab.
        METHODS: write_list.
    ENDCLASS.
    CLASS c_biker DEFINITION.
      PUBLIC SECTION.
        METHODS: constructor IMPORTING team_id TYPE i members TYPE i,
                 select_action,
                 status_line EXPORTING line TYPE c_team=>status_line_type.
      PRIVATE SECTION.
        CLASS-DATA counter TYPE i.
        DATA: id TYPE i,
              bike TYPE REF TO c_bicycle,
              gear_status  TYPE i VALUE 1,
              speed_status TYPE i VALUE 0.
        METHODS biker_action IMPORTING action TYPE i.
    ENDCLASS.
    CLASS c_bicycle DEFINITION.
      PUBLIC SECTION.
        METHODS: drive EXPORTING velocity TYPE i,
                 stop  EXPORTING velocity TYPE i,
                 change_gear IMPORTING change TYPE i
                             RETURNING value(gear) TYPE i
                             EXCEPTIONS gear_min gear_max.
      PRIVATE SECTION.
        DATA: speed TYPE i,
              gear  TYPE i VALUE 1.
        CONSTANTS: max_gear TYPE i VALUE 18,
                   min_gear TYPE i VALUE 1.
    ENDCLASS.
    * Class Implementations
    CLASS c_team IMPLEMENTATION.
      METHOD class_constructor.
        tit1 = 'Team members ?'.
        CALL SELECTION-SCREEN 100 STARTING AT 5 3.
        IF sy-subrc NE 0.
          LEAVE PROGRAM.
        ELSE.
          team_members = members.
        ENDIF.
      ENDMETHOD.
      METHOD constructor.
        counter = counter + 1.
        id = counter.
      ENDMETHOD.
      METHOD create_team.
        DO team_members TIMES.
          CREATE OBJECT biker EXPORTING team_id = id members = team_members.
          APPEND biker TO biker_tab.
          CALL METHOD biker->status_line IMPORTING line = status_line.
          APPEND status_line TO status_list.
        ENDDO.
      ENDMETHOD.
      METHOD selection.
        CLEAR biker_selection.
        DO.
          READ LINE sy-index.
          IF sy-subrc <> 0. EXIT. ENDIF.
          IF sy-lisel+0(1) = 'X'.
            READ TABLE biker_tab INTO biker INDEX sy-index.
            APPEND biker TO biker_selection.
          ENDIF.
        ENDDO.
        CALL METHOD write_list.
      ENDMETHOD.
      METHOD execution.
        CHECK NOT biker_selection IS INITIAL.
        LOOP AT biker_selection INTO biker.
          CALL METHOD biker->select_action.
          CALL METHOD biker->status_line IMPORTING line = status_line.
          MODIFY TABLE status_list FROM status_line.
        ENDLOOP.
        CALL METHOD write_list.
      ENDMETHOD.
      METHOD write_list.
        SET TITLEBAR 'TIT'.
        sy-lsind = 0.
        SKIP TO LINE 1.
        POSITION 1.
        LOOP AT status_list INTO status_line.
          WRITE: / status_line-flag AS CHECKBOX,
                   status_line-text1,
                   status_line-id,
                   status_line-text2,
                   status_line-text3,
                   status_line-gear,
                   status_line-text4,
                   status_line-speed.
        ENDLOOP.
      ENDMETHOD.
    ENDCLASS.
    CLASS c_biker IMPLEMENTATION.
      METHOD constructor.
        counter = counter + 1.
        id = counter - members * ( team_id - 1 ).
        CREATE OBJECT bike.
      ENDMETHOD.
      METHOD select_action.
        DATA activity TYPE i.
        tit2 = 'Select action for BIKE'.
        tit2+24(3) = id.
        CALL SELECTION-SCREEN 200 STARTING AT 5 15.
        CHECK NOT sy-subrc GT 0.
        IF gearup = 'X' OR geardown = 'X'.
          IF gearup = 'X'.
            activity = 1.
          ELSEIF geardown = 'X'.
            activity = -1.
          ENDIF.
        ELSEIF drive = 'X'.
          activity = 2.
        ELSEIF stop = 'X'.
          activity = 3.
        ENDIF.
        CALL METHOD biker_action( activity ).
      ENDMETHOD.
      METHOD biker_action.
        CASE action.
          WHEN -1 OR 1.
            CALL METHOD bike->change_gear
                              EXPORTING change = action
                              RECEIVING gear = gear_status
                              EXCEPTIONS gear_max = 1
                                         gear_min = 2.
            CASE sy-subrc.
              WHEN 1.
                MESSAGE i315(at) WITH 'BIKE' id
                                      ' is already at maximal gear!'.
              WHEN 2.
                MESSAGE i315(at) WITH 'BIKE' id
                                      ' is already at minimal gear!'.
            ENDCASE.
          WHEN 2.
            CALL METHOD bike->drive IMPORTING velocity = speed_status.
          WHEN 3.
            CALL METHOD bike->stop  IMPORTING velocity = speed_status.
        ENDCASE.
      ENDMETHOD.
      METHOD status_line.
        line-flag = space.
        line-text1 = 'Biker'.
        line-id = id.
        line-text2 = 'Status:'.
        line-text3 = 'Gear = '.
        line-gear  = gear_status.
        line-text4 = 'Speed = '.
        line-speed = speed_status.
      ENDMETHOD.
    ENDCLASS.
    CLASS c_bicycle IMPLEMENTATION.
      METHOD drive.
        speed = speed  + gear * 10.
        velocity = speed.
      ENDMETHOD.
      METHOD stop.
        speed = 0.
        velocity = speed.
      ENDMETHOD.
      METHOD change_gear.
        gear = me->gear.
        gear = gear + change.
        IF gear GT max_gear.
          gear = max_gear.
          RAISE gear_max.
        ELSEIF gear LT min_gear.
          gear = min_gear.
          RAISE gear_min.
        ENDIF.
        me->gear = gear.
      ENDMETHOD.
    ENDCLASS.
    * Global Program Data
    TYPES team TYPE REF TO c_team.
    DATA: team_blue  TYPE team,
          team_green TYPE team,
          team_red   TYPE team.
    DATA  color(5) TYPE c.
    * Program events
    START-OF-SELECTION.
      CREATE OBJECT: team_blue,
                     team_green,
                     team_red.
      CALL METHOD: team_blue->create_team,
                   team_green->create_team,
                   team_red->create_team.
      SET PF-STATUS 'TEAMLIST'.
      WRITE '                   Select a team!             ' COLOR = 2.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'TEAM_BLUE'.
          color = 'BLUE '.
          FORMAT COLOR = 1 INTENSIFIED ON INVERSE ON.
          CALL METHOD team_blue->selection.
        WHEN 'TEAM_GREEN'.
          color = 'GREEN'.
          FORMAT COLOR = 5 INTENSIFIED ON INVERSE ON.
          CALL METHOD team_green->selection.
        WHEN 'TEAM_RED'.
          color = 'RED '.
          FORMAT COLOR = 6 INTENSIFIED ON INVERSE ON.
          CALL METHOD team_red->selection.
        WHEN 'EXECUTION'.
          CASE color.
            WHEN 'BLUE '.
              FORMAT COLOR = 1 INTENSIFIED ON INVERSE ON.
              CALL METHOD team_blue->selection.
              CALL METHOD team_blue->execution.
            WHEN 'GREEN'.
              FORMAT COLOR = 5 INTENSIFIED ON INVERSE ON.
              CALL METHOD team_green->selection.
              CALL METHOD team_green->execution.
            WHEN 'RED '.
              FORMAT COLOR = 6 INTENSIFIED ON INVERSE ON.
              CALL METHOD team_red->selection.
              CALL METHOD team_red->execution.
          ENDCASE.
      ENDCASE.
    Reward  points if it is usefull ....
    Girish

  • Running Windows 7 Home Premium, Firefox 7.0.1, File/Print won't work (doesn't open print dialog box) nor does control+ p nor will right click context menu ever highlight Print selection option after selecting part of a page, ie no printing whatsoever.

    Previous versions of Firefox all printed. All other browsers, programs - Word, Outlook, IE 9, Live Mail, Excel, Adobe files/documents, etc. print. Have more Add-ons than list of plugins below. Can email jpg. screenshots of all printer settings in about:config. Can't paste them here or below.

    See this: <br />
    http://kb.mozillazine.org/Problems_printing_web_pages

  • After reports running in background job need to get automatically open in excel sheet

    Dear All,
    I have a requirement which is new to me ,
    Once the user runs the report in background  system is displaying the output in HTML format .... But the Users needs to open in Excel sheet .
    kindly  do the needful
    Regards
    Srikanth BG

    Hi Srikanth,
    Excel processing in background is currently not possible using standard ways. There exist a really good external library that allows you to handle Excel files, and even create them in background. So you could create a final, ready to use Excel file from your background run that can then be opened.
    You might have a look at the library here: http://wiki.scn.sap.com/wiki/display/ABAP/abap2xlsx
    Maybe it helps and suits your needs.
    Cheers,
    Marc

  • Dynamic Radio Button Selection option in reports

    Hello Friends !
    Here is my strange requirement.
    Table Name: Z1, Fields are Material, Type
    Contents will be like under:
    Material  Type
    M1         A
    M2         A
    M2         B
    M3         X
    M4         X
    M4         Y
    M4         Z
    The report has the following Parameters:
    Material
    Plant
    If the user enters say M1 then the radio buttons should get generated like under:
    o - A
    If the user enters say M2 then the radio buttons should get generated like under:
    o - A
    o - B
    If the user enteres M4 then 3 radio buttons should get generated
    o-X
    o-Y
    o-Z
    Once the radio buttons comeup then the user will select any of them and then update the same.
    I will have a maximum of 5 different values for a material.
    Can you please suggest a way out for this. I want to do this in a report selection screen
    Thanks
    Narayanan P

    Hi
    You can think of different approach, instead of radio button.
    Create a module pool program
    In the first screen, user will enter Material / Plant and in the second screen, create a table control and shows the details of Material / Plant combination.
    User can select a line and do furthe processing
    Regards
    Madhan

  • Determining the select-options of reports

    Gurus, is there a function module which will return a list of parameters and/or selct-options for a given program?
    I wish to write a generic program which will control the submission of other abaps and would like an easy way to determine what the parameters are of the abaps it's going to submit.

    hi ,
    look fm RS_VARIANT_CONTENTS
    or
    RS_ISOLATE_1_SELSCREEN
    or look in functin group SVAR
    A.
    Message was edited by: Andreas Mann

  • Add select-option fields in report category (PNP)

    Hi,
    I am trying to create a new report category based on the logical database PNP.
    I noted that the fields available for select-option for report category come from infotype 0 or 1. Is there anyway to include fields from other infotypes ?
    Thank you.
    Regards
    Kir Chern

    Hi Kir Chern
    Due to the structure of the logical database you can just insert selection fields that are bestowed.
    However, as Charles mentioned, you can add selection fields special to your program by coding a selection screen at your program whose fields are inserted just after the ones added by the report category.
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • Report painter select options

    How can i have a select option in report painter similar to normal report program.

    hi,
    r u asking about screen painter se51,if so there we dont have any option like select option.
    there we need to drag and drop 2 input boxs and one text box for 'to' in between those two input boxes and in program we need to maintain all the coding as one low and one high value that's it.

  • Reports Select Option

    Hi all,
         I have a task - i have to  use "SELECT-OPTIONS of one program into select statements of another program, Please solve my problem.
    Thanks in advance
                                                 Ranjith

    Hi Ranjit,
    Try using SUBMIT option with the addition SELTAB.
    You can also pass the select options along with the SUBMIT statement. Take a look at the help.
    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.
    Cheers
    VJ
    Message was edited by: Vijayendra  Rao

Maybe you are looking for

  • Google contacts and calendar events entered on my iPhone 5s are not syncing with my google account.

    Newly entered contacts and calendar events entered on my IPhone 5s are not syncing to google. Facts that may be pertinent: - I switched from the iPhone 4 to the iPhone 5s and did the easy option of having it automatically set up like my previous phon

  • Posting to Expense G/L through Delivery note

    Guys/Gals, I need to give some goods free and the Cost of these goods should be posted to expense GL which has Cost center as mandatory. Now in OBYC for that mvt type I assigned this GL, while making PGI it is giving me an error "Account 12345678 nee

  • Impact of Merging multiple company codes into ONE

    Hi, We are currently doing a study for a client,  they have the following scenario where the client has got multiple company codes in SAP (due to some tax benefits they had initially created the company codes) now the tax benefits cease to exist and

  • Sending TABLE data in child window to parent window

    My question is as follows: I have a JSP with a parent window, which opens a pop-up window. In the pop-window there is a <TABLE> tag defined with a number of <TD> definitions referencing columns of data from a database table. There is also a 'select'

  • Query in data block

    hi, whether it's possible to write query in data block other than trigger.(i.e,.. data block created by the Wizard and executing a simple query over the data block based on a table) regards Yesukannan