How to insert a standard selection screen on moduled program?

Hi All,
Selection screen can be easily done in classic report by just simply invoking the event "SELECTION-SCREEN"
SELECTION-SCREEN BEGIN OF ...
SELECT-OPTIONS ...
PARAMETERS ...
In the case of moduled program, there will be a PBO and PAI, I have a requirement on my 2nd screen where I need to have a selection screen, but the SELECTION-SCREEN event is not applicable for NOT TYPE 1(Executable) Program.
My Dialog Program Flow:
Main Screen -> Display Screen (should be SELECTION SCREEN) -> Output (3rd screen)
What's the best alternative solution on this scenario?
Thanks.

Hi All,
I layout and detailed my question, please see my scenario below:
screen 9000
MODULE user_command_9000 INPUT.
  CASE ok_code.
     WHEN 'CREATE'.
        CALL SCREEN 9001.
     WHEN 'DISPLAY'.
         "SHOULD CALL A SELECTION SCREEN HERE
         "AFTER THE SELECTION SCREEN, IS ANOTHER SCREEN FOR OUTPUT
    ENDCASE.
TOP include
SELECTION-SCREEN BEGIN OF SCREEN 9003 AS SUBSCREEN.
  PARAMETERS P_PLANT TYPE T001W-WERKS.
  SELECT-OPTIONS: S_MATNR    FOR MARA-MATNR,
                  S_LICHA    FOR MCHA-LICHA,
                  S_LIFNR    FOR LFA1-LIFNR.
SELECTION-SCREEN END OF SCREEN   9003.
Questions:
1. on the PAI of my main screen 9001, how can I call the SUBSCREEN I created using CALL SUBSCREEN?
    the code:
        CALL SUBSCREEN 9001 INCLUDING 'PROG_NAME' '9002',
     is not working / syntax error.
2. Should I call it like this?
    WHEN 'DISPLAY'.
       CALL SCREEN 9002.
   Screen 9002 PBO
        CALL SUBSCREEN 9001INCLUDING 'PROG_NAME' 9002',
     is not working / syntax error.
Thanks all.
Edited by: Jaime Cabanban on Dec 2, 2009 5:29 PM

