Select options : period restriction

Hi,
I have one select option Inventory period(S_INVPRD) in my selection screen.
I want to restrict the date range to one year period. i.e the user should not be allowed to enter the date range which is more than one year.
Could you please help on this.
Regards,
Sankar

Hi,
Please you the code below :
data : days type i,
       year type i.
select-OPTIONS : so_budat for bsis-budat.
at SELECTION-SCREEN.
CALL FUNCTION 'HR_SGPBS_YRS_MTHS_DAYS'
   EXPORTING
     beg_da              = so_budat-low
     end_da              = so_budat-high
  IMPORTING
    NO_DAY              = days
*    NO_MONTH            = month
    NO_YEAR             = year
*    NO_CAL_DAY          =
*  EXCEPTIONS
*    DATEINT_ERROR       = 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.
IF YEAR > 1.
  MESSAGE 'More than One Year' type 'E'.
endif.
if days > 0.
  message 'More than one year' type 'E'.
endif.
Thanks,
Sriram Ponna.

Similar Messages

  • Select-option to restrict to single value

    Hi,
    I have select-option for company code (i dont want to use parameter) and used no-intervals but it still displays right arrow which will allow users to enter more than one company code. is there any way I can supress this right arrow button.
    Regards
    Kasi

    Say also NO-EXTENSION.
    tables: t001.
    select-options: s_bukrs for t001-bukrs no intervals no-extension.
    Regards,
    Rich Heilman

  • How many entries can we put in the select options

    Hi all,
    As per  my requirement I am trying to store the data in the select-option( s_kunnt)  as below
    select kunnr from kna1 into (l_kunnr) where
                and spart in p_spart.
      move 'I'         to s_kunnr-sign.
      move 'BT'        to s_kunnr-option.
      move l_kunnr to s_kunnr-low.
      move l_kunnr  to s_kunnr-high.
      append s_kunnr.
    endselect.
    Using s_kunnr in the select statement to fetch the data.
    When the customer numbers are more than 1800 in the s_kunnr, select statment going to the dump. Is number of entries in the select options are restricted for some count( around 1800)?.
    How many entries can we put in the select options?
    Thanks
    Regards
    Raj.

    Firstly, there is an error in your code. You should do the following instead:
    move 'I' to s_kunnr-sign.
    move 'EQ' to s_kunnr-option.
    move l_kunnr to s_kunnr-low.
    append s_kunnr.
    To answer your original question, the limit depends on the field width you are using in the ranges. If the field width is small, you can have thousands of entries in the range table.
    The limitation is in the length of the SQL statement string generated by the ABAP OPEN SQL engine. With the way I defined it above, the statement would have WHERE KUNNR IN ( 'value1', 'value2', 'value3'). With way you defined it, it would have WHERE KUNNR BETWEEN 'value1' and 'value1' and KUNNR BETWEEN 'value2' and 'value2'.
    When the range table is so large that it results in a short dump, you should look into FOR ALL ENTRIES option of SQL.

  • Selection order to follow the select-option order rather than numerical ord

    Hi Gurus!
    I have created a program to print Form headers. The program selects the documents from nast table based on the document numbers eneterd in selection screen. When I eneter for example documents :
    10000007
    10000005
    10000001
    10000002
    10000004 and run the program it prints the headers in sequential order rather than the order I put the documents numbers in selection screen.
    It prints
    10000001
    10000002
    10000004
    10000005
    10000007.
    Is there by any chnace a way that I can print it exactly in the same order as the documents are entered in the selection screen?
    Thanks. Help will be greatly appreciated.

    Yes, I agree. But my suggestion was to display or call the Form FM within the Select-options loop and Read Nast internal table for details. Hope you have restricted the Select options to restrict the entries only for "=" with no extension.
      Loop at S_SELOPT.
         Read table GT_NAST into GS_NAST with key OBJKY = S_SELOPT-LOW.
         If Sy-Subrc eq 0.
    .....  your existing logic to display the form....
         endif.
      Endloop.

  • How to restrict more than one 1 range in select option on selection screen.

    Hi all,
    I have a requirement where I need to restrict user from giving more than 1 range for a date selct option ..other all features of multiple selection will be as usual...
    for eg we can do this if we disable / hide other cells if the user clicks on multiple ranges tab.. If only 1 cell is available to give the range user will not be able to give more than 1 range....
    I was thinking if I could use select_options_restrict but how do i fill its parameters...
    Can anyone send me the sample code or the same to achieve this functionality...I have used select_options_restrict to hide multiple ranges itself  ... But here user will be able to give range but only 1....
    Thanks and Regards
    Sweta

    HI,
    Please try the below logic.
    SELECT-OPTIONS: so_addr   FOR    ADR6-SMTP_ADDR NO INTERVALS.
    ***********remove_range_for_select_option******************* .
      DATA: ls_restrict  TYPE  SSCR_RESTRICT,    "The type for SELECT_OPTIONS_RESTRICT
            ls_opt_list  TYPE  SSCR_OPT_LIST,    "One list of options
            ls_asn       TYPE  SSCR_***.         "One line of table associating selection screen
                                                                      "object with opt. list
      CLEAR: ls_restrict,
             ls_opt_list,
             ls_asn.
    *Only EQ valid, discrete values, Include & Exclude
      ls_opt_list-name       = 'EQ'.
      ls_opt_list-options-eq = 'X'.
      APPEND ls_opt_list TO ls_RESTRICT-OPT_LIST_TAB.
      LS_ASN-KIND            = 'S'.
      LS_ASN-NAME            = 'SO_ADDR'.            "Select Option
      LS_ASN-SG_MAIN         = 'I'.
      LS_ASN-SG_ADDY         = '*'.
      LS_ASN-OP_MAIN         = 'EQ'.
      LS_ASN-OP_ADDY         = ' '.
      APPEND LS_ASN TO LS_RESTRICT-***_TAB.
    *Make use of SELECT-OPTIONS easier on the selection screen
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
        EXPORTING
          RESTRICTION            = LS_RESTRICT
        EXCEPTIONS
          TOO_LATE               = 1
          REPEATED               = 2
          SELOPT_WITHOUT_OPTIONS = 3
          SELOPT_WITHOUT_SIGNS   = 4
          INVALID_SIGN           = 5
          EMPTY_OPTION_LIST      = 6
          INVALID_KIND           = 7
          REPEATED_KIND_A        = 8
          OTHERS                 = 9.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Edited by: Rajasekhar Reddy P on Mar 16, 2009 2:03 PM

  • Restrict select options

    I am using a logical database in HR.I use the selection screen of the logical database but i want to restrict a select options for only permit introduce one value.
    I restrict in abap to only use values ,nor intervals by example and other conditions.Now i have to restrict to only one value.
    it must be work like a parameter

    Hi,
    U can use No-extension to restrict multiple selcet option button.
    See this link
    http://www.sapdevelopment.co.uk/reporting/selscr/selscr_restrictso.htm
    *: Report:  ZRESTRICT_SELOPT                                           :
    *: Author:  www.SAPdev.co.uk                                           :
    *: Date  :  2004                                                       :
    *: Description: Demonstrates how to restrict select options to only    :
    *:              allow specific restriction options:                    :
    *:                                     i.e.. EQ, NE, BT etc..          :
    REPORT ZRESTRICT_SELOPT.
    * Include type pool SSCR
    TYPE-POOLS sscr.
    TABLES: EKPO.
    * Selection-screen
    select-options : so_ebeln for ekpo-ebeln,
                     so_ebelp for ekpo-ebelp.
    * Variables for populating restriction data
    DATA: gd_restrict TYPE sscr_restrict.   "structure containing 2 tables
    DATA: gd_optlist  TYPE sscr_opt_list,   "header line for table 1
          gd_***      TYPE sscr_***.        "header line for table 2
    *INITIALIZATION.
    INITIALIZATION.
    * Restrict SO_EBELN to only except EQ, BT and NE.
      gd_optlist-name = 'KEY1'.      "Can be anything
      gd_optlist-options-eq = 'X'.
      gd_optlist-options-bt = 'X'.
      gd_optlist-options-ne = 'X'.
      APPEND gd_optlist TO gd_restrict-opt_list_tab.
      clear: gd_optlist.
      gd_***-kind = 'S'.
      gd_***-name = 'SO_EBELN'.
      gd_***-sg_main = 'I'.
      gd_***-sg_addy = SPACE.
      gd_***-op_main = 'KEY1'.       "Must be same as above
      APPEND gd_*** TO gd_restrict-***_tab.
      clear: gd_***.
    * Restrict SO_EBELP to only except CP, GE, LT.
      gd_optlist-name = 'KEY2'.      "Can be anything
      gd_optlist-options-cp = 'X'.
      gd_optlist-options-ge = 'X'.
      gd_optlist-options-lt = 'X'.
      APPEND gd_optlist TO gd_restrict-opt_list_tab.
      clear: gd_optlist.
      gd_***-kind = 'S'.
      gd_***-name = 'SO_EBELP'.
      gd_***-sg_main = 'I'.
      gd_***-sg_addy = SPACE.
      gd_***-op_main = 'KEY2'.       "Must be same as above
      APPEND gd_*** TO gd_restrict-***_tab.
      clear: gd_***.
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
       EXPORTING
    *    PROGRAM                      =
        restriction                  = gd_restrict
    *    DB                           = ' '
       EXCEPTIONS
         TOO_LATE                     = 1
         REPEATED                     = 2
         SELOPT_WITHOUT_OPTIONS       = 3
         SELOPT_WITHOUT_SIGNS         = 4
         INVALID_SIGN                 = 5
         EMPTY_OPTION_LIST            = 6
         INVALID_KIND                 = 7
         REPEATED_KIND_A              = 8
         OTHERS                       = 9.
      IF sy-subrc <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Kindly reward points for the answer which helped u and close the thread if ur problem got solved.
    Message was edited by: Judith Jessie Selvi

  • Restrict Select-Options for Logical Database field

    The way we restrict select options for custom defined select option fields on selection screen.. can we restrict select options for standard Logical Database fields?
    i.e. report uses PNPCE logical database and has field called PERNR. I want to restrict select options for this PERNR field so that it has options for 'Select single values' only.
    Thanks,
    Falguni
    Edited by: Falguni V on Nov 13, 2010 6:42 AM

    You can user AT SELECTION-SCREEN event, and check whether any record is having high value for PNPPERNR.

  • Is there any restriction on no of entries in Select-option-low ?

    Is there any restriction on no of entries in Select-option-low ? I have a select option which has 22 thousand entries and the select query is thrwoing a dump.
    Any inputs ?
    Regards,
    Ankur Bhandari

    Hi Ankur,
    1. i had faced same problem.
    2. Virtually the limit in SELECT-OPTION low
       is not the problem.
    3. The problem is with SQL query and database limit.
    4. The R/3 system generates final database query
       in the form of (for select option)
       FIELD IN ('ABC','DEF','XYZ',........'')
    5. Now Oracle/SqlServer
       has limit of THESE IN VALUES.
       limit is something in 2500 approx.
    6. So your approach will not work
      using IN.
       It will always give error when
       entries are more.
    7. SOLUTION which i did.
       1. First select all appropriate records from
          master table in your itab
         (without using IN select option clause)
      2. After that use this concept.
         Loop at ITAB.
         If Itab-Field in SelectOption.
         Else.
         DELETE ITAB.
         ENDIF.
    The above will take care for any number of records. 
    I hope it helps.
    regards,
    amit m.
    Message was edited by: Amit Mittal
    Message was edited by: Amit Mittal

  • Complex Restrictions in Select-options

    Hi Team,
    I've coded SELECT-OPTIONS in my web dynpro(ABAP) and want to disable the complex selection button/link (displayed just before the actual field). This link takes the user to either "Exclude" the selection or other options like "GE", "BT" etc. I actually want that user should only select ONE value with sign="I" and Option='EQ'. Is there a way to manage this? Please help.
    Thanks for your time.
    P.S: Points will be awarded for solutions

    Hi Sanjay.
    You can switch of intervall and complex restrictions using the 
    parameters I_USE_COMPLEX_RESTRICTION and I_NO_INTERVALS
    of the method ADD_SELECTION_FIELD:
    wd_this->mr_selop->add_selection_field(
                             i_id = lv_fieldname
                             i_no_intervals = abap_true
                             i_use_complex_restrictions = abap_false
    Hope this helps.
    Cheers,
    Sascha

  • Restrict the no of values to 10 for select-options

    hi gurus,
    i have the require that the user can put only 10 distinct values for a select-option for selection screen....now to disable range selection and other signs than eq to i have used function module select_options_restrict..
    The only thing which i could'nt do is restricting the values to 10. That is I want to disable (grey out ) the rows after 10 so that the user if wants also cannot put more than 10 values....i dont want to go by the convention method of displaying an error message that only 10 values are permitted...instead i will keep the provision of disabling after 10 values...
    i guess that when we press the extension button the screen that comes for multiple selection is a module pool screen....so do we need to modify that screen or may be there is some other method...
    please help.....

    im not aware of restricting the user form entry itself instead.
    let the user enter the values..
    select-options:so_dat for sy-datum.
    at selection-screen on so_dat.
    describe table so_dat lines wk_lines.
    if wk_lines > 10.
    throw message
    endif.

  • How to restrict values displayed using a select-options

    Can someone please tell me how to restrict values displayed using a select-options.
    Example- in my table I have 100 entries. However when the user will click on the required field- I want to be display only 25 options based on a given value of another field in the table.
    Thanks,
    Mahesh.

    get the screen value for the selectd field  using the fm
    DYNP_VALUES_READ.
    for that value filter the internal table values and pass the table to f4 help of the field.
    below code will help u
    write the f4 help for the field.
    At Selection Screen on value request                                *
    F4 help for Corporate
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_CORP.
    Get Corporates for selected division
      PERFORM GET_CORP.
      PERFORM F4HELP_CORP.
    *&      Form  GET_CORP
    Get the corporates for the selected division
    There are no interface parameters to be passed to this routine
    FORM GET_CORP .
    Table for conglomerate
      DATA:
        LT_CONG      LIKE STANDARD TABLE OF FS_CORP,
    Fields of current screen
        LFS_DYNPREAD TYPE DYNPREAD,
    Table for current Screen fields
        LT_DYNPREAD  LIKE STANDARD TABLE OF LFS_DYNPREAD.
      LFS_DYNPREAD-FIELDNAME = 'P_DIV'.
      APPEND LFS_DYNPREAD TO LT_DYNPREAD.
    Get selection screen value for division
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          DYNAME               = SY-REPID
          DYNUMB               = SY-DYNNR
        TABLES
          DYNPFIELDS           = LT_DYNPREAD
        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 EQ 0.
        READ TABLE LT_DYNPREAD INTO LFS_DYNPREAD INDEX 1.
        IF SY-SUBRC EQ 0.
          P_DIV = LFS_DYNPREAD-FIELDVALUE.
        ENDIF.                             " IF SY-SUBRC EQ 0
      ENDIF.                               " IF SY-SUBRC EQ 0
      REFRESH T_CORP.
    Get the conglomerate for the selected division
      SELECT KUNNR                         " Conglomerate
        FROM KNVH
        INTO TABLE  LT_CONG
       WHERE HITYP  EQ C_HITYP
         AND VKORG  EQ C_VKORG
         AND VTWEG  EQ C_VTWEG
         AND SPART  EQ P_DIV
         AND DATAB  LE SY-DATUM
         AND DATBI  GE SY-DATUM
         AND HKUNNR EQ SPACE.
      IF SY-SUBRC EQ 0.
        SORT LT_CONG BY KUNNR.
        DELETE ADJACENT DUPLICATES FROM LT_CONG
                        COMPARING KUNNR.
    Get the corporates for the selected conglomerates
        SELECT KUNNR                       " Customer Number
          FROM KNVH
          INTO TABLE  T_CORP
           FOR ALL ENTRIES IN LT_CONG
         WHERE HITYP  EQ C_HITYP
           AND VKORG  EQ C_VKORG
           AND VTWEG  EQ C_VTWEG
           AND SPART  EQ P_DIV
           AND DATAB  LE SY-DATUM
           AND DATBI  GE SY-DATUM
           AND HKUNNR EQ LT_CONG-KUNNR.
        IF SY-SUBRC NE 0.
          CLEAR: SSCRFIELDS.
          MESSAGE I531(0U) WITH TEXT-005.
          STOP.
        ENDIF.                             " IF SY-SUBRC NE 0
      ELSE.
        CLEAR: SSCRFIELDS.
        MESSAGE I531(0U) WITH TEXT-004.
        STOP.
      ENDIF.                               " IF SY-SUBRC EQ 0
    ENDFORM.                               " GET_CORP
    *&      Form  F4HELP_CORP
    F4 help for corporate
    There are no interface parameters to be passed to this routine
    FORM F4HELP_CORP .
    F4 help for corporate
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD        = 'KUNNR'
          DYNPPROG        = 'Z_EXCESS_USAGE'
          DYNPNR          = '1000'
          DYNPROFIELD     = 'P_CORP'
          VALUE_ORG       = 'S'
        TABLES
          VALUE_TAB       = T_CORP
        EXCEPTIONS
          PARAMETER_ERROR = 1
          NO_VALUES_FOUND = 2
          OTHERS          = 3.
      IF SY-SUBRC EQ 0.
    Do nothing
      ENDIF.                               " IF SY-SUBRC EQ 0
    ENDFORM.                               " F4HELP_CORP

  • Restricting the Select-options by using the FM   "SELECT_OPTIONS_RESTRICT"

    Hi ,
    Thank You very much for reading this query.
    My requirement is, I need to display 3 select-option fields on my selection screen.
    1) Field1 is S_periods which is to populate the Numbers.For this field I need to provide the options single and ranges (First 2 options).
    2) Field 2 is S_RECIPIENTS which should contain user IDs.For this field I need to give first option which is single values.
    3) Field 3 is S_TRANSACTIONS which should contain 3 options (Select singles, ranges and Exclude singles).
    So by calling the FM "SELECT_OPTIONS_RESTRICT' only once, Can i provide all these options or I need to call this FM 3 times for 3 fields .
    Can any one help me on this.
    If possible plz provide me some pseudo code on this.I have gone through so many forum points on this but I havenot seen this kind of requirement.
    Thanks and Regards,
    K.krishna Chaitanya.

    Check this code for first and second case.
    I don't think third case is possible.
    * T A B L E S
    TABLES: afko, mara.
    * D A T A   D E C L A R A T I O N S
    TYPE-POOLS: sscr.
    DATA:  gt_restrict TYPE sscr_restrict,
           gs_selopt   TYPE sscr_***,
           gs_opt_list TYPE sscr_opt_list.
    SELECT-OPTIONS: s_aufnr FOR afko-aufnr,
                    s_matnr FOR mara-matnr.
    * INITIALIZATION
    INITIALIZATION.
    * MATERIAL
      CLEAR gs_opt_list.
      gs_opt_list-name          = 'OBJ_MATNR'.
      gs_opt_list-options-eq    = 'X'.
      gs_opt_list-options-bt    = 'X'.
      APPEND gs_opt_list TO gt_restrict-opt_list_tab.
      CLEAR gs_selopt.
      gs_selopt-kind            = 'S'.
      gs_selopt-name            = 'S_MATNR'.
      gs_selopt-sg_main         = 'I'.
      gs_selopt-op_main         = 'OBJ_MATNR'.
      APPEND gs_selopt  TO gt_restrict-***_tab.
    * ORDER
      CLEAR gs_opt_list.
      gs_opt_list-name          = 'OBJ_AUFNR'.
      gs_opt_list-options-eq    = 'X'.
      APPEND gs_opt_list TO gt_restrict-opt_list_tab.
      CLEAR gs_selopt.
      gs_selopt-kind            = 'S'.
      gs_selopt-name            = 'S_AUFNR'.
      gs_selopt-sg_main         = 'I'.
      gs_selopt-op_main         = 'OBJ_AUFNR'.
      APPEND gs_selopt  TO gt_restrict-***_tab.
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
        EXPORTING
          restriction            = gt_restrict
        EXCEPTIONS
          too_late               = 1
          repeated               = 2
          selopt_without_options = 5
          selopt_without_signs   = 6
          invalid_sign           = 7
          empty_option_list      = 9
          invalid_kind           = 10
          repeated_kind_a        = 11
          OTHERS                 = 12.

  • Restrict the no. of rows entered in select-options

    Dear ABAPers,
    I have used CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' to only allow user key in single value. The field is BUKRS(Company Code). Can I restrict the number of company code entered by user in this select-option? Please advise.
    Thanks in advance.
    Best Regards,
    Hikaruno

    Sure, just do a check in the AT SELECTION-SCREEN event.
    at selection-screen.
    data: lines type i.
    describe table s_bukrs lines lines.
    if lines > 10.
      message e001(00) with 'More than 10 entries'.
    endif.
    Regards,
    RIch Heilman

  • Restrict number of entries in Select-Options

    Hi,
    I would like to restrict the number entries in select options. Lets say I have select options field defined for GL and I want only 10 GLs to be entered on Select-Options. If more than 10 Gls then it should give message that GL count is exceeding its Limit.
    Please may I know how I can do this ?
    Thanks for you help.

    Try this if you want to restrict rows in s_matnr for example.
    At selection screen.
    data: line type i.
    describe table s_matnr lines line.
    if line > 10.
       Message 'Error' Type 'E'.
    endif.
    or else if you want only 10 Materials to be selected then try this.
    At selection-screen.
    if s_matnr-high - s_matnr-low > 10.
        Message 'Error' type 'E'.
    endif.
    Regards,
    Vamsi

  • Select-options restrict possible entries

    Hi
    I use select options like in this example
    select-options: so_matnr for mara-matnr.
    In my report,when running, if pressing f4 for possible entries i only want to have material 123 and 234 for example,and not the whole list of materials.How can i restrict this possible entries to only my desired materials.
    thanks

    Hi Seba,
    1. Demo program for F4 help on Selection-screen : <b>demo_selection_screen_f4.</b>
    2. Sample program
       REPORT zvenkat_f4_for_selops MESSAGE-ID zmsg .
       TABLES :marc.
       TYPES:
          BEGIN OF t_t001w,
            werks       TYPE t001w-werks,
            name1       TYPE t001w-name1,
          END OF t_t001w,
          t_return_tab  TYPE ddshretval.
       DATA:
           w_t001w      TYPE t_t001w,
           w_return_tab TYPE t_return_tab.
       DATA:
           i_t001w      TYPE STANDARD TABLE OF t_t001w,
           i_return_tab TYPE STANDARD TABLE OF t_return_tab.
    *&      SELECTION-SCREEN
       SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
       SELECT-OPTIONS : s_werks FOR marc-werks.
       SELECTION-SCREEN END OF BLOCK b1.
    *&      AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_werks
       AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_werks-low.
         PERFORM f4_help_for_palant USING 'S_WERKS-LOW'.
       AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_werks-high.
         PERFORM f4_help_for_palant USING 'S_WERKS-HIGH'.
    *&      Form  f4_help_for_palant
       FORM f4_help_for_palant USING l_dynprofield.
         SELECT werks name1
         FROM t001w
         INTO TABLE i_t001w.
         CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
             retfield        = 'WERKS'
             dynpprog        = sy-repid
             dynpnr          = sy-dynnr
             dynprofield     = l_dynprofield
             value_org       = 'S'
           TABLES
             value_tab       = i_t001w
             return_tab      = i_return_tab
           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.
       ENDFORM.                    " f4_help_for_palant
    I hope that it solves your problem.
    Thanks
    Venkat.O

