Code help small, selection option

Hi guys,
I'm trying to code some small ABAp code but getting some short dump pls take a look and let me knwo what wrong I'm doing.
Corrected code would be much apprciated.
Requiremnet.
My requiremnet is to create a report which takes week as a parameter either one or many and I want to assign that user entry to some function module which accespts only ranges.
I designed code no errors but while executing it is throwing short dump:
Code
Data: week_wa TYPE /bic/pzweek-/BIC/zWEEK.
selection-screen begin of block main with frame .
*Parameters: week TYPE week_tab-/BIC/WEEK.
SELECT-OPTIONS week for week_wa.
selection-screen end of block main.
AT SELECTION-SCREEN OUTPUT.
Entry for FISCALWEEK = SELECTION OPTIONS
CLEAR LT_TAB.
*WA_TAB-SIGN = 'I'.
*WA_TAB-OPTION = 'EQ'.
*WA_TAB-LOW = week-low.
*WA_TAB-KEYFL = 'X'.
WA_TAB-SIGN = week-sign.
WA_TAB-OPTION = week-option.
WA_TAB-LOW = week-low.
*WA_TAB-HIGH = week-HIGH.
WA_TAB-KEYFL = 'X'.
APPEND WA_TAB TO LT_TAB.
L_THX_SEL-IOBJNM = 'ZWEEK'.
L_THX_SEL-T_RANGE[] = LT_TAB[].
INSERT L_THX_SEL INTO TABLE LT_THX_SEL.
assigning LT_THK_SEL to FM.
Pls advise what worng I'm passing to this Function module
Thanks
R

> CALL FUNCTION 'RSDRD_SEL_DELETION'
>   EXPORTING
>     I_DATATARGET            = '0sd_C03'
>     I_THX_SEL               = LT_THX_SEL
>     I_AUTHORITY_CHECK       = 'X'
>     I_THRESHOLD             = '1.0000E-01'
>     I_MODE                  = 'C'
>     I_NO_LOGGING            = ''
>     I_PARALLEL_DEGREE       = 1
>     I_NO_COMMIT             = ''
>     I_WORK_ON_PARTITIONS    = ''
>     I_REBUILD_BIA           = ''
>     I_WRITE_APPLICATION_LOG = 'X'
>   CHANGING
>     C_T_MSG                 = L_T_MSG
>   EXCEPTIONS
>        X_MESSAGE                     = 1
>       INHERITED_ERROR               = 2
>       INVALID_TYPE                  = 3
>       OTHERS                        = 4.      .
Catch your exceptions in FM and check the L_T_MSG to find out the message text...

