Selection screen program

hi frnds,
           i want to develop a program for testing purpose.
           on executing the code.
           a sceen opens in which i will enter material no(matnr) as parameter.
on pressing enter again a new screen will open which will show materials description (makt-maktx) along with mateial no(this field will grey out).
i will be able to change materials description and will save it and the data shuld be updated in database table.
<b>pls dont design the screen by going to scrrn painter (using module pool concept)</b>         . how to achieve this
pls help
thanks
pankaj

Hi,
  SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-011.
PARAMETERS : p_pay1 RADIOBUTTON GROUP grp USER-COMMAND fc DEFAULT 'X',
             p_pay2 RADIOBUTTON GROUP grp.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
SELECT-OPTIONS : s_pernr FOR  pa0000-pernr.            "Personnel Number
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (31) text-018.
PARAMETERS     : p_begda LIKE pa0000-begda OBLIGATORY. "Start Date
SELECTION-SCREEN COMMENT 52(05) text-019.
PARAMETERS     : p_endda LIKE pa0000-endda OBLIGATORY. "End Date
SELECTION-SCREEN END OF LINE.
SELECT-OPTIONS : s_stat2  FOR pa0000-stat2,               "Status
                 s_werks  FOR pa0001-werks,               "Personnel Area
                 s_raufnr FOR catsdb-raufnr MODIF ID md1. "Internal Order Number
SELECTION-SCREEN END OF BLOCK b2.
                  AT SELECTION-SCREEN                                *
AT SELECTION-SCREEN OUTPUT.
  IF p_pay1 EQ 'X'.
    LOOP AT SCREEN.
      IF screen-group1 = 'MD1'.
        screen-active = '1'.
        screen-input  = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ELSEIF p_pay2 EQ 'X'.
    LOOP AT SCREEN.
      IF screen-group1 = 'MD1'.
        screen-active = '1'.
        screen-input  = '1'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.
Regards,
PRashant
Message was edited by:
        Prashant Patil

