Resetting back of a selection screen in a webpage
Hi All,
I have a requirement wherein once i am trying to run a report on Web UI(Web Page Report deveoped on WAD). Once i click on the report link it takes me to the link of a selection screen wherein i input certain values and then click on the run report button to execute the report. The issue occuring here is once i enter the values in the selection screen and click on the run report, the report output opens fine and in a correct way in a new window but the selection screen resets back to a strange kind of a page wherein i am no longer able to select different values. It shows a blank kind of a screen which certain tabs on the top of the page showing exceptions,variables,etc. I need to keep the selection screen intact without letting it get reset to that kind of a page so that i can make different selections on that. What happens in the above case is when i click on the back button on that webpage with strange view, the selection screen comes back.I dont want this transition to happen and want to keep the selection screen intact. Please advise.
Thanks!
Subhra Ghosh.
hi
good
try this
In the same way that you can define a screen as a subscreen in the Screen Painter, it is now possible to define selection screens as subscreens in an ABAP program:
SELECTION-SCREEN BEGIN OF SCREEN scrn AS SUBSCREEN
[NO INTERVALS]
[NESTING LEVEL n].
SELECTION-SCREEN END OF SCREEN scrn.
go through this link
http://help.sap.com/saphelp_nw2004s/helpdata/en/e7/deb237b9a9a968e10000009b38f8cf/content.htm
http://sap.niraj.tripod.com/id40.html
thanks
mrutyun^
Similar Messages
-
Music app throws back to track selection screen
Sometimes when i choose a track in music app, my ipod 4g freezes for a couple of seconds, and then throws me back to song selection screen. I reinstalled iOS and synced all music again, but it still happening. It is really annoying. Any ideas?...
- Restore to factory settings/new iOS device.(not clear if" I reinstalled iOS and synced all music again, " iwas this)
If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
I am using an iPAD2 with 32gbytes on iOS8.1.1.
After upgrading to iOS8.0, the movies I had on my iPAD no longer would play. When I select a movie, it changes to the play screen, then immediately flips back to the selection screen. The movies are in the :movies" category. I tried to reclassify them to "home movies" under the INFO option, but it is grayed out.
I did just copy another movie and it automatically was classified as a "home movie" and it play just fine. My guess is this has something to do with the category it is in. However, I cannot change the categories on the previous movies.
Any help is appreciated.Can you record and play new VMs?
Can you sync them to your computer?
Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from a back that was made then the VM played back. See:
iOS: How to back up -
How to clear parameters defined in selection screen on back button
Hi,
I have a report with parameters, few being input fields, and check boxes. After report is executed when user selects the back button, the selection screen is displayed again but with the old selection values. I want to clear them.
So in the Initialization even I added the code to clear all these parameters;
CLEAR: p_aaa, p_bbb, p_ccc.
I debugged and control passes through this code but still the fields are not cleared and they retain the old input values.
How to clear them ?
thnks>
Rob Burbank wrote:
> Yes he did. My mistake.
>
> But isn't this what he wants? To clear the Selection screen so that something has to be entered?
>
> Rob
IMO, he only wants to clear the selection screen parameters on the click of 'BACK' button
in the list screen. If the OP clears the selection screen variables in AT SELECTION-SCREEN OUTPUT
even, the values assinged to the selection parameters in the INITIALIZATION and with the DEFAULT addition of the PARAMETERS and SELECTION-OPTIONS statements will also be overwritten even when the report is executed for the
first time.
-Rajesh. -
How to go back to the previous selection screen window?
I have a selection screen and I have a button that calls a basic report and displays it on screen 0. The basic report is displaying however when I push the back button the program exits.
If I use "set screen 0" and if I press back button, the program goes to the code. It does exit.
If I use "leave to list processing" and if I press back button, the screen is just stuck on that screen 0 forever.
What I want is to go back to the selection screen window when I press the back button at the top.
<b>Pls help. Im a newbie. Thanks people. </b>
at selection-screen.
case SY-UCOMM.
when 'BTN1_PUSH'. " Calls Plain Report
set screen 0.
perform plainreport.
when 'BTNEXIT_PUSH'.
leave program.
endcase."Hi Jabbar,
The reason it is exiting the program is because you are using set screen.
Try the following instead:
at selection-screen.
case SY-UCOMM.
when 'BTN1_PUSH'. " Calls Plain Report
call screen 0.
perform plainreport.
when 'BTNEXIT_PUSH'.
leave program.
endcase."
Think of the call screen command as a chain that the program follows and exits the previous. When you say set screen you are leaving the history in the program and it will always go back to the last screen it remembers which is why you were stuck in screen 0. -
Ho to back on selection screen using BACK button
Salute.
I have a program which contains 3 screens:
1st -- selection screen.
2nd -- my screen, I called it 1002, When I press F8 button on I get on it. I am using cl_gui_alv_grid there with my own buttons. So when I press MY OWN the save button I get the 3d screen
3d -- my own screen with some labels (screen name 1001).
So when i press BACK button on the third screen I want to back on selection screen and skip second screen, but I can't, I think the problem is in the cl_gui_alv_grid because I use custom grid handler:
METHOD handle_user_command.
DATA :
ls_selected TYPE lvc_s_roid,
lt_selected TYPE lvc_t_roid.
CASE e_ucomm.
WHEN 'QSAVE'.
PERFORM save_data.
CALL SCREEN 1001.
WHEN OTHERS.
ENDCASE.
ENDMETHOD. "handle_user_command
Thank You.
Edited by: kernel.panic on Nov 24, 2009 6:31 AMHi Kernal,
To go back to the First Screen (Selection Scree) use
LEAVE TO SCREEN 0. " This makes the Program to go back from where it had started
or Create a Tcode for your program
CASE e_ucomm.
WHEN 'BACK'.
LEAVE TO TRANSACTION 'YOUR TCODE HERE' . " This will take you back to your Selection Screen
WHEN 'QSAVE'.
PERFORM save_data.
CALL SCREEN 1001.
WHEN OTHERS.
ENDCASE.
Cheerz
Ram -
Selection-screen problem:need to go back to selectionscreen not source code
Hello experts,
Please help me on my dillema. I have 2 reports, zreport1 and zreport2. Now, zreport1 submits
values via selection-screen to zreport2. Now here is the problem, when I press 'BACK' on the
selection-screen of zreport2(rememeber we used submit statement via selection-screen on zreport1)
instead of going back to the selection-screen of zreport1 it goes to the source code of zreport1 which
is wrong. And there are 2 selection-screens on zreport1 depending on the user if he is controller or not.
So what I need to do here is that whenever I press 'BACK' either I'm adding or modifying or displaying records
it should go back to whatever screen I called in zreport1.
Here's a diagram.
ZREPORT1**
if v_controller = 'X'
display selection-screen 1500
else
display selection-screen 500
endif.
if user wants to add records, submit values from zreport1 to zreport2
and return via selection-screen.
*same goes for edit option.
if user wants to display, get all records then display in ALV.
ZREPORT2**
So lets assume user decides not to add records and decides to go back. so he presses
the BACK button in selection-screen of zreport2. Now here's the nasty part, instead of going back to either
selection-screen 500 or 1500 in zreport1, it goes to the source code of zreport1!. I hope I explained it clearly.
Again, thanks a lot guys for your help!Hi,
Try this
START-OF-SELECTION.
*----------Sumbit Report-------*
Sumit Report......AND RETURN
*----------Check Condition & back to select screen-------*
IF condition.
MESSAGE s207(zusm_gen) DISPLAY LIKE lc_e .
EXIT.
ENDIF.
Set something in the memmory.
this can be used to check the completion of the report.
if the 2nd report executed porperly then u further execute the code.
If u dont have any thing to execute after sumbit report
then u can do is.
START-OF-SELECTION.
*----------Sumbit Report-------*
Sumit Report......AND RETURN
MESSAGE s207(zusm_gen) DISPLAY LIKE 'S' .
EXIT.
Message was edited by: Manoj Gupta -
Return from ALV Grid to Selection screen
hi,
I want to go back from ALV grid to selection screen.
I am using the following code:
WHEN 'BACK'.
CALL METHOD grid1->refresh_table_display.
CALL METHOD grid1->free.
CALL METHOD custom_container1->free.
CALL SELECTION-SCREEN 1000.
it is working,but when i press BACK button from selection screen to program it is showing ERROR IN FLUSH 4 Error.
Also I tried with method FLUSH
WHEN 'BACK'.
CALL METHOD grid1->refresh_table_display.
CALL METHOD grid1->free.
CALL METHOD custom_container1->free.
CALL METHOD cl_gui_cfw=>flush.
it's still showing same Error.
Please help on this.
Regards,
SankarHi,
My grid name is grid1.
I tried with :
DATA grid1 TYPE REF TO cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = grid1.
CALL METHOD grid1->check_changed_data.
CALL METHOD grid1->refresh_table_display.
LEAVE TO SCREEN 0.
Even, I tried with declaring another grid : grid2
DATA grid1 TYPE REF TO cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = grid1.
CALL METHOD grid1->check_changed_data.
CALL METHOD grid1->refresh_table_display.
LEAVE TO SCREEN 0.
In both cases, I am getting the following Error : OBJECTS_OBJREF_NOT_ASSIGNED -
How to refresh value in selection screen field
Hi Experts,
I have a requirement to refresh the value in selection screen.while i run the report in selection screen i selecting one variant for look the output if i use some other field value with same variant without save its working fine i am avle to see the data but while i come back to again selection screen and selecting some other variant that extra add value is not getting refresh its showing with new variant.Its happening for only one variant not for all if i select some other variant then its getting refresh value in same field.Any one can help me for this issue.
Thanks.Hi,
That means, I believe - the value that is "not changing" is saved in the particular variant. You can easily verify it by starting the report without variant and then selecting the variant in question. Remove the value from screen and save the variant again. Don't forget to check of variant needs to be transported from development system...
cheers
Janis -
Question on Logic of seperation in OOAbap-Selection screen
Hello guys
I like to ask you one question i found and get your ideas.
If you look at the codes for creating an ALV
it always recommends you to seperate logic and business layer etc..
this is the new way of creating an ALV
So you have a model view and a controller
I implemented that following useful resources.
So that there s class called view
and the selection screen gets called from there inside the method
like
call SELECTION-SCREEN 100.
IF sy-subrc EQ 0.
ENDIF.
But one issue when you execute the report and press GO BACK standard button it doesnot come back to your selection screen but way to your code.
Is there a get around to that?
here is the code below:
Header 1
*& Report ZZ_SOLEN_FIRST
REPORT ZZ_SOLEN_FIRST.
DATA: gv_vbeln type vbap-Vbeln.
***Screen
SELECTION-SCREEN: BEGIN OF SCREEN 100 TITLE t-004.
SELECTION-SCREEN: BEGIN OF block aa WITH FRAME TITLE t-001.
SELECT-OPTIONS: s_vbeln FOR gv_vbeln.
SELECTion-SCREEN: END OF block aa.
SELECTion-SCREEN: END OF SCREEN 100.
*****DATA Layer
class lcl_data DEFINITION.
PUBLIC SECTION.
TYPES: BEGIN OF ty_out,
vbeln type vbap-vbeln,
posnr type vbap-posnr,
matnr type vbap-matnr,
vkorg type vbak-vkorg,
END OF ty_out
TYPES: tt_out TYPE STANDARD TABLE OF ty_out.
TYPES: gr_vbeln TYPE RANGE OF vbap-vbeln.
DATA: gt_output TYPE tt_out.
methods: constructor,
select_data IMPORTING VALUE(rs_vbeln) TYPE gr_vbeln.
ENDclass.
class lcl_data IMPLEMENTATION.
method constructor.
clear GT_OUTPUT.
ENDMETHOD.
method select_data.
DATA: lt_vbak type SORTED TABLE OF vbak WITH UNIQUE KEY vbeln.
FIELD-SYMBOLS: <lfs_output> like LINE OF gt_output,
<lfs_vbak> like LINE OF lt_vbak
select vbeln posnr matnr from vbap
INto TABLE
GT_OUTPUT
where vbeln in S_VBELN
IF sy-SUBRC EQ 0.
select * from vbak
INTO TABLE lt_vbak
FOR ALL ENTRIES IN GT_OUTPUT
where vbeln = GT_OUTPUT-vbeln
LOOP AT gt_output ASSIGNING <lfs_output>.
READ TABLE lt_vbak ASSIGNING <lfs_vbak>
with TABLE KEY vbeln = <lfs_output>-vbeln.
IF sy-Subrc eq 0.
<lfs_output>-vkorg = <lfs_vbak>-VKORG.
ENDIF.
ENDLOOP.
ENDIF.
ENDMETHOD.
ENDCLASS.
****Display
class lcl_view DEFINITION.
PUBLIC SECTION.
methods: start RETURNING VALUE(rv_true) type abap_bool.
METHODS: display CHANGING it_data TYPE STANDARD TABLE.
ENDCLASS.
class lcl_view IMPLEMENTATION.
METHOD start.
call SELECTION-SCREEN 100.
IF sy-subrc EQ 0.
rv_true = abap_true.
ENDIF.
endmethod.
method display.
DATA: lo_salv_table type REF TO CL_SALV_TABLE,
lt_columns TYPE SALV_T_COLUMN_REF.
FIELD-SYMBOLS: <lfs_columns> like LINE OF lt_columns.
CL_SALV_TABLE=>FACTORY(
* exporting
* LIST_DISPLAY = IF_SALV_C_BOOL_SAP=>FALSE " ALV Displayed in List Mode
* R_CONTAINER = " Abstract Container for GUI Controls
* CONTAINER_NAME =
importing
R_SALV_TABLE = lo_salv_table " Basis Class Simple ALV Tables
changing
T_TABLE = it_data
* catch CX_SALV_MSG. " ALV: General Error Class with Message
lt_columns = lo_salv_table->GET_COLUMNS( )->GET( ).
* LOOP AT lt_columns ASSIGNING <lfs_columns>.
* break developer.
* ENDLOOP.
lo_salv_table->DISPLAY( ).
ENDMETHOD.
ENDCLASS.
class lcl_controller DEFINITION.
PUBLIC SECTION.
methods: main.
ENDCLASS.
class lcl_controller IMPLEMENTATION.
method main.
DATA: lo_view type REF TO lcl_view,
lo_data TYPE REF TO LCL_DATA .
CREATE OBJECT: lo_data, lo_view.
break developer.
IF lo_view->START( ) Eq abap_true.
**get the data
lo_data->SELECT_DATA( s_vbeln[] ).
lo_view->DISPLAY(
changing
IT_DATA = lo_data->GT_OUTPUT
ENDIF.
ENDMETHOD.
ENDCLASS.
INITIALIZATION.
START-OF-SELECTION.
break developer.
DATA: lo_controller type REF TO lcl_controller.
CREATE OBJECT lo_controller.
lo_controller->MAIN( ).Here is the complete code that works fine!!!
Thanks to your ideas:
OO ALV
*& Report ZZ_SOLEN_FIRST
REPORT ZZ_SOLEN_FIRST.
DATA: gv_vbeln type vbap-Vbeln.
***Screen
SELECTION-SCREEN: BEGIN OF SCREEN 100 TITLE t-004.
SELECTION-SCREEN: BEGIN OF block aa WITH FRAME TITLE t-001.
SELECT-OPTIONS: s_vbeln FOR gv_vbeln.
SELECTion-SCREEN: END OF block aa.
SELECTion-SCREEN: END OF SCREEN 100.
*****DATA Layer
class lcl_data DEFINITION.
PUBLIC SECTION.
TYPES: BEGIN OF ty_out,
vbeln type vbap-vbeln,
posnr type vbap-posnr,
matnr type vbap-matnr,
vkorg type vbak-vkorg,
END OF ty_out
TYPES: tt_out TYPE STANDARD TABLE OF ty_out.
TYPES: gr_vbeln TYPE RANGE OF vbap-vbeln.
DATA: gt_output TYPE tt_out.
methods: constructor,
select_data IMPORTING VALUE(rs_vbeln) TYPE gr_vbeln.
ENDclass.
class lcl_data IMPLEMENTATION.
method constructor.
clear GT_OUTPUT.
ENDMETHOD.
method select_data.
DATA: lt_vbak type SORTED TABLE OF vbak WITH UNIQUE KEY vbeln.
FIELD-SYMBOLS: <lfs_output> like LINE OF gt_output,
<lfs_vbak> like LINE OF lt_vbak
select vbeln posnr matnr from vbap
INto TABLE
GT_OUTPUT
where vbeln in S_VBELN
IF sy-SUBRC EQ 0.
select * from vbak
INTO TABLE lt_vbak
FOR ALL ENTRIES IN GT_OUTPUT
where vbeln = GT_OUTPUT-vbeln
LOOP AT gt_output ASSIGNING <lfs_output>.
READ TABLE lt_vbak ASSIGNING <lfs_vbak>
with TABLE KEY vbeln = <lfs_output>-vbeln.
IF sy-Subrc eq 0.
<lfs_output>-vkorg = <lfs_vbak>-VKORG.
ENDIF.
ENDLOOP.
ENDIF.
ENDMETHOD.
ENDCLASS.
****Display
class lcl_view DEFINITION.
PUBLIC SECTION.
methods: start RETURNING VALUE(rv_return_flag) type abap_bool.
METHODS: display CHANGING it_data TYPE STANDARD TABLE.
ENDCLASS.
class lcl_view IMPLEMENTATION.
METHOD start.
call SELECTION-SCREEN 100.
IF sy-subrc EQ 0.
rv_return_flag = abap_true.
ENDIF.
endmethod.
method display.
DATA: lo_salv_table type REF TO CL_SALV_TABLE,
lt_columns TYPE SALV_T_COLUMN_REF.
FIELD-SYMBOLS: <lfs_columns> like LINE OF lt_columns.
CL_SALV_TABLE=>FACTORY(
* exporting
* LIST_DISPLAY = IF_SALV_C_BOOL_SAP=>FALSE " ALV Displayed in List Mode
* R_CONTAINER = " Abstract Container for GUI Controls
* CONTAINER_NAME =
importing
R_SALV_TABLE = lo_salv_table " Basis Class Simple ALV Tables
changing
T_TABLE = it_data
* catch CX_SALV_MSG. " ALV: General Error Class with Message
lt_columns = lo_salv_table->GET_COLUMNS( )->GET( ).
* LOOP AT lt_columns ASSIGNING <lfs_columns>.
* break developer.
* ENDLOOP.
lo_salv_table->DISPLAY( ).
ENDMETHOD.
ENDCLASS.
class lcl_controller DEFINITION.
PUBLIC SECTION.
methods: main.
ENDCLASS.
class lcl_controller IMPLEMENTATION.
method main.
DATA: lo_view type REF TO lcl_view,
lo_data TYPE REF TO LCL_DATA .
CREATE OBJECT: lo_data, lo_view.
break developer.
* while lo_view->START( ) eq abap_true.
***get the data
* lo_data->SELECT_DATA( s_vbeln[] ).
* lo_view->DISPLAY(
* changing
* IT_DATA = lo_data->GT_OUTPUT
* ENDWHILE.
do.
if lo_view->START( ) eq abap_true.
***get the data
lo_data->SELECT_DATA( s_vbeln[] ).
lo_view->DISPLAY(
changing
IT_DATA = lo_data->GT_OUTPUT
else.
return.
ENDIF.
ENDDO.
ENDMETHOD.
ENDCLASS.
class lcl_test_submit DEFINITION.
PUBLIC SECTION.
TYPES: tr_vbeln TYPE RANGE OF vbap-vbeln.
data: lt_list type table_abaplist.
methods: test_submit IMPORTING VALUE(ir_vbeln) type tr_vbeln
EXCEPTIONS submit_failed
no_data_found
ENDCLASS.
class lcl_test_submit IMPLEMENTATION.
method test_submit.
submit ZZ_SOLEN_FIRST
with s_vbeln in ir_vbeln
exporting list to memory and return
***Get the list from the memory
call function 'LIST_FROM_MEMORY'
tables
listobject = lt_list
exceptions
not_found = 1
others = 2.
if sy-subrc <> 0.
raise submit_failed.
endif.
if lt_list is initial.
raise no_data_found.
endif.
ENDMETHOD.
ENDCLASS.
INITIALIZATION.
START-OF-SELECTION.
break developer.
DATA: lo_controller type REF TO lcl_controller.
****Testing the Main
CREATE OBJECT lo_controller.
lo_controller->MAIN( ). -
ALV Grid and return to selection screen
Hello
I have an ALV Grid and when I push a buttom that I program appears another ALV Grid. In this second ALV I try to program different buttoms. When I program the BACK buttom I want to go to selection screen.
I try with CALL SELECTION SCREEN but when I stay in selection screen and push the execute buttom the ALV that I see is the second, not the first. It seems that we don't catch the news selections.
I put rs_selfied-refresh = 'X' after the CALL SELECTION SCREEN but is wrong again.
What can I do????Hello Silvia
There is a simple trick to return from the second ALV list directly back to the selection screen:
*& Report ZUS_SDN_REUSE_ALV_GRID_DISPLAY
REPORT zus_sdn_reuse_alv_grid_display.
TYPE-POOLS: slis.
DATA:
gt_t001 TYPE STANDARD TABLE OF t001,
gt_knb1 TYPE STANDARD TABLE OF knb1.
DATA:
gs_fcat TYPE slis_fieldcat_alv,
gt_fcat_t001 TYPE slis_t_fieldcat_alv,
gt_fcat_knb1 TYPE slis_t_fieldcat_alv.
PARAMETERS:
p_bukrs TYPE bukrs DEFAULT '1000'.
START-OF-SELECTION.
SELECT * FROM t001 INTO TABLE gt_t001.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
* I_PROGRAM_NAME =
* I_INTERNAL_TABNAME =
i_structure_name = 'T001'
* I_CLIENT_NEVER_DISPLAY = 'X'
* I_INCLNAME =
* I_BYPASSING_BUFFER =
* I_BUFFER_ACTIVE =
CHANGING
ct_fieldcat = gt_fcat_t001
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER = ' '
* I_BUFFER_ACTIVE = ' '
i_callback_program = syst-cprog
i_callback_pf_status_set = 'ALV_SET_PF_STATUS'
i_callback_user_command = 'ALV_USER_COMMAND'
* I_CALLBACK_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
* I_STRUCTURE_NAME = ' '
* I_BACKGROUND_ID = ' '
* I_GRID_TITLE =
* I_GRID_SETTINGS =
* IS_LAYOUT =
it_fieldcat = gt_fcat_t001
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = gt_t001
* EXCEPTIONS
* PROGRAM_ERROR = 1
* OTHERS = 2
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
END-OF-SELECTION.
*& Form set_pf_status
* text
* -->RT_EXTAB text
FORM alv_set_pf_status USING rt_extab TYPE slis_t_extab.
* NOTE: identical to STANDARD_FULLSCREEN with additional button
* for detail list ('DETAILLIST')
SET PF-STATUS 'STANDARD_FULLSCREEN'.
ENDFORM. "set_pf_status
*& Form alv_user_command
* text
* -->R_UCOMM text
* -->RS_SELFIELDtext
FORM alv_user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
* Display detail list: all customers for selected company code
WHEN 'DETAILLIST'.
IF ( rs_selfield-fieldname = 'BUKRS' ).
SELECT * FROM knb1 INTO TABLE gt_knb1
WHERE bukrs = rs_selfield-value.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
* I_INTERFACE_CHECK = ' '
* I_BYPASSING_BUFFER = ' '
* I_BUFFER_ACTIVE = ' '
i_callback_program = syst-cprog
i_callback_pf_status_set = 'ALV_SET_PF_STATUS'
i_callback_user_command = 'ALV_USER_COMMAND'
* I_CALLBACK_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_TOP_OF_PAGE = ' '
* I_CALLBACK_HTML_END_OF_LIST = ' '
i_structure_name = 'KNB1'
* IMPORTING
* E_EXIT_CAUSED_BY_CALLER =
* ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = gt_knb1
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
<b>* NOTE: when the program logic returns from the 2nd ALV list
* and exit = 'X' then the program leaves the
* 1st ALV list, too, and returns to the selection screen.</b>
rs_selfield-exit = 'X'.
ENDIF.
WHEN OTHERS.
ENDCASE.
ENDFORM. "alv_user_command
Regards
Uwe -
Two selection screen problem in one report
i have a two selection screens 1000 & 2000 in single report , which needs to be executed one after the other ,
the problem is when i execute second selection screen(2000) , the cursor is going back to at-selection-screen once again.
but i need to trigger start-of-selection directly after executing second selection screen,
the first selection screen 1000 will be executed with the help of select options..
the sample code is below .
at-selection-screen.
perform validations.
call selection screen 2000.
at selection screen on value request p_adm
start-of-selection.
main logicModerator message - Cross post locked
Rob -
Validations In selection Screen
Hi Experts ,
In the selection screen i want to give a information message if the user enters wrong text and the it should not go to the output screen. It should come back to the selection screen.
Note : i want to use Information message.
Correct Answers will be appriciated with good points.
Regards,
Sunita.IF <put the codition>.
MESSAGE.
ENDIF.
in the message put an information message...like
IF pa_rpath IS INITIAL.
MESSAGE i999(message class) WITH text-016 .
endDIF.
in the text element u can write ur required message
Edited by: Rudra Prasanna Mohapatra on Jul 3, 2008 7:07 AM
Edited by: Rudra Prasanna Mohapatra on Jul 3, 2008 7:08 AM
Edited by: Rudra Prasanna Mohapatra on Jul 3, 2008 7:08 AM -
Selection-screen navigation process required immeidately
Hi all,
I am having a program, if i execute that we will have 3 radio butons like basic data,
financial data, tax related data of the customers. when i select one of the radio buton and execute one selecion screen 500 will be displayed. selection screen 500 is common for all the radio buttons but based on the radio button some of the fields will be disabled.
what my problem is when i select one radio button and gave values in the selection screen , for the valid values it will display the data in the grid format. and i come back to the selection screen ,I have a situation where if the valid value is entered and there is no corresponding value for that selection i need to go back to the same selecion screen and a message should be displayed.
HOW TO HANDLE THIS?
Thanks,
Nagaraju.The following is the code....
SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001.
PARAMETER: P_BWAF0 RADIOBUTTON GROUP RAD1 DEFAULT 'X'
USER-COMMAND PC,
P_BWAF1 RADIOBUTTON GROUP RAD1.
SELECTION-SCREEN END OF BLOCK BLK1.
*C-- Period range
SELECTION-SCREEN: BEGIN OF BLOCK BLK2 WITH FRAME TITLE TEXT-002.
SELECT-OPTIONS: S_DATE FOR SY-DATUM MODIF ID PER.
SELECTION-SCREEN: END OF BLOCK BLK2.
AT SELECTION-SCREEN OUTPUT.
PERFORM SCREEN_INITIALIZE.
*& Form screen_initialize
text
FORM SCREEN_INITIALIZE .
IF P_BWAF0 EQ 'X'.
W_SSCRFIELDS-UCOMM = SPACE.
ELSE.
W_SSCRFIELDS = 'RAD1'.
ENDIF.
LOOP AT SCREEN.
IF W_SSCRFIELDS-UCOMM EQ 'RAD1'.
IF SCREEN-GROUP1 = 'PER'.
CLEAR: S_DATE.
SCREEN-ACTIVE = 1.
ENDIF.
ELSE.
IF SCREEN-GROUP1 = 'PER'.
CLEAR: S_DATE.
SCREEN-ACTIVE = 0.
ENDIF.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDFORM. " screen_initialize -
SUBMIT via selection screen and return gives dump
Hi Guys,
When i have used SUBMIT via SELECTION SCREEN and RETURN, it gave me the selection screen and subsequent report is executed properly without an error and when i pressed back button, it went to selection screen without any issues but the problem is when i press back from the selection screen it gives me a dump. Could you guys think of what would be the probelm.
Thanks in Advance.
Santosh.Hi Santhosh,
What is the dump u r getting? I tried like this and is working file.
Report1
REPORT Z75694TEST1.
PARAMETERS po_1 TYPE c.
WRITE po_1.
SUBMIT Z75694_TEST VIA SELECTION-SCREEN AND RETURN.
Report2
REPORT Z75694_TEST .
PARAMETERS: po_2 TYPE c.
WRITE po_2.
Thanks,
Vinod.
Maybe you are looking for
-
Streaming from Nas drive to Hi Fi
I wish to stream music from a Nas drive to my new Naim Hi Fi, what is the best programme for doing so, whilst retaining playlists etc. in i Tunes on my Mac. What is the best way to transfer my i Tunes library to the Nas drive ? My current library is
-
Hi, I am getting below error when trying to see the agent status: [oracle@localhost ~]$ emctl status agent EM Configuration issue. /u01/home/oracle/product/11.2.0/db_1/localhost.localdomain_orcl not found. Please help me what's wrong is happening her
-
Difference in CRM5.0 and CRM6.0
Hi Experts, I have a confusion that what is the architecture difference of SAP CRM5.0 and the SAP CRM6.0. Please anybody can tell me that . Regards, Khurram Siddique
-
Multi-select Tree Nodes Function
Hello, I have a tree control built from XML using an HTTPService call. The tree nodes allow multiple selections. What I would like to do is, if you click on a parent node to select it, all children of that tree node would be selected automatically as
-
Opening an iMovie '08 project in iMovie HD?
Does anyone know if it's possible to take a project that was created in iMovie '08, and open it in iMovie HD?