cancel
Showing results for 
Search instead for 
Did you mean: 

Validation for select-options

Former Member
0 Kudos

Hi Experts,

I have one requirement, in My application i designed selection-screen for VBELN field, i used WDR_SELECT_OPTIONS in my component , i want to validate VBELN field , can any one help me , thanks

Srini

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi srini ,

in Initialized the select option component and crete range table in the Method do init

in the event handler method get the values of select oftion using get range table method for checking vbeln

referr the belo piece of code .

method  search .
  FIELD-SYMBOLS: <fs_carrid> TYPE table.
  rt_carrid = wd_this->m_handler->get_range_table_of_sel_field( i_id = 'S_CARR_ID' ).
  ASSIGN rt_carrid->* TO <fs_carrid>.
  CLEAR isflight.
  REFRESH isflight.
  SELECT * INTO CORRESPONDING FIELDS OF TABLE isflight FROM sflight
                       WHERE carrid IN <fs_carrid>.
if sy-subrc eq 0 .
return = abap_true . 
endif . 
endmethod .

regards

chinnaiya P

Former Member
0 Kudos

HAllo Sirini,

This has been covered and answered many times.

see thread like [|]

Do a search on google like this site:sdn.sap.com validate VBELN

Former Member
0 Kudos

Hi,

U would have written code in some instance method which ll be triggering for getting the entries from the select-options..

In that before using the SELECT stmt, do the validation for that Fieldsymbol.