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

Similar Messages

  • Screen enhancement to add input parameters to standard selection screen IE05

    Hello Experts,
    How can i enhance the IE05 selection screen to add some input parameters in the screen.
    Please refer the following screen to be done and please guide me for the same.

    Since i am adding a select option of type ekko-ebeln, i have to add a statement TABLE ekko.

  • How to remove the underline in the parameters in the selection screen?

    how to remove the underline from the parameters in the selection screen?
    i came through the comment statements in the forum is there any other ways like setting some fields in the declarattion of the parameter itself?
    like
    parameter:p1 type string .......?

    I dont think there is an alternative to removing the underlines other than to go for COMMENT. In the selection texts (of text elements) we can just give the parameter name or take the standard text from dictionary, but theres no option to remove the underlines.
    SELECTION-SCREEN BEGIN OF BLOCK rbg WITH FRAME TITLE tit.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(20) text-001 MODIF ID sc1.
    PARAMETERS:
      p_param TYPE vbak-vbeln.
    SELECTION-SCREEN END OF LINE.
    PARAMETERS:
      p_posnr TYPE vbap-posnr.
    SELECTION-SCREEN END OF BLOCK rbg.

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

  • 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

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

  • Add Parameters in FBL3N Selection Screen

    Hi Experts,
    Would it be possible to add parameters in FBL3N selection screen?
    We would like to add Purchase Order, Delivery Order and Year/Month.
    Thanks in advance!

    Hi
    BET 1650 will add fields in the Output screen.. it wont help you to add Selection Parameters
    I have not come across any standard way of enhancing the FBL reports.. You can copy the program and make a Z of the same... I did it for FBL1N and FBL5N to get the Profit center in the vendor/customer line item
    Br, Ajay M

  • Add input parameters to ik07 selection screen..enhancement spots

    hello experts,
    Help required..
    Please tell me how to enhance the tcode ik07 for putting the input parameters on the selection screen I think there are no badi and exits we have to use enhancement spot.
    How can i... Please reply...screenshot for reference

    Since i am adding a select option of type ekko-ebeln, i have to add a statement TABLE ekko.

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

  • How to Remove the underline from the selection screen parameter

    How to remove the underline from a selection screen parameter ?

    >
    Anoop Menon wrote:
    > hi Avinash,
    >
    > I am not able to understand the use of the 'comment line properly.
    >
    > The last part of the statement which says modif id is confusing.
    >
    > Please clarify..... I am unable to activate my code when I put the selection screen commebnt statement.
    Use this and update it to your requierement !
    SELECTION-SCREEN begin of line.
    SELECTION-SCREEN COMMENT 1(30) comm.
    PARAMETERS test(1) type c.
      SELECTION-SCREEN end of line.
    INITIALIZATION.
      comm = 'test'.

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

  • How to disable a pushbutton created in selection screen.

    How to disable a pushbutton created in selection screen.

    you can make it invisible during runtime.
    At the event,  AT SELECTION-SCREEN OUTPUT. you can turn attributes on and off for screen elements.  In this case, invisible = 1, makes the element invisible, 0 makes is visible.
    here is a short sample.
    report zrich_0001.
    parameters: p_check type c.
    selection-screen pushbutton 40(20) gocfg
                         user-command gocfg.
    at selection-screen output.
      loop at screen.
        if screen-name = 'GOCFG'.
          screen-invisible = '1'.
          modify screen.
        endif.
      endloop.
    Regards,
    Rich Heilman

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

  • Difference between standard selection screen and selection screen

    hi guyz,
    im asking this because in the table D010SINF there are two fields  sdate and idate which has different dates in it for some programs and same dates for some..bit confused:(
    thanks

    hi BrightSide 
    standard Selection means
    suppose if you are using parameters means system defaultly generate one screen under the Screen Number 1000
    Selection Screen means you are creating a screen using
    stament SElection-Screen begin of screen 100..
    this is the difference whatever the screen other than '1000' is selection Screen, where as 1000 is Standard Selection Screen
    Regards
    Deva

  • How to create Option Boxes IN A SELECTION SCREEN

    How to create Option Boxes IN A SELECTION SCREEN.
    Thanks!

    Hi Rajesh,
    The following explanation gives clear picture of what is mean of check box and radio button with coding.....................
    <b>CHECK BOX :</b>
    AS CHECKBOX [USER-COMMAND fcode]
    Effect:
    This addition specifies that the input field in the first position of the selection screen is displayed as a checkbox, with the corresponding description next to it on the right. The checkbox is selected if the value of para is "X" or r "x". Otherwise, it is not selected.
    The parameter must be created with the type c and length 1. An explicit length len is not permitted. If the addition TYPE is used, this can only be followed by the generic type c or a non-generic data type of type c and length 1.
    The addition USER-COMMAND can be used to assign a function code fcode to the parameter. The function code fcode must be directly specified and may have a maximum length of 20 characters. To evaluate the function code, an interface work area of the structure SSCRFIELDS from the ABAP Dictionary must be declared using the statement TABLES. When the user selects the checkbox on the selection screen, the runtime environment triggers the event AT SELECTION-SCREEN and transfers the function code fcode to the component ucomm of the interface work area sscrfields.
    Notes
    If the TYPE addition is used to make a reference to a data type in the ABAP Dictionary of type CHAR and length 1, and for which t the valid values in the domain are defined as "X" and " ", the parameter is automatically displayed as a checkbox on the selection screen.
    If the addition USER-COMMAND is specified without the addition AS CHECKBOX, and the parameter is of type c with length 1, it is also displayed as a checkbox.
    The addition USER-COMMAND can, for example, be used for screen modifications with the addition MODIF ID (see example).
    <b>Coding :</b>
    PARAMETERS show_all AS CHECKBOX USER-COMMAND flag.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p1(10) TYPE c,
                p2(10) TYPE c,
                p3(10) TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
    PARAMETERS: p4(10) TYPE c MODIF ID bl2,
                p5(10) TYPE c MODIF ID bl2,
                p6(10) TYPE c MODIF ID bl2.
    SELECTION-SCREEN END OF BLOCK b2.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF show_all <> 'X' AND
           screen-group1 = 'BL2'.
           screen-active = '0'.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    <b>RADIO BUTTON COMMAND :</b>
    RADIOBUTTON GROUP group [USER-COMMAND fcode]
    Effect:
    This addition specifies that the input field is displayed as a radio button in the first position on the selection screen, and the output field is displayed next to it on the right. The radio button is selected if the value of para is "X" or "x". Otherwise, it is not selected.
    group is used to define the radio button group for the parameter. The name group is entered directly as a character string with a maximum of 4 characters. Within a selection screen, there must be a minimum of two parameters in the same radio button group. There cannot be more than one radio button group with the same name in one program, even if they are defined in different selection screens.
    The parameter must be specified with the type c and length 1. Explicit length specification using len is not permitted. If the addition TYPE is used, it can only be followed by the generic type c or a non-generic data type of type c and length 1.
    In a radio button group, only one parameter can be defined with the addition DEFAULT, and the specified value must be "X". By default, the first parameter in a radio button group is set to the value "X", and the rest are set to " ".
    The addition USER-COMMAND can be used to assign a function code fcode to the first parameter in a radio button group. The function code fcode must be specified directly, and have a maximum length of 20 characters. To evaluate the function code, an interface work area of the structure SSCRFIELDS from the ABAP Dictionary must be declared using the statement TABLES. When the user selects any radio button of the radio button group on the selection screen, the runtime environment triggers the event AT SELECTION-SCREEN and transfers the function code fcode to the component ucomm of the interface work area sscrfields.
    Note:
    It is recommended to define the radio buttons of a radio button group directly underneath each other. If the selection screen also contains other elements, it is recommended to define each radio button group within a block surrounded by a frame.
    <b>CODING :</b>
    tables : mkpf,mseg,ekko.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETER : P_WERKS LIKE MARC-WERKS MODIF ID S1,
                c as checkbox.
    SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN NO INTERVALS MODIF ID S2.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-004.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X' USER-COMMAND UC1.
    SELECTION-SCREEN COMMENT 5(20) TEXT-002 FOR FIELD R1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R2 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B2.
    write :/ p_werks,
           / s_ebeln.
    AT SELECTION-SCREEN OUTPUT .
    LOOP AT SCREEN .
    IF R1 EQ 'X' AND SCREEN-GROUP1 EQ 'S2'.
    SCREEN-INPUT = 0.
    SCREEN-REQUIRED = 1.
    clear s_ebeln[].
    clear p_werks.
    MODIFY SCREEN.
    ENDIF.
    IF R2 EQ 'X' AND SCREEN-GROUP1 EQ 'S1'.
    SCREEN-INPUT = 0.
    SCREEN-REQUIRED = 1.
    clear s_ebeln[].
    clear p_werks.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    Let me knwo if any doubts.
    <b>Reward with points if it helpful</b>
    Regards,
    Vijay

Maybe you are looking for