cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro Select options sign,options field not cleared

Former Member
0 Kudos

Hi,

I have a Webdynpro report with selection screen with select-option fields and ALV output. This report works perfectly when it is executed for first time. I have a back to selection screen button in ALV output. When I click on this , I get the first screen using outbound plug which is connected to inbound plug of first screen.

But , when I execute the report after coming back from ALV output and removing some select-option input values, it gives wrong output. When I debugged,it is found that Sign and option values in the selection screen is not refreshed from screen and program reads the tables with a value 'I EQ space'. How can I resolve this issue ? I don't want to clear all selection screen field values when coming back from ALV screen. How can I refresh the select-option  SIGN and OPTION fields from screen ?

Thanks in advance ,

Joby

Accepted Solutions (0)

Answers (10)

Answers (10)

Former Member
0 Kudos

Hi Varughese,

Did you tried this code?

Meenachi.R

Former Member
0 Kudos

Hi Varughese,

Write this code in back button. it will clear Select Options.

Regards,

Meenachi.R

Former Member
0 Kudos

Hi Varughese,

Here is the sample code to clear Select options

DATA lo_componentinterface TYPE REF TO if_wd_component_usage.
DATA lo_interfacecontroller TYPE REF TO iwci_wdr_select_options .
DATA lo_r_helper_class TYPE REF TO if_wd_select_options.

lo_componentinterface = wd_this->wd_cpuse_ZSELOPT( ).

lo_interfacecontroller =   wd_this->wd_cpifc_ZSELOPT( ).

lo_r_helper_class = lo_interfacecontroller->init_selection_screen( ).

CALL METHOD lo_r_helper_class->reset_all_selection_fields.

Thanks & Regards,

Meenachi.R

Former Member
0 Kudos

Hi All,

Any solution for my issue on SIGN OPTION refresh of select option ?

Thanks,

Varughese V John

Former Member
0 Kudos

Store the selection fields in attributes or context.

second time you can compare the old values and new values, so that, you can clear when space is entered.

before executing, update context with recent selection values

Former Member
0 Kudos

Hi All,

All these are workaround to resolve the issue. I would like to know the root cause of the issue ? Is it a known issue ? or am I doing something wrong ?

Request your valuable feedback on this issue.

Former Member
0 Kudos

HI Varughese,

So when you come back from the ALV , you cleared some select options , still the sign and option remains with empty low and high values right?

IF so please write code in On_action results or some thing relavent with logic

get the selction options table and loop and check if there are any records with low and high as null but the option and sin are present , if you find so please delete the record and at last attach the table to the node again.

Former Member
0 Kudos

But there is a chance that user want to search with value 'space' . How can I know user has really wanted to search with value space ?

Thanks,

Varughese

Former Member
0 Kudos

Raise a pop up asking user if empty value space is available in Select options.

If they agree keep it other wise remove it..

Former Member
0 Kudos

HI,

Please use

data ref_handler: type ref IF_WD_SELECT_OPTIONS

ref_handler->RESET_SELECTION_FIELD

Former Member
0 Kudos

I want to keep the selectoin screen field values when I come back to selection screen.RESET_SELECTION_FIELD will clear the fields

Thanks,

Varughese

Former Member
0 Kudos

Hi All,

Can anybody help me on this ?

Thanks,

Varughese John

former_member210266
Active Participant
0 Kudos

Hi

Try RESET_SELECTION_FIELD of IF_WD_SELECT_OPTIONS.

It will reset the range table for the selection field.

Regards

Swati

Former Member
0 Kudos

Hi Swati,

Thanks for the reply.

RESET_SELECTION_FIELD will clear the field, but I want to keep the values entered in the selection screen for the first run when come back from second screen.

Regards,

guillaume-hrc
Active Contributor
0 Kudos

Hi,

Couldn't you simply invalidate the context?

Best regards,

Guillaume

Former Member
0 Kudos

This will clear all the fields,correct ? I want OPTIONS,SIGN fields to be updated properly.