Similar Messages

  • How to disable a standard selection screen of LDB?

    Hi Friends,
       My requirement is to disable a standard selection screen of a standard LDB and use my own Selection screen instead.How to go about it?.
    Prompt replies would be rewarded.
    Regards,
    Tamilarasan.

    Hi Tamilarasan,
      U can hide LDB field, in the following way.
    1.In tables statement remove the table name for the fields
      you done require.
    2.You can modify the screen fields. LOOP AT SCREEN
    3.In the program attributes you can choose the SAP defined
      selection screen if provided.
    Add can add new field, in the following way,
    1.If it is Customer program then as normal way like
    SELECTION-SCREEN: BEGIN OF BLOCK 1
    SELECT-OPTIONS:
    SELECTION-SCREEN END OF BLOCK 1.
    2. Goto SE36 and modify the selection views by creating  'CUS'.
    All LBD will not have dynamic selection. If you want you can copy to Z* version and add the following statement to have dynamic selction
    "SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE" XXXX
    Regards,
    Prabhu Rajesh.

  • Selection-screen in module program

    Hi,
    I have created a module pool prog.
    Now the new regd. is that I want to create selection-screen before displying the actual screen.
    But when I m trying to use selection screen then I m getting the message that it is not possible in type 'M' as my program is module pool.
    I m using screen 9000 to display the records, now where to write selection screen in the program?
    I think in PBO but getting some error, I have created one screen and in that defined a subscreen but it is giving some error.
    So any body knows how to add selection screen in 'M' type program?
    Thankx in advance.
    Umesh

    Hi,
    You can create a selection-screen for a module pool program.
    Create a new program with executable type. Create the selection screen as you would do in a normal program. Once you give data in the selection and press F8 button, based on the logics written, the O/P must appear in a table control. This is what your requirement is:
    A example below for your understanding.
    name of the prog : ZTEST
    Type: Exectable report (I)
    *----Selection Screen -
    SELECTION-SCREEN BEGIN OF BLOCK IPDATA WITH FRAME TITLE TEXT-001.
    PARAMETERS: PR_MONTH LIKE BOITEM-SPMON.
    SELECT-OPTIONS: SO_VKGRP FOR KNVV-VKGRP.
    SELECTION-SCREEN END OF BLOCK IPDATA.
    SELECTION-SCREEN BEGIN OF BLOCK ORGDATA WITH FRAME TITLE TEXT-002.
    SELECT-OPTIONS: SO_REGIO FOR KNA1-REGIO,
                    SO_KUNNR FOR KNA1-KUNNR,
                    SO_WERKS FOR T001W-WERKS.
    SELECTION-SCREEN END OF BLOCK ORGDATA.
    *--Selection Screen Events--
    START-OF-SELECTION.
      W_CURMFDAY = SY-DATUM.
      W_CURMFDAY+6(2) = '01'.
      PERFORM F001_GETDATA.
      IF SY-DBCNT EQ 0.
        MESSAGE S017(ZSFL).
        EXIT.
      ENDIF.
      PERFORM F002_ADDITIONALDATA.
      CALL SCREEN 100.
    For this screen 100, both the PBO and PAI can be declared in this main program itself.
    Regards,
    JLN.

  • How to change standard selection-screen fields

    hi i am kishore.
    i have requirement.
    i have to change selection-screen label purchase order to purchase docuement in request for quatation.
    pls suggest that how to change the standard selection screen field labels.

    Hi.
    This is possible.
    Just try out this way.Heres is an example. 
    TABLES: pernr.
    data: i_tab type standard table of RSSELTEXTS with header line.
    initialization.
    i_tab-name = 'PNPPERNR'.
    i_tab-kind = 'S'.
    i_tab-text = 'Employee ID'.
    append i_tab.
    CALL FUNCTION 'SELECTION_TEXTS_MODIFY'
      EXPORTING
        program                           = 'ZESO_TEST'
      tables
        seltexts                          = i_tab
    EXCEPTIONS
      PROGRAM_NOT_FOUND                 = 1
      PROGRAM_CANNOT_BE_GENERATED       = 2
      OTHERS                            = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Thanks and regards,
    Maheshwari.V

  • Insert picture in selection screen.

    Hi,
    Can some one suggest how to insert picture in selection screen?
    Thanks
    Deep

    Hi,
    I have inserted a picture in my classical report. According to the position where you want can be adjusted. If you know how to upload Logo in SMW0 then upload and just copy paste the code that i have shown will display the image.
    DATA: docking TYPE REF TO cl_gui_docking_container,
    picture_control_1 TYPE REF TO cl_gui_picture,
    url(256) TYPE c .
    DATA: query_table LIKE w3query OCCURS 1 WITH HEADER LINE,
    html_table LIKE w3html OCCURS 1,
    return_code LIKE w3param-ret_code,
    content_type LIKE w3param-cont_type,
    content_length LIKE w3param-cont_len,
    pic_data LIKE w3mime OCCURS 0,
    pic_size TYPE i.
    * END OF DO NOT CHANGE----------------------*
    FORMAT HOTSPOT ON.
    DATA : sum(4) , num1(4) , num2(4).
    PARAMETERS: A(4) DEFAULT '4' .
    PARAMETERS: B(4) DEFAULT '5' .
    DATA: ANSWER TYPE I.
    ANSWER = A + B.
    WRITE:/ ANSWER.
    AT SELECTION-SCREEN OUTPUT.
    PERFORM show_pic.
    * PERFORM show_pic1.
    START-OF-SELECTION.
    *& Form show_pic
    FORM show_pic.
    DATA: repid LIKE sy-repid.
    repid = sy-repid.
    CREATE OBJECT picture_control_1 EXPORTING parent = docking.
    CHECK sy-subrc = 0.
    CALL METHOD picture_control_1->set_3d_border
    EXPORTING
    border = 5.
    CALL METHOD picture_control_1->set_display_mode
    EXPORTING
    display_mode = cl_gui_picture=>display_mode_stretch.
    CALL METHOD picture_control_1->set_position
    EXPORTING
    height = 90
    left = 40
    top = 30
    width = 190.
    *CHANGE POSITION AND SIZE ABOVE*****************
    IF url IS INITIAL.
    REFRESH query_table.
    query_table-name = '_OBJECT_ID'.
    *CHANGE IMAGE NAME BELOW UPLOADED IN SWO0******************
    query_table-value = 'YREDDY'. "name which u have given in SMW0
    APPEND query_table.
    query_table-value = 'YLOGO'.
    APPEND query_table.
    *FORMAT HOTSPOT ON.
    CALL FUNCTION 'WWW_GET_MIME_OBJECT'
    TABLES
    query_string = query_table
    html = html_table
    mime = pic_data
    CHANGING
    return_code = return_code
    content_type = content_type
    content_length = content_length
    EXCEPTIONS
    object_not_found = 1
    parameter_not_found = 2
    OTHERS = 3.
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    CALL FUNCTION 'DP_CREATE_URL'
    EXPORTING
    type = 'image'
    subtype = cndp_sap_tab_unknown
    size = pic_size
    lifetime = cndp_lifetime_transaction
    TABLES
    data = pic_data
    CHANGING
    url = url
    EXCEPTIONS
    OTHERS = 1.
    ENDIF.
    CALL METHOD picture_control_1->load_picture_from_url
    EXPORTING
    url = url.
    FORMAT HOTSPOT OFF.
    ENDFORM.

  • Add bottons on the application tool bar of the standard selection screen

    Hi All,
    I am having the standard selection screen in module pool programing. I wnat to add the bottons on the application tool bar of the standard selection screen.and hide the existing bottons (like std. execute and i bottons.)instead of these i want to give my won bottons like create and display.
    pls help on this.

    Hi Sridhar,
      Try the Code below. It places two buttons on the selection-screen along with the execute button.
    TABLES sscrfields.
    PARAMETERS: p_carrid TYPE s_carr_id,
                p_cityfr TYPE s_from_cit.
    SELECTION-SCREEN: FUNCTION KEY 1,
                      FUNCTION KEY 2.
    INITIALIZATION.
      sscrfields-functxt_01 = 'LH'.
      sscrfields-functxt_02 = 'UA'.
    AT SELECTION-SCREEN.
      CASE sscrfields-ucomm.
          WHEN'FC01'.
          p_carrid = 'LH'.
          p_cityfr = 'Frankfurt'.
        WHEN 'FC02'.
          p_carrid = 'UA'.
          p_cityfr = 'Chicago'.
      ENDCASE.
    START-OF-SELECTION.
      WRITE / 'START-OF-SELECTION'.
    Just go to the table sscrfields to knoe the fields in it. I think this clears the issue.
    Regards,
    Swapna.

  • How to manage obligatory parameters on standard selection screen.

    Hi all,
    How could I ensure settings some fields-parameters as  obligatory on standard selection screen-dynpro1000. I would like to manage this according choosen block. On standard dynpro 1000 I have two blocks for two different selections. Checkboxes ensure which block of selection parameters I want to use. When I check first checkbox I need to set parameters in first block as obligatory and reversely in second block.
    Thanks. zd.

    Another example...
    report zrich_0003.
    selection-screen begin of block b1 with frame .
    parameters: p_check1 as checkbox user-command chk.
    parameters: p_fielda type c modif id gp1.
    parameters: p_fieldb type c modif id gp1.
    parameters: p_fieldc type c modif id gp1.
    selection-screen end of block b1.
    selection-screen begin of block b2 with frame .
    parameters: p_check2 as checkbox user-command chk.
    parameters: p_fieldd type c modif id gp2.
    parameters: p_fielde type c modif id gp2.
    parameters: p_fieldf type c modif id gp2.
    selection-screen end of block b2.
    at selection-screen output.
      if p_check1 = 'X'.
        loop at screen.
          if screen-group1 = 'GP1'.
            screen-required = '1'.
            modify screen.
          endif.
        endloop.
      else.
        loop at screen.
          if screen-group1 = 'GP1'.
            screen-required = '0'.
            modify screen.
          endif.
        endloop.
      endif.
      if p_check2 = 'X'.
        loop at screen.
          if screen-group1 = 'GP2'.
            screen-required = '1'.
            modify screen.
          endif.
        endloop.
      else.
        loop at screen.
          if screen-group1 = 'GP2'.
            screen-required = '0'.
            modify screen.
          endif.
        endloop.
      endif.
    Regards,
    Rich Heilman

  • Button on standard selection screen

    HI experts , can any budy tell me , that, can we put a button on the standard selection screen , means on screen no 1000, PLease suggest ur ans, i have a requirement to create a button on the first selection screen by selection the check box on the standard selection screen , a button should be appear on the standard selection screen.
    THanks in advance,
    Rahul

    Hello,
    What do you mean by "but ur second concept is wrong we can set our own pf-status then how can u say that set the status".
    Read again what I wrote! I said that the solution for your problem is to create a PF status of your own and that one will substitute the STANDARD one. This is the reason for having to insert the Execute (F8) button on it. Otherwise, if you don't insert it, you wont be able to execute your report.
    Also, plz reply if u know the exect ans?  this is not nice to say, specialy when the answer is correct. I've inserted buttons in standard selections screen lot's of times.
    Regards.
    Valter Oliveira.

  • Including User selection criteria along with LDB standard selection screen

    Hi
    While creating a HR report, along with the standard selection screen, if the cusomer requires some more fields to be added, How to retrive the data from the DB?
    Is it the way to retrive the data based on Standard selection criteria from the LDB and then filter it based on user criteria or any other way?
    Please help me out in this regard.
    Thank you.

    Yes thats the way. You get the data based on Selection screen of LDB (You can select Report Catogory you wish to) once you get data, You can put CHECK statement to see the data against PXXXX type to the filter value from you custom field on selection screen.

  • LDB FMF + supress standard selection screen

    Hi,
    I had developped a specific report using the LDB FMF, but i want to supress the standard selection screen.
    i want to use my only own specific selection screen.
    How to do that ?
    Best regards

    Find the link below:
    [http://help.sap.com/saphelp_46c/helpdata/en/9f/db9bed35c111d1829f0000e829fbfe/frameset.htm]

  • How to define our own selection screen for logical database  in abap-hr?

    Hi Friends,
    Can u please help me
    How to define your own selection screens for  logical database.
    we use to do like(goto->attributes-HRReportcatagerious ).but How to desin using  customer table like t599c, t599f and how to add to my logical database?
    Thanks in advance
    charan

    check out this online help
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba65c35c111d1829f0000e829fbfe/frameset.htm
    Regards
    Raja

  • How i can show the selection screen input field in the top of page in alv

    hi ,
              how i can show the selection screen input field in the top of page in alv  grid output.
    tell me the process

    Hi,
    excample from my program:
    FORM topof_page.
      DATA: l_it_header   TYPE TABLE OF slis_listheader WITH HEADER LINE,
            l_info        LIKE l_it_header-info.
      DATA: l_it_textpool TYPE TABLE OF textpool WITH HEADER LINE.
      DATA: l_key LIKE l_it_textpool-key.
      READ TEXTPOOL c_repid INTO l_it_textpool LANGUAGE sy-langu.
      DEFINE m_selinfo.
        if not &1 is initial.
          clear l_it_header.
          l_it_header-typ   = 'S'.
          l_key = '&1'.
          translate l_key to upper case.
          read table l_it_textpool with key key = l_key.
          if sy-subrc = 0.
            shift l_it_textpool-entry left deleting leading space.
            l_it_header-key = l_it_textpool-entry  .
          endif.
          loop at &1.
            case &1-option.
              when 'EQ'
                or 'BT'
                or 'CP'.
                write &1-low to l_it_header-info.
              when others.
                write &1-low to l_it_header-info.
                concatenate &1-option
                            l_it_header-info
                       into l_it_header-info
                       separated by space.
            endcase.
            if not &1-high is initial.
              write &1-high to l_info left-justified.
              concatenate l_it_header-info
                          l_info
                     into l_it_header-info
                     separated by space.
            endif.
            if &1-sign = 'E'.
              concatenate ']'
                          l_it_header-info
                     into l_it_header-info.
            endif.
            append l_it_header.
            clear: l_it_header-key,
                   l_it_header-info.
          endloop.
        endif.
      END-OF-DEFINITION.
      m_selinfo: s_trmdat,
                 s_trmext,
                 s_trmint,
                 s_fkdat,
                 s_delno,
                 s_vbeln,
                 s_deact,
                 s_kdmat.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                it_list_commentary = l_it_header[].
    ENDFORM.
    I hope, this will help you.
    Regards
    Nicole

  • How to create a variant selection screen

    Hi experts,
    Can you tell me " How to create a variant selection screen ".
    Please it's urgent.........
    Thanks
    Basu

    Hi ,
    Goto your selection screen
    Make entries in the fileds od the selection screen
    press save button, it will ask you for the mane of the Variant
    Give the name of  the Variant and save it
    Variant is now created for the selection screen.
    Reward if useful.
    Regards,
    Shilpi

  • How to create a new selection screen IN LOGICAL DATABASE PNPCE

    how to create a new selection screen LDBS PNPCE

    Hello Ankit,
    Do you want to create a new selection screen in LDB PNPCE, or do you want to create a new selection screen in one of your reports using LDB PNPCE?
    For later (which is more common), you can use HR Report Category.
    Hope this helps.
    Best Regards,
    Biraju Rajyaguru

  • How can i declare a selection screen in a DP program with transaction code.

    hi friends,
    How can i declare a selection screen in a DP program with transaction code. What are the events and flow logic..

    Search in SCN/Google for Module-pool programming basics.

Maybe you are looking for

  • Just got a Movie Box and can't get it to work

    I just purchased a movie box from Pinnacle in hopes of transfering some of my vhs tapes to the computer in a quick and painless fashion. This is proved to be anything but! First of all, even though the box is Mac compatible, the software isn't. And t

  • White background on iPod classic Cover Flow view

    The white background looks a bit pony. Is there any way to change it to black, like the iTunes Cover Flow view?

  • Calendar entries deleted on my laptop when synchronizing with 8220

    Hi - I synchronized my BB today and found that it has deleted all my calendar entries on my laptop - fortunately they're all still on my BB.  How do I get them back onto my laptop?  This has not happened before. I have the setting on two way synch.

  • Can an xml node load an external htm file?

    I wanted to know if i could have an xml node load in an external html page src="filefolder/@nodename" works with an image tag, but how would I accomplish this with a <div> and an html file I tried <div id="main" spry:detailregion="myviewer"> <div>{@c

  • Do not disconnect won't come off AFTER ejected

    hello, i just bought my ipod yesterday and already i think i have screwed up. i had the ipod connected to my computer last night so it could upload the songs and accidentlally fell asleep so i think the computer fell asleep. anyway, the "do not disco