Doubt on selection-screen

Hi gurus,
I done one report to get the Purchase order details. At the time of creating purchase order the users enters a One text field in the Purchase order header text of ME21N transaction. I need to fetch that field into Report. Upto this its fine. I also done this report by using the function module "READ_TEXT". The o/p is also generated successfully.
But now our client is asking, Please put that text field in selection-screen. Once he presses F4 in that field he needs to display all the values in text field. I know how to do if it is a table field. But it is a purchase order header text. Client enters different text when he creates diferent purchase orders.
  Based on that text field only the report o/p will needs to display.
For example:
The User1 creats a Purchase order using ME21N. In that he enters Purchase order header text as ABC.
    when ever he creats a purchase order he enters only ABC.In this way he creats 100 Purchase orders.
  if the user execute the report and in selection screen of that text field , suppose he gives a  ABC, only those 100 purchase orders only needs to appear.
   Like this so many users enters no.of text items. Suppose there are 100 users. totally 100 text values will be there.
    once he presses F4 help on the selecton screen all 100 values need to display. And this is dynamic, the no may increase in future also. thats totally depends on Purcase orders.
Please guide me how to  do this. 
      Thanks in Advance...
Thanks and Regards
Siri........

hi frnd,
try like this
write the logic to fetch text fields into some internal table in
at selection-screen output event.
and pass this to selection-option as f4 using ...> call function 'F4IF_INT_TABLE_VALUE_REQUEST'.
ex
at selection-screen output.
use fm "READ_TEXT".  and assign all values to one internal table
then
call function 'F4IF_INT_TABLE_VALUE_REQUEST'.
hope it may help u.
regards,
chandu

