Check select-options parametr value

hi,
i want to check if select-option parameter value is '002' then execute some code, how can i do that .
thanks in advance,
ramakrishna buddala.
Moderator Message: Not enough search done. Thread locked.
Edited by: Suhas Saha on Oct 20, 2011 3:15 PM

Hi
Perform the validation in AT Selection-screen on field event.If validation is not succes then give error message.
AT selection-screen on <Fieldname>.
if fieldname-low <> '002'.
   message '<Message Text>' type 'E'.
endif.
Regards.
Raghu.

Similar Messages

  • 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

  • CHECK SELECT-OPTIONS not allowed in ECC6.0

    HI,
    Obsolete Statement 4.7 version and Ecc 6.0 Version,
    CHECK SELECT-OPTIONS not allowed
    The construct SELECT-OPTIONS in the statement CHECK is not allowed in ABAP Objects.
    Error message in ABAP Objects if the following syntax is used:
    CHECK SELECT-OPTIONS.
    Correct syntax:
    CHECK f IN seltab.
    Reason:
    This form of the statement CHECK is intended only for use during the event GET during execution of type-1-programs with logical databases. The statement checks whether the content of the work area, which was filled by the logical database for the current GET event, meets the conditions in all the selection tables that are connected with the database table read. The name of the database table is taken statically from the next higher GET statement in the ABAP program. Thus the statement does not make sense outside of an GET event block. However, the previous event concept of the ABAP runtime environment, that is, the previous way of processing logical databases, is not supported by ABAP Objects.
    I want the simple example program for Correct syntax .Can any one send me with example program and pinpoint information of the statement.
    Regards,
    venkat
    Moderator message: please search for available information.
    Edited by: Thomas Zloch on Jan 8, 2011 10:32 AM

    Hey i have the same issue with this FM
    Did u find any solution to this..?
    plz help me ... urgent..!!

  • Dynamic variant for select option High value

    Hi ,
    Please help me in creating dynamic variable for a select option date field high value.
    II tried the following method:
    1. Enter the values in the selection screen
    2. Save the variant using the SAVE button
    3. In the next screen for the date variable select the 'Selection variable' checkbox (L) and click on the button 'Selection variable' in the toolbar.
    4. Now you will see this variable in the next screen with 3 types of buttons. Click on the middle button (i.e. D - Dynamic date calculation).
    5. Click on the down arrow button and select the option 'Current Date'.
    5. Save the variant.
    But it is saving the date value in Field LOW of select option( From value).
    I need it in TO field( High value).
    Please help.
    regards,
    Sheeba

    Hi Sheeba
        we can do it other way .. Select the same steps as you have done but after the assigning the value current date to low ..click on the selection option push button at the application bar and choose the 'less than or equal to' option to your select option value and try the same ....
    I guess this would throw you same results as that of the value in the high value button
    Cheers,
    Jacks.

  • Alternative for "check select-options" for select query.

    hi all,
    my report is using a "GET" syntax, followed by "check select-options".
    My senior told me to replace the Get syntax with select query.
    Now, my program also has dynamic selection screen.
    the dynamic selection screen almost has all the fields of database table.
    so, what is the way to replace this check select-options while applying select query?
    can you tell me how dynamic selection screen fields are populated? are they stored in some internal table?
    thanks for help.

    HI
    Here is some points about LDB.
    Logical databases are special ABAP programs that retrieve data and make it available to application programs. The most common use of logical databases is still to read data from database tables by linking them to executable ABAP programs.
    However, from Release 4.5A, it has also been possible to call logical databases using the function module LDB_PROCESS. This allows you to call several logical databases from any ABAP program, nested in any way. It is also possible to call a logical database more than once in a program, if it has been programmed to allow this. This is particularly useful for programs with type 1.
    Logical databases contain Open SQL statements that read data from the database. You do not therefore need to use SQL in your own programs. The logical database reads the program, stores them in the program if necessary, and then passes them line by line to the application program or the function module LDB_PROCESS using an interface work area
    For further on LDB's refer to this link.
    [http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/content.htm]
    Hope this will help.
    Reward if helpful.
    Sumit Agarwal

  • No "Check selected" option in Aperture???

    I know that , for import into Aperture, one can either chose to "check all", "uncheck all", or check individual images, and then hit "import checked"
    It is of course also possible, to select a number of images, and drag them into aperture, BUT, now there is an "import checked" option, Why can I not find a "check selected" option??
    Say that I have a card with 500 images, and I only want to import 300, in order to use the "import checked" option, I would have either: to check all 300 images individually, or "check all", and thereafter uncheck the 200 I do not want to import, also  - individually!!
    Is it just me who cannot find the command, or is there indeed no "Check selected" option in Aperture???

    Glad you found what you needed.
    The information is on this page in the User Manual, found by searching for "import checked"
    Importing from Your Digital Camera or Card Reader
    (Link)
    The text on that page:
    You can also Shift-click adjacent images and Command-click nonadjacent images, and then select the checkbox for one of the images. Selecting a single checkbox selects the checkboxes for all of the selected images.
    The User Manual is good.  It should be the first resource you consult.
    --KIrby

  • Check select-options in selection-screen

    I have two select-options in a selection-screen s_vbeln and p_ebeln with intervals & with extensions. Now i have to check whether values in  high or in low are valid or not? I have written the following code to check the validity of the values.
    AT SELECTION-SCREEN ON s_vbeln.
      IF SY-UCOMM EQ 'ONLI' .
        IF NOT s_vbeln[] IS INITIAL.
          LOOP AT s_vbeln.
            SELECT SINGLE VBELN
                        FROM VBAK
                        INTO gs_vbeln
                       WHERE VBELN EQ s_vbeln-LOW.
            IF SY-SUBRC <> 0.
              MESSAGE E398(00) WITH 'Invalid Sales Order Number!!'.
            ENDIF.
            SELECT SINGLE VBELN
                         FROM VBAK
                        INTO gs_vbeln
                       WHERE VBELN EQ s_vbeln-HIGH.
            IF SY-SUBRC <> 0.
              MESSAGE E398(00) WITH 'Invalid Sales Order Number!!'.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDIF.
    The similar is with p_ebeln which is a field of ekko table.And vbeln is a field of vbak table. if gurus can post the code
    for the same.
    Regards,
    Priya

    Hi Shweta,
    select-options are represented as internal tables in the system. If the user extends the select-option and enters a couple of values, they should be checked all. So the code should be a little bit enhanced.
    To have the cursor positioned a the field with the error, you may use event
    AT SELECTION-SCREEN ON s_vbeln.
      PERFORM check_s_vbeln.
    *&      Form  CHECK_S_VBELN
    FORM check_s_vbeln .
      LOOP AT s_vbeln.
        IF s_vbeln-low IS NOT INITIAL.
          SELECT count(*) FROM vbak WHERE vbeln = s_vbeln-low.
            IF sy-subrc <> 0.
              MESSAGE e001(vb) WITH s_vbeln-low.
    *   Sales document & does not exist
            ENDIF.
          ENDIF.
          IF s_vbeln-high IS NOT INITIAL.
            SELECT count(*) FROM vbak WHERE vbeln = s_vbeln-high.
              IF sy-subrc <> 0.
                MESSAGE e001(vb) WITH s_vbeln-high.
    *   Sales document & does not exist
              ENDIF.
            ENDIF.
          ENDLOOP.
        ENDFORM.                    " CHECK_S_VBELN
    Kind regards,
    Clemens

  • WD4A select options, default value

    Hello,
    while using the select option screen i tried to fill a default value in one of my fields. I used:
    *add a new field to the selection
      wd_this->m_handler->add_selection_field(
      i_id = 'Z_TEST'
      it_result = lt_range_table
      i_memory_id = 'SXV'
      i_no_intervals = abap_true
      i_no_extension =  abap_true ).
    I checked that the parameter ID SXV is filled but there is no default value in the dynpro.
    Any ideas?
    best regards
    stefan

    Hi Stefan.
    Is it necessary to use memory id's for you?
    It is quiet easy to work with field-symbols and
    add a value to the range table:
      data:
            ls_tmprange    type rsparams.
      field-symbols:
                     <fs_param>      type any,
                     <fs_range>      type any,
                     <fs_rangetable> type table.
      ls_tmprange-low = some value.
      ls_tmprange-sign = some value.
      ls_tmprange-option = some value.
      assign lt_range_table->* to <fs_rangetable>.
      create DATA lr_headerline like LINE OF  <fs_rangetable>.
      ASSIGN lr_headerline->* to <fs_range>.
      move-CORRESPONDING  ls_tmprange to <fs_range>.
      append <fs_range> to <fs_rangetable>.
    After that you can call add_selection_field with lt_range_table.
    Hope this helps.
    Cheers,
    Sascha

  • Create a structure based on Selection option field values?

    Hi Guys,
                 can anybody tell me is ther anyway to creat a strucitre after giving the values to selection screen .I have a req where fiscal period is entered based on this i have to create a structure suppose i he give 3 to 8 then i have to create a strucure with with some fields including period3 period4 like that until Period8 so is there anyway tocreate like that or not?
    Thanks,
    Gopi.

    You need an internal table not a structure.  Either count from from the low value to the high value adding a record to the table or select the entries from the Period master table for that selection range.
    Option 1
    REPORT  ZCOUNT.
    tables: t009b.
    select-options:
      s_period   for t009b-poper no-extension.
    data:
      gt_poper type table of poper,
      gs_poper type poper.
    start-of-selection.
      move s_period-low to gs_poper.
      while gs_poper le s_period-high.
         append gs_poper to gt_poper.
         add 1 to gs_poper.
      endwhile.
      loop at gt_poper into gs_poper.
        write:/  gs_poper.
      endloop.
    endloop.
    Option 2
    REPORT  ZCOUNT.
    tables: t009b.
    select-options:
      s_period   for t009b-poper.
    data:
      gt_poper type table of poper,
      gs_poper type poper.
    start-of-selection.
      select poper
        from t009b
        into table gt_poper
        where bdatj = '2007'
         and poper in s_period.
      loop at gt_poper into gs_poper.
        write:/  gs_poper.
      endloop.
    Not sure if t009b is the right table.
    Ta... JR

  • Help on the selection screen.....Select-options default values

    Dear Friends,
    We have one requirement,i.e. In Report program i am using select-option once will execute the program ALV report will be generated.In ALV Report we have one button like 'WM DATA'.Once click the WMDATA one pop-up is displaying...In that pop-up also same select-options are there upto here it's working fine...Now my problem is on pop-up select-options i have to display by default..... which i am using on report select-options values.
    Please help on the same
    Thank You.

    Do like this. Before calling your next screen assign the select option value or just assign the value in start of selection only.
    tables
    :lqua.
    SELECT-OPTIONS:
    s_lgnum FOR lqua-lgnum MODIF ID sc1 OBLIGATORY,
    s_lgtyp FOR lqua-lgtyp MODIF ID sc1.
    SELECTION-SCREEN BEGIN OF SCREEN 300 .
    SELECT-OPTIONS : s_lgnum1 FOR lqua-lgnum OBLIGATORY,
    s_lgtyp1 FOR lqua-lgtyp OBLIGATORY.
    SELECTION-SCREEN END OF SCREEN 300.
    START-OF-SELECTION.
    s_lgnum1[] = s_lgnum[].
    s_lgtyp1[] = s_lgtyp[].
    call SELECTION-SCREEN 300.

  • Select options numeric value with asterisk in field screen.

    Hi Guys
    I searched this solution in SDN and SAP HELP but I found the solution, so I created this post.
    I have a select options:
    SELECT-OPTIONS: s_asnum  FOR asmd-asnum
    If I insert value 3000111 , then my internal table show 000000000003000111  (ok its wright)
    If I insert value 30001*1 , then my internal table show  30001*1 (its my problem , because i NEED 0000000000030001*1 to my select work)
    How can I change my select option 30001*1  to  0000000000030001*1.
    Thanks for help.

    Hi Ronaldo,
    can't you ask your user to fill the zeros? or search by *30001*1?
    try  CONVERSION_EXIT_ALPHA_RANGE_I
    If it doesn't work you'll have to fill left zeros yourself in code.
    regards,
    Edgar

  • Select options: Restricting Value Display in Search Help Parameters

    Hello friends,
    I have following requirement.
    I have declared one select option. On that select options I'am having different search help paremeters on which I can restrict the search help values display.
    Can I specify the restriction in search help at the time of programming so that it would display only the values that follows the given restriction?
    I can ofcourse do this by AT SELECTION-SCREEN ON VALUE REQUEST, however I am trying to avoid this.
    How can I proceed?
    Points will be rewarded generously.
    Best Regards,
    Navin

    hI
    SEE THIS CODE
    **************DATA TYPES DECLARATION **********************
    TABLES: HRP1001, HRP1026, HRP1000,PCHDY.
    TYPE-POOLS SLIS.
    TYPES :BEGIN OF ST_OUTPUT,
            COUNT TYPE STRING,
            OBJID TYPE HRP1001-OBJID,
            STEXT TYPE HRP1000-STEXT,
            BEGDA TYPE HRP1000-BEGDA,
            ENDDA TYPE HRP1000-ENDDA,
            CANCRT TYPE T77CRT-CANCRT,
            AEDTM TYPE HRP1026-AEDTM,
            UNAME TYPE HRP1026-UNAME,
            LSTEXT TYPE HRP1000-STEXT,
           RINVT TYPE T777V-RINVT,
           END OF ST_OUTPUT.
    TYPES: BEGIN OF ST_HRP1000,
            OBJID TYPE HRP1001-OBJID,
            STEXT TYPE HRP1000-STEXT,
           END OF ST_HRP1000.
    TYPES : BEGIN OF ST_HRP1001,
             OTYPE TYPE HRP1001-OTYPE,
             OBJID TYPE HRP1001-OBJID,
             RELAT type hrp1001-RELAT,
             BEGDA TYPE HRP1001-BEGDA,
             ENDDA TYPE HRP1001-ENDDA,
             SCLAS TYPE HRP1001-SCLAS,
             SOBID TYPE HRP1001-SOBID,
            END OF ST_HRP1001.
    TYPES : BEGIN OF ST_HRP1026,
             OTYPE TYPE HRP1026-OTYPE,
             OBJID TYPE HRP1001-OBJID,
             AEDTM TYPE HRP1026-AEDTM,
             UNAME TYPE HRP1026-UNAME,
             DELET TYPE HRP1026-DELET,
             CANCR TYPE HRP1026-CANCR,
            END OF ST_HRP1026.
    TYPES : BEGIN OF ST_REASON,
             CANCR TYPE HRP1026-CANCR,
             CANCRT TYPE T77CRT-CANCRT,
            END OF ST_REASON.
    TYPES : BEGIN OF ST_SOBID,
             OTYPE TYPE HRP1001-OTYPE,
             OBJID TYPE HRP1001-OBJID,
             RELAT type hrp1001-OBJID,
             BEGDA TYPE HRP1001-BEGDA,
             ENDDA TYPE HRP1001-ENDDA,
             SCLAS TYPE HRP1001-SCLAS,
             SOBID TYPE HRP1001-OBJID,
            END OF ST_SOBID.
    TYPES : BEGIN OF ST_OBJID,
             OBJID TYPE HRP1001-OBJID,
            END OF ST_OBJID.
    TYPES : BEGIN OF ST_LOCATION,
             OTYPE TYPE HRP1001-OTYPE,
             OBJID TYPE HRP1001-OBJID,
             RSIGN TYPE HRP1001-RSIGN,
             RELAT TYPE HRP1001-RELAT,
             SCLAS TYPE HRP1001-SCLAS,
             SOBID TYPE HRP1001-SOBID,
            END OF ST_LOCATION.
    TYPES : BEGIN OF ST_LOCATION1,
             OTYPE TYPE HRP1001-OTYPE,
             OBJID TYPE HRP1001-OBJID,
             RSIGN TYPE HRP1001-RSIGN,
             RELAT TYPE HRP1001-RELAT,
             SCLAS TYPE HRP1001-SCLAS,
             SOBID TYPE HRP1001-OBJID,
            END OF ST_LOCATION1.
    TYPES : BEGIN OF ST_LSTEXT,
             OTYPE TYPE HRP1000-OTYPE,
             OBJID TYPE HRP1000-OBJID,
             LSTEXT TYPE HRP1000-STEXT,
            END OF ST_LSTEXT.
    TYPES : BEGIN OF ST_OBJID_SH,
             OTYPE TYPE HRP1000-OTYPE,
             OBJID TYPE HRP1000-OBJID,
            END OF ST_OBJID_SH.
    DATA : IT_OBJID_SH TYPE STANDARD TABLE OF ST_OBJID_SH.
    DATA : WA_OBJID_SH TYPE ST_OBJID_SH.
    DATA : IT_LSTEXT TYPE STANDARD TABLE OF ST_LSTEXT.              "TOS STORE THE TEXT OF COURCE LOCATION
    DATA : WA_LSTEXT TYPE ST_LSTEXT.
    DATA : IT_LOCATION TYPE STANDARD TABLE OF ST_LOCATION.          " TO STORE THE LOCATION OF COURCE
    DATA : WA_LOCATION TYPE ST_LOCATION.
    DATA : IT_LOCATION1 TYPE STANDARD TABLE OF ST_LOCATION1.        " TO CONVERT SOBID INTO OBJID FOR COURCE LOCATION
    DATA : WA_LOCATION1 TYPE ST_LOCATION1.
    DATA : IT_SOBID TYPE STANDARD TABLE OF ST_SOBID.                " TO CHANGE THE SOBID OF HRP1001 TO OBJID OF HRP1026
    DATA : WA_SOBID TYPE ST_SOBID.                                   " BY USING FOR ALL ENTRIES
    DATA : IT_REASON TYPE STANDARD TABLE OF ST_REASON.              "TO STORE T HE REASON FOR CANCELL TEXT
    DATA : WA_REASON TYPE ST_REASON.
    DATA : IT_OUTPUT TYPE STANDARD TABLE OF ST_OUTPUT.               "OUTPUT FEILDS OF REPORT.
    DATA : WA_OUTPUT TYPE ST_OUTPUT.
    DATA : IT_OUTPUT_1 TYPE STANDARD TABLE OF ST_OUTPUT.               " TEMP OUTPUT FEILDS OF REPORT.
    DATA : WA_OUTPUT_1 TYPE ST_OUTPUT.
    DATA : IT_HRP1000 TYPE STANDARD TABLE OF ST_HRP1000.             "DATA FROM HRP1000 TABLE
    DATA : WA_HRP1000 TYPE ST_HRP1000.
    DATA : IT_HRP1001 TYPE STANDARD TABLE OF ST_HRP1001.             "DATA FROM HRP1001 TABLE
    DATA : WA_HRP1001 TYPE ST_HRP1001.
    DATA : IT_HRP1026 TYPE STANDARD TABLE OF ST_HRP1026.              "DATA FROM HRP1026 TABLE
    DATA : WA_HRP1026 TYPE ST_HRP1026.
    DATA : IT_OBJID TYPE STANDARD TABLE OF ST_OBJID.                  " TO STORE THE OBJID OF HRP1001
    DATA : WA_OBJID TYPE ST_OBJID.
    DATA: WS_FCAT    TYPE SLIS_FIELDCAT_ALV .                         " FEILDCATALOG FOR ALV REPORT
    DATA: IN_FCAT    TYPE SLIS_T_FIELDCAT_ALV.
    DATA: W_LAYOUT   TYPE SLIS_LAYOUT_ALV.
    DATA : LV_COUNT TYPE I.                                           "FEILD FOR SERIAL NUMBER
    ***************************END OF DATA DECLARATION******************************************
    ************SELECTION SCREEN DESIGN************************
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    *SELECT-OPTIONS : S_OTYPE FOR HRP1001-OTYPE NO INTERVALS .
    SELECT-OPTIONS : S_OBJID FOR HRP1001-OBJID NO INTERVALS .
    SELECT-OPTIONS : DATE FOR SY-DATUM NO-EXTENSION OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK B1.
    ***********END OF SELECTION SCREEN DESIGN******************
    *****INITIALIZATION VENT TO ASIGN DEFAULT VALUES TO OTYPE
    *INITIALIZATION.
    S_OTYPE-LOW = 'D'.*
    S_OTYPE-SIGN = 'I'.*
    S_OTYPE-OPTION = 'EQ'.*
    APPEND S_OTYPE.*
    CLEAR S_OTYPE.*
    **************END OF EVENT INITIALIZATION******************
    **********VALIDATION FOR SCREEN FIELDS*********************
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_OBJID-LOW.
    IF S_OBJID IS NOT INITIAL.*
        SELECT OTYPE OBJID FROM HRP1000
                     INTO TABLE IT_OBJID_SH
                     WHERE OTYPE = 'D'.
    IF SY-SUBRC EQ 0.
    SEARCH HELP FOR QUALIFICATION.*
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
                 DDIC_STRUCTURE         = ' '*
            RETFIELD               =  'OBJID'
                 PVALKEY                = ' '*
           DYNPPROG               = SY-REPID
           DYNPNR                 = SY-DYNNR
           DYNPROFIELD            = 'S_OBJID'
                 STEPL                  = 0*
                 WINDOW_TITLE           =*
                 VALUE                  = ' '*
           VALUE_ORG              = 'S'
                 MULTIPLE_CHOICE        = ' '*
                 DISPLAY                = ' '*
                 CALLBACK_PROGRAM       = ' '*
                 CALLBACK_FORM          = ' '*
                 MARK_TAB               =*
               IMPORTING*
                 USER_RESET             =*
          TABLES
            VALUE_TAB              =  IT_OBJID_SH
                 FIELD_TAB              =*
                 RETURN_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.

  • How to Pass Select-options Single values as Parameter value to Method ?

    Hi Friends,
    I need to pass select-options values(single values) for s_arbpl to the method "process_percent_planned". Now all single values are in internal table s_arbpl-low field. I need to pass this internal table(s_arbpl-low) values to the method where i will run query based on these single values.In my below code i am passing value through variable w_arbpl. I have defined this parameter in the method.But here only one value is passed to method. I want multiple single values (in s_arbpl-low) should be passed. Please let me know how to correct code.
    Tables: crhd.
    Data: ktext type auftext,
    w_arbpl type arbpl.
    select-options: s_arbpl for crhd-arbpl.
    ktext = 'Test'
    create object obj_plan.
    call method obj_plan->process_percent_planned
    exporting
    ktext = ktext
    w_arbpl = s_arbpl-low.
    Thanks

    hi ,
    when you want to pass  S_ARBPL AS PARAMETER IN SELEC OPTION
    ARBPL SUCH AS  
       WIN002
      WIN003
      WIN004
      WIN005
      WIN006
      WIN007
    IN MULTIPLE SELECTION  S_ARBPL
    THEN
    USE  
    Tables: crhd.
    Data: ktext type auftext,
    w_arbpl type arbpl.
    select-options: s_arbpl for crhd-arbpl.
    ktext = 'Test'
    LOOP AT S_ARBPL .
    create object obj_plan.
    call method obj_plan->process_percent_planned
    exporting
    ktext = ktext
    w_arbpl = s_arbpl-low.
    ENDLOOP.
    REGARDS
    dEEPAK .
       THEN SELECT THAT
    call method obj_plan->process_percent_planned
    exporting
    ktext = ktext
    w_arbpl = s_arbpl-low.

  • Select options default value

    Hi,
    Kindly assist me on how to set a default value for dynamically created Select options.
    I am coding the below code snippet for default value and it's working but when I remove the default value for the select option on portal screen ...I encounter a dump stating line type does not match with internal table.
    wd_this->m_wd_select_options = wd_this->wd_cpifc_wdr_select_options_e( ).
    init the select screen
      wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ).
        lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'STRING' ).
        assign lt_range_table->* to <range_table>.
        insert initial line into table <range_table> assigning <range_table_line>.
        assign component 'SIGN'   of structure <range_table_line> to <sign>.
       assign component 'OPTION' of structure <range_table_line> to <option>.
        assign component 'LOW'    of structure <range_table_line> to <low>.
        assign component 'HIGH'   of structure <range_table_line> to <high>.
        <sign>   = 'I'.
        <option> = 'EQ'.
        <low>    = 'ZA'.
        clear <high>.
        wd_this->m_handler->set_range_table_of_sel_field(
          i_id          = 'DY_PARVW'
         it_range_table     = lt_range_table ).
    Points will be rewarded!!!!

    Hi.
    I use the following code (snippet) to add default values:
    lt_range = lr_selop->create_range_table(
                                        i_typename = 'VKORG' ).
      lr_selop->add_selection_field(
                         i_id = 'VKORG'
                         i_within_block = lv_id_gdata
                         i_no_intervals = abap_true
                         i_no_extension = abap_true
                         i_obligatory = abap_true
                         i_read_only = abap_true
                         it_result = lt_range
                         i_value_help_type = if_wd_value_help_handler=>co_prefix_none ).
    DATA:
            lr_user        TYPE REF TO zcl_user,
            lr_param       TYPE REF TO data,
            lr_headerline  TYPE REF TO data.
      DATA:
            ls_tmprange    TYPE rsparams.
      FIELD-SYMBOLS:
                     <fs_param>      TYPE ANY,
                     <fs_range>      TYPE ANY,
                     <fs_rangetable> TYPE table.
      lr_user = zcl_user=>get_instance( ).
      lr_param  = lr_user->get_usermaster_param(
         param_name = param_name
      ASSIGN lr_param->* TO <fs_param>.
      MOVE <fs_param> TO ls_tmprange-low.
      IF ls_tmprange-low IS NOT INITIAL.
        ls_tmprange-sign = zcl_salsa_assistance=>userparam_sign_default.
        ls_tmprange-option = zcl_salsa_assistance=>userparam_option_default.
        ASSIGN lr_range->* TO <fs_rangetable>.
        CREATE DATA lr_headerline LIKE LINE OF  <fs_rangetable>.
        ASSIGN lr_headerline->* TO <fs_range>.
        MOVE-CORRESPONDING  ls_tmprange TO <fs_range>.
        APPEND <fs_range> TO <fs_rangetable>.
      ENDIF.
    lr_user->get_usermaster_param( param_name = param_name ) just returns a data reference to a parameter value.
    After assigning this value to the range table i do not have to call set_range_table_of_sel_field cause lr_range is already a reference to the range table.
    This works well and I can remove the default value without getting dumps.
    Cheers,
    Sascha

  • Select-option default value???

    DATA: gsber1         like csks-gsber.
    select distinct GSBER
      into (gsber1)
      from csks
    where kostl = sch_kostl.
    endselect.
      SELECT-OPTIONS : gsber    FOR csks-gsber DEFAULT gsber1.
    why not input value gsber1?

    Pung,
    Pls. see the docs. below.
    To assign default values to a selection criterion, you use the following syntax:
    SELECT-OPTIONS <seltab> FOR <f> DEFAULT <g> [TO <h>] ....
    Default values <g> and <h> can be literals or field names. You can only use fields that contain a value when the program is started. These fields include several predefined data objects.
    For each SELECT-OPTIONS statement, you can specify only one DEFAULT addition. This means that you can fill only the first row of selection table <seltab> with default values. To fill more rows with default values, the selection table must be processed before the selection screen is called, for example, during the AT SELECTION-SCREEN -OUTPUT event.
    You use the DEFAULT addition as follows to address the individual components of the first row:
    To fill only the LOW field (single field comparison), use:
    ........DEFAULT <g>.
    To fill the LOW and HIGH fields (range selection), use:
    ........DEFAULT <g> TO <h>.
    To fill the OPTION field, use:
    ........DEFAULT <g> [to <h>] OPTION <op>.
    For single field comparisons, <op> can be EQ, NE, GE, GT, LE, LT, CP, or NP. The default value is EQ. For range selections, <op> can be BT or NB. The default value is BT.
    To fill the SIGN field, use:
    ........DEFAULT <g> [to <h>] [OPTION <op>] SIGN <s>.
    The value of <s> can be I or E. The default value is I.
    The input fields of the selection criterion are filled with the default values. The user can accept or change these values.
    REPORT DEMO.
    DATA WA_SPFLI TYPE SPFLI.
    SELECT-OPTIONS AIRLINE FOR WA_SPFLI-CARRID
                   DEFAULT 'AA'
                        TO 'LH'
                    OPTION  NB
                      SIGN  I.
    Don't forget ot reward if useful...

Maybe you are looking for

  • Maintain runtime configuration dev/prod

    I have a mapping (XSLT) which needs to fill in user and password for an external system. Actually, this XSLT creates a multipart document which needs to contain that user/pwd information. Now when I transport that mapping to production, the user/pwd

  • Replacing Assets

    Here's the Q, I have an existing Enc Project. I changed the video in Premiere with some Soundbooth updates and new audio files for the same video. It will not allow me to store over the orig (unedited avi). SO my chapter links and asset assignments a

  • Is CAF in lastest Sneak Preview (SP16)

    Am I correct in my observation that CAF is not included in the latest Sneak Preview? I can't find the roles, etc. that were in the previous Sneak Preview (SP15). Thanks

  • Minimum and Maximum Version of Red Hat to install BI Publisher 11.1.1.5

    Hi, If we want to install BI Publisher 11.1.1.1.5 on Red Hat, what would be the minumum and maximum version of the Red Hat required for successful installation? In case we have Red Hat version 5.8, will BI Publisher 11.1.1.5 be compatible.

  • Any body know this type of websites in java

    Hi i am new in java This website is very good: this is java swing tutor with examples: http://www.java-swing-tutorial.com is very useful to understand easily, explanation with examples, any body know this type any topic in java tell me.