Similar Messages

  • Selection screen program name should be grayed out.

    In the selection screen ,  i need the program name to be displayed
    like
    program  :  ZZ_PROGRAM
    number :    input box.
    calculation is got to be done based on the input number.
    Without using screen painter i have to create using
    the parameter or any other abap statements.
    The program name should be grayed out.
    name of the program should be in the box (as we do for parameters)
    Please suggest how to achieve this
    Thanks

    Hi,
    PARAMETERS : p_text(50) MODIF ID 'ABC',
                               p_number TYPE I.
    INITIALIZATION.
       p_TEXT = 'YOUR PROGRAM NAME'.
    AT SELECTION SCREEN OUTPUT.
    LOOP AT SCREEN.
      IF screen-NAME = 'P_TEXT'
         SCREEN-INPUT = 0.
          MODIFY SCREEN.
      ENDIF.
    ENDLOOP.

  • Selection-screen programming

    Hi experts,
    I need to validate the selection-screen  fields p_bukrs(comp. code) / p_abkrs(payroll area) / p_lifnr / p_bkref  such that the fields  p_abkrs / p_lifnr / p_bkref to be fetched from Table (z-table) based on company code ,p_bukrs given at selection-screen levelu2026
    In z-table,  payroll area (p_abkrs) is the only key field
    Values in z-table
    Payroll area     ccode     vendor     bkref
    AB     1000     123       1111
    BC        2000     234        2222
    CD     1000     345        3333
    DE     3000     456        4444
    At selection-screen level,  1) if user chose u20182000u2019 p_bukrs and press enter, itu2019s supposed to get all related values i.e u2018BCu2019 u2018234u2019 u20182222u2019 for p_abkrs p_lifnr p_bkref resp.
    2) If user chose u20181000u2019, as it is having 2 payroll areas, we come across multiple selection, so again f4 help shud be provided and should accommodate the user to select the one from multiple to be displayed on selection-screen.
    So for the first option, itu2019s just providing f4 help and fetching values
    But for second one, pls provide the required logic as I met all failure attemptsu2026u2026..
    That would be a great help, if provide any inputsu2026u2026u2026u2026..
    With Regards
    Andhari

    Hi Suhas,
    In my requirement, no need to go for u2018multiple optionsu2019, wil explain u the scenario in briefu2026
    At selection-screen level, after pressin f4 at ccode field, wil shows u list of ccodes, whose values fetch from ztable (refer to my thread for ztable values) here I did using select single & fm <f4if_int_table_value_request>
    In values of ztable, for ccode u20181000u2019, itu2019s having 2 payroll areas i.e u2018ABu2019 and u2018CDu2019, so if user chose u20181000u2019 in list, another f4 shud display showin the related list to accomdate user to select related payroll area and make it displayed on sel-screen.
    In my code, while chosing u20181000u2019, in the f4 list (having 2 entries), irrespective of my selection itu2019s displaying 2nd entry i.e. u2018CDu2019 u2018345u2019 u20183333u2019u2026u2026hope you understand
    And here is my code reg. selecting '1000' where this multiple selection comes....
    <   IF p_bukrs EQ '1000'.
      <    SELECT abkrs
    <            lifnr
    <            bkref
    <            FROM ztable
    <            INTO TABLE gt_split    u201Csplit holds payroll,lifnr,bkref
    <            WHERE bukrs = p_ccode.
    < CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    <  EXPORTING
    <    retfield               = 'ABRKS'
    <   DYNPPROG               = sy-repid
    <   DYNPNR                 = sy-dynnr
    <   DYNPROFIELD            = 'P_BUKRS'
    <   VALUE_ORG              = 'S'
    <*   MULTIPLE_CHOICE        = ' '
    <*   DISPLAY                = ' '
    <*   CALLBACK_PROGRAM       = ' '
    <*   CALLBACK_FORM          = ' '
    <*   MARK_TAB               =
    <* IMPORTING
    <*   USER_RESET             =
    <  tables
    <    value_tab              = gt_split
    <*   FIELD_TAB              =
    <   RETURN_TAB             = gt_return
    <*   DYNPFLD_MAPPING        = fmap
    <* EXCEPTIONS
    <*   PARAMETER_ERROR        = 1
    <*   NO_VALUES_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.
    <     LOOP AT gt_split INTO gs_split.
    <       p_payrol = gs_split-abkrs.
    <       p_lifnr = gs_split-lifnr.
    <       p_bkref = gs_split-bkref.
    <     ENDLOOP.
    <   ENDIF.
    <   ENDIF.
    TIA
    Regards
    Andhari

  • How to use dynamic selection screen inputs in main program

    hi all,
      its a report where in it calls one dynamic selection screen( user need to enter the parameters here) after that i need to use those inputs for some check, can any buddy help how to use/ get that input parameters into main program.
    regards,
    vara..

    Hi,
    i think u have created that dynamic selection screen in seperate program and calling to ur main program.instead of that u just create that synamic selection screen program as include program and include it in ur main program.
    or u need to use set/get parameter id concept.
    rgds,
    bharat.

  • Calling selection screen of another  program

    Hi all,
         Am trying to call a program from a enhancement section of IW3K transaction using the following statement.But the selection screen of the program is not getting displayed.
    but the screen is dispalyed when i run the statement in debug mode.
    Can anyone help me on this...
    useful answers will be rewarded.
    submit Z XXXXX            via selection-screen
                                       WITH s_ispla =  'BEKD'
                                       WITH p_rsnum =  CAUFVD-rsnum
                                       WITH s_rspos in   i_range_tab
                                       and RETURN.

    hi,
    You can call one selection screen from other selection screen program using SUBMIT command.
    The syntax is as follows -
    codeSUBMIT... VIA SELECTION-SCREEN
    USING SELECTION-SET <var>
    WITH <sel> <criterion>
    WITH FREE SELECTIONS <freesel>
    WITH SELECTION-TABLE <rspar>.[/code]
    e.g.
    The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
    codeREPORT demo_program_submit_rep1.
    DATA number TYPE i.
    PARAMETERS paramet(14) TYPE c.
    SELECT-OPTIONS selecto FOR number.[/code]
    The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
    codeREPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
    DATA: int TYPE i,
    rspar TYPE TABLE OF rsparams,
    wa_rspar LIKE LINE OF rspar.
    RANGES seltab FOR int.
    WRITE: 'Select a Selection!',
    SKIP.
    FORMAT HOTSPOT COLOR 5 INVERSE ON.
    WRITE: 'Selection 1',
    / 'Selection 2'.
    AT LINE-SELECTION.
    CASE sy-lilli.
    WHEN 4.
    seltab-sign = 'I'. seltab-option = 'BT'.
    seltab-low = 1. seltab-high = 5.
    APPEND seltab.
    SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
    WITH paramet eq 'Selection 1'
    WITH selecto IN seltab
    WITH selecto ne 3
    AND RETURN.
    WHEN 5.
    wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
    wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
    wa_rspar-low = 14. wa_rspar-high = 17.
    APPEND wa_rspar TO rspar.
    wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
    wa_rspar-low = 'Selection 2'.
    APPEND wa_rspar TO rspar.
    wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
    wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
    wa_rspar-low = 10.
    APPEND wa_rspar TO rspar.
    SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
    WITH SELECTION-TABLE rspar
    AND RETURN.
    ENDCASE.[/code]
    => To leave a called program, you can use SUBMIT .... AND RETURN. by choosing F3 or F15 from list level 0 of the called report.

  • Creating Transaction code for selection screen of one ztable

    Hi ,
        i have one Ztable in order see the data in it , he wants one new transaction . by executing tht transaction he wants to view the data inside the table.
    i have created one transaction code by taking the transaction type as report transaction and program name i gave the selection screen program of tht table.
    when i executed tht t code  selection screen of table contents should come and on executing it i have to get  data.
    but im not getting data on executing tht selection screen .
    why? for this scenario which tcode type i have to select.

    Hi Pavan,
    Check this,
    Step 1
    Create parameter transaction (i.e. via SE93)
    Select the fourth options
    Step 2
    Enter transaction details. Within the Proposed values section there are a number of value which
    can be setup, simply use drop down menu to view the list. The 2 values assigned in the following
    example are as follows:
                   VIEWNAME:        Set table name to maintained
                   UPDATE:               Open table for update
    Mohinder

  • Passing values to a dynamic selection screen via a report

    Hi,
    I have the following problem and need to seek your expertise urgently.
    In my program, I need to call another report by passing in parameters to the selection screen of other report. However, I could not pass values into a dynamic selection screen. I tried to use submit (report) with free selection but do not know how it works.
    Currently, I tried calling the function RS_REFRESH_FROM_DYNAMICAL_SEL and FREE_SELECTIONS_RANGE_2_EX. Using the object the first function has returned to me, I tried to append values such as fieldname etc to it. However, I realised the field names of a dynamic selection screen keeps changing. So I would not know how to pass a particular value to a selection field.
    Appreciate any help given.
    Thanks,
    CK

    Hello CK,
    Are you using logical database in your selection screen program attributes? If it is, look at include file DBxxxSEL for parameter named xxxDYNSE where xxx = logical database. Debug the program that has that dynamic selection, and look at field xxxDYNSE. This should give you a hint on how to populate the parameter when you submit the program.

  • Toggle Button in a selection screen

    Hey Folks,
    I am pretty new to Screen/Selection Screen programming. I want to how does one go about adding a toggle button in a selection screen?
    The toggling of a button should trigger
    1) Toggling between visibility of blocks
    2) Toggling the name of the button
    3) Toggling the icon on the button
    Lastly what is the icon for an expan/collapse operation?
    Thanks,
    Puja.
    Edited by: Puja Malhotra on Oct 2, 2008 8:14 AM

    Toggling was made possible with the loop at screen during selection screen output

  • Calling another  report by passing selection screen parameter

    Hi,
    I have created a report "ZREPA" with selection screen parameter say, "creator".
    Nw, i hv to call that report "ZREPA" from another report say "ZREPB" by passing an value to the selection screen field "creator".
    Can anyone tell me how to resolve this??
    Thanks,
    Aaru.

    Hi,
    You can call one selection screen from other selection screen program using SUBMIT command.
    The syntax is as follows -
    codeSUBMIT... VIA SELECTION-SCREEN
    USING SELECTION-SET <var>
    WITH <sel> <criterion>
    WITH FREE SELECTIONS <freesel>
    WITH SELECTION-TABLE <rspar>.[/code]
    e.g.
    The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
    codeREPORT demo_program_submit_rep1.
    DATA number TYPE i.
    PARAMETERS paramet(14) TYPE c.
    SELECT-OPTIONS selecto FOR number.[/code]
    The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
    REPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
    DATA: int TYPE i,
    rspar TYPE TABLE OF rsparams,
    wa_rspar LIKE LINE OF rspar.
    RANGES seltab FOR int.
    WRITE: 'Select a Selection!',
    SKIP.
    FORMAT HOTSPOT COLOR 5 INVERSE ON.
    WRITE: 'Selection 1',
    / 'Selection 2'.
    AT LINE-SELECTION.
    CASE sy-lilli.
    WHEN 4.
    seltab-sign = 'I'. seltab-option = 'BT'.
    seltab-low = 1. seltab-high = 5.
    APPEND seltab.
    SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
    WITH paramet eq 'Selection 1'
    WITH selecto IN seltab
    WITH selecto ne 3
    AND RETURN.
    WHEN 5.
    wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
    wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
    wa_rspar-low = 14. wa_rspar-high = 17.
    APPEND wa_rspar TO rspar.
    wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
    wa_rspar-low = 'Selection 2'.
    APPEND wa_rspar TO rspar.
    wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
    wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
    wa_rspar-low = 10.
    APPEND wa_rspar TO rspar.
    SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
    WITH SELECTION-TABLE rspar
    AND RETURN.
    ENDCASE.
    => To leave a called program, you can use SUBMIT .... AND RETURN. by choosing F3 or F15 from list level 0 of the called report.
    Regards,
    Omkaram.

  • 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 can I get selection screen values from outside of program?

    Hi. all.
    Now. I'm developing moritoring systems and I have problems. for getting selection screen values in runtime. Is there any function, methods or structure to know this?
    I'd like to get selection screen values while several programs working in runtime and update these values to table to show current system's status and input values for users in real time.
    For example.
    Now. 3 PGMs are working on systems.
    each PGM is ZAAA01, ZAAA02, ZAAA03.
    and ZAAA01 needs input parameter P01, ZAAA02 needs input parameter P02, ZAAA03 needs input parameter P03.
    In this case, I have to know values of P01, P02 and P03.
    The mornitoring systems will show current working status of PGMs(ZAAA01~03)' and these PGMs' input values.
    As fas as I know, the structure 'SCREEN' can be used in each PGM for runtime. Is there any SAP system structure or something else for this purpose?
    I hope your hopeful repsponse.
    Thanks.

    Umm..I need to explain more about this.
    of course I know  SET, GET PARAMETERS.
    But I'd like to minimize coding for each PGM level.
    I have over hundreds PGMs and I have to develop the PGM(including tables and structures) that mornitor
    all of those PGMs on a report in real-time.
    This PGM is kind of  Process Manager.
    First I should know dialogue job PGM and background job that pass parameters using SAP(ABAP) Memory.
    And then I have to update those PGMs' input values via screens into tables in real-time.
    So, I couldn't use SET,GET PARAMETERS for this PGM.
    I want to know methods that can be used for getting information about runtime PGMs' selection screen field values in SAP systems wide.
    Please help me some one knows this.

  • How to generage pop up screen on selection screen of report program?

    Hi Guys,
            I am having a requirement to generate the <b>pop up screen on the selection screen</b> of the report program.
           Suggest me the best one with model program

    Hi Chakradhar,
                             Refer this code :
    SELECTION-SCREEN BEGIN OF BLOCK BL2 WITH FRAME TITLE TEXT-456.
    PARAMETERS PO RADIOBUTTON GROUP RADI USER-COMMAND R.
    SELECTION-SCREEN END OF BLOCK BL2.
    AT SELECTION-SCREEN OUTPUT.
    CALL SCREEN 100.
    when user will click on this radio button , a pop up screen will appear dynamically.
    Reward points if helpful.
    Regards,
    Hemant

  • How to create a variant for a program without selection screen

    Hi All,
    I've created one program which takes the data from 30 tables and loads into one final table.
    This program is already moved to Production.
    But while creating variant it's not allowing, since the program doesn't have the selection screen.
    Is there anyway where I can create a variant in production without selection screen directly as the program code is already moved to production.
    Thank You,
    Regards,
    Karthik.Ch

    Hi ,
    Are you running this program in a process chain??

  • Set the parameter in the selection screen of a program from another program

    Hi ALL,
    I need to call the program RHALESMD from another program and the program RHALESMD takes from date as one of the input parameter.how do i set the from date from the calling program and call RHALESMD
    Thanks
    Bala Duvvuri

    i got the answer
    Program accessed
    REPORT report1.
    DATA text TYPE c LENGTH 10.
    SELECTION-SCREEN BEGIN OF SCREEN 1100.
      SELECT-OPTIONS: selcrit1 FOR text,
                      selcrit2 FOR text.
    SELECTION-SCREEN END OF SCREEN 1100.
    Calling program
    REPORT report2.
    DATA: text       TYPE c LENGTH 10,
          rspar_tab  TYPE TABLE OF rsparams,
          rspar_line LIKE LINE OF rspar_tab,
          range_tab  LIKE RANGE OF text,
          range_line LIKE LINE OF range_tab.
    rspar_line-selname = 'SELCRIT1'.
    rspar_line-kind    = 'S'.
    rspar_line-sign    = 'I'.
    rspar_line-option  = 'EQ'.
    rspar_line-low     = 'ABAP'.
    APPEND rspar_line TO rspar_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'H'.
    APPEND range_line TO range_tab.
    range_line-sign   = 'E'.
    range_line-option = 'EQ'.
    range_line-low    = 'K'.
    APPEND range_line TO range_tab.
    SUBMIT report1 USING SELECTION-SCREEN '1100'
                   WITH SELECTION-TABLE rspar_tab
                   WITH selcrit2 BETWEEN 'H' AND 'K'
                   WITH selcrit2 IN range_tab
                   AND RETURN.
    Thanks
    Bala Duvvuri

  • Selection screen in Logical Database programming

    In my Executable program,i have used 'GET PERNR' .
    but i don't need the standrd selection screen as such.I want to modify the std selection screen . Instead of allowing user to select the PERNR's , i want to set their PERNR's by default .
    Advance Thanks .
    J

    You have write this in your INITIALIZATION and AT SELECTION-SCREEN OUTPUT events.
    In your INITIALIZATION event, default the PERNR to the PERNR of the employee who is running it.
    In the AT SELECTION-SCREEN OUTPUT, add the code to make it display only as follows.
    LOOP AT SCREEN.
      IF SCREEN-NAME = PERNR.
        SCREEN-INPUT =0.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    Srinivas

Maybe you are looking for

  • Text in invoice

    Hi All How to Automate the text which is at the billing document and also Different text for the same material  (one if for Pro-forma and the other one is for Billing document) any possibility in SAP please advice

  • SSO using user ID and password

    Hi , I have installed EP 6.0 SP2 running on SQL DB,Business Package for ESS for SAP R3 4.7 , ITS6.20. Portal is runing fine and i also have set up the SSO with R3 using UIDPWD. I can able to access ESS iviews. Everything runs fine. But the problem is

  • How do I justify text at the end of a column

    How do I justify text at the end of a column In Pages? Also, is there any way to sort a document (alphabetically by the first word of each paragraph) that is not in a table?

  • Preferred video format...from tape to...?

    I have a client that will transcode from tape to digital file for me. Since I want great quality video what is the best format and specs I should ask them to deliver so I can edit directly with FCP?

  • Importing the out-put to the exel

    Hi all, iam very new to the unix and sql, just i want to know how to export the out-put of the query into exel using unix(spool)