cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Select Options

Former Member
0 Kudos

Dear Experts,

I used component wdr_select_options to achieve select options functionality, But it displaying only one field as per my requirement user expecting both low & high fields.

Can you guide for 5 select options whether i have use t times the component at my component level.

And also could please guide me how to use select options at code level.

Thanks & Regards,

Siva Mandapudi.

Edited by: SIVAMANDAPUDI on Jul 18, 2011 6:39 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Experts,

For add_selection_field of component made i_no_intervals = abap_false. So now im getting low & high. Could you please guide on my remaining queries.

Thanks & Regards,

Siva Mandapudi.

Former Member
0 Kudos

Dear Experts,

By repeating create_range_table & dd_selection_field i'm able to create for as many. Can you guide how can i assign these select options fields to node.

Thanks a lot.

Regards,

Siva Mndapudi.

Former Member
0 Kudos

Dear Experts,

With the help of below links i developed my application.

/people/rich.heilman2/blog/2005/12/20/using-select-options-in-a-web-dynproabap-application

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40fa97c0-3e7d-2e10-aaa4-93fa1fcc6...

But below dump is coming

Method: ONACTIONSEARCH_SUPPLIER of program /1BCWDY/ASOQYLTDDTDKX4WE6BIW==CP

Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/ASOQYLTDDTDKX4WE6BIW==CP

Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP

Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP

Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP

Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP

Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP

Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP

Method: IF_WDR_RUNTIME~EXECUTE of program CL_WDR_MAIN_TASK==============CP

Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP

when i call

rt_SUPPLIERNO = wd_this->m_handler->get_range_table_of_sel_field(

i_id = 'ID_SNO' ).

here rt_supplierno type ref to data and ID_SNO is id of select options.

Please suggest.

Thanks & Regards,

Siva Mandapudi.

saravanan_narayanan
Active Contributor
0 Kudos

Hello Siva,

you need to tell us more about the dump.. like the exception message and source code (line) in which the dump occured etc... you can get these details from ST22.

BR, Saravanan

Former Member
0 Kudos

Hi Saravan,

Please find below details.

The exception is:

The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not

caught in

procedure "ONACTIONSEARCH_SUPPLIER" "(METHOD)", nor was it propagated by a

RAISING clause.

code:

*************************************************************

  • DATA FOR WORKING WITH SELECT OPTIONS

*************************************************************

data: rt_SUPPLIERNO type ref to data.

data: rt_SUPPLIERNAME type ref to data.

  • field-symbols: <fs_SUPPLIERNO> type table,

  • <fs_SUPPLIERNAME> type table.

TYPES: BEGIN OF T_SUPPLIERNO,

SIGN(1),

OPTION(2),

LOW TYPE /SAPAPO/LOC,

HIGH TYPE /SAPAPO/LOC,

END OF T_SUPPLIERNO.

TYPES: BEGIN OF T_SUPPLIERNAME,

SIGN(1),

OPTION(2),

LOW TYPE /SAPAPO/LOC_DESCR40,

HIGH TYPE /SAPAPO/LOC_DESCR40,

END OF T_SUPPLIERNAME.

DATA: WA_SUPPLIERNO TYPE T_SUPPLIERNO, IT_SUPPLIERNO TYPE TABLE OF T_SUPPLIERNO,

WA_SUPPLIERNAME TYPE T_SUPPLIERNAME, IT_SUPPLIERNAME TYPE TABLE OF T_SUPPLIERNAME.

  • Retrieve the data from the select option

rt_SUPPLIERNO = wd_this->m_handler->get_range_table_of_sel_field(

i_id = 'ID_SNO' ).

dump raising when get_range_table_of_sel_field is called.

Thanks a lot.

Regards

Siva Mandapudi.

saravanan_narayanan
Active Contributor
0 Kudos

check whether wd_this->m_handler is set. but what I understood from the exception is you are trying to assign something which is initial.

in the TCODE ST22, you will get the exact line where the dump occured. this will help you in analysing the issue.

BR, Saravanan

Former Member
0 Kudos

Hi Saravanan,

The issue was happened due component use at my component level is 'SELOPT' and as per blog code was written for component use at their component level is 'SELECT_OPTIONS'.

Thanks a lot for the guidance. Rewarded basic points.

Regards,

Siva Mandapudi.