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.

Similar Messages

  • How can we pass the select-option value to modulepool program?

    hi,
      how can we pass the select-option value to modulepool program ?
      Because if i declared select-options in executable program and i used SSCRFIELDS to define push buttons in selection screen.
               My requirement if enter the values to select-options and press UPDATE pussbotton then i want call screen which contains tablecontrol.
               How i get select-option values to PAI of call screen for getting the data from database table to my internal table?

    Oh I thought that you have selection-screen and again you are working on dialog programming.
    if you want to use select-option directly in module pool then it is not possible.
    but you can do other way.
    create two varaiables
    data : v_kun_low like kna1-kunnr,
             v_kun_high like kna1-kunnr.
    use these two variables in layout ,let user knows that he can not give options like gt,lt,eq ,it will be always BT.
    and also when you see normal report program,you can use multiple values in either low or high,but here it is not possibel.
    use can enter only low value and high value.
    when you come to program point of view
    declare one range
    ranges r_kunnr for kna1-kunnr.
    do the coding like
    r_kunnr-low = v_kun_low.
    r_kunnr-high = v_kun_high.
    r_kunnr-options = 'BT'.
    r_kunnr-sign = 'I'.
    append r_kunnr.
    now you can use r_kunnr in select query ,it will work like select-option.
    other than this there is no option.
    Thanks
    Seshu

  • Call report selection screen in module pool program with tab strip control

    Hi,
    Could anyone explain in detail to call report selection screen in module pool program with tab strip control.
    Thanks
    Mano

    Hi,
    Refer std program:
    demo_sel_screen_in_tabstrip.
    demo_sel_screen_with_tabstrip.
    Call your program with SUBMIT stmt form module program.
    Reward points if this Helps.
    Manish

  • Hide selection screen option on the base of Transaction code

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

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

  • How do I add a selection screen parameter to get a application server file

    Hi All..
    Can you please suggest how can we add a selection screen parameter to get a application server file ?
    Thanx in Advance...
    Regards,
    Deepak

    <b>Parameter def :</b>
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 02(30) text-005 FOR FIELD p_xlfil.
    PARAMETERS: p_xlfil LIKE rlgrap-filename OBLIGATORY.
    SELECTION-SCREEN END OF LINE.
    <b>Browse</b>
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_xlfil.
      PERFORM ws_get_filename USING p_xlfil.
    FORM ws_get_filename USING p_xlfil.
      CALL FUNCTION 'WS_FILENAME_GET'
           EXPORTING
                def_path         = 'C:'
                mask             = ',Excel,*.xls,All,*.*.'(100)
                mode             = 'O'
                title            = 'Title'(101)
           IMPORTING
                filename         = p_xlfil
           EXCEPTIONS
                inv_winsys       = 1
                no_batch         = 2
                selection_cancel = 3
                selection_error  = 4
                OTHERS           = 5.
      IF sy-subrc NE 0.
        CLEAR p_xlfil.
      ENDIF.
    ENDFORM. " WS_GET_FILENAME
    Regards
    <b>Oops i did not read "application server"</b>
    Use FM F4_FILENAME_SERVER and not F4_FILENAME/WS_GET_FILENAME.
    Message was edited by:
            Raymond Giuseppi

  • How can i declare a single radio button field in selection-screen ?

    How can i declare a single radio button field in selection-screen ?

    >
    Rob Burbank wrote:
    > And how will you turn it off once it is turned on??
    >
    > Rob
    Thats correct ;)...See ravi if users will ask so many things its our Job to convay the correct solution ....
    Just post your org requirement..SOo some body guide you better//
    Sas

  • How can i used pai in screen 1000 to change the select-options field?

    hi,all.
    I want used pai to change the select-options field,but it can't works.
    the mainly code is:
    REPORT  ZTEST99.
    TABLES :MARA,MAKT,MARC.
    SELECTION-SCREEN BEGIN OF BLOCK B0 WITH FRAME TITLE TITLE0 .
    select-options:s_matnr for mara-matnr,
                   s_werks for marc-werks MODIF ID ID1.
    SELECTION-SCREEN END OF BLOCK B0.
    parameters:p_flag as checkbox.
    at selection-screen OUTPUT.
       LOOP AT SCREEN.
       IF P_FLAG = 'X' .
       IF screen-group1 = 'ID1'.
             screen-input = '0'.
        ELSE.
          screen-input = '1'.
        ENDIF.
        MODIFY SCREEN.
    ENDIF.
        ENDLOOP.
    START-OF-SELECTION.
    CALL SCREEN 1000.
    when i click p_flag,then i want to change s_werks from OBLIGATORY to no OBLIGATORY.
    how can i realized?
    Thanks for all.
    Sun

    Hi ,
    change your code like this.
    Change in your code:
    SELECTION-SCREEN BEGIN OF SCREEN 100.
    SELECT-OPTIONS : s_matnr for mara-matnr,
    s_werks for marc-werks MODIF ID ID1.
    SELECTION-SCREEN END OF SCREEN 100 .
    At selection-screen.
    if sy-dynnr = '100'.
    IF P_FLAG = 'X' .
    LOOP AT SCREEN.
    IF screen-group1 = 'ID1'.
    screen-required = '0'.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    else.
    LOOP AT SCREEN.
    IF screen-group1 = 'ID1'.
    screen-required = 1.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    my code :
    REPORT  Z50871_SELECTOPS_DYNAMIC.
    PARAMETERS : CH_EBELN AS CHECKBOX,
                 CH_VBELN AS CHECKBOX.
    DATA: V_EBELN TYPE EKKO-EBELN,
          V_VBELN TYPE VBAK-VBELN.
    SELECTION-SCREEN BEGIN OF SCREEN 100.
    SELECT-OPTIONS : EBELN FOR V_EBELN MODIF ID G1,
                     VBELN FOR V_VBELN MODIF ID G2.
    SELECTION-SCREEN END OF SCREEN 100 .
    AT SELECTION-SCREEN OUTPUT.
      IF SY-DYNNR = 100.
        IF CH_EBELN = 'X' AND
           CH_VBELN = ''.
          LOOP AT SCREEN.
            IF SCREEN-GROUP1 EQ 'G1'.
              SCREEN-ACTIVE = '1'.
            ELSE.
              SCREEN-ACTIVE = '0'.
            ENDIF.
            MODIFY SCREEN.
          ENDLOOP.
        ELSEIF CH_VBELN = 'X' AND
           CH_EBELN = '' .
          LOOP AT SCREEN.
            IF SCREEN-GROUP1 EQ 'G2'.
              SCREEN-ACTIVE = '1'.
            ELSE.
              SCREEN-ACTIVE = '0'.
            ENDIF.
            MODIFY SCREEN.
          ENDLOOP.
        ELSEIF CH_EBELN = 'X' AND CH_VBELN = 'X'.
          LOOP AT SCREEN.
            IF SCREEN-GROUP1 EQ 'G1'
               OR SCREEN-GROUP1 EQ 'G2' .
              SCREEN-ACTIVE = '1'.
            ENDIF.
            MODIFY SCREEN.
          ENDLOOP.
        ENDIF.
      ENDIF.
    AT SELECTION-SCREEN.
    IF SY-DYNNR = 1000.
      IF CH_EBELN = 'X' OR CH_VBELN = 'X'.
        CALL SELECTION-SCREEN 100.
      ELSE.
        MESSAGE I000(Z50871MSG) WITH 'Please select atleast one checkbox'.
      ENDIF.
    ENDIF.
    regards
    Sandeep Reddy

  • How many push buttons can u place on selection screen application tool bard

    hi
    how many push buttons can u place on selection screen application tool bar
    and what is default function code for that buttons.

    Hi Chaitanya,
    You can place maximum 5 push buttons on Application Toolbar.
    please award the points incase if you are able to get the solution.
    Thanks
    Sivaram

  • How we can assign the customised selection screen to report category

    hai
    gurus
    how we can assign the customised selection screen to report category

    Hi Naresh,
    You can do like this.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN BEGIN OF BLOCK SELECTION WITH FRAME.
    SELECT-OPTIONS: S_FKART FOR VBRK-FKART.
    SELECT-OPTIONS: S_FKDAT FOR VBRK-FKDAT OBLIGATORY.
    SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN.
    SELECT-OPTIONS: S_AUART FOR VBAK-AUART.
    SELECTION-SCREEN END OF BLOCK SELECTION.
    SELECTION-SCREEN END OF BLOCK B1.
    if you give me brief i can help you out more.
    Thank you .
    Regards
    Ram

  • How can I declare shared folder in SAP transaction AL11

    Hi,
    In Application Adapters Guide for ODI (downloaded from Oracle Homepage) have a paragraph:
    "the shared folder needs to be declared in SAP transaction AL11 and the folder opens successfully in AL11"
    if my folder for share is: C:\ABCFolder
    how can I declare the shared folder in SAP transaction AL11, and how to open it ?
    Thanks for reply.

    Hi,
    Once you delete the session in SM35, it is not possibel to restore it back.
    Check if you have also deleted the logs? Logs can exists after deleting the Session, provide you have not deleted the logs too.
    It is not possible to create one more session using AFAB.
    still if you want to do it, then in the selection screen at least change one of the parameter (Company code, Fiscal year, Posting period).
    IF you still do not want to change the above input parameters, then there is another option, i.e. create a new assest and then run the AFAB with the radio button in REPEAT RUN.
    Hope this is clear
    BR
    Sree

  • 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 can I create a full-screen view of Keynote slide in Snow Leopard?

    How can I create a full-screen view of my Keynote slides in Snow Leopard?
    I'm going to be importing into ScreenFlow to create a video.
    Thank you!!

    Welcome to Apple Support Communities.
    Do you want static screen captures or motion video of slides as titles, bullet points, and the like are presented?
    Run the Keynote slide presentation in full-screen mode, then...
    Static full-screen captures - use Command+Shift+3.
    Static partial-screen captures - use Command+Shift+4 and use cursor to select the area of the screen to capture.
    If you want motion video as builds occur, why not use Keynote's built-in Share, Export function?
    (I'm on iLife '09.)
    Also understand that the default slide format for Keynote is 1024x768, not full-screen MacBook 1280x800 screen size, so you'll have wide black borders unless you change the default size or crop the finished screen captures.
    Message was edited by: kostby

  • 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 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

Maybe you are looking for