Maybe you are looking for

  • Display Currency symbol with value in ALV Report

    Hi Experts, I need to display currency symbol with value in ALV Report like if currency type is dollar then $200. Here I am using field catalog type slis_t_fieldcat_alv and suing field merge catalog FM: 'REUSE_ALV_FIELDCATALOG_MERGE' I tried like thi

  • Foreign currency posted to Foreign currency G/L account

    Hi all, I want to ask something. Say I got a G/L account with the account currency USD. Say this G/L account is 10000 - Swiss Bank (USD) Say the exchange rate goes like this,          USD       SGD Jan     1             1.1 Feb    1             1.3 M

  • How do I change the number of spaces generated when I press the tab key when composing an email message?

    I'm running Thunderbird 24.3.0 on Vista Home Premium.

  • Problem on Query Generator

    Hi Expert, I made the following query: SELECT T0.[RefDate], T0.[TransId], T1.[Account], T1.[ShortName], T1.[Debit], T1.[Credit], T1.[ProfitCode] FROM OJDT T0  INNER JOIN JDT1 T1 ON T0.TransId = T1.TransId WHERE T0.[RefDate] between [%0] and [%1] Howe

  • Repeat FCHU Run

    Hi Friends, Is it possible to update the check number in Assignment and Reference field too through FCHU? My requirement is i need the same check number in Assignment field for Bank reference and in Reference field to show it in the document header.