Value Request in Dynamic selection selection screen

Hello Gurus,
Please let me know whether we can add F4 - > Value request in Dynamic Selection screen.
If Yes please do let  me know how to do it. If posssible please give me the code.
Thanks
Mac

Hi Mac,
It is pssible to have F4 help for fields in dynamic selection screen.
Please find the sample code below.
PROGRAM  ZTESTABC1                               .
DATA : GV_VBELN LIKE VBAK-VBELN,
       GV_AUART LIKE VBAK-AUART.
DATA : BEGIN OF I_VBAK OCCURS 0,
         VBELN LIKE VBAK-VBELN,
         AUART LIKE VBAK-AUART,
         NETWR LIKE VBAK-NETWR,
       END OF I_VBAK.
ranges : r_auart for vbak-auart.
data : begin of value_tab occurs 0,
         vbeln like VBAK-VBELN,
       end of value_tab.
data :  ret_tab type ddshretval OCCURS 0 WITH HEADER LINE.
DATA : GV_REPID LIKE SY-REPID,
       GV_DYNNR LIKE SY-DYNNR.
Static selection screen
SELECTION-SCREEN begin of block b1.
parameters : p_rb RADIOBUTTON GROUP G1,
             p_gb RADIOBUTTON GROUP G1.
SELECTION-SCREEN end of block b1.
Dynamic selection screen
selection-screen:begin of screen 110.
parameter:P_VBELN type vbak-vbeln,
          P_AUART type vbak-AUART.
selection-screen: end of screen 110.
INITIALIZATION.
GV_REPID = SY-REPID.
GV_DYNNR = SY-DYNNR.
at SELECTION-SCREEN.
  if P_auart is not initial.
    r_auart-low = gv_auart.
    r_auart-sign = 'I'.
    r_auart-option = 'EQ'.
    append r_auart.
  endif.
  if p_rb = 'X'.
    IF P_AUART IS INITIAL AND P_VBELN IS INITIAL.
      call SELECTION-SCREEN 110 STARTING AT 10 10.
    ENDIF.
  endif.
at SELECTION-SCREEN on VALUE-REQUEST FOR p_VBELN.
   SELECT VBELN FROM VBAK
          INTO TABLE VALUE_TAB.
  CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
     DDIC_STRUCTURE         =
      RETFIELD               = 'P_VBELN'
    PVALKEY                = ' '
     DYNPPROG               = 'ZTESTABC1'  "Report name
     DYNPNR                 = '0110'   "Screen Number of dynamic Screen
     DYNPROFIELD            = 'VBELN'
    STEPL                  = 0
    WINDOW_TITLE           = 'Sales Order'
    VALUE                  =
     VALUE_ORG              = 'S'
    MULTIPLE_CHOICE        = ' '
    DISPLAY                = 'X'
    CALLBACK_PROGRAM       = ' '
    CALLBACK_FORM          = ' '
    MARK_TAB               =
  IMPORTING
    USER_RESET             =
    TABLES
      VALUE_TAB              = value_tab
    FIELD_TAB              =
     RETURN_TAB             = ret_tab
    DYNPFLD_MAPPING        =
   EXCEPTIONS
     PARAMETER_ERROR        = 1
     NO_VALUES_FOUND        = 2
     OTHERS                 = 3
  IF SY-SUBRC = 0.
    p_vbeln = ret_tab-fieldval.
    CLEAR VALUE_TAB. REFRESH VALUE_TAB.
  ENDIF.
  START-OF-SELECTION.
  SELECT VBELN AUART NETWR
         FROM VBAK
         INTO TABLE I_VBAK
         WHERE VBELN = p_VBELN
           AND AUART IN R_AUART.
END-OF-SELECTION.
  READ TABLE I_VBAK INDEX 1.
  WRITE:/ I_VBAK-VBELN, I_VBAK-AUART, I_VBAK-NETWR.
Thanks,
Jyothi