Similar Messages

  • OVS Help in Select Options-Text to be Shown and Code to be captured

    Hello Experts,
    I am using Select options in web dynpro abap.
    On a particular View container i have added a selection field using ADD_SELECTION_FIELD which has an OVS help to it.
    The selection field is of type CODE.
    And on click of a button i am reading the select option fields using GET_RANGE_TABLE_OF_SEL_FIELD and assigining this to a
    field symbol which inturn is being set to an attribute.
    My requirement is to show the TEXT to the user and send the CODE to the method which is called
    when the button is clicked and a table is populated.
    Normally we can keep two attributes one for TEXT and the other for CODE but for Select options i am not very sure how this can be achieved.
    Because in select options we are reading the values present on the select option field and there may be multiple values.
    Please guide me through this.
    Thanks in Advance,
    Shravan

    Hello Shravan,
    This can be easily achieved if you convert the selection field to dropdown.
    Create a valueset containing the list of valid values and then pass this to the ADD_SELECTION_FIELD method
    "Creating valueset
    DATA lt_valueset TYPE wdy_key_value_table.
    DATA ls_valueset LIKE LINE OF lt_valueset.
      ls_valueset-key = 'EN'.
      ls_valueset-value = 'English'.
      APPEND ls_valueset TO lt_valueset.
    "Creating selection field as Dropdown
    lr_helper->add_selection_field( i_id = <ID>
                                                       it_result = lt_range
                                                       i_as_dropdown = abap_true
                                                      it_value_set = lt_valueset ).
    BR, Saravanan

  • Can i have html code for date select options (SEARCH HELP)

    Hi frinds,
    I have a BSP Page with input as date.
    Can i have html code for date select options (SEARCH HELP)
    Moosa

    Hi
    Please find the sample code below.
    FROM DATE
          <htmlb:inputField id        = "dd"
                            width     = "45%"
                            type      = "DATE"
                            showHelp  = "X" <- Search help
                            alignment = "CENTER"
                            maxlength = "10"
                            disabled  = "TRUE"
                            value     = "<%= w_FROMDATE %>" />
    TO DATE
          <htmlb:inputField id        = "dd"
                            width     = "45%"
                            type      = "DATE"
                            showHelp  = "X"
                            alignment = "CENTER"
                            maxlength = "10"
                            disabled  = "TRUE"                      
    value     = "<%= w_TODATE %>" />
    Thanks
    kalyan

  • How to created Freely Programmed F4 help in Select Options

    hi,all
       I have a probelm about how to created a Freely Programmed F4 help in Select Options,and put help value into select options field
      Thanks and Best Regards

    Hi Haung,
    You need to use FREE_HELP not the component name.
    Modify you code as below:
       LT_RANGE_TABLE_V = wd_this->m_handler_V->create_range_table( 'ZCYPHDATE' ).
      wd_this->M_HANDLER_V->add_selection_field(
          i_id                         = 'ZCYPHDATE'
          it_result                    = LT_RANGE_TABLE_V
          i_value_help_type            = if_wd_value_help_handler=>CO_PREFIX_APPLDEV
          i_value_help_id              = 'FREE_HELP'
          i_no_intervals               = abap_false ).
    Hope this helps you.
    Regards,
    Rama

  • How to get calender in f4 help for select options in module pool (URGENT)

    Hi All,
    how to get calender in f4 help for select options in module pool
    Please help .
    Thanx in advance,
    amruta

    Hi Amruta,
    First of all, you can not create select-options directly in module pool.
    For creating <b>select-option is dialog prog</b> follow these steps:
    1. create your selection screen model as subscreen by:
    SELECTION-SCREEN BEGIN OF SCREEN 2000 AS SUBSCREEN.
    PARAMETRS: P_MATNR LIKE MARA-MATNR.
    SELECT-OPTIONS: S_BISMAT FOR MARA-BISMAT.
    SELECTION-SCREEN END OF SCREEN 2000.
    2. create a screen ( example 100 ) in your module-pool dedicated for selection-screen. on this screen layout sketch a sub-screen name like subscree_2000.
    3. write this bit of code in PBO and PAI of the screen 100;
    CALL SUBSCREEN SUBSCREEN_2000.
    4. include this code in PBO:
    INCLUDING SY-REPID '2000'
    6. write user_command of PAI, call screen which is going to executable after selection-screen.
    5. create a transcation for this dialog module pool with screen 100.
    6. execute this transaction and you can see it's behaving like cool with select-options.
    After that in [bprocee on value-request]</b>, use F4_DATE for both from and to option field.
    Hope it will solve the problem.
    Regards
    Krishnendu

  • Applying stadard search help to SELECT-OPTIONS

    applying stadard search help to SELECT-OPTIONS
    i have the below code in the selection screen:
    SELECT-OPTIONS : so_stain FOR gv_stai1
                                  MATCHCODE OBJECT ZSTA,
                     so_staex FOR gv_stai1
                                  MATCHCODE OBJECT ZSTA.
    where ZSTA is the search help defined in the data dictionary which is the copy on standard SAP search help..
    but this is not working..:(  when i run the program and click on the
    F4 help for these two fields i get no out put..
    can any one suggest me to search help to select-options..

    Hi,
    u can see this example code for f4 help on the select-option,
    DATA: li_ret_tab TYPE STANDARD TABLE OF ddshretval,
            lws_retfield TYPE dfies-fieldname.
      DATA : wa_ret_tab LIKE LINE OF li_ret_tab.
    **- Get the device numbers
      SELECT serge FROM equi
             INTO TABLE i_help1
             WHERE sparte EQ c_51.
      IF sy-subrc EQ 0.
        lws_retfield = text-030.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield        = s_device
            dynpprog        = sy-repid
            dynpnr          = c_dynpnr
            dynprofield     = s_device
            value_org       = 'S'
          TABLES
            value_tab       = i_help1
          EXCEPTIONS
            parameter_error = 1
            no_values_found = 2
            OTHERS          = 3.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    Regards,
    kk.

  • Problem on Search Help  for select-option

    Hi,
    Iam working on a search help for select-option,
    is there a way to incorporate select-all or multiple
    selection on this?
    Thanks!

    Hi catherine,
    1. Just copy paste this program.
      (It will POPULATE the SELECT-OPTION,
       based upon
       MULTIPLE Selection,
       selected by the user,
       in the  help provided thru F4IF_INT_TABLE_VALUE_REQUEST.)
    2. Eg. is for BUKRS (company code)
    3.
    REPORT ABC.
    TABLES : T001.
    DATA : ITAB LIKE TABLE OF T001 WITH HEADER LINE.
    DATA : RETURN LIKE TABLE OF DDSHRETVAL WITH HEADER LINE.
    SELECT-OPTIONS : BUKRS FOR T001-BUKRS.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR BUKRS-LOW.
    PERFORM MYPOPULATE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR BUKRS-HIGH.
    PERFORM MYPOPULATE.
    FORM MYPOPULATE.
      REFRESH ITAB.
      SELECT * FROM T001 INTO TABLE ITAB.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BUKRS'
          dynprofield     = 'BUKRS'
          dynpprog        = sy-REPID
          dynpnr          = sy-dynnr
          multiple_choice = 'X'
          value_org       = 'S'
        TABLES
          value_tab       = ITAB
          return_tab      = return.
    IF RETURN[] IS NOT INITIAL.
    REFRESH BUKRS.
    CLEAR BUKRS.
      LOOP AT RETURN.
        BUKRS-SIGN = 'I'.
        BUKRS-OPTION = 'EQ'.
        BUKRS-LOW = RETURN-FIELDVAL.
        BUKRS-HIGH = RETURN-FIELDVAL.
        APPEND BUKRS.
      ENDLOOP.
    ENDIF.
    ENDFORM.
    regards,
    amit m.

  • Can i assign a collective srch help for select option in list display

    can i assign a collective srch help for select option in list display

    Hi,
    Yes ,u can assign a collective search help for select-option in list display.
    Eg:
    Define your select option like this
    SELECT-OPTIONS: s_vbeln FOR likp-vbeln MATCHCODE OBJECT vmva.
    Regards,
    Shiva.

  • F4 help for select options based on parameter value

    hi all,
    I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
    Regard's,
    Girija
    Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
    Edited by: Vinod Kumar on May 17, 2011 1:36 PM

    hi all,
    I need a help to create an F4 help for select options for object id based on parameter value of object type, I mean once an object type is given the f4 help should contain object id's only of that type for each option.
    Regard's,
    Girija
    Moderator Message : Duplicate post locked. Continue with [f4 help for select options based on parameter value |f4 help for select options based on parameter value;.
    Edited by: Vinod Kumar on May 17, 2011 1:36 PM

  • Freely Programed Help for select-option field

    Hi,
    how can i set freely programmed help for select option field, i mean while adding selection field what are the parameters that are important for freely programmed help.
    i have implemented iwd_value_help in one component comp1 and declared the usage of comp1 in comp2 where i actually defined the usage of select-option component.
    i used parameter   i_value_help_type = if_wd_value_help_handler=>co_prefix_appldev while adding selection field, however when i presss F4 icon, the following message is coming
    View WD_VALUE_HELP does not exist within the component WDR_SELECT_OPTIONS
    Please suggest where i am doing wrong??
    Edited by: kranthi kumar on Dec 29, 2010 6:19 PM

    >
    kranthi kumar wrote:
    > Hi,
    >
    > how can i set freely programmed help for select option field, i mean while adding selection field what are the parameters that are important for freely programmed help.
    >
    > i have implemented iwd_value_help in one component comp1 and declared the usage of comp1 in comp2 where i actually defined the usage of select-option component.
    >
    > i used parameter   i_value_help_type = if_wd_value_help_handler=>co_prefix_appldev while adding selection field, however when i presss F4 icon, the following message is coming
    >
    > View WD_VALUE_HELP does not exist within the component WDR_SELECT_OPTIONS
    >
    > Please suggest where i am doing wrong??
    >
    > Edited by: kranthi kumar on Dec 29, 2010 6:19 PM
    Hi Kranthi,
    Please help me to understand your design.
    Why would you like to create a Freely programmed value help for select-option?. why not use wdr_select_option directly ?

  • F4 help in select option

    Hi All,
    We have created a select option for a field of our database table. This field has a value range in its domain. For Example
    Fix Val    Short Description
    01           INR
    02           US
    03           EUR
    When i press the f4 help of select option, am able to see both the number and the description in the F4 help. But when i select a value, it is only displaying the fixed value (01) in the select option field.
    But i want the Short Description to be displayed instead of the fixed value.
    Please tell me how to proceed.
    Thanks in advance.

    Hi,
    When there are any values in the domain range it considers only the fixed values (keys)
    to get the description what you can do is:
    1.create a your own f4 help with  the  field description.
    2.in the  select options you can give the name of F4 help when you are populating the selection field.
    wd_this->m_handle->add_selection_field(
                            i_description = 'Candidate Profit Center'
                            i_id = '/MRSS/T_RMOR_PROF_CENTER'
                             *i_value_help_type = if_wd_value_help_handler=>co_prefix_searchhelp*
                            *i_value_help_id = '/MRSS/SH_RM_PC_GROUP'*    
                               it_result = lt_range_table
                            i_read_only = read_only ).
    Priya

  • Help on select options.

    Hi gurus!!
    I have a report where in i am putting the values in select-options. but yj eproblem i have is when i am not putting any values i am getting the correct output.
    but with the same data i am putting the values in low or high i am not getting any data..
    so i think i need to put all the entrioes of the select option in an internal table or ranges i dont know and then we give some code like
    ranges : ra_stotal for ztsd120-zlow.
    ra_stotal-sign = 'I'.
    ra_stotal-option = 'BT'.
    ra_stotal-low = zlow-low.
    ra_stotal-high = zlow-high.
    append ra_stotal.
    clear ra_stotal.
    Can anyone tell me if this is what i got to do if so how?
    or is there some other way out?

    Hi Mona,
    Please check the below code in BOLD letter....
    I guess you are having a problem in SELECT-OPTIONS because ...might be u r using EQ in where condition of your select query. Whenever u r using SELECT-OPTIONS, it should be "IN" in the where condition.
    Eg:-  SELECT  <field names>
               FROM MARA
               INTO TABLE  <it_tablename>
              WHERE matnr IN  s_matnr.
    Reward points for helpful answers.
    Regards,
    HK.

  • Serach help in Select-option in WD ABAP

    Hi Folks,
    I am using WDR_SELECT_OPTIONS reusable component in my Component.  I want to attach customized search help particular fild while creating select-option using
    wd_this->m_handler->add_selection_field(
                 i_id        = 'IWERK'
                 it_result   = lt_range_table
                 i_read_only = read_only ).
    Can anyone explian how can I attach search help here.
    Regards,
    Vishal.

    Hi Vishal,
    If its a search help, use the following code:
    lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'S_PLANETYE' ).
    wd_this->m_handler->add_selection_field(
    i_id = 'S_PLANETYE'
    it_result = lt_range_table
    i_read_only = read_only
    I_VALUE_HELP_TYPE = 'SEARCHHELP'
    i_value_help_id = 'Z_SAPLANE' ).
    In this example, 'Z_SAPLANE' is the dictionary search help.
    This will solve your problem
    For further details, goto interface IF_WD_VALUE_HELP_HANDLER to get a list of values you can supply to parameter I_VALUE_HELP_TYPE.
    This is similar to what you do with a context, similar to the options you get in the dropdown for Input Help property.
    Regards,
    Chitrali

  • Personalised Value Help in Select-Option field WD ABAP

    Hi
    I would like to know how I could provide the user with generic value help. I am using the Select Options in a Web Dynpro(ABAP) Application.
    Regards
    Faaiez

    Hi
    The key word here is "generic value help". This means the values that I want to fill the drop down with changes all the time based on various criteria. I need to fill the help values within the ABAP code based on the values in internal tables.
    Regards
    Faaiez

  • F4 Help for select-options.

    Hi  Experts,
    I need to use F4 help for a select - options field from a particular table.I have written the below code and it worked well.
    FORM sub_show_help.
      SELECT bukrs
       FROM zfica_accurate
        INTO TABLE gt_accurate.
        delete ADJACENT DUPLICATES FROM gt_accurate.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BUKRS'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
          dynprofield     = 'S_CMCODE'
          window_title    = 'COMPANY CODE'
          value_org       = 'S'
          multiple_choice = 'X'
        TABLES
          value_tab       = gt_accurate
          return_tab      = gt_return.
      s_cmcode-sign    = 'I'.
      s_cmcode-option  = 'EQ'.
      LOOP AT gt_return INTO gw_return .
        s_cmcode-low = gw_return-fieldval.
        APPEND s_cmcode.
      ENDLOOP.
      READ TABLE s_cmcode INDEX 1.
      IF sy-subrc = 0.
        gw_dynpread-fieldname  = text-018.
        gw_dynpread-fieldvalue = s_cmcode-low.
        APPEND gw_dynpread TO gt_dynpread.
    UPDATE THE SCREEN FIELD VALUES
        CALL FUNCTION 'DYNP_VALUES_UPDATE'
          EXPORTING
            dyname               = sy-repid
            dynumb               = sy-dynnr
          TABLES
            dynpfields           = gt_dynpread
          EXCEPTIONS
            invalid_abapworkarea = 1
            invalid_dynprofield  = 2
            invalid_dynproname   = 3
            invalid_dynpronummer = 4
            invalid_request      = 5
            no_fielddescription  = 6
            undefind_error       = 7
            OTHERS               = 8.
      ENDIF.
      IF sy-subrc <> 0.
        MESSAGE i003.
      ENDIF.
    The problem is , I need to create a new type for s_cmcode(select-option ) field with the same structure as the select-option and the code is as below. I have created an internal table gt_sfield similar to s_cmcode . I have replaced s_cmcode with gt_sfield but the below code is not working. Its the same as the above program but its not showing up the values in the field.Could anyone please help me.
    fORM SUB_SHOW_HELP.
      SELECT BUKRS
       FROM ZFICA_ACCURATE
        INTO TABLE GT_ACCURATE.
    gt_sfield[] = s_cmcode[].
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD        = 'BUKRS'
          DYNPPROG        = SY-REPID
          DYNPNR          = SY-DYNNR
          WINDOW_TITLE    = 'COMPANY CODE'
          VALUE_ORG       = 'S'
          MULTIPLE_CHOICE = 'X'
        TABLES
          VALUE_TAB       = GT_ACCURATE
          RETURN_TAB      = GT_RETURN.
      LOOP AT GT_RETURN INTO gw_return.
          gw_sfield-SIGN    = 'I'.
          gw_sfield-OPTION  = 'EQ'.
        MOve gw_return-fieldval to gw_sfield-low.
        APPEND gw_sfield to gt_sfield.
    ENDLOOP.
      READ TABLE gt_sfield INDEX 1 INTO gw_sfield .
      IF SY-SUBRC = 0.
        gw_dynpread-fieldname = 'S_CMCODE'.
        move  gw_sfield-low to gw_dynpread-fieldvalue.
        APPEND GW_DYNPREAD TO GT_DYNPREAD.
    UPDATE THE SCREEN FIELD VALUES
        CALL FUNCTION 'DYNP_VALUES_UPDATE'
          EXPORTING
            DYNAME               = SY-REPID
            DYNUMB               = SY-DYNNR
          TABLES
            DYNPFIELDS           = GT_DYNPREAD
          EXCEPTIONS
            INVALID_ABAPWORKAREA = 1
            INVALID_DYNPROFIELD  = 2
            INVALID_DYNPRONAME   = 3
            INVALID_DYNPRONUMMER = 4
            INVALID_REQUEST      = 5
            NO_FIELDDESCRIPTION  = 6
            UNDEFIND_ERROR       = 7
            OTHERS               = 8.
      ENDIF.
      IF SY-SUBRC <> 0.
        MESSAGE I003.
      ENDIF.
    ENDFORM.

    Hi,
    The fucntion module 'DYNP_VALUES_UPDATE' should be used only for updating the screen field values. In your case you are updating the internal table using this function module.
    Thanks
    Pavan

Maybe you are looking for

  • Fetching Null Value from table

    I have a table where I am want to findout the total number of product (count of product) based on the ProdName. I have the following table with two columns: create table newproduct (prodid integer, prodname varchar(30)); Insert into newproduct values

  • Automatic update loop in rpm version

    When I install the recent rpm version of sqldeveloper 1.1.2.25.79-1 and start it, it immediately says that there is an update version 1.1.2.2579 is available. I suspect that the missing decimal in the version number is the culprit. In any case, when

  • One handling unit wrongly updated to the delivery out put

    Hi gurus,          Internal handling unit number is showing delivery document number in table *vekp* but real handling unit contains no delivery document number and shipping point. Could any one guide me how to find out the delivery document of this

  • Look for a PLC module !

    Hi, Anyone knows that there is a PLC module like in NI products family?  I want the control module in a mine to control the underground traffic lamps, hope the module to have analogure and digital terminal, and can determine if the lamp is working. A

  • Workspace2.1  configure directory in wizard

    hi i have deployed workspace 2.1 but in wizard (i have attached) inthis part i get error and can nt complete please help me 10.0.3.203 is my domain ip Best regards Babak