Infoset-query-selection-screen-default-values

Hi All,
I am having the requirement as I need to put default values in the selecion-screen of the report by using  Infoset query. Let me know the settings required for this.
I am using SQ01, SQ02, SQ03 T.Codes.
And I need display  one record only if any field contains mulitple records, for example in the HR-ABAP, field p0105-usrid contains multiple values depending on the subtype.So, I need to display USRID when URSTY = '900'. All these should display by Infoset query only.
Pls help me in this scenario , its an urgent requirement.I am very much thankful for you for reading my proble, if you will provide some sort of solution, I feel very happy.
Advance thanks for this .
Regards,
Prakash.

Prakash,
To default the values on your selection screen, you will need to do some ABAP I guess. (if you do not want to use variant). Open up the infioset in SQ02 and then goto code option for the PNP**** field and then you can code to initialize the selection screen variables. Test with an ABAPer.
To display multiple records as multiple columns, you will have to create custom fields in infoset, and then go from there. Again see ABAPer.

Similar Messages

  • F4 search-help in infoset query selection-screen fields

    Hi all,
    I created an infoset, and it's corresponding query, and now I need to associate F4 search-help in two of the selection-screen fields. Since they don't have any reference field associated (they are SAP standard table fields), there are no possible values available to select.
    How can I do this?
    I have already tried to use the "AT SELECTION-SCREEN OUTPUT" in the infoset, but I'm not able to do that. When I try to use the select-options generated by the query (SP$00013 and SP$00014) I have a syntax error with "Field not known".
    Can you help me? I never done this before, so I really don't have a guess.
    Thanks in advance.
    Beste regards,
    Sónia Gonçalves

    Hi all,
    I have found thread  that helped me a lot in this issue.
    I just have one more doubt: I created the selection criterion and I can already see it in the query selection-screen, but it's appearing in the top of the selection-screen, in a different area called "General data selections".
    Isn't it possible to include it in the "Report-specific selctions"?
    Thanks in advance.
    Best regards,
    Sónia Gonçalves

  • Infoset Query Selection Screen

    Dear Experts,
    In an infoset query. how to split the Selection Screen into different screen areas (Blocks).
    Means, presently the Selection Screen is having 20 fields together under single block.
    I want to group them into different blocks with respective Headings.
    How to do it?
    Regards
    Jogeswara Rao

    Hello Jogeswara,
    Go back to the infoset using SQ02.  On the "Change Infoset" screen, go to the "Field groups" section.  You may have to click the "Field groups" pushbutton.  If you right-click on the field group, then you can create, change or delete a field group.  Add fields to a field group by dragging field from left-side of screen and dropping on the right-side of screen.
    Kind Regards,
    Rae Ellen

  • Infoset Query -- Selection Screen Text

    Dear experts,
    I hv created an infoset query. every thing is working fine except the selection screen text.
    It is coming like
    "Date on which the record was"    instead of
    "Date on which the record was created".
    Is there any way we can manage the selection screen texts in infoset query.
    Regards,
    Jaspal Kumar

    Hello,
    In the Infoset, click table -> field, double click on field and you see the field technical & label information, change the Field label there.

  • Selection Screen Default Values

    Hi,
    The selection screen can have the default values by using the parameter ID. To be the parameter ID value to defaulted we normally add the entry in User Profile>Own data>paramters with Parameter ID and the value.
    I would like to know is there any other way to achieve the same, it could be parameter or select-options.
    With Regards,
    Azhar

    For Parameter u can use DEFAULT keyword
    eg. PARAMETERS: p_matnr TYPE mara-matnr DEFAULT 'B1200'.
    For select option
    As u might be knowing select options creates an intenal table, so if  u want to have some default values then u can use the following code in the INITIALIZATION event:
    DATA: v_matnr TYPE mara-matnr.
    INITIALIZATION.
    SELECT-OPTIONS: s_matnr FOR v_matnr.
    s_matnr-low = 'BT100'.
    s_matnr-high = 'BT900'.
    append s_matnr.
    This will give default values in the selection screen for select-options.

  • Infoset Query Selection Screen Issue

    Dearf Experts,
    I am a SAP-PM functional area. (Do know very little about technical sideof SAP)
    I am working on SQ03/SQ02/SQ01 for the first time to create an Infoset query.
    The output screen is incontrol and showing all the fields as per my specifications.
    My problem is the Selection Screen. This is displaying to many things not desired by me.
    1. Two tabs (I do not expect any tabs)
    2. Many Screen areas, repeating the fields (1000,0100,0101,0102,0103) 
    The screen area of my specified fields in at the bottom.
    My expectations about the selection screen is - just like simple one as in the case of SQVI.
    Please help me in getting through this problem.
    Regards
    Jogeswara Rao

    Gungor Ozcelebi,
    Thank you very much for responding,
    Exactly as you said, I am using Notifications logical database.
    (I was suspecting this reason)
    Infact I found about 8 fields (Perhaps related to Date fields, checkboxes etc) are automatically selected from the LDB.
    My trials to delete them were invain. They reappear while saving.
    I would be very thankful, if you help me in this case.
    Regards...

  • Selection screen default value maintain,user cant chage the default value

    hi Friends
    SELECTION-SCREEN  BEGIN OF BLOCK SCLDBLOCK WITH FRAME.
    SELECT-OPTIONS:   S_WERKS FOR EBAN-WERKS DEFAULT 'IN01' NO INTERVALS NO-EXTENSION ,
                      S_MATNR FOR EBAN-MATNR,
                      S_BANFN FOR EBAN-BANFN,
                      S_EBELN FOR EBAN-EBELN,
                      S_LIFNR FOR EBAN-LIFNR,
                      S_BSART FOR EKKO-BSART DEFAULT 'IN03'  OBLIGATORY NO INTERVALS NO-EXTENSION,
                      S_EINDT FOR EKET-EINDT OBLIGATORY.
    SELECTION-SCREEN  END OF BLOCK SCLDBLOCK.
    here i need  to maintain bsart in03 ,user cant able to chage anything instead of in03.what can i do for that one
    Regards
    ds

    HI,
    REPORT ZETA LINE-SIZE 350.
    TABLES : EBAN , EKKO,EKET.
    SELECTION-SCREEN BEGIN OF BLOCK SCLDBLOCK WITH FRAME.
    SELECT-OPTIONS: S_WERKS FOR EBAN-WERKS DEFAULT 'IN01' NO INTERVALS
    NO-EXTENSION ,
    S_MATNR FOR EBAN-MATNR,
    S_BANFN FOR EBAN-BANFN,
    S_EBELN FOR EBAN-EBELN,
    S_LIFNR FOR EBAN-LIFNR,
    S_BSART FOR EKKO-BSART DEFAULT 'IN03' OBLIGATORY NO INTERVALS
    NO-EXTENSION,
    S_EINDT FOR EKET-EINDT OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK SCLDBLOCK.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
          IF SCREEN-NAME = 'S_BSART-LOW'.
            SCREEN-INPUT = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          IF SCREEN-NAME = 'S_BSART-HIGH'.
            SCREEN-INPUT = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.

  • ABAP Query - Selection Screen Values Usage

    Hi,
       I have created an ABAP Query. For one of the selection-screen fields (CAUFV-FTRMI)
    which is select-options, I want to use the values during coding (in the where clause of a select query)
    in Extras section under the event "record processing". Please suggest how to make the the selection-screen values
    available during record processing event. Thanks in advance.
    Regards,
    Tejas Savla

    Hi Kartik,
                  I need to fetch data from some table KEKO depending on the values entered on the selection-screen for the field CAUFV-FTRMI. So, I need to find a way by which the selection-screen input values are available in the record processing event. The values are available in some variable SP$00002 of the automatically generated report program. But, this variable cannot be used in the Coding section of the ABAP QUERY. Please advise.
    Thanks & Regards,
    Tejas Savla

  • Selection screen field value capturing

    Hi,
    I have developed a report for displaying amendment changes in a purchse order. The input are purchase order
    and plant. Now they have asked for an additional input of version field, which should also have F4 field-value help.
    For version field, default there is no F4 key. So, i have written code like after entering the PO number when we press the enter key, for the corresponding PO, it brings the version no in input field. But my problem is it is displaying the values for version field, but when i select some value it is not getting updated in selection-screen version field. I have attached my code below... please help me
    in the below code my problem is only between
    AT SELECTION-SCREEN on value-request for P_REVNO.
    and
    start-of-selection event...
    TABLES : ekko,
    ekpo,
    cdhdr,
    cdpos,
    MEPO1325,
    t001,
    t166c,
    t166t,
    adrc,
    komp, " net rate of header
    konv, " net value of purchase order
    zammendpodet.
    TYPES : BEGIN OF ts_cdpos,
    ebeln TYPE ekbe-ebeln,
    ebelp TYPE ekbe-ebelp,
    matnr type ekpo-matnr,
    maktx type makt-maktx,
    prdat type ekpo-prdat,
    belnr TYPE ekbe-belnr,
    budat TYPE ekbe-budat,
    tkey(70),
    txz01 TYPE ekpo-txz01,
    ctxnr TYPE t166c-ctxnr,
    desp(20) type C,
    MEINS LIKE MARA-MEINS,
    chtxt TYPE t166t-chtxt.
    INCLUDE STRUCTURE cdpos.
    TYPES : END OF ts_cdpos.
    data : begin of it_makt occurs 0,
    matnr like makt-matnr,
    maktx like makt-maktx,
    end of it_makt.
    data : begin of it_maRA occurs 0,
    matnr like maRA-matnr,
    mEINS like maRA-mEINS,
    end of it_maRA.
    *Internal table declartion
    DATA : it_erev TYPE TABLE OF erev WITH HEADER LINE,
    it_ekko1 type table of ekko with header line,
    it_konv2 type table of konv with header line,
    it_ekpo TYPE TABLE OF ekpo WITH HEADER LINE,
    it_ekpo1 TYPE TABLE OF ekpo WITH HEADER LINE,
    it_cdhdr TYPE TABLE OF cdhdr WITH HEADER LINE,
    it_t166c TYPE TABLE OF t166c WITH HEADER LINE,
    it_ekbe TYPE TABLE OF ekbe WITH HEADER LINE,
    IT_AMMEND TYPE TABLE OF ZAMMENDPODET WITH HEADER LINE,
    IT_AMMEND1 TYPE TABLE OF ZAMMENDPODET WITH HEADER LINE,
    it_komp TYPE TABLE OF KOMP WITH HEADER LINE,
    it_konv type table of konv with header line,
    it_konv1 type table of konv with header line,
    it_cdpos TYPE TABLE OF ts_cdpos WITH HEADER LINE.
    data : BEGIN OF it_erev1 occurs 0,
    revno TYPE erev-revno.
    data : end of it_erev1.
    data : begin of it_cdpos1 occurs 0.
    include structure cdpos.
    data : ebeln like ekko-ebeln,
    item like ekpo-ebelp,
    aedat like ekpo-aedat,
    matnr like ekpo-matnr,
    txz01 like ekpo-txz01,
    desp(20) type C,
    MEINS LIKE MARA-MEINS,
    item1 like ekpo-netpr.
    data : end of it_cdpos1.
    types : dy_temp TYPE lips-lgort.
    DATA : dyfields LIKE dynpread OCCURS 1 WITH HEADER LINE, dy_value TYPE dy_temp.
    DATA: progname TYPE sy-repid,
    dynnum TYPE sy-dynnr,
    dynpro_values TYPE TABLE OF dynpread,
    field_value LIKE LINE OF dynpro_values.
    *Work variable declaration
    DATA : v_revno TYPE erev-revno,
    revno1 type zammendpodet-revno,
    w_version TYPE erev-revno,
    w_erdat TYPE erev-erdat,
    w_eruhr TYPE erev-eruhr,
    wv_eruhr TYPE erev-eruhr,
    v_tabkey TYPE cdpos-tabkey,
    v_temp(5),
    v_olddate(8),
    v_newdate(8),
    v_value_old TYPE cdpos-value_old,
    V_OLD TYPE EKPO-BRTWR, " OLD VALUE FOR PURCHASE ORDER
    l_ind TYPE i,
    temp value 0 type i,
    temp1 type i,
    temp2 type i,
    temp3 type i,
    wa_cdpos like line of it_cdpos,
    wa_cdpos1 like line of it_cdpos1,
    v_tabkey1 TYPE cdpos-tabkey.
    PARAMETERS : p_ebeln TYPE ekko-ebeln,
    p_ebelp TYPE ekpo-ebelp.
    p_bukrs TYPE t001-bukrs,
    p_revno type erev-revno.
    INITIALIZATION.
    AT SELECTION-SCREEN on value-request for P_REVNO.
    CLEAR: dyfields[], dyfields.
    dyfields-fieldname = 'P_REVNO'.
    APPEND dyfields.
    CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
    dyname = sy-cprog
    dynumb = sy-dynnr
    TABLES
    dynpfields = dyfields.
    READ TABLE dyfields INDEX 1.
    SELECT revno
    FROM erev
    INTO TABLE it_erev1 WHERE edokn = p_ebeln.
    IF sy-subrc = 0.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    retfield = 'REVNO'
    dynpprog = progname
    dynpnr = dynnum
    dynprofield = 'P_REVNO'
    value_org = 'S'
    TABLES
    value_tab = it_eREV1
    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.
    START-OF-SELECTION.
    SELECT SINGLE *
    FROM t001
    WHERE bukrs EQ p_bukrs.
    IF sy-subrc EQ 0.
    SELECT SINGLE *
    FROM adrc
    WHERE addrnumber EQ t001-adrnr.
    ENDIF.
    SELECT SINGLE *
    FROM ekko
    WHERE ebeln
    EQ p_ebeln
    AND frgke = 2.
    select * from konv into corresponding fields of table it_konv where knumv eq ekko-knumv.
    useful informations will be rewarded.
    thanks and regards,
    subbu.,

    Hi ,
           Use this function module
        call function 'DYNP_VALUES_UPDATE'
          exporting
            dyname               = sy-repid
            dynumb               = sy-dynnr
          tables
            dynpfields           = t_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.
    where t_dynpfields would contain name of field and value you want to update.
    Please reward if useful.

  • Regarding Infoset (At Selection-Screen) - Urgent

    Hi All,
    In Infoset 'Selections' tab, i have defined a selection parameter 'country', i want the user to have options to input only 5 country codes. The country code i am reading from LFA1-LAND1 as this relates to Vendor.
    I would like to know, what code should i enter in 'At Selection-Screen' to ensure that, when the user press F4 they only see these 5 country code + the description?
    Hope my problem is clear, await inputs.
    Vivek

    Hi Vivek,
    Here i am trying to give you the code again. Please try this code in your program.
    SELECT-OPTIONS: land1  FOR lfa1_land1.
    DATA: BEGIN OF IT_LAND OCCURS 0,
              LAND1  LIKE LFA1_LAND1,
              LTEXT(15)  TYPE C,
              END OF IT_LAND.
    IT_LAND-LAND1 = 'IN'.
    IT_LAND-LTEXT = 'INDIA'.
    APPEND IT_LAND1.
    IT_LAND-LAND1 = 'DE'.
    IT_LAND-LTEXT = 'GERMANY'.
    APPEND IT_LAND1.
    IT_LAND-LAND1 = 'AF'.
    IT_LAND-LTEXT = 'AFGHANISTAN'.
    APPEND IT_LAND1.
    IT_LAND-LAND1 = 'AT'.
    IT_LAND-LTEXT = 'Austria'.
    APPEND IT_LAND1.
    IT_LAND-LAND1 = 'AD'.
    IT_LAND-LTEXT = 'Andorra'.
    APPEND IT_LAND1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR LAND1-LOW.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD   = 'LAND1'
          VALUE_ORG  = 'S'
        TABLES
          VALUE_TAB  = IT_LAND
          RETURN_TAB = IT_RETURN.
      IF SY-SUBRC = 0.
        READ TABLE IT_RETURN INDEX 1.
        MOVE IT_RETURN-FIELDVAL TO LAND1-LOW.
      ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR LAND1-HIGH.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD   = 'LAND1'
          VALUE_ORG  = 'S'
        TABLES
          VALUE_TAB  = IT_LAND
          RETURN_TAB = IT_RETURN.
      IF SY-SUBRC = 0.
        READ TABLE IT_RETURN INDEX 1.
        MOVE IT_RETURN-FIELDVAL TO LAND1-HIGH.
      ENDIF.

  • Query Selection screen field validatoin

    I am testing a query using the RSRT2 transaction and have a query selection screen whose fields i want to create custom validations for. ( which should trigger when check or execute is pressed )
    How can this be achieved ?
    I tried looking for exits but did not find a relevant one.
    Thanks in advance.

    Hello,
    You need to write a routine in SMOD for selection screen validations.
    It will come in i_step = 3. please refer foll code as example:
    The code example is to check whether date is less than or equal to current date. If user enters future date it pop ups saying enter date less than or equal to current date.
    DATA:  LI_VAR like rrrangeexit,
           wa_t_var_range like LI_VAR,
           count type i value 0.
    IF i_s_rkb1d-infocube EQ 'CUBE1' or
       i_s_rkb1d-infocube EQ 'CUBE2'.
    Check whether only one of date variable is entered in variable screen.
    IF I_STEP = 3.
        Read table i_t_var_range into wa_t_var_range with key vnam = 'VARDATE'.
          if wa_t_var_range-low > sy-datum.
            CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
              EXPORTING
                I_CLASS  = 'RSBBS'
                I_TYPE   = 'E'
                I_NUMBER = '000'
                I_MSGV1  = 'Enter date less than or equal to current date'.
            raise again.
          endif.
    ENDIF.
    ENDIF.
    Regards,
    Shashank

  • Query Selection Screen restriction

    Hello All,
    In my query selection screen, i have date, month and week as selection parameters. Now my requirement is that user should select only one of them. If he selects more than one ie combination of two or all three, than query should not show any data.
    Can this be achieved? If yes how.
    Regds,
    Shashank

    Hi,
    You can try out, customer exit with I_STEP = 3.
    using which a exception will be raised if user enters value for more than one variable.
    Hope it helps......
    Regards,
    Umesh.

  • Select options default value and execute

    Hello,
    I managed to fill my select options default value. But what I also want is that the user does not have to press the execute button when the screen is shown at the first time. I would like to show the result screen for these default values at the same time the screen is shown first.
    I tried in WDDOINIT:
      data: l_ref_interfacecontroller type ref to iwci_wdr_select_options .
      l_ref_interfacecontroller =   wd_this->wd_cpifc_select_options( ).
      l_ref_interfacecontroller->execute(
    but this coding only works when the select-option screen was shown the first time.
    Any ideas?
    regards
    stefan

    Hello Sascha,
    I checked that WD_THIS->MR_SELOPT is filled.
    My coding in WDDOINIT is:
    *--- Instantiate select options component
      lr_usage = wd_this->wd_cpuse_usage_so( ).
      if lr_usage->has_active_component( ) is initial.
        lr_usage->create_component( ).
      endif.
    *--- Initialize selection screen
      lr_if_controller = wd_this->wd_cpifc_usage_so( ).
      wd_this->mr_selopt = lr_if_controller->init_selection_screen( ).
    *--- Configure layout options
      wd_this->mr_selopt->set_global_options(
                                 i_display_btn_cancel  = abap_false
                                 i_display_btn_check   = abap_false
                                 i_display_btn_reset   = abap_true
                                 i_display_btn_execute = abap_true ).
    *--- Create range tables
      lt_range = wd_this->mr_selopt->create_range_table(
                                                       i_typename = 'DATUM' ).
    *Range vorbelegen
      wa_dats = sy-datum - 30.
      wa_range_datum-sign = 'I'.
      wa_range_datum-option = 'BT'.
      wa_range_datum-low = wa_dats.
      wa_range_datum-high = sy-datum.
      assign lt_range->* to <fs_rangetable>.
      create data r_headerline like line of  <fs_rangetable>.
      assign r_headerline->* to <fs_range>.
      move-corresponding  wa_range_datum to <fs_range>.
      append <fs_range> to <fs_rangetable>.
      wd_this->mr_selopt->add_selection_field( i_id        = 'DATUM'
                                               it_result   = lt_range ).
      lt_range = wd_this->mr_selopt->create_range_table( i_typename = 'UZEIT' ).
      wd_this->mr_selopt->add_selection_field( i_id        = 'UZEIT'
                                               it_result   = lt_range ).
      lt_range = wd_this->mr_selopt->create_range_table( i_typename = 'UNAME' ).
      wd_this->mr_selopt->add_selection_field( i_id        = 'UNAME'
                                               it_result   = lt_range
                                               i_no_intervals = 'X'
                                               i_no_extension = 'X' ).
    data: event type ref to cl_wd_custom_event.
    create object event
      exporting
        name   = 'EXECUTE'
       parameters =
      wd_this->search_sel_opt(
        wdevent =    event                       " Ref to cl_Wd_Custom_Event
    Maybe you can see my mistake?
    regards
    stefan

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

Maybe you are looking for

  • JDBC Adapter configuration not initialized:null

    i we have a synchronous scenario with the following adapters , RFC <> XI <> JDBC. 1.JDBC Driver installation is done 2.RFC Destination type t is done in sap(sender) system. 3.checking the jdbc in VA is done while running it is giving the following er

  • MSI 875P and IDE 3

    Hi I will be powering up my newly built 875P system this Sunday and I would like some help in getting my hard drives connected/drivers installed before I do that please? I do not have any S-ATA drives at present and I don't want to use RAID, but have

  • Has anyone else noticed that Verizon Staff have an issue with comprehension??

    This makes the second time I've contacted Verizon to have something replaced/fixed...AGAIN!! Instead of sending the item to where I'll be...they send it to my home address which I DON'T SEE FOR 3 - 4 MONTHS AT A TIME!!!!!!!!!!!!!!!!!!! They give you

  • I just updated itunes and now itunes wont open

    i just updated itunes and now it wont open????

  • Testing Application Components

    I'm not sure if you are aware, but it is currently very difficult to test spark Application components using FlexUnit and the UIImpersonator. An application component can't simply be added to UIImpersonator with addChild; there is already an existing