How to get values of selection screen fields in the POV event

I have two radio buttons r1,r2 and a field file_name on  selection screen.
I have written At selection screen on value-request for the field file_name. Based on the selection of radio buttons I have to display different screens when f4 for field_name is pressed.
Unfortunately the values of r1 or r2 are not populated in the AT selection screen on value-request event.
Can any one tell me if there is a way to obtain the values of r1 or r2 in the AT selection  screen on value-request event.

Hi..
Try out this.
REPORT  ZH_TEST4                                .
CONSTANTS : c_x                TYPE char01 VALUE 'X',
            c_rg1(4)        TYPE c      VALUE 'RG1',
            c_gr2(3)        TYPE c      VALUE 'GR2',
            c_gr3(3)        TYPE c      VALUE 'GR3',
            c_zero          TYPE n      VALUE '0',
            c_neg(2)        TYPE c      VALUE '-1'.
data: w_sscrfields_ucomm1   TYPE sscrfields-ucomm.
SELECTION-SCREEN : BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
PARAMETERS       : p_back   RADIOBUTTON GROUP rg1
                                 USER-COMMAND pc,
                   p_fore   RADIOBUTTON GROUP rg1
                                      DEFAULT 'X'.
SELECTION-SCREEN : END OF BLOCK blk1.
SELECTION-SCREEN : BEGIN OF BLOCK blk2 WITH FRAME TITLE text-002.
PARAMETERS : p_phif LIKE rlgrap-filename  MODIF ID gr2,
             p_ahif LIKE rlgrap-filename  MODIF ID gr3.
SELECTION-SCREEN : END OF BLOCK blk2.
AT SELECTION-SCREEN OUTPUT.
  IF p_fore EQ c_x.
    w_sscrfields_ucomm1 = c_rg1.
  ELSE.
    w_sscrfields_ucomm1 = space.
  ENDIF.
  LOOP AT SCREEN.
    IF w_sscrfields_ucomm1 EQ space.
      IF screen-group1 = c_gr2.
        screen-active = c_zero.
      ENDIF.
    ELSE.
      IF screen-group1 = c_gr3.
        screen-active = c_zero.
      ENDIF.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.
also try out function module POPUP_WITH_TABLE_DISPLAY.
Plz reward points if this helps by clicking on star!1
Good Luck!!
Cheers,
Rajeev