Similar Messages

  • Reg the selection screen value request

    i am writing this code for getting corresponding material no for the plant which i giving in the selection-screen .
    parameter : WERKS type marc-werks,
                matnr type marc-matnr.
    data : begin of itab occurs 0,
           matnr like marc-matnr,
           werks like marc-werks,
           end of itab.
    at selection-screen on value-request for werks.
    select matnr werks from marc up to 10 rows into table itab.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
      DDIC_STRUCTURE         = ' '
        RETFIELD               = 'WERKS'
      PVALKEY                = ' '
       DYNPPROG               = sy-cprog
       DYNPNR                 = sy-dynnr
       DYNPROFIELD            = 'WERKS'
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
       VALUE_ORG              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
      TABLES
        VALUE_TAB              = itab
      FIELD_TAB              =
      RETURN_TAB             =
      DYNPFLD_MAPPING        =
    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.
    pls help

    Hi Check this ...
    Its working.....
    PARAMETER : werks TYPE marc-werks,
    matnr TYPE marc-matnr.
    DATA : BEGIN OF itab OCCURS 0,
    matnr LIKE marc-matnr,
    werks LIKE marc-werks,
    END OF itab.
    DATA: dynfields TYPE TABLE OF dynpread WITH HEADER LINE.
    DATA: return TYPE TABLE OF ddshretval WITH HEADER LINE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR werks.
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
        EXPORTING
          tabname           = 'T001W'
          fieldname         = 'WERKS'
          dynpprog          = sy-cprog
          dynpnr            = sy-dynnr
          dynprofield       = 'WERKS'
        TABLES
          return_tab        = return
        EXCEPTIONS
          field_not_found   = 1
          no_help_for_field = 2
          inconsistent_help = 3
          no_values_found   = 4
          OTHERS            = 5.
      REFRESH dynfields.
      READ TABLE return WITH KEY fieldname = 'WERKS'.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR matnr.
      SELECT matnr werks FROM marc
      INTO TABLE itab
      WHERE werks EQ return-fieldval.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
    DDIC_STRUCTURE = ' '
      retfield = 'MATNR'
    PVALKEY = ' '
      dynpprog = sy-cprog
      dynpnr = sy-dynnr
      dynprofield = 'MATNR'
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
      value_org = 'S'
    MULTIPLE_CHOICE = ' '
    DISPLAY = ' '
    CALLBACK_PROGRAM = ' '
    CALLBACK_FORM = ' '
    MARK_TAB =
    IMPORTING
    USER_RESET =
      TABLES
      value_tab = itab
    FIELD_TAB =
    RETURN_TAB =
    DYNPFLD_MAPPING =
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3  .
      IF sy-subrc NE 0.
    ENDIF.
    Regards,
    Sai Ramesh

  • Dynamic Text in Screen

    Hi,
    I want Dynamic Title text in my screen program in tittle bar.
    Example:
    First case: Project Workbench : prj102
    Second case: Project Workbench : prj103
    Third case: Project Workbench : XXXX (This text is Dynamic in Screen)
    Thanks and Regards,
    Harsh

    hi ,
    AT selection-screen ON PARAMETER of the Button.
    So when pressed on button, that code will do some process and the result will be displayed.
    check it, whether it displays the text or not on selection screen.
    see the doc
    AT SELECTION-SCREEN - selscreen_event
    Syntax
    | { ON {para|selcrit} }
    | { ON END OF selcrit }
    | { ON BLOCK block }
    | { ON RADIOBUTTON GROUP radi }
    | { }
    | { ON {HELP-REQUEST|VALUE-REQUEST}
    | FOR {para|selcrit-low|selcrit-high} }
    | { ON EXIT-COMMAND }.
    Alternatives:
    1. ... OUTPUT
    2. ... ON {para|selcrit}
    3. ... ON END OF selcrit
    4. ... ON BLOCK block
    5. ... ON RADIOBUTTON GROUP radi
    6. ... { }
    7. ... ON {HELP-REQUEST|VALUE-REQUEST} FOR
    {para|selcrit-low|selcrit-high} }
    8. ... ON EXIT-COMMAND
    Effect
    These additions allow individual evaluation of specific elements of the selection screens of the program. The information as to which selection has triggered the event is contained in the system field sy-dynnr.
    Alternative 1
    ... OUTPUT
    Effect
    This event is triggered at the screen event PBO of a selection screen. In the event block, the selection screen can be prepared through assignments to the data objects of parameters and selection criteria and through dynamic screen modifications.
    Note
    The assignments to input fields in the event block AT SELECTION-SCREEN OUTPUT always affect the selection screen and overwrite the user inputs from previous displays of the same selection screen. Assignments in the event blocks LOAD-OF-PROGRAM oder INITIALIZATION, on the other hand, only have an effect at first program start.
    Alternative 2
    ... ON {para|selcrit}
    Effect
    This event is triggered at the screen event PAI of a selection screen if the content of the input field of a parameter para or a line of a selection criterion selcrit was passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or an error message in the event block makes the fields para and selcrit ready for input again.
    No parameter that is defined as a radio button can be specified. For this purpose, the addition ON RADIOBUTTON GROUP is provided.
    Note
    If a user action takes place in the dialog box for the multiple selection of a selection criterion selcrit, the entries of the selection table are passed to the program, line by line. For each line, the event AT SELECTION-SCREEN ON selcrit is triggered.
    Alternative 3
    ... ON END OF selcrit
    Effect
    This event is triggered after the selection table selcrit has been fully passed to the program after a user action in the dialog box for the multiple selection has taken place. In the event block, the entire selection table can be checked.
    Alternative 4
    ... ON BLOCK block
    Effect
    This event is triggered at the screen event PAI of a selection screen if all the input fields of a block block of the selection screen were passed to the ABAP program. In the event block, the user inputs can be checked. Sending a warning or an error message in the event block makes all the fields of the block block ready for input again.
    Alternative 5
    ... ON RADIOBUTTON GROUP radi
    Effect
    This event is triggered at the screen event PAI of a selection screen if all the fields of a radio button group radi of the selection screen were passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or error message in the event block makes all the radion buttons of the block radi ready for input again.
    Note
    The individual fields of a radio button group are not passed individually and do not trigger the event AT SELECTION-SCREEN ON par.
    Alternative 6
    Effect
    The event AT SELECTION-SCREEN itself is triggered as the last event of selection screen processing if all the input values were passed to the program. In this event block, all the user inputs can be checked. Sending a warning or an error message in the event block makes all the screen fields ready for input once again.
    Alternative 7
    ... ON { HELP-REQUEST | VALUE-REQUEST } FOR
    {para|selcrit-low|selcrit-high} }
    Effect
    The two events ON HELP-REQUEST and ON VALUE-REQUEST are triggered at the screen events POH and POV of a selection screen if - for the input field of a parameter para or one of the input fields of a selection criterion selcrit - the field help F1 or the input help F4 was called. Other selection events are not triggered.
    In the event blocks, a self-defined field or input field can be programmed, which overrides any helps possibly defined in the ABAP Dictionary.
    Notes
    These event blocks can only be implemented for fields of the selection screen that are defined in the same ABAP program and not in a possibly linked logical database.
    With the events for the field and input help, no data is transported between the selection screen and the ABAP program. As with general screens, suitable function modules must be used for these. The parameters and selection criteria changed for the input help are transported to the selection screen.
    Alternative 8
    ... ON EXIT-COMMAND
    Effect
    This event is triggered if the user has called one of the functions Back, Exit or Cancel. In the event block, possible clean-up actions can be executed.
    Example
    In these executable programs, a standard selection screen and a further selection screen are defined. In the event blocks AT SELECTION-SCREEN, the inputs in the selection screens can be specially handled using the name p_carrid and the screen number in sy-dynnr.
    REPORT demo_at_selection_screen.
    Global data
    DATA: sflight_tab TYPE TABLE OF sflight,
    sflight_wa LIKE LINE OF sflight_tab.
    Selection screens
    PARAMETERS p_carrid TYPE spfli-carrid.
    SELECTION-SCREEN BEGIN OF SCREEN 500.
    SELECT-OPTIONS s_conn FOR sflight_wa-connid.
    DATA s_conn_wa LIKE LINE OF s_conn.
    SELECTION-SCREEN END OF SCREEN 500.
    Handling selection screen events
    AT SELECTION-SCREEN ON p_carrid.
    IF p_carrid IS INITIAL.
    MESSAGE 'Please enter a value' TYPE 'E'.
    ENDIF.
    AUTHORITY-CHECK OBJECT 'S_CARRID'
    ID 'CARRID' FIELD p_carrid
    ID 'ACTVT' FIELD '03'.
    IF sy-subrc = 4.
    MESSAGE 'No authorization for carrier' TYPE 'E'.
    ELSEIF sy-subrc 0.
    MESSAGE 'Error in authority check' TYPE 'A'.
    ELSE.
    IF sy-ucomm = 'ONLI'.
    CALL SELECTION-SCREEN '0500'.
    ENDIF.
    ENDIF.
    AT SELECTION-SCREEN.
    IF sy-dynnr = '0500'.
    IF s_conn IS INITIAL.
    MESSAGE 'Please enter values' TYPE 'W'.
    ELSE.
    SELECT *
    FROM sflight
    INTO TABLE sflight_tab
    WHERE carrid = p_carrid AND
    connid IN s_conn.
    IF sy-subrc 0.
    MESSAGE 'No flights found' TYPE 'E'.
    ENDIF.
    ENDIF.
    ENDIF.
    Main program
    START-OF-SELECTION.
    AT selection-screen ON PARAMETER of the Button.
    So when pressed on button, that code will do some process and the result will be displayed.
    check it, whether it displays the text or not on selection screen.
    see the doc
    AT SELECTION-SCREEN - selscreen_event
    Syntax
    | { ON {para|selcrit} }
    | { ON END OF selcrit }
    | { ON BLOCK block }
    | { ON RADIOBUTTON GROUP radi }
    | { }
    | { ON {HELP-REQUEST|VALUE-REQUEST}
    | FOR {para|selcrit-low|selcrit-high} }
    | { ON EXIT-COMMAND }.
    Alternatives:
    1. ... OUTPUT
    2. ... ON {para|selcrit}
    3. ... ON END OF selcrit
    4. ... ON BLOCK block
    5. ... ON RADIOBUTTON GROUP radi
    6. ... { }
    7. ... ON {HELP-REQUEST|VALUE-REQUEST} FOR
    {para|selcrit-low|selcrit-high} }
    8. ... ON EXIT-COMMAND
    Effect
    These additions allow individual evaluation of specific elements of the selection screens of the program. The information as to which selection has triggered the event is contained in the system field sy-dynnr.
    Alternative 1
    ... OUTPUT
    Effect
    This event is triggered at the screen event PBO of a selection screen. In the event block, the selection screen can be prepared through assignments to the data objects of parameters and selection criteria and through dynamic screen modifications.
    Note
    The assignments to input fields in the event block AT SELECTION-SCREEN OUTPUT always affect the selection screen and overwrite the user inputs from previous displays of the same selection screen. Assignments in the event blocks LOAD-OF-PROGRAM oder INITIALIZATION, on the other hand, only have an effect at first program start.
    Alternative 2
    ... ON {para|selcrit}
    Effect
    This event is triggered at the screen event PAI of a selection screen if the content of the input field of a parameter para or a line of a selection criterion selcrit was passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or an error message in the event block makes the fields para and selcrit ready for input again.
    No parameter that is defined as a radio button can be specified. For this purpose, the addition ON RADIOBUTTON GROUP is provided.
    Note
    If a user action takes place in the dialog box for the multiple selection of a selection criterion selcrit, the entries of the selection table are passed to the program, line by line. For each line, the event AT SELECTION-SCREEN ON selcrit is triggered.
    Alternative 3
    ... ON END OF selcrit
    Effect
    This event is triggered after the selection table selcrit has been fully passed to the program after a user action in the dialog box for the multiple selection has taken place. In the event block, the entire selection table can be checked.
    Alternative 4
    ... ON BLOCK block
    Effect
    This event is triggered at the screen event PAI of a selection screen if all the input fields of a block block of the selection screen were passed to the ABAP program. In the event block, the user inputs can be checked. Sending a warning or an error message in the event block makes all the fields of the block block ready for input again.
    Alternative 5
    ... ON RADIOBUTTON GROUP radi
    Effect
    This event is triggered at the screen event PAI of a selection screen if all the fields of a radio button group radi of the selection screen were passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or error message in the event block makes all the radion buttons of the block radi ready for input again.
    Note
    The individual fields of a radio button group are not passed individually and do not trigger the event AT SELECTION-SCREEN ON par.
    Alternative 6
    Effect
    The event AT SELECTION-SCREEN itself is triggered as the last event of selection screen processing if all the input values were passed to the program. In this event block, all the user inputs can be checked. Sending a warning or an error message in the event block makes all the screen fields ready for input once again.
    Alternative 7
    ... ON { HELP-REQUEST | VALUE-REQUEST } FOR
    {para|selcrit-low|selcrit-high} }
    Effect
    The two events ON HELP-REQUEST and ON VALUE-REQUEST are triggered at the screen events POH and POV of a selection screen if - for the input field of a parameter para or one of the input fields of a selection criterion selcrit - the field help F1 or the input help F4 was called. Other selection events are not triggered.
    In the event blocks, a self-defined field or input field can be programmed, which overrides any helps possibly defined in the ABAP Dictionary.
    Notes
    These event blocks can only be implemented for fields of the selection screen that are defined in the same ABAP program and not in a possibly linked logical database.
    With the events for the field and input help, no data is transported between the selection screen and the ABAP program. As with general screens, suitable function modules must be used for these. The parameters and selection criteria changed for the input help are transported to the selection screen.
    Alternative 8
    ... ON EXIT-COMMAND
    Effect
    This event is triggered if the user has called one of the functions Back, Exit or Cancel. In the event block, possible clean-up actions can be executed.
    Example
    In these executable programs, a standard selection screen and a further selection screen are defined. In the event blocks AT SELECTION-SCREEN, the inputs in the selection screens can be specially handled using the name p_carrid and the screen number in sy-dynnr.
    REPORT demo_at_selection_screen.
    Global data
    DATA: sflight_tab TYPE TABLE OF sflight,
    sflight_wa LIKE LINE OF sflight_tab.
    Selection screens
    PARAMETERS p_carrid TYPE spfli-carrid.
    SELECTION-SCREEN BEGIN OF SCREEN 500.
    SELECT-OPTIONS s_conn FOR sflight_wa-connid.
    DATA s_conn_wa LIKE LINE OF s_conn.
    SELECTION-SCREEN END OF SCREEN 500.
    Handling selection screen events
    AT SELECTION-SCREEN ON p_carrid.
    IF p_carrid IS INITIAL.
    MESSAGE 'Please enter a value' TYPE 'E'.
    ENDIF.
    AUTHORITY-CHECK OBJECT 'S_CARRID'
    ID 'CARRID' FIELD p_carrid
    ID 'ACTVT' FIELD '03'.
    IF sy-subrc = 4.
    MESSAGE 'No authorization for carrier' TYPE 'E'.
    ELSEIF sy-subrc 0.
    MESSAGE 'Error in authority check' TYPE 'A'.
    ELSE.
    IF sy-ucomm = 'ONLI'.
    CALL SELECTION-SCREEN '0500'.
    ENDIF.
    ENDIF.
    AT SELECTION-SCREEN.
    IF sy-dynnr = '0500'.
    IF s_conn IS INITIAL.
    MESSAGE 'Please enter values' TYPE 'W'.
    ELSE.
    SELECT *
    FROM sflight
    INTO TABLE sflight_tab
    WHERE carrid = p_carrid AND
    connid IN s_conn.
    IF sy-subrc 0.
    MESSAGE 'No flights found' TYPE 'E'.
    ENDIF.
    ENDIF.
    ENDIF.
    Main program
    START-OF-SELECTION.
    regards,
    venkat.

  • PROCESS ON VALUE-REQUEST - my table to display

    Hi all,
    this is my question:
    on value request i want to display a window with my personal values of an internal table and  choose one of them (like an help).
    field11 | field11 | field13
    field21 | field22 | field23
    field31 | field32 | field33
    field41 | field42 | field43
    How to do this?
    thanks a lot
    Regards.
    Massimo

    hI,
    refer this sample e.g.:
    F4 help – using internal table example:
    DATA: BEGIN OF LI_FABGRP OCCURS 0,
    FABGRP LIKE ZAPO_FABGRP-FABGRP,
    BEGDA LIKE ZAPO_FABGRP-BEGDA,
    END OF LI_FABGRP.
    DATA : T_RETURN TYPE STANDARD TABLE OF DDSHRETVAL WITH HEADER LINE,
    L_RETFIELD TYPE DFIES-FIELDNAME.
    parameters : S_FABGR like ZAPO_FABGRP-FABGRP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_FABGR.
    SELECT FABGRP BEGDA FROM ZAPO_FABGRP INTO table LI_FABGRP.
    SORT LI_FABGRP BY FABGRP ASCENDING BEGDA DESCENDING.
    * Henter de mulige fabriksgrupper med nyeste BEGDA *indenfor hver
    DELETE ADJACENT DUPLICATES FROM LI_FABGRP COMPARING FABGRP.
    L_RETFIELD = 'FABGRP'.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = L_RETFIELD
    DYNPPROG = SY-REPID
    DYNPNR = '1000'
    DYNPROFIELD = 'S_FABGR'
    VALUE_ORG = 'S'
    MULTIPLE_CHOICE = ' '
    TABLES
    VALUE_TAB = LI_FABGRP
    RETURN_TAB = T_RETURN
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3.
    Jogdand M B

  • Help on value request

    Hi all,
      can anyone help me out with the following code in finding  F4 help  for the fiscal year .
    while executing it is going to dump. The problem I fing is with the value_org = 'S'.
    thanks....
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_GJAHR.
      SELECT DISTINCT GJAHR  FROM COSS
             INTO CORRESPONDING FIELDS OF TABLE LT_GJAHR
             UP TO 10 ROWS.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD        = 'GJAHR'
          DYNPPROG        = SY-REPID
          DYNPNR          = SY-DYNNR
          DYNPROFIELD     = 'P_GJAHR'
          VALUE_ORG       = 'S'
        TABLES
          VALUE_TAB       = LT_GJAHR
        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.

    Check the decleration of LT_GJAHR.
    Update:  This works fine in my system... except its taking time to get the help..
    REPORT  zj_test LINE-SIZE 162.
    PARAMETER: p_gjahr TYPE vbrk-gjahr.
    DATA: BEGIN OF lt_gjahr OCCURS 0,
            gjahr TYPE vbrk-gjahr,
          END OF lt_gjahr.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_gjahr.
      SELECT DISTINCT gjahr FROM coss
      INTO TABLE lt_gjahr
      UP TO 10 ROWS.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'GJAHR'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'P_GJAHR'
          value_org       = 'S'
        TABLES
          value_tab       = lt_gjahr
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
      ENDIF.

  • AT SELECTION-SCREEN ON VALUE-REQUEST FOR not input value in input field

    Dear All,
    I make search help for field ARBPL in selection screen are not excepted selected value.
    Code is
    SELECT-OPTIONS:  p_arbpl FOR zdmde-arbpl MODIF ID two.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_arbpl-low.
    REFRESH sh_arbpl.
    SELECT * from crhd into CORRESPONDING FIELDS OF TABLE sh_arbpl.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
         RETFIELD               = 'P_ARBPL'
         DYNPROFIELD            = 'P_ARBPL'
         VALUE_ORG              = 'S'
       TABLES
         VALUE_TAB              = sh_arbpl.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_arbpl-high.
    REFRESH sh_arbpl.
    SELECT * from crhd into CORRESPONDING FIELDS OF TABLE sh_arbpl.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
       EXPORTING
         RETFIELD               = 'P_ARBPL'
         DYNPROFIELD            = 'P_ARBPL'
         VALUE_ORG              = 'S'
       TABLES
         VALUE_TAB              = sh_arbpl.
    Please tell how to input selected field from search help into input field in both low and high.
    Would appreciate your reply .
    Regards,
    Pooja

    Hi Pooja,
    For getting the response back from the user selection , please get the return code too. Before that instead of directly using the table crhd structure.. please do create a type declaration of that table , make sure that the field that you wanted to get using search help be specified at last of declaration type like this
    TYPES: BEGIN OF ty,
       OBJTY TYPE CR_OBJTY,
            ARBPL TYPE ARBPL,
    END OF ty.
    this is because the return parameter t_rtn will holds the last value of type which been selected by user.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD               = 'P_ARBPL'
          DYNPROFIELD            = 'P_ARBPL'
          VALUE_ORG              = 'S'
        TABLES
          VALUE_TAB              = sh_arbpl
          return_tab             = t_rtn.
    LOOP AT  t_rtn INTO x_rtn .
       ENDLOOP.
    try executing this code.
    TABLES crhd.
    TYPES: BEGIN OF ty,
       OBJTY TYPE CR_OBJTY,
            ARBPL TYPE ARBPL,
       END OF ty.
    DATA: sh_arbpl TYPE TABLE OF ty.
           DATA: dynpfields TYPE TABLE OF DYNPREAD,
    x_dynpfields TYPE dynpread,
    t_rtn TYPE STANDARD TABLE OF DDSHRETVAL ,
    x_rtn TYPE  DDSHRETVAL.
    SELECT-OPTIONS:  p_arbpl FOR crhd-ARBPL MODIF ID two.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_arbpl-low.
    REFRESH sh_arbpl.
    SELECT  * from crhd into CORRESPONDING FIELDS OF TABLE sh_arbpl WHERE werks eq '1000'.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD               = 'P_ARBPL'
          DYNPROFIELD            = 'P_ARBPL'
          VALUE_ORG              = 'S'
        TABLES
          VALUE_TAB              = sh_arbpl
          return_tab             = t_rtn.
    LOOP AT  t_rtn INTO x_rtn .
       ENDLOOP.
    x_dynpfields-fieldname = 'P_ARBPL-LOW' .
       x_dynpfields-fieldvalue = x_rtn-fieldval.
       APPEND x_dynpfields TO dynpfields.
       CALL FUNCTION 'DYNP_VALUES_UPDATE'
         EXPORTING
           dyname                     = sy-cprog
           dynumb                     = sy-dynnr
         TABLES
           dynpfields                 = dynpfields
    *   EXCEPTIONS
    *     INVALID_ABAPWORKAREA       = 1
    *     INVALID_DYNPROFIELD        = 2
    *     INVALID_DYNPRONAME         = 3
    *     INVALID_DYNPRONUMMER       = 4
    *     INVALID_REQUEST            = 5
    *     NO_FIELDDESCRIPTION        = 6
    *     UNDEFIND_ERROR             = 7
    *     OTHERS                     = 8
    Regards,
    Sivaganesh

  • AT SELECTION SCREEN OUTPUT ON VALUE REQUESt problem

    hi I am fetching the values into second field based on first field by reading them like this
    <b>
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR ST_NAME.
      CLEAR: FIELD_VALUE, DYNPRO_VALUES.
      REFRESH DYNPRO_VALUES.
      FIELD_VALUE-FIELDNAME = 'EXCH'.
      APPEND FIELD_VALUE TO DYNPRO_VALUES.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          DYNAME             = SY-CPROG
          DYNUMB             = SY-DYNNR
          TRANSLATE_TO_UPPER = 'X'
        TABLES
          DYNPFIELDS         = DYNPRO_VALUES.
      READ TABLE DYNPRO_VALUES INDEX 1 INTO FIELD_VALUE.
      IF FIELD_VALUE-FIELDVALUE IS NOT INITIAL.
        IF SY-SUBRC = 0 AND FIELD_VALUE-FIELDVALUE = 1.
          FIELD_VALUE-FIELDVALUE = 'BSE'.
        ELSEIF SY-SUBRC = 0 AND FIELD_VALUE-FIELDVALUE = 2.
          FIELD_VALUE-FIELDVALUE = 'NSE'.
        ENDIF.
        SELECT STOCK ST_NAME
                       FROM
                       ZEXCH
                       INTO TABLE TEMP_ITAB
                       WHERE EXCH = FIELD_VALUE-FIELDVALUE.
        IF SY-SUBRC = 0.
          FLAG = 'X'.
        ENDIF.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            RETFIELD    = 'ST_NAME'
            DYNPPROG    = SY-CPROG
            DYNPNR      = SY-DYNNR
            DYNPROFIELD = 'ST_NAME'
            VALUE_ORG   = 'S'
          TABLES
            VALUE_TAB   = TEMP_ITAB.
      ENDIF.
    </b>
    This is working fine, now my requirement is to fetch a value into 3rd field from database table when the user selects a value through 'F4IF_INT_TABLE_VALUE_REQUEST'
    Please help me with this, hope u got my problem, i want to know how to continue and fill value into third field after filling the field ST_NAME
    points guaranteed

    Hi,
    If you have two parameters, you want to display values(f4) in parameter 2 
    depending on the values entered in parameter 1.
    REPORT Z_SRI_HELP_VALUE_FOR_TABLES .
    tables tcurt.
    DATA   DYFIELDS LIKE DYNPREAD OCCURS 1 WITH HEADER LINE.
    PARAMETERS: P_WAERS LIKE TCURT-WAERS,        "Currency
                P_LTEXT LIKE TCURT-LTEXT,        "Long Text
                P_KTEXT LIKE TCURT-KTEXT.        "Short Text
    *--- Example of updating value of another field on the screen -
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WAERS.
      CLEAR: DYFIELDS[], DYFIELDS.
    *--- select currency
      CALL FUNCTION 'HELP_VALUES_GET'
           EXPORTING
                fieldname        =  'WAERS'
                tabname          =  'TCURT'
           IMPORTING
                SELECT_VALUE     =   P_WAERS.
    *--- get long text for the selected currency
      SELECT SINGLE LTEXT FROM TCURT
        INTO DYFIELDS-FIELDVALUE
        WHERE SPRAS = SY-LANGU
        AND   WAERS = P_WAERS.
      IF SY-SUBRC <> 0.
        CLEAR DYFIELDS-FIELDVALUE.
      ENDIF.
    *--- update another field
      DYFIELDS-FIELDNAME = 'P_LTEXT'.
      APPEND DYFIELDS.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
           EXPORTING
                DYNAME               = SY-CPROG
                DYNUMB               = SY-DYNNR
           tables
                dynpfields           = DYFIELDS .
    *--- Example of reading value of another field -
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_KTEXT.
    *--- read another field
      CLEAR: DYFIELDS[], DYFIELDS.
      DYFIELDS-FIELDNAME = 'P_WAERS'.
      APPEND DYFIELDS.
      CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                DYNAME                   = SY-CPROG
                DYNUMB                   = SY-DYNNR
           TABLES
                DYNPFIELDS               = DYFIELDS .
      READ TABLE DYFIELDS INDEX 1.
    *--- get short text and update current field
      SELECT SINGLE KTEXT FROM TCURT
        INTO P_KTEXT
        WHERE SPRAS EQ SY-LANGU
        AND   WAERS EQ DYFIELDS-FIELDVALUE.
    How to add F4 functionality to a paramter variable?  Say P_name ie Parameters: P_name like dbtab-fieldname
    in At selection-screen on value-request for p_name.  How should I add the values john, abraham, linga etc so that these values appear when f4 is pressed on the field in the selection screen?
    PARAMETERS: p_name(10).
    DATA: BEGIN OF value_tab OCCURS 0,
                   name(10),
                 END OF value_tab.
    DATA :field_tab LIKE dfies  OCCURS 0 WITH HEADER LINE.
    DATA : return_tab LIKE ddshretval OCCURS 0 WITH HEADER LINE. DATA : x TYPE string.
      AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_name.
      REFRESH value_tab[].
      REFRESH field_tab[].
      REFRESH return_tab[].
        field_tab-fieldname = 'ERNAM'.
      field_tab-tabname = 'VBAK'.
      APPEND field_tab.
        value_tab-name = 'John'.
      APPEND value_tab.
      value_tab-name = 'Abraham'.
      APPEND value_tab.
      value_tab-name = 'Lingam'.
      APPEND value_tab.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = field_tab-fieldname
        TABLES
          value_tab       = value_tab
          field_tab       = field_tab
          return_tab      = return_tab
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc = 0.
        p_name = return_tab-fieldval.
      ENDIF.
    Regards
    Sudheer

  • At selection-screen on value-request

    Hi experts,
    Pls see the below code.
    When ever plant is enterd in screen i have to get material no. and material group based on that plant dynamically.
    I am getting F4 list of values for the first one.But For the second one i am not getting.
    What may be teh problem?
    *& Report  ZRA_SELECTIONSCTREEN                                        *
    REPORT  ZRA_SELECTIONSCTREEN                    .
    tables: mara,marc.
    parameters: p_werks like marc-werks,
                p_matnr like marC-matnr,
                p_matkl like mara-matkl.
    data: begin of it_matnr occurs 0,
          matnr like mara-matnr,
          end of it_matnr.
    data: begin of it_matkl occurs 0,
          matkl like mara-matkl,
          end of it_matkl.
    at selection-screen on value-request for p_matnr.
    select matnr into table it_matnr from marc where werks = p_werks.
    if not it_matnr[] is initial.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
      DDIC_STRUCTURE         = ' '
        RETFIELD               = 'MATNR'
      PVALKEY                = ' '
       DYNPPROG               = SY-CPROG
       DYNPNR                 = SY-DYNNR
       DYNPROFIELD            = 'p_matnr'
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
       VALUE_ORG              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
      TABLES
        VALUE_TAB              = it_matnr
      FIELD_TAB              =
      RETURN_TAB             =
      DYNPFLD_MAPPING        =
    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.
    ENDIF.
    select matkl from mara into table it_matkl for all entries IN it_matnr
    WHERE MATNR = IT_MATNR-MATNR.
    if not it_matkl[] is INITIAL.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
      DDIC_STRUCTURE         = ' '
        RETFIELD               = 'MATKL'
      PVALKEY                = ' '
       DYNPPROG               = SY-CPROG
       DYNPNR                 = SY-DYNNR
       DYNPROFIELD            = 'p_matkl'
      STEPL                  = 0
      WINDOW_TITLE           =
      VALUE                  = ' '
       VALUE_ORG              = 'S'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    IMPORTING
      USER_RESET             =
      TABLES
        VALUE_TAB              = IT_MATKL
      FIELD_TAB              =
      RETURN_TAB             =
      DYNPFLD_MAPPING        =
    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.
    ENDIF.
    Regards
    Ravi.

    hi
    good
    i tried your report, f4 help is coming for all the fields but dynamic field selection is ot coming because ther eis a prob with your select statment,
    you select the data from the database table for the another two fields as the value you r entering for werks(plant).
    thanks
    mrutyun^

  • Problem in at selection-screen on value request

    hi friends ,
          i want to display f4 help for a field in a popup. this i can do, but this popup comes based on values
    i entered in other screen fields . but these values are not updated to screen values when i trigger f4.

    Hi,
    DATA: T_DYNPRO TYPE TABLE OF DYNPREAD,
          WA_DYNPRO LIKE LINE OF T_DYNPRO,
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_PARAM.
    WA_DYNPRO-FIELDNAME = 'Screen Field Name'.
    APPEND WA_DYNPRO TO T_DYNPRO.
    CALL FUNCTION 'DYNP_VALUES_READ'
      EXPORTING
        DYNAME                               = SY-REPID
        DYNUMB                               = SY-DYNNR
       TRANSLATE_TO_UPPER                   = 'X'
      TABLES
        DYNPFIELDS                           = T_DYNPRO
    EXCEPTIONS
       INVALID_ABAPWORKAREA                 = 1
       INVALID_DYNPROFIELD                  = 2
       INVALID_DYNPRONAME                   = 3
       INVALID_DYNPRONUMMER                 = 4
       INVALID_REQUEST                      = 5
       NO_FIELDDESCRIPTION                  = 6
       INVALID_PARAMETER                    = 7
       UNDEFIND_ERROR                       = 8
       DOUBLE_CONVERSION                    = 9
       STEPL_NOT_FOUND                      = 10
       OTHERS                               = 11
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE T_DYNPRO INTO WA_DYNPRO WITH KEY FIELDNAME = 'Screen Field Name'.
    TEMP = WA_DYNPRO-FIELDVALUE.
    " Select the values based on Temp and populate your internal table for F4 help using the Screen value Temp
    "Call 'F4IF_INT_TABLE_VALUE_REQUEST' and display the pop up.

  • Selection Screen - From ...on Value Request  To ... Output (PBO) ?

    Hallo,
    I have the following problem:
    I want to jump after a SelectionScreen On Value-Request Block to the SelectionScreen Output Block. But Abap doesn´t go there afterwards.
    My "trigger" for the value Request is a normal edit field, so unfortunately I can´t give a User-Command with it.
    My intended action is: If I get new information in the value request part, I´d like to set a checkbox initial (remove the check). I can implement this code in the value request block, but it doesn´t work. It only works in the Output Block.
    Does somebody have an idea?
    TIA and Regards

    Hi
    The event AT SELECTION-SCREEN ON VALUE_REQUEST can update the field managed by the event, if you need to update other field in according to the selected value u need to use the fm DYNP_VALUES_UPDATE:
    parameters: p_1,
                p_2.
    at selection-screen on value-request for p_1.
      DATA: DYNAME LIKE  D020S-PROG,
            DYNUMB LIKE  D020S-DNUM,
            DYNPFIELDS TYPE TABLE OF DYNPREAD WITH HEADER LINE.
      DYNAME = sy-repid.
      DYNUMB = sy-dynnr.
      DYNPFIELDS-FIELDNAME  = 'P_2'.
      DYNPFIELDS-FIELDVALUE = 'X'.
      APPEND DYNPFIELDS.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          DYNAME     = DYNAME
          DYNUMB     = DYNUMB
        TABLES
          DYNPFIELDS = DYNPFIELDS.
    Max

  • AT SELECTION-SCREEN ON VALUE-REQUEST FOR

    Experts,
    I have two selection parameters on Selection_Screen as subscreen, as below:
    Custom Selection Screen 1010
    selection-screen begin of screen 1010 as subscreen.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
    SELECT-OPTIONS :
         s_matnr FOR mara-matnr  MODIF ID sc1,     "Material
         s_grid FOR mara-J_3APGNR MODIF ID sc6,    "Grid values   "pkb001
    SELECTION-SCREEN END OF BLOCK b2.
    selection-screen end of screen 1010.
    Now i want to populate  s_grid (Grid value) based on the values enterd for s_matnr  (material ).
    but when i want use:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_grid,  
    I'm not getting the values eneterd in s_matnr..
    is the problem beacuse of subcreen?
    Answers are highly appriciated.
    Thanks.

    Yes that is correct, Once I hit enter key, then only the value for s_matnr populates, but it is not a good Idea to expect the user to hit the enter key. is there any way i can imitate/simulate "enter" key in the program?
    also I'm using the FM:'DYNP_VALUES_READ'  but that is also not getting me any value..
    below is the code I'm using,
    FORM sub_get_grid .
      Refresh: t_mara.
      data: lin type i.
      data: l_dyname type standard table of dynpread,
      w_dynpread type dynpread.
      clear w_dynpread.
      w_dynpread-fieldname = 'S_MATNR'.
      append w_dynpread to l_dyname.
      clear w_dynpread.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname     = sy-repid
          dynumb     = sy-dynnr
        TABLES
          dynpfields = l_dyname.
    *Do not allow to select more than 1 material at a time.
      SELECT
        MARA~MATNR
        INTO TABLE t_mara
        FROM MARA
        WHERE MARA~MATNR IN s_matnr.
      describe table t_mara LINES lin.
      If lin > 1.
        Refresh: s_matnr.
        MESSAGE i000 WITH text-033.
        LEAVE LIST-PROCESSING.
    *    LEAVE TO SCREEN 100.
      endif.
    ENDFORM.   

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

  • AT SELECTION-SCREEN ON VALUE-REQUEST needed

    hi,
    i want code for atselection-screen for one parameter.
    pls check the code i am sending.i am not understanding that if any one knows pls explain me.and it is correct or not.
    parameters: P_LDCTY(2).
    DATA: BEGIN OF IHELP_FIELDS OCCURS 20.
            INCLUDE STRUCTURE HELP_VALUE.
    DATA: END OF IHELP_FIELDS.
    DATA: BEGIN OF HELPTAB OCCURS 100,
           FELD(50),
    END OF HELPTAB.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_LDCTY matchcode object ZSDOTC_VOYAGE.
    REFRESH IHELP_FIELDS.
      MOVE 'VBAK'  TO IHELP_FIELDS-TABNAME.
      MOVE 'ZZLOADCTY1' TO IHELP_FIELDS-FIELDNAME.
      MOVE 'X'     TO IHELP_FIELDS-SELECTFLAG.
      APPEND IHELP_FIELDS.
       REFRESH HELPTAB.
      SELECT *
             FROM ZPORT
             ORDER BY ZZCNTRY INTO IHELP_FIELDS.
        MOVE ZPORT-ZZCNTRY TO HELPTAB.
        APPEND HELPTAB.
        ENDSELECT.
      CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
        EXPORTING
          DISPLAY                   = ' '
          FIELDNAME                 = 'ZZCNTRY'
          TABNAME                   = 'ZPORT'
        IMPORTING
          SELECT_VALUE              = SELECTED_VALUE
        TABLES
          FIELDS                    = IHELP_FIELDS
          VALUETAB                  = HELPTAB
        EXCEPTIONS
          FIELD_NOT_IN_DDIC         = 01
          MORE_THEN_ONE_SELECTFIELD = 02
          NO_SELECTFIELD            = 03.
      IF SELECTED_VALUE <> SPACE.
        P_LDCTY = SELECTED_VALUE.
      ENDIF.
    pls help mein this issue.
    points will be awarded for right answer,
    thanks and regards
    suneetha

    Hi suneetha,
    1. we have to juse like this.
    2. a) use FM F4IF_INT_TABLE_VALUE_REQUEST
       b) syntax is : AT SELECTION-SCREEN ON VALUE-REQUEST FOR MYFIELD.
    3. just copy paste in new program.
    4.
    Hi prakash,
    1. sample code (just copy paste)
    2.
    REPORT ABC.
    DATA : BEGIN OF ITAB OCCURS 0,
    UNAME LIKE USR01-BNAME,
    END OF ITAB.
    data : RETURN_TAB LIKE DDSHRETVAL occurs 0 .
    data : RETURN_wa LIKE DDSHRETVAL .
    PARAMETERS : A(12) TYPE C.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR A.
    ITAB-UNAME = 'U01'. APPEND ITAB.
    ITAB-UNAME = 'U02'. APPEND ITAB.
    ITAB-UNAME = 'U03'. APPEND ITAB.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE = ' '
    retfield = 'ITAB-UNAME'
    PVALKEY = ' '
    DYNPPROG = SY-REPID
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'A'
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
    VALUE_ORG = 'S'
    MULTIPLE_CHOICE = ' '
    DISPLAY = ' '
    CALLBACK_PROGRAM = ' '
    CALLBACK_FORM = ' '
    MARK_TAB =
    IMPORTING
    USER_RESET =
    tables
    value_tab = ITAB
    FIELD_TAB = FTAB
    RETURN_TAB = return_tab
    DYNPFLD_MAPPING =
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3
    break-point.
    regards,
    amit m.

  • Problem using At Selection Screen on value request for *"Select Fieldname"*

    Hi All,
    I Have a requirement of passing mutiple paraters value or selection option values in selection screen.
    For Eg :I Have -
    *--- Selection Screen
        Select-options :  s1  for vbak-vbeln ,
                                              s2  for vbap-posnr.
    *--- At Selection Screen     
        At Selection Screen on value request for s1-low.
         i need to pass S1-low as well as S2-low ...
         i.e first item of the Sales Document.
        Value is getting passed in S1-low but not in S2-low
        Can anybody help me on this ...
       Thanks in Advance ..

    Hi,
    Make use of the FM "F4IF_INT_TABLE_VALUE_REQUEST" for the value request for the first field.
    Use the "FIELD_MAPPING" in the tables parameter of the above FM.
    Please go through the FM documentation.
    Hope this will help you.
    Regards,
    Smart Varghese

  • How to pass selection screen value to LDB dynamic field.

    Hello everybody,
    In my program, I am using standard LDB(PSJ) for getting data. And there is a requirement that I have to display some dynamic fields on my selection screen like plant , person responsible ( which are mandatory also ) etc. and inside the program I have to fill those dynamic fields for which the user has entered the value in selection screen.
    Could you please tell me how to pass some of selection screen values to ldb dynamic fields before GET statement.
    Thanks !!!
    Regards,
    Mitra

    >
    Pavan Bhamidipati wrote:
    > Hi,
    >
    >
    I have to fill those dynamic fields for which the user has entered the value in selection screen.
    >
    >
    > This means that the user is going to enter the values in the selection screen for the dynamic field values so
    >
    > SET PARAMETERID 'XYZ' FIELD p_field.
    >
    > where p_field is a parameter on the selection screen
    >
    > Regards
    > Pavan
    You can capture the values selected through the dynamic selections using some of the functions modules below, just search the forum for the below FM's, perhaps you can find some sample code
    FREE_SELECTIONS_EX_2_RANGE
    FREE_SELECTIONS_EX_2_WHERE
    FREE_SELECTIONS_RANGE_2_EX
    FREE_SELECTIONS_RANGE_2_WHERE
    FREE_SELECTIONS_WHERE_2_EX
    FREE_SELECTIONS_WHERE_2_RANGE