Similar Messages

  • Doubt in selection screen

    Hi i have a doubt in selection screen I had given statement as below now i can see the output screen and i'm getting the output also now i want to know the value of only one vendor. If i had given a vendor number it must select the particular data of that vendor only can u give me any suggestions please
    SELECTION-SCREEN BEGIN OF BLOCK P WITH FRAME TITLE TEXT-000.
          PARAMETERS: VENDORNO like EKKo-LIFNR,
                      PURORG like EKKO-EKORG,
                      PLANT like EKPO-WERKS,
                      PURDOC like EKKO-BEDAT.
    SELECTION-SCREEN END OF BLOCK P.

    Hi Pavan,
    <b>I think this is what u required when u select vendor number automatically for that particular vendor u require values in the remaining 3 parameter fields.
    </b>
    REPORT zex31 .
    PARAMETERS: vendorno LIKE ekko-lifnr,
                      purorg LIKE ekko-ekorg,
                      plant LIKE ekpo-werks,
                      purdoc LIKE ekko-bedat.
    DATA: dynfields TYPE TABLE OF dynpread WITH HEADER LINE.
    DATA: return TYPE TABLE OF ddshretval WITH HEADER LINE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR vendorno.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
           EXPORTING
                tabname           = 'EKKO'
                fieldname         = 'LIFNR'
                dynpprog          = sy-cprog
                dynpnr            = sy-dynnr
                dynprofield       = 'VENDORNO'
           TABLES
                return_tab        = return
           EXCEPTIONS
                field_not_found   = 1
                no_help_for_field = 2
                inconsistent_help = 3
                no_values_found   = 4
                OTHERS            = 5.
      BREAK-POINT.
      REFRESH dynfields.
      READ TABLE return WITH KEY fieldname = 'VENDORNO'.
    Add it back to the dynpro.
      dynfields-fieldname = return-retfield.
      dynfields-fieldvalue = return-fieldval.
      APPEND dynfields.
    Get the company code from db and add to dynpro
      DATA: xekko TYPE ekko,
            xekpo TYPE ekpo.
      CLEAR xekko.
      CLEAR xekpo.
      SELECT SINGLE * INTO xekko
      FROM ekko
      WHERE lifnr = return-fieldval.
      dynfields-fieldname = 'PURORG'.
      dynfields-fieldvalue = xekko-ekorg.
      APPEND dynfields.
      dynfields-fieldname = 'PURDOC'.
      dynfields-fieldvalue = xekko-bedat.
      APPEND dynfields.
      SELECT SINGLE * INTO xekpo
       FROM ekpo
       WHERE ebeln = xekko-ebeln.
      dynfields-fieldname = 'PLANT'.
      dynfields-fieldvalue = xekpo-werks.
      APPEND dynfields.
    Update the dynpro values.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
           EXPORTING
                dyname     = sy-cprog
                dynumb     = sy-dynnr
           TABLES
                dynpfields = dynfields
           EXCEPTIONS
                OTHERS     = 8.
    START-OF-SELECTION.

  • Doubt with selection screen

    Hi all!
    I have to show the inspection lot details (QA32) as per the requirements given in the selection screen.
    In my selection screen , I should have select option for Inspection lot created date(QALS-ENSTEHDAT) and lot created time (QALS-ENTSTEZEIT). I would like to know the lots created from yesterday evening till today morning.
    When I give the values 09.02.2008 to 10.02.2008 for date and 17:30:00 to 10:00:00 for time , it'll obviously intimate that 'From- time is greater than To- time'.Is there any way to relate the From-date to From-time and To-date to To-time in the selection screen , so that my problem will be solved.Please help with possible code.
    Edited by: Jayasri P. on Feb 9, 2008 5:55 AM

    Hi,
    try this.........
    TABLES qals.
    DATA it_qals TYPE TABLE OF qals WITH HEADER LINE.
    SELECT-OPTIONS   s_date  FOR  qals-enstehdat  NO-EXTENSION.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN comment (10)   for field  p_timel.
    SELECTION-SCREEN POSITION 35.
    PARAMETERS       p_timel LIKE qals-entstezeit.
    SELECTION-SCREEN comment 54(2)  for field  p_timeh.
    SELECTION-SCREEN POSITION 60.
    PARAMETERS       p_timeh LIKE qals-entstezeit.
    SELECTION-SCREEN END   OF LINE.
    SELECT *
    FROM   qals
    INTO   TABLE it_qals
    WHERE  enstehdat IN s_date.
    IF sy-subrc IS INITIAL.
      SORT it_qals BY enstehdat entstezeit.
      LOOP AT it_qals WHERE enstehdat EQ s_date-low
                      OR    enstehdat EQ s_date-high.
        CASE it_qals-enstehdat.
          WHEN s_date-low.
            IF it_qals-entstezeit LT p_timel.
              DELETE it_qals.
            ENDIF.
          WHEN s_date-high.
            IF it_qals-entstezeit GT p_timeh.
              DELETE it_qals.
            ENDIF.
        ENDCASE.
      ENDLOOP.
    ENDIF.
    LOOP AT it_qals.
      WRITE : / it_qals-enstehdat ,it_qals-entstezeit.
    ENDLOOP.
    also goto selection text and give descriptionas below..
    P_TIMEH     to
    P_TIMEL     Time
    S_DATE     Date
    Cheers,
    jose.

  • Doubt in Selection-Screen for Program type "Function Group"

    Hi Gurus,
    I created a Function group in that i created one screen and writtem the Screen flow logic. In that screen I called a Function module "COMPLEX_SELECTIONS_DIALOG" For Creating a selection-Screen.
    The code snippet is like below.
    CASE ok_code .
        WHEN c_clk1.
          CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
         EXPORTING
           title                   = text-002
           text                    = 'Material Number'
           signed                  = 'X'
            lower_case              = ' '
            no_interval_check       = ' '
             just_display            = ' '          " Un commented by Srihari
             just_incl               = 'X'          " Un commented by Srihari
            excluded_options        =
            description             =
            help_field              =
            search_help             =
           tab_and_field           = st_tab
          TABLES
            range                   = r_matnr
         EXCEPTIONS
           no_range_tab            = 1
           cancelled               = 2
           internal_error          = 3
           invalid_fieldname       = 4
           OTHERS                  = 5.
    it works fine. But the problem is if i click the multiple selection button for the select-option in selection screen and enter the values and copy those value. In the multiple selection button green button is not coming like noram report selection-screen. Please remember I used the program type as "Function Group" not "Module Pool".
    Please send your suggestions.
    Thanks,
    Srihari.

    Ok, I am not 100% sure, if I understand you correctly, you said, you created one screen to 'simulate' a standard selection screen behavior without using select-options statement?
    If that's not correct, could you please post a few more details on what exactly you are doing.
    I had to 'simulate' a select-option behavior which I did as follows:
    - I created a range variable to store the values (s_ctby)
    - on the screen I defined the LOW (s_ctby-low), HIGH (s_ctby-high) and the multiple selection field pushbutton
    - In the PBO I set the icons for the multiple selection pushbutton
      READ TABLE s_ctby INDEX 2 TRANSPORTING NO FIELDS.
      IF sy-subrc NE 0.
        gv_createby = gc_icon_enter_data.
      ELSE.
        gv_createby = gc_icon_disp_data.
      ENDIF.
    - In the PBO make sure that any values entered on the screen are transferred to the range
    * transfer any changed values into the correct range for user transaction
    * (screen 0110) because that screen just 'simulates' a selection screen
    * so we have to make sure that any data the user enters in the selection
    * fields is passed into the appropriate ranges
      IF sy-tcode EQ gc_trans_user.
    *   created by
        IF NOT s_ctby-high IS INITIAL.
          s_ctby-sign   = c_i.
          s_ctby-option = c_bt.
          IF s_ctby[] IS INITIAL.
            INSERT s_ctby INDEX 1.
          ELSE.
            MODIFY s_ctby INDEX 1.
          ENDIF.
        ELSEIF NOT s_ctby-low  IS INITIAL AND
                   s_ctby-high IS INITIAL.
          s_ctby-sign   = c_i.
          s_ctby-option = c_eq.
          IF s_ctby[] IS INITIAL.
            INSERT s_ctby INDEX 1.
          ELSE.
            MODIFY s_ctby INDEX 1.
          ENDIF.
        ELSEIF s_ctby-low  IS INITIAL AND
               s_ctby-high IS INITIAL.
          DELETE s_ctby INDEX 1.
        ENDIF.
    - If the user hits the multiple selection pushbutton
        WHEN gc_fc_create_by.
    *     if the user hits the multiple selection button on the screen
    *     we call the standard SAP functionality to show the multiple
    *     selection popup SAP uses on a standard selection screen
          CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
            EXPORTING
              title             = text-t02
            TABLES
              range             = s_ctby
            EXCEPTIONS
              no_range_tab      = 1
              cancelled         = 2
              internal_error    = 3
              invalid_fieldname = 4
              OTHERS            = 5.
          IF sy-subrc NE 0 AND NOT sy-msgty IS INITIAL.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
    *     now update the header line so the screen fields display the correct values
          CLEAR s_ctby.
          READ TABLE s_ctby INDEX 1.
    Hope that helps,
    Michael

  • I have doubt in Selection Screen

    Hi all.
    I was created Dialogue screen as  a initial screen 9000. after that i changed 1000 as initial screen (Selection screen),Moved 9000 as second screen,i have some application tool bar in selection screen 1000.it is displaying when iam execute my program without transaction code.but it does not display when i execute programe by Transaction code,i was given  screen no 1000 for t-code.
    Regards,
    Jay

    Hi Jay,
    Although i am not fully clear of the situation..please try the following suggestions that may prove useful..
    1) for dummy sake try creating a new Tcode with dialog (option 1) again and see it you can achieve the desired output by running it...if not you can delete the new tcode you have created
    Reason : Creating a fresh Tcode may put an end to your problem because i guess that you may have created the tcode first and reassigned the screens later......
    2)  try the "set PF status"  code written in the module...if possible debugg in the Tcode and direct execute version marking the "Set PF status" as break point..
    I am sure you can come up with something there...
    ReAson : Last resort of any ABAPer is the debugger...
    Regards
    BX
    "Happy New Year"

  • Doubt in selection screen modification

    Hi all,
    I have  a Checkbox (select all) in my selection screen and 23 other check boxes.
    When i click the 'select all' checkbox, all the 23 checkboxes should be selected automatically in the selection screen and the lf i remove the tick mark in the checkbox, all the 23 check boxes should be cleared automatically and it should allow the user to select any of the checkboxes on his own..
    I'm able to select all, when it is ticked.   But my pbm is when the 'select all' tick mark is removed, i'm clearing all the 23 checkboxes.   so after this, if the user a select any check box on his own, it is not taken. Bcoz, i'm clearing all the value in 'at selection screen' event.
    Could any one help to achieve this ...
    Regards,
    Shanthi

    Hi Shanti,
    Here is the modified code of the fellow SDN. Just check. It works as u requested.
    REPORT zvenkat_notepad.
    SELECTION-SCREEN : BEGIN OF BLOCK blk1 WITH FRAME.
    PARAMETERS:p_all AS CHECKBOX USER-COMMAND rusr.
    SELECTION-SCREEN : END OF BLOCK blk1.
    SELECTION-SCREEN : BEGIN OF BLOCK blk2 WITH FRAME.
    PARAMETERS: p_chk1  AS CHECKBOX,
                p_chk2  AS CHECKBOX,
                p_chk3  AS CHECKBOX,
                p_chk4  AS CHECKBOX,
                p_chk5  AS CHECKBOX,
                p_chk6  AS CHECKBOX,
                p_chk7  AS CHECKBOX,
                p_chk8  AS CHECKBOX,
                p_chk9  AS CHECKBOX,
                p_chk10 AS CHECKBOX,
                p_chk11 AS CHECKBOX,
                p_chk12 AS CHECKBOX,
                p_chk13 AS CHECKBOX,
                p_chk14 AS CHECKBOX,
                p_chk15 AS CHECKBOX,
                p_chk16 AS CHECKBOX,
                p_chk17 AS CHECKBOX,
                p_chk18 AS CHECKBOX,
                p_chk19 AS CHECKBOX,
                p_chk20 AS CHECKBOX,
                p_chk21 AS CHECKBOX,
                p_chk22 AS CHECKBOX,
                p_chk23 AS CHECKBOX.
    SELECTION-SCREEN : END OF BLOCK blk2.
    AT SELECTION-SCREEN." OUTPUT.
      IF p_all = 'X'.
        p_chk1 = 'X'.
        p_chk2 = 'X'.
        p_chk3 = 'X'.
        p_chk4 = 'X'.
        p_chk5 = 'X'.
        p_chk6 = 'X'.
        p_chk7 = 'X'.
        p_chk8 = 'X'.
        p_chk9 = 'X'.
        p_chk10 = 'X'.
        p_chk11 = 'X'.
        p_chk12 = 'X'.
        p_chk13 = 'X'.
        p_chk14 = 'X'.
        p_chk15 = 'X'.
        p_chk16 = 'X'.
        p_chk17 = 'X'.
        p_chk18 = 'X'.
        p_chk19 = 'X'.
        p_chk20 = 'X'.
        p_chk21 = 'X'.
        p_chk22 = 'X'.
        p_chk23 = 'X'.
      ENDIF.
      IF sy-ucomm = 'RUSR' AND p_all = space.
        CLEAR:
              p_chk1,
              p_chk2,
              p_chk3,
              p_chk4,
              p_chk5,
              p_chk6,
              p_chk7,
              p_chk8,
              p_chk9,
              p_chk10,
              p_chk11,
              p_chk12,
              p_chk13,
              p_chk14,
              p_chk15,
              p_chk16,
              p_chk17,
              p_chk18,
              p_chk19,
              p_chk20,
              p_chk21,
              p_chk22,
              p_chk23.
      ENDIF.
    Regards,
    Venkat.O

  • Reg SELECTION SCREEN BLCOK....

    Hi,
       I have one doubt regarding selection screen. i.e.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TILE TEXT-001.
    SELECTION-SCREEN : END OF BLCOK B1.
    The above syntax will give standard length of frame in SELECTION SCREEN but i want to customize it, I mean I want to decrease the size of frame as per requirement. So, How will I change the size of frame? regarding this plz give me example coding.
    Regards,
    Kishore.

    refer
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9c2e35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • At selection screen validation doubt

    i hav At selection screen like this:-
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path.
      TABLES : tfdir.
      DATA : prg_name LIKE sy-repid,
             dynp_numb LIKE sy-dynnr,
             field_name LIKE dynpread-fieldname.
      SELECT SINGLE * FROM tfdir WHERE funcname = 'F4_FILENAME'.
      IF sy-subrc EQ 0.
        prg_name = sy-repid.
       dynp_numb = sy-dynnr.
        field_name = 'p_path'.
        CALL FUNCTION 'F4_FILENAME'
          EXPORTING
            program_name  = prg_name
           dynpro_number = dynp_numb
            field_name    = field_name
          IMPORTING
            file_name     = p_path.
      ENDIF.
      IF sy-subrc NE 0.
        MESSAGE i000(zmsg).
      ENDIF.
    This fm is getting file name.
    But I need only files with format " *.CSV " in this criteria.
    How should I do this?

    Hi Hari,
    just run this
    report zanid_test.
    tables rlgrap.
    data: it_tab type filetable,
    gd_subrc type i.
    selection-screen begin of block m with frame.
    select-options so_fpath for rlgrap-filename.
    selection-screen end of block m.
    at selection-screen on value-request for so_fpath-low.
    REFRESH: it_tab.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
    EXPORTING
    WINDOW_TITLE = 'Select File'
    DEFAULT_FILENAME = '*.csv'
    MULTISELECTION = 'X'
    CHANGING
    FILE_TABLE = it_tab
    RC = gd_subrc.
    loop at it_tab into so_fpath-low.
    so_fpath-sign = 'I'.
    so_fpath-option = 'EQ'.
    append so_fpath.
    endloop.

  • Doubt on browse button in selection screen

    Hi,
         Iam writing the selection screen for presentation server and application server. I want to enter file for them. I am not using any LDB . I am writing the BDC program. Iam not using any Classes and Methods.
                      How to write Code for the BROWSE button.
    Regards,
    Ramana.

    PARAMETERS:  P_PSFILE TYPE LOCALFILE DEFAULT TEXT-051,
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_PSFILE.
      PERFORM F4_GET_FILE_NAME USING    TEXT-132
                               CHANGING GV_FILENAME P_PSFILE.
    FORM F4_GET_FILE_NAME USING    P_DEFAULTPATH TYPE STRING
                          CHANGING P_LV_FILENAME TYPE STRING
                                   P_FILENAME    TYPE LOCALFILE.
      DATA : LV_RC        TYPE SY-SUBRC,
             LV_INIT_DIR  TYPE STRING,
             LT_FILETABLE TYPE FILETABLE,
             LS_FILETABLE LIKE LINE OF LT_FILETABLE.
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
        EXPORTING
          WINDOW_TITLE            = 'Select File and Path'
          DEFAULT_EXTENSION       = 'XLS'
          DEFAULT_FILENAME        = 'Vendor_Lot_Data'
          FILE_FILTER             = '*.XLS'
       WITH_ENCODING           =
          INITIAL_DIRECTORY       = P_DEFAULTPATH
       MULTISELECTION          =
        CHANGING
          FILE_TABLE              = LT_FILETABLE
          RC                      = LV_RC
       USER_ACTION             =
       FILE_ENCODING           =
        EXCEPTIONS
          FILE_OPEN_DIALOG_FAILED = 1
          CNTL_ERROR              = 2
          ERROR_NO_GUI            = 3
          NOT_SUPPORTED_BY_GUI    = 4
          OTHERS                  = 5        .
      LV_RC =  SY-SUBRC.
      IF LV_RC <> 0.
        MESSAGE 'File Path Not Found' TYPE 'I'.
      ELSE.
        READ TABLE LT_FILETABLE INTO LS_FILETABLE INDEX 1.
        FREE LT_FILETABLE.
        P_FILENAME = LS_FILETABLE-FILENAME.
      ENDIF.
      P_LV_FILENAME = P_FILENAME.
    ENDFORM.
    Reward if usefull
    Narendra

  • Doubt in at selection-screen

    Hi all,
    Am having two select-options in my selection screen..If i press F4 for 2nd  select-option then i have to get values based on input given for first select -option.
    How to code for this requirement....

    hi u need to read the value entered in the first parameter dynamically, i have a sample, check the same
    here i am reading the value in the first parameter drop down
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR ST_NAME.
      CLEAR: FIELD_VALUE, DYNPRO_VALUES.
      REFRESH DYNPRO_VALUES.
      FIELD_VALUE-FIELDNAME = 'EXCH'.
      APPEND FIELD_VALUE TO DYNPRO_VALUES.
    <b>  CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          DYNAME             = SY-CPROG
          DYNUMB             = SY-DYNNR
          TRANSLATE_TO_UPPER = 'X'
        TABLES
          DYNPFIELDS         = DYNPRO_VALUES.</b>
      READ TABLE DYNPRO_VALUES INDEX 1 INTO FIELD_VALUE.
      IF FIELD_VALUE-FIELDVALUE IS NOT INITIAL.
        IF SY-SUBRC = 0 AND FIELD_VALUE-FIELDVALUE = 1.
          FIELD_VALUE-FIELDVALUE = 'BSE'.
        ELSEIF SY-SUBRC = 0 AND FIELD_VALUE-FIELDVALUE = 2.
          FIELD_VALUE-FIELDVALUE = 'NSE'.
        ENDIF.
        SELECT STOCK ST_NAME
                     CURRPR
                     FROM
                     ZEXCH
                     INTO TABLE TEMP_ITAB
                     WHERE EXCH = FIELD_VALUE-FIELDVALUE.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            RETFIELD    = 'ST_NAME'
            DYNPPROG    = SY-CPROG
            DYNPNR      = SY-DYNNR
            DYNPROFIELD = 'ST_NAME'
            VALUE_ORG   = 'S'
          TABLES
            VALUE_TAB   = TEMP_ITAB
            RETURN_TAB  = RETURN.
        SELECT STOCK CURRPR
                     FROM ZEXCH
                     INTO (T_CODE, T_CURRPR)
                     WHERE ST_NAME = RETURN-FIELDVAL.
        ENDSELECT.
        CLEAR DYNPRO_VALUES[].
        FIELD_VALUE-FIELDNAME = 'ST_NAME'.
        FIELD_VALUE-FIELDVALUE = RETURN-FIELDVAL.
        APPEND  FIELD_VALUE  TO DYNPRO_VALUES .
        FIELD_VALUE-FIELDNAME = 'ST_CODE'.
        FIELD_VALUE-FIELDVALUE = T_CODE.
        APPEND  FIELD_VALUE  TO DYNPRO_VALUES .
        CALL FUNCTION 'HRCM_AMOUNT_TO_STRING_CONVERT'
          EXPORTING
            BETRG  = T_CURRPR
          IMPORTING
            STRING = T_CHAR.
        FIELD_VALUE-FIELDNAME = 'CURRPR'.
        FIELD_VALUE-FIELDVALUE = T_CHAR.
        APPEND  FIELD_VALUE  TO DYNPRO_VALUES .
    * Update the dynpro values.
    <b>    CALL FUNCTION 'DYNP_VALUES_UPDATE'
          EXPORTING
            DYNAME     = SY-CPROG
            DYNUMB     = SY-DYNNR
          TABLES
            DYNPFIELDS = DYNPRO_VALUES.</b>
      ENDIF.
    <b>award points for helpful answers</b>

  • Selection screen basic doubt...

    Hi,
    I was looking at sample ABAP code in ABAPDOCU for learning ABAP objects and trying to replicate the smae in my own ZREPORT.
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS WINDOW  TITLE text-100.
    PARAMETERS: button1 RADIOBUTTON GROUP grp,
                button2 RADIOBUTTON GROUP grp,
                button3 RADIOBUTTON GROUP grp,
                button4 RADIOBUTTON GROUP grp.
    SELECTION-SCREEN END OF SCREEN 100.
    I have following questions:
    1) Don't I need to design screen 100 when I copy the standard ABAPDOCU code in my ZREPORT ?
    2) If I change the screen 100 to 123 in the sample code like
    SELECTION-SCREEN BEGIN OF SCREEN 123 AS WINDOW  TITLE text-123.
    PARAMETERS: button1 RADIOBUTTON GROUP grp,
                button2 RADIOBUTTON GROUP grp,
                button3 RADIOBUTTON GROUP grp,
                button4 RADIOBUTTON GROUP grp.
    SELECTION-SCREEN END OF SCREEN 100.
    and then run the zeport, it gives an ABAP DUMP as follows:
    "Program "ZOBJECT" tried to use screen 0100.
    The screen does not exist."                
    But I am not using 100 now , I am using 123...
    Please help..
    Regards,
    Rajesh.

    If you copy the code to a "Z" report...You should also copy the SCREEN in SE51....If you change 100 for 123 you should also modified that in your copied SCREEN.
    Look for the CALL SCREEN statement inside the program...
    Greetings,
    Blag.

  • General selection screen doubt

    Hi
    what is the difference between the following  two
    selection screen
    select-options:sid FOR Zxxx-ID  NO-EXTENSION NO INTERVALS.
    parameters : sid like zxxx-id.
    I KNOW I HAVE TO USE IN FOR FIRST AND = FOR SECOND IN SELECT QUERIES.
    Apart from that is there any difference that has to be taken care in the program
    Thanks .

    ... NO-EXTENSION
    Effect
    The user can only make an entry on one line. Calling the additional "Multiple Selection" screen is not supported and no pushbutton for this appears on the selection screen.
    Addition 12
    ... NO INTERVALS
    Effect
    The selection option is displayed on the selection screen without a 'to' field. The pushbutton for calling the "Multiple Selection" screen appears immediately after the 'from' field.
    This addition thus allows you to generate a simplified display on the selection screen. This is particularly useful if you are not making any range selections for this selection option.
    <b>with this ranges can be included where as with parameters they cannot be included</b> ..
    Regards,
    Santosh

  • Selection screen doubt

    can anyone help on this:-
    i hav tables pa0000, pa0001, pa2001.
    my selection screen:-
    parameters : S_BTRTL LIKE PA0001-BTRTL,
                 s_month like      ?
    how should i get month in the selection screen?
    i am callig fun module:-REAL_ESTATE_F4_MONTH to get the month .
    so i taken like this
    s_month like VVIS_SOPTI-SMONTH.
    when i am retriving data from select queries based on selection screen...
    eg: - select .... from .. where btrtl eq s_btrtl
                                    <b>smonth eq s_month</b>.
    it's showing errror smonth is unknown?
    Am I called the right function module?

    Hi hari bhai,
        Here is the code. almost everything is perfect.except one where condition thats giving error, you check your second select statement and modify it.
    the report is ok.
    AND PLEASEE reward points, may be 10 to this and 6 to some other also. so much modification wanted.
    REPORT ZANID_TEST.
    PARAMETERS : S_MONTH LIKE VVIS_SOPTI-SMONTH default '03',
                 S_BTRTL LIKE PA0001-BTRTL default 'EAS'.
    data: start_date like sy-datum,
    end_date like sy-datum." VALUE '99991231'.
    data : BEGIN OF EMP_DATA OCCURS 0,  "INTERNAL TABLE
           count_workerno type i,
           count_daylost type i,
           sub_text(100),
           END OF EMP_DATA.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_MONTH.
    CALL FUNCTION 'REAL_ESTATE_F4_MONTH'
    EXPORTING
    I_MONTH = 00
    I_POPUP_TITLE = 'Choose Month'
    IMPORTING
    E_MONTH = s_month .
    start-of-selection.
    concatenate sy-datum(4) s_month '01' into start_date.
    concatenate sy-datum(4) s_month '31' into end_date.
    SELECT COUNT(*) INTO EMP_DATA-count_workerno
    FROM PA0000 AS a inner join PA2001 as b on apernr = bpernr
    inner join PA0001 as c on apernr = cpernr
    WHERE aENDDA = '99991231' AND aSTAT2 = '3'
    and ( b~awart eq '0591' )
    and c~btrtl = s_btrtl.
    SELECT COUNT(*) INTO EMP_DATA-count_daylost FROM PA2001 AS A
    INNER JOIN PA0001 AS B ON APERNR = BPERNR
    WHERE
    *AABWTG = BABWTG AND
    B~BTRTL = S_BTRTL.
    select single btext from t001p
    into EMP_DATA-sub_text
    where BTRTL = s_BTRTL.
    APPEND EMP_DATA.
    Format color COL_HEADING on.
    write sy-uline(80).
    write:/ sy-vline, ' No of worker ', sy-vline.
    write:' No of Lost Work-day', sy-vline.
    write: 50 ' Sub-Area text',
            80 sy-vline.
    write:/ sy-uline(80).
    Format color COL_HEADING off.
    loop at emp_data.
      write:/ sy-vline,
              2 EMP_DATA-count_workerno ,
              18 sy-vline.
       write: 21 EMP_DATA-count_daylost ,
              41 sy-vline.
       write: 43 EMP_DATA-sub_text ,
              80 sy-vline.
    endloop.
    write:/ sy-uline(80).

  • Regarding selection-screen in module pool

    hi
    experts,
    i am having doubt in module pool programing...
      i want create selection screen(pop screen with field)  in modulepool., before the display screeen deatils
    ex :   if i want display the   record   details  for  that particular
    record number.......
    while  i am click on display..
      pop-up-selection screen will come  with record number field..
    i f enter the record no, display s the  details...
    Ananand

    Please see Rich's answer here:
    [Dialog programming - How to place a select-option field in a dialog screen;
    Rob

  • Passing the values from one selection screen to another report

    Hi all,
    This is my requirement...
    I need to hav a selection screen with various input parameter along with 3 radio buttons...
    If i enter the values and select say first radiobutton the corresponding called program needs to be executed .
    NOTE :
    1)The called program selection screen needs to be skipped
    2) the values entered in the calling program needs to be passed to the called program and the output of the called program needs to be displayed.
    3)the selection screen is the same for both calling and called program
    Can anyone plz help in this regard?
    Regards,
    Gowri Shankar

    Hi...
    Use the statement
    <b>SUBMIT zps_called_report WITH SELECTION-TABLE seltab.</b>
    see the following link....
    <b>http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dba51a35c111d1829f0000e829fbfe/frameset.htm</b>
    Hope it helps you...
    Let me know if u have any more doubt...
    Reward points if useful......
    Suresh.......

Maybe you are looking for

  • EA3500, not able to access Cicso Cloud Connect

    I've gone over this a couple times and I just can't seem to figure it out. I just purchased an EA3500 because I absolutely need guest access. I set everything up through the Cisco Connect application on the CD and all was well.  I figured it's time t

  • Delete Comments - Adobe Acrobat 9.0 - Problems.

    We use Acrobat 9.0 for shared reviews using Lotus Notes. Recently on a shared review we have been getting messages after publishing comments and trying to exit the review. The first one reads. "There are unpublished comments in the file. You can publ

  • Receiver file name should contain the same plant value as  sender filename

    Hi All, I have a requirement in PI 7.0 and the scenario is synchronous which is as follows: - XI will read a flat file which has the naming convention Plant_100.txt where 100 is the plant number , after reading the file XI will trigger standard BAPI

  • How to handle user exit sequence

    how do handle the userexit sequence i,e in which order the user exits are stored?

  • User timeout sap me 5.2

    Hello. I have a tiny issue, but it is not a problem. When I logon to a site and stay idle for sometime and i try to open resources or admin pods or any of the links in sap me, it wont work. As it turns out after some time of idling I'm being logged o