Similar Messages

  • How to refresh value in selection screen field

    Hi Experts,
    I have a requirement to refresh the value in selection screen.while i run the report in selection screen i selecting one variant for look the output if i use some other field value with same variant without save its working fine i am avle to see the data but while i come back to again selection screen and selecting some other variant that extra add value is not getting refresh its showing with new variant.Its happening for only one variant not for all if i select some other variant then its getting refresh value in same field.Any one can help me for this issue.
    Thanks.

    Hi,
    That means, I believe - the value that is "not changing" is saved in the particular variant. You can easily verify it by starting the report without variant and then selecting the variant in question. Remove the value from screen and save the variant again. Don't forget to check of variant needs to be transported from development system...
    cheers
    Janis

  • Default value for selection screen field

    Hi all,
      I am using LDB PNPCE. I want to give default value for field Personnel area on selection screen.
    How can I do it?
    Thanks
    Rahul

    Hi Rahul,
    In the INITIALIZATION event we can set the default values for selection screen fields.
    INITIALIZATION.
    loop at screen.
    if screen-name = 'S_MATNR-LOW'.
    CLEAR S_MATNR.
    s_matnr-low = '1234'.
    s_matnr-option = 'EQ'.
    s_matnr-sign = 'I'.
    append s_matnr.
    CLEAR S_MATNR.
    s_matnr-high = '5678'.
    s_matnr-option = 'EQ'.
    s_matnr-sign = 'I'.
    append s_matnr
    clear s_matnr.
    endif.
    endloop.
    Hope it helps.
    Mark if useful
    Regards,
    Saumya

  • How to create value request for screen field text box tt1

    How to create value request for screen field text box tt1
    i have a text box name tt1,
    i want f4 help for that .
    remember i am asking for screen i.e done from screen layout not selectio-screen.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla,

    Hi,
    Create one Search Help in the SE11 for the particular Field that u want to display. In the Screen(Transaction SE51),For that Text Box in the Attributes,in Dict Tab ->Search Help Field give that Search Help Name.
    For Eg,
    If u want Purchase Order Numbers in that F4 Help.Create one <b>Search Help</b> by giving Table Name as <b>EKKO</b> & <b>Search Help Parameter</b> as <b>EBELN</b> with Lpos & Rpos as 0 & 1.Save & Activate it.
    Give this Search Help Name in Dict Tab ->Search Help Field of that Screen Attributes.
    Regards,
    Padmam.

  • How to put values from selection screen to  ztable

    hi all,
    i have created a ztable.
    now i want to put data through se38.
    i have given 5 parameters in selection screen same as there in ztable.
    now if i put values in selection screen then it should put that values to my ztable .
    how can i put values into my ztable.
    i used insert but not workiing.

    Hi,
    Try this.
    TABLES : ztable.
    SELECTION-SCREEN:BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    PARAMETER : p_field1 TYPE field1_in_ztable,
                            p_field2 TYPE field2_in_ztable.
                            p_field3 TYPE field3_in_ztable.
                            p_field4 TYPE field4_in_ztable.
                            p_field5 TYPE field5_in_ztable.
    SELECTION-SCREEN:END OF BLOCK b1.
    DATA : itab TYPE TABLE ztable,
                 wa_itab TYPE ztable.
    AT SELECTION-SCREEN.
          MOVE p_field1 TO wa_itab-field1.
          MOVE p_field2 TO wa_itab-field2.
          MOVE p_field3 TO wa_itab-field3.
          MOVE p_field4 TO wa_itab-field4.
          MOVE p_field5 TO wa_itab-field5.
    INSERT ztable FROM wa_itab.
    IF sy-subrc = 0.
    MESSAGE 'Successfully saved' TYPE 'I'.
    ENDIF.
    Thanks,
    Sri.
    Edited by: Sri on Jul 28, 2009 4:15 PM

  • How to get a true "full screen" view without the edit tools?  The help manual promises such a view.

    How do I get a true "full screen" view in the new version of Iphoto without the edit tools showing?  Weirdly enough, the help manual promises such a "full" view, which was always available in my earlier version of Iphoto.
    Thanks, in advance.

    Click on the Edit button to get into Edit mode. Click on it again to come out of edit mode.
    Regards
    TD

  • Pop up to select a value onto selection-screen field

    Hi folks
    I have a custom field on the SELECTION-SCREEN. Now how can I get my desired values on F4 function key click display n get the selected value in the field. 
    IN A CLASSICAL n ALV scenarioes.
    Can u plz Gimme a sample code on that.
    Thanks in advance.
    Regards,
    Ram

    Hi Ram,
    Refer to the code below.
    Suppose you have a field called priority on  the screen for which u need F4 help.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_priok-low.
    SELECT priok
            INTO TABLE i_priok
            FROM t356_t
            WHERE artpr EQ c_cr.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
      DDIC_STRUCTURE         = ' '
          retfield               = 'PRIOK'
      PVALKEY                = ' '
          dynpprog               = sy-cprog
          dynpnr                 = sy-dynnr
          dynprofield            = 'S_PRIOK-LOW'
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
       value_org              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
        TABLES
          value_tab              = i_priok
      FIELD_TAB              =
      RETURN_TAB             =
      DYNPFLD_MAPPING        =
    EXCEPTIONS
      PARAMETER_ERROR        = 1
      NO_VALUES_FOUND        = 2
      OTHERS                 = 3
    Regards,
    Pankaj Sharma

  • Auto selection of a value on selection screen field of a report program

    Dear Gurus,
    I have encountered a case in a report program, if i select a vendor code in selection screen, simultaneously the region code of that vendor should come automatically to the next parameter(ie region code). Is it possible..if then how?
    Thanks in Advance
    Saif

    Hi Saifur,
      write the code in the at selection-screen output.
    Try this logic.
    TABLES :
      SCARR ,
      SPFLI ,
      SFLIGHT ,
      SBOOK .
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME .
    PARAMETERS :
      P_FLIGHT RADIOBUTTON GROUP R1 ,
      P_BOOK RADIOBUTTON GROUP R1 .
    SELECTION-SCREEN END OF BLOCK B1 .
    SELECT-OPTIONS S_FLDATE FOR SFLIGHT-FLDATE DEFAULT '20090101' TO
    '20090131'.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME .
    PARAMETERS :
      P_TEMP1 RADIOBUTTON GROUP R2 MODIF ID SC1 ,
      P_TEMP2 RADIOBUTTON GROUP R2 MODIF ID SC1 .
    SELECT-OPTIONS S_CARRID FOR SCARR-CARRID MODIF ID SC1 .
    SELECTION-SCREEN END OF BLOCK B2 .
    SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME.
    PARAMETERS :
      P_TEMP01 RADIOBUTTON GROUP R3 MODIF ID SC2 ,
      P_TEMP02 RADIOBUTTON GROUP R3 MODIF ID SC2 .
    SELECT-OPTIONS S_BOOKID FOR SBOOK-BOOKID MODIF ID SC2 .
    SELECTION-SCREEN END OF BLOCK B3 .
    AT SELECTION-SCREEN OUTPUT .
    IF P_FLIGHT = 'X' .
    FL_FLAG = 1 .
    LOOP AT SCREEN .
    IF SCREEN-GROUP1 = 'SC2' .
    SCREEN-ACTIVE = 0 .
    MODIFY SCREEN .
    ENDIF.
    ENDLOOP.
    ELSEIF P_BOOK = 'X' .
    FL_FLAG = 2 .
    LOOP AT SCREEN .
    IF SCREEN-GROUP1 = 'SC1'.
    SCREEN-ACTIVE = 0 .
    MODIFY SCREEN .
    ENDIF.
    ENDLOOP.
    ENDIF .
    On pressing Enter use sy-ucomm value onli to do that and then write the above logic for another select-option.
    Much Regards,
    Amuktha.
    Edited by: Amuktha Naraparaju on Mar 12, 2009 1:24 PM

  • How to get value of selected part in sap.viz.ui5.pie chart

    Hi,
       I have designed a basic Pie Chart. But i am looking for the code to get the value of the selected part of the Pie Chart,so that i can report a details based on it.
    Is their is any sample code snippets available for all event handlers of sap.viz.ui5 charts..
    Thanks,
    Prakash

    Hi Prakash,
    Refer this thread How to get the value of Selected Dimension in a Pie Chart ?
    I shared example code in this thread and I hope it will solve your question.
    also you can see example at this link https://sapui5.netweaver.ondemand.com/sdk/test-resources/sap/viz/demokit/VIZCharts.html?sap-ui-debug=true&sap-ui-language=en-US&sap-ui-theme=sap_bluecrystal&sap-ui-accessibility=true&sap-ui-jqueryversion=1.7.1
    see the eventing section and source code to know all event handles.
    Regards,
    Chandra

  • How to get back to Selection Screen from Drill Down Screen in ALV

    Hi All
              How can I come back directly to the Selection Screen from the drill down screen of an ALV Report i.e. in an Interactive ALV Report when sy-lsind > 1.
    Thanks
    Kulpreet

    Try to use ....
    SET SCREEN 0.
    LEAVE SCREEN.
    Regards,
    Rich Heilman

  • Drop down box for the selection screen field of the classical report

    Hi all.
    i want to have the drop down list to choose from, for the region(table:zbwcntry-field:zregion1) on the selection screen.
    what is to be added to the code for this requirement.Also,please note that this is the classical report.
    thanks for this answered.

    hi,
    data  : gv_name  TYPE vrm_id,        " used for vrm id
               gv_repid TYPE sy-repid,      " used to hold program name
    work area to provide drop down list
    DATA :  gs_value TYPE vrm_value,
    Internal table to provide drop down list
    DATA :  gt_values TYPE vrm_values,
    PARAMETER : p_run(12) TYPE c AS LISTBOX VISIBLE LENGTH 12
                                     DEFAULT 'DEFAULT' OBLIGATORY,
    CONSTANTS : gc_run(5) TYPE c VALUE 'P_RUN',    "constant for run mode
    gv_name = gc_run.
      gs_value-key = gc_v1.
      gs_value-text = text-010.
      APPEND gs_value TO gt_values.
      gs_value-key = gc_v2.
      gs_value-text = text-011.
      APPEND gs_value TO gt_values.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = gv_name
          values          = gt_values
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Hope this is helpful.
    Rgds.,
    subash

  • Display alv grids in selection screen based on the user event

    Hi All,
    I am workign on displaying ALV in same selection screen.I am able to display the ALV in selection screen.
    But i have 2 buttons in my selection screen 'Create' and 'change'.
    When i click on create i need  with some type of data and when i click on 'change' my alv grid another type of data.Ex: if i click on crate mara data should be dispalyed when i click on change makt table data should be dispalyed and also i have user defined buttons are in my grids.
    So i have used 2 containers to dispaly to different data.I am able to display the perfectly but the problem is first time when i click on create the grid is displaying when i click on change button  the create alv grid is displaying down and change data is dispalying up.
    I need only one alv grid at a time.Can anybody please let me know how can i do this.
    Thanks,
    Taragini

    Hello,
    Also I would suggest if it is relevant data maintain in one interntal table and show/hide based on condition
    through fieldcatalog (NO_OUT) parameter.
    Thanks

  • How to get values from dynamically populated field symbol

    Hi all,
    I am having a field symbol <fs_table> type standard table, which is getting populated dynamically.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog = i_fieldcat[]
        IMPORTING
          ep_table        = is_eptab.
      ASSIGN is_eptab->* TO <fs_table> .
    After the ALV display i am making some changes in the ALV and getting a new internal table <fst_table>,which is having changed values.
    Now the problem is that i am not able to get the changed values from <fst_table>  as it is not of any structure type and cant associate it with any field like we do in normal internal table and work areas like, wa-fieldname.
    All the fields are dynamic.
    Regards,
    Anant

    Hello Anant
    You have to access to access the fields of your dynamic outtab dynamically as well.
    DATA: ls_fcat   TYPE lvc_s_fcat.
    FIELD-SYMBOLS:
      <ls_struc>   TYPE any,
      <ld_fld>       TYPE any.
    LOOP AT <fs_table> ASSIGNING <ls_struc>.
      LOOP AT i_fieldcat INTO ls_fcat.
        ASSIGN COMPONENT ls_fcat-fieldname OF STRUCTURE <ls_struc> TO <ld_fld>.
        ...  " do processing
      ENDLOOP.
    ENDLOOP.
    Regards
      Uwe

  • Default Value for a selection screen field

    Hi Experts,
    I am having a selection screen with a date field i am defaulting the date field to sy-datum but i also have a option of changing the date field value.
    The issue is i have defaulted the date field value in PBO event,so when i change my field value in selection screen every time the defaulted value is appearing instead of my new changed value.
    Plzz suggest a solution.

    Hi ,
           Actualy u should set the default value at the time of selection screen, but now from the same logic try to write like
       If Date is initial.
         data = sy-datum.
        endif.
    in ur PBO
    Try this.
    THank
    -Anmol
    Hi Experts,
    I am having a selection screen with a date field i am defaulting the date field to sy-datum but i also have a option of changing the date field value.
    The issue is i have defaulted the date field value in PBO event,so when i change my field value in selection screen every time the defaulted value is appearing instead of my new changed value.
    Plzz suggest a solution.

  • Validating a selection-screen field

    Hi all,
    I am Anil.can any body explains me how to validate a selection-screen field for the following scenario?
    I have customer nos ranging from 100-1000.among them i dont have any sales orders for the customers who are in between 150-250.I have sales order(VBELN) as select-options and Plant(WERKS) as Parameter on the selection-screen.I want to validate these fields without hardcaode.How can i do that?Please send me the complete code.
    I am not getting how to validate a field  which is declared as parameter?
    regards and thanks in advance.
    Anil.

    Make sure that u are validating against the header table.
    say eg if u wnat t validate matnr in marc, then do as below.
    SELECT-OPTIONS: s_matnr FOR  marc-matnr.                  "Material No
    AT SELECTION-SCREEN.
    *Validate material no details
      PERFORM validate_matno.
    FORM validate_matno.
    DATA: v_matnr LIEK mara-matnr.
      SELECT SINGLE matnr INTO v_matnr
             FROM <b>mara</b>
             WHERE matnr IN s_matnr.
      IF sy-subrc NE 0.
        MESSAGE i128.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.
    Dont select from marc.
    Hope this is clear.

Maybe you are looking for

  • How to find out what is causing an error in a BPM process

    I have a very basic question and I can't figure it out from help.sap.com I have a BPM process deployed to a SAP NW Java BPM 7.40 system. It can be triggered with a web service call. It goes into error immediately. I go to NW Administrator > Operation

  • Table heading row does not repeat

    I'm using InDesign CS5, and have a table that splits over two pages. There is one heading row, and I've set it to repeat on each page. But it doesn't repeat. The only thing a little unusual about this table is that some of the heading row cells are r

  • Com.borland.jbcl.layout package

    When I am executing my code I am getting this error. "package com.borland.jbcl.layout does not exist" So from where can I download this package and where to load this pacage. Can anyone help me fast.

  • How do I save One Bookemark in Multiple Places

    I want to save for example One bookmark in different places on my Bookmark List ie different folders

  • Google Cloud Print setup - Unable to parse printer capabilities

    I'm trying to add my CP1525nw to Google Cloud Print as a Cloud printer, and not as a LOCAL printer, however each time I add my eprint email I get the following message; "Unable to parse printer capabilities"  - I've attempted both private and public