Maybe you are looking for

  • Strange volume problem on Logic pro 8.0.2

    Hey, I've been having this weird problem for a while and I'm not sure how to get rid of it. Basically, I start a new project lay down some audio tracks as well as software tracks and everything works fine. Then randomly, when I open a new audio track

  • Mac Mini will not read dvd data disk ie osx install disk with internal drive but will read dvd movies

    As title said , cant get internal drive to read data dvd's havent tried cd's. I also tried to use an external drive with no luck with any disks. system info shows the drive though. So i guess i have 2 issues. any ideas will help thank you

  • Separate multiple employees SAP HR

    Dear Gurus, I need to separate multiple employees(over 500), due to a roll out project from our company. Every employee will be separated from a common date. We use PA40 in common cases. Is there any way to carry out this in Mass? Thank you in advanc

  • Autodiscover SCP multiple CAS servers

    I have a 2007 server and a 2010 exchange server, I recently started to decomission 2007 and moved all mailboxes to 2010, recently the 2007 server went offline, autodiscover failed as the autodiscoverserviceinternaluri SCP was set to point to the 2007

  • So I can't seem to open this game

    I'm trying to open Batman: Arkham City GOTY Edition on steam, but once I hit play, the icon opens on the dock and immediately closes, giving me an error report. I'll post it here for any convenience. Process:         Batman Arkham City GOTY [1978] Pa