on 05-26-2013 10:38 AM
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
Hi Varughese,
Did you tried this code?
Meenachi.R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Varughese,
Write this code in back button. it will clear Select Options.
Regards,
Meenachi.R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Any solution for my issue on SIGN OPTION refresh of select option ?
Thanks,
Varughese V John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Please use
data ref_handler: type ref IF_WD_SELECT_OPTIONS
ref_handler->RESET_SELECTION_FIELD
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Can anybody help me on this ?
Thanks,
Varughese John
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Couldn't you simply invalidate the context?
Best regards,
Guillaume
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.