Switchin to selection screen from end-of-selection
Hi Experts,
I am creating a report, where I generate an ALV output. From selection screen, I am going to some 4, 5 output screens.
selection screen -> output screen1 -> output screen2 -> output screen3.
Can I go to selection screen from output screen 3. In output screen 3 I have pf-status also. When the back button, in the triggered code what I have to write to switch to selection screen.
Thanks and regards,
Venkat.
Hi
1.Make your selection screen as screen no.100.
2.selection screen(100) -> output screen1 -> output screen2 -> output screen3.
3.Make separate pf-status for each screens.
4.In the PAI of your 3rd screen write
CASE SY-UCOMM.
WHEN 'BACK'.
LEAVE TO SCREEN 100.
ENDCASE.
Hope this had helped you.
Regards
Hareesh Menon
Similar Messages
-
Problem in creating selection screen from screen painter
hi ,
i am working with screens i have created a screen and in that wehn i click report button it has to ask for select options for dates.from there i will write a select quesry based on selection dates ...how to call a selection screen from screen.i created an include and in that include i used select options.but it is showing error message .guide me how to do it ?Hi..
Here for your problem,
I have created a button with function code 'CLICK' in screen no 1000.
when I click on the button I am capturing the ok_code and displaying the selection screen.
ok_code = sy-ucomm.
case:ok_code.
when 'CLICK'.
SELECTION-SCREEN BEGIN OF SCREEN 500 TITLE title.
SELECT-OPTIONS: P_DATE for sy-datum.
SELECTION-SCREEN END OF SCREEN 500.
title = 'Input Date'.
CALL SELECTION-SCREEN '0500'.
endcase.
You can also have them as subscreen by providing the required parameters in the selection screen.
Hope this solves your problem.
Warm Regards,
Bhuvaneswari. -
hi to all pls tellabt the event at selection-screen on end of and at selection-on block
plsa give some sample coding on theese points will be rewardedHi
You are mixing up the things
You need to know separately about At selection-screen and its events
selection-screen : begin of block b1 with frame title text-001.
select-options:s_bukrs for t001-bukrs no intervals no-extension
obligatory,
s_vkorg for tvko-vkorg no intervals no-extension,
s_vtweg for tvtw-vtweg no intervals no-extension,
s_spart for tspa-spart no intervals no-extension,
s_werks for t001w-werks no intervals no-extension,
s_kunag for kna1-kunnr,
s_vbeln for vbuk-vbeln,
s_fkart for tvfk-fkart,
s_fkdat for vbrk-fkdat obligatory.
selection-screen begin of line.
selection-screen comment 1(20) text-008.
selection-screen end of line.
selection-screen begin of line.
parameters p_cust type c radiobutton group cust.
selection-screen comment 3(20) text-004 for field p_cust.
selection-screen end of line.
selection-screen begin of line.
parameters p_mode type c radiobutton group cust.
selection-screen comment 3(20) text-006 for field p_mode.
selection-screen end of line.
selection-screen begin of line.
parameters p_dens type c radiobutton group cust.
selection-screen comment 3(20) text-007 for field p_dens.
selection-screen end of line.
selection-screen: end of block b1.
And the Events related to Internal table like AT NEW and AT END OF
All this AT NEW, AT FIRST, AT END OF and AT LAST are called control break statements of Internal tables and are used to calculate the TOTALS based on sertain key fields in that internal table
FIrst to use these statements the ITAB has to be sorted by the key fields on whcih you need the SUM of the fields.
Some time you will get * when mopving data from this int table to other table using these commands
so you have to use
READ TABLE ITAB INDEX SY-TABIX in AT..ENDAT..if you are using other fields between them
DATA: sflight_tab TYPE SORTED TABLE OF sflight
WITH UNIQUE KEY carrid connid fldate,
sflight_wa LIKE LINE OF sflight_tab.
SELECT *
FROM sflight
INTO TABLE sflight_tab.
LOOP AT sflight_tab INTO sflight_wa.
AT NEW connid.
WRITE: / sflight_wa-carrid,
sflight_wa-connid.
ULINE.
ENDAT.
WRITE: / sflight_wa-fldate,
sflight_wa-seatsocc.
AT END OF connid.
SUM.
ULINE.
WRITE: / 'Sum',
sflight_wa-seatsocc UNDER sflight_wa-seatsocc.
SKIP.
ENDAT.
AT END OF carrid.
SUM.
ULINE.
WRITE: / 'Carrier Sum',
sflight_wa-seatsocc UNDER sflight_wa-seatsocc.
NEW-PAGE.
ENDAT.
AT LAST.
SUM.
WRITE: / 'Overall Sum',
sflight_wa-seatsocc UNDER sflight_wa-seatsocc.
ENDAT.
ENDLOOP.
Reward points for useful Answers
Regards
Anji -
Can we call a selection screen from List output
Hi Folks,
Can we call a selection screen from the list output?
I mean for ex:-
i am getting the data from MAKT and displaying it in the list output having a button EMAIL.
When I press that button it should call a selection screen asking the user to enter EMAIL id .
Thanks,
K.Kiran.Hi
U can create a dynpro as SELECTION SCREEN and call it using CALL SELECTION-SCREEN statament:
SELECTION-SCREEN BEGIN OF SCREEN 100.
PARAMETERS: P_MAIL(80) TYPE C.
SELECTION-SCREEN END OF SCREEN 100.
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'MAIL'.
CALL SELECTION-SCREEN 100.
IF SY-SUBRC = 0. "User press F8
ELSE.
" User press exit or back
ENDIF.
U can use the addition STARTING AT ..... ENDING AT ..... if you need to show the selection-screen as popup
Max -
I need below fields at my selection screen.From which table we can find the
Sales Org > only one selection field
Division > only one selection field
Channel > from u2013 to fields
Sales Office Channel > from u2013 to fields
Sales Rep Channel > from u2013 to fields
User ID of the CSR Channel > from u2013 to fields
Customer Channel > from u2013 to fields
Material Channel > from u2013 to fields
Date: Channel > from u2013 to fields
I need these fields at my selection screen.From which tables I find these things.I need this logic also.I need help
-
How to go back selection screen from its next screen
I having one problem with output display
actually i am displaying data in Initial Screen, which have 6 fields
whenever i click on field 1 it should display one new screen (selection screen)which contain 6 radio buttons
whenever i click on Radio Button r1 it should go to new screen (screen 3) to display its correponding data
when i use f3 or back it should go to previous screen (selection screen), when we click radio button r2
it should go to new screen (screen n)to display its correponding data.
this what i have to display.
but i am facing some probelms during my output
i am going to initail screen from Screen 3.
how to go back radiobutton screens (selection screen) from screen 3Hi Anil,
U can get the fcode for standard <b>back</b> button by debugging. To the fcode of the "back' button.
write this code :
at user-command.
case sy-ucomm.
when 'back'.
set screen <scr no> " here scr no is the screen no of radio button screen
leave screen.
endcase.
Reward points if helpful.
Regards,
Hemant -
F4 help in the selection screen from a int table
I collected the datas from the function module. and the internal table is populated.
the internal table contains manny fields.
among these fields i need to take only one field and this field value to be used for F4 help in the selection screen ( not a dynpro)
for example : in the selection screen
I have to select the PO.
based on the user i have filtered the PO. (determined dynamically by using the user name this i have done it)
then i have to assign the PO the selection screen.
which FM will be better to use for this type of scenario and help me out with some example codes particularly for my req
ThanksHi ,
use the FM 'F4IF_INT_TABLE_VALUE_REQUEST'
This example is for search help for material type .
AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_mtart-low .
select all material types you want to display in search help into table i_mtart.
PERFORM select_material_type.
PERFORM help_material_type.
*& Form help_material_type
text
--> p1 text
<-- p2 text
FORM help_material_type .
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = 'MTART'
PVALKEY = ' '
dynpprog = sy-cprog
dynpnr = sy-dynnr
dynprofield = 'S_MTART-LOW'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
value_org = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
value_tab = i_mtart
FIELD_TAB =
RETURN_TAB =
DYNPFLD_MAPPING =
EXCEPTIONS
parameter_error = 1
no_values_found = 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.
ENDFORM. " help_material_type
Regards,
Balaji. -
How to get back to Selection Screen from Drill Down Screen in ALV
Hi All
How can I come back directly to the Selection Screen from the drill down screen of an ALV Report i.e. in an Interactive ALV Report when sy-lsind > 1.
Thanks
KulpreetTry to use ....
SET SCREEN 0.
LEAVE SCREEN.
Regards,
Rich Heilman -
How to call dynamic selection screen from another report
hi,
i have transaction ZFAGLL03.
it has got standard selection screen.. and dynamic selection screen...
i am calling this transaction from another report, now how do i display this dynamic selection screen.....Try following code and see if it helps:
TYPE-POOLS : rsds.
TABLES:tgsb.
DATA: trange TYPE rsds_trange,
trange_line
LIKE LINE OF trange,
trange_frange_t_line
LIKE LINE OF trange_line-frange_t,
trange_frange_t_selopt_t_line
LIKE LINE OF trange_frange_t_line-selopt_t,
trange_line1
LIKE LINE OF trange,
trange_frange_t_line1
LIKE LINE OF trange_line-frange_t,
trange_frange_t_selopt_t_line1
LIKE LINE OF trange_frange_t_line-selopt_t,
texpr TYPE rsds_texpr.
DATA: seltab TYPE TABLE OF rsparams WITH HEADER LINE,seltex TYPE rsds_texpr.
SELECT-OPTIONS:so_gsber FOR tgsb-gsber.
LOOP AT so_gsber.
trange_line-tablename = 'FAGLFLEXA_FS'.
trange_frange_t_line-fieldname = 'RBUSA'.
MOVE-CORRESPONDING so_gsber TO trange_frange_t_selopt_t_line.
APPEND trange_frange_t_selopt_t_line
TO trange_frange_t_line-selopt_t.
ENDLOOP.
APPEND trange_frange_t_line TO trange_line-frange_t.
APPEND trange_line TO trange.
CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
EXPORTING
field_ranges = trange
IMPORTING
expressions = texpr.
submit FAGL_ACCOUNT_ITEMS_GL with FREE SELECTIONS texpr AND RETURN . -
Go back selection-screen from level2 of cl_salv_hierseq_table
Hi,
Problem is to go back on selection screen in one go using BACK , CANCEL or EXIT button
cl_salv_hierseq_table is being called to display output list.
Same class cl_salv_hierseq_table is being used to display new list if user wants to see.
All output list goes into ABAP stack.
Neither a single standard button BACK , CANCEL or EXIT allow me to go back on selection-screen directly from 2 level onwards . it goes one by one level
Copied GUI-status to use on_user_command and tried to use LEAVE TO TRANSACTION / CALL TRANSACTION but selection screen values in select-options / parameters not retrived
How to back on selection-screen from level2 onwards and see all values which are entered initially
Thanks
ammoninHi,
No custom screen is created in my program for displaying result.
Calling METHOD display of CL_SALV_HIERSEQ_TABLE ,
So every time each DISPLAY method goes into stack .
In degug , I found FM REUSE_ALV_HIERSEQ_LIST_DISPLAY is being called
As per your suggestion it happens only when I am on first level of display result
If I am calling same METHOD display for another output without distroying exsiting one. it stores in ABAP stack
I do not know how to initializie existing / Kill CL_SALV_HIERSEQ_TABLE session before calling it again
Standard button BACK/EXIT/CANCEL does
SET SCREEN 0
LEAVE SCREEN and goes back to only one level back not on directly on selection screen.
If it is on first level then only selection-screen comes with values.
Thanks
Amy -
Calling a Selection Screen from a Function Module/Method
Hi,
I would like to call a selection screen from a function module or method. I understand it is not possible by the definition. Are there any alternative options as I am looking for the Variants Save option on the screen. Any thoughts?
Thanks
RaghavSince i don't know your exact requirements (standard SAP selection screen? your own selection screen?) the onl;y thing i can come up with is:
1. in your function pool create your own screen with a subscreen area
2. create your own selection screen as a subscreen.
3. include the selection subscreen in the first screen
4. call the first screen in your function. -
Reg: calling selection screen from the second list
Hi all,
How can we call the selection screen from the second screen.
Can any one help me to solve this problem.HI RJ,
Try .....
case sy-ucomm.
WHEN '&F03'.
LEAVE TO SCREEN '0'.
endcase.
after the FM for grid-display
i m using the same .....
i hav selection-screen..then alv grid screen 1 then again another screen with alv grid display..
bt in my code for first alv grid ...i m using REUSE_ALV_GRID_DISPLAY_LVC
as
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
i_callback_program = sy-repid
i_callback_pf_status_set = 'SET_PF_STATUS'(303)
i_callback_user_command = 'USER_COMMAND'(304)
i_grid_title = 'Reconcilation Report'(305)
is_layout_lvc = it_layout
it_fieldcat_lvc = gt_fieldcat3[]
TABLES
t_outtab = gt_msg[].
here i musing set_pf_status to add one pushbutton to the screen. in ur case u can avoid that...
after that
*& Form set_pf_status
text
-->EXTAB text
FORM set_pf_status USING extab TYPE slis_t_extab. "#EC NEEDED
SET PF-STATUS 'STANDARD_FULLSCREEN'.
*get back to Selection Screen
case sy-ucomm.
WHEN '&F03'(328).
LEAVE TO SCREEN '0'.
endcase.
ENDFORM. "set_pf_status
its working for me..
Thnx
Rohit...
Edited by: Rohit Kumar on Oct 29, 2008 3:20 PM -
AT SELECTION-SCREEN ON/END OF FIELD
Hi all,
I want to know the exact difference between AT SELECTION-SCREEN ON field and AT SELECTION-SCREEN ON END OF field. Could you give me the answer with an example.
Sathish.Hi,
Let`s say you have a radio button on your selection screen and you want to perform some action once the user clicks the radio button. You can attain this functionality by using AT SELECTION-SCREEN ON FIELD. This event block is raised before the AT SELECTION-SCREEN event, on action performed on that particular field.
"AT SELECTION-SCREEN ON END OF field",
Consider the following example :
AT SELECTION-SCREEN ON END OF <seltab>
event is triggered. This event block allows you to check the whole selection table <seltab>. Warning messages are displayed as dialog boxes, not in the status line.
AT SELECTION-SCREEN ON END OF CARRID.
LOOP AT MATNR.
IF MATNR-HIGH NE ' '.
IF MATNR-LOW IS INITIAL.
MESSAGE Wxxx(MSG).
ENDIF.
ENDIF.
ENDLOOP.
Hope the info. is helpful, if so reward points.
Regards -
Looks like by default it share desktop, is there anyway to show selective screen from my laptop?
Welcome to the Apple Community.
Unfortunately not. -
I need to get an icon on the selection screen as well as selection text .
HI ,
Can anybody please tell me how to get an icon in the selection-screen along with the selection texts written for select-options or parameters.
For Example:
Select-Options: S_WERKS For T001w-werks,
S_AUART For TVAKT-AUART,
S_ERDAT For LIKP-ERDAT.
IN THE SELECTION TEXTS:
FOR S_WERKS i write (WareHouse)
FOR S_AUART i write (OrderType)
FOR S_ERDAT i write (PlantDate)
I need to get the icons for this fields as well as selection texts written for these fields.
I will reward full points to the solution.
Mohan.Hi mohan,
<b>Run the below code</b>
Report zex33.
tables : t001w,
tvakt,
likp.
type-pools: icon.
selection-screen begin of line.
selection-screen comment 1(20) text_001.
select-options: S_WERKS For T001w-werks.
selection-screen end of line.
selection-screen begin of line.
selection-screen comment 1(20) text_002.
select-options :S_AUART For TVAKT-AUART.
selection-screen end of line.
selection-screen begin of line.
selection-screen comment 1(20) text_003.
select-options : S_ERDAT For LIKP-ERDAT.
selection-screen end of line.
initialization.
write ICON_WAREHOUSE as icon to text_001.
concatenate text_001 text-001 into text_001 separated by space.
write ICON_ORDER as icon to text_002.
concatenate text_002 text-002 into text_002 separated by space.
write ICON_PLANT as icon to text_003.
concatenate text_003 text-003 into text_003 separated by space.
*In text-001 -> Warehouse
*In text-002 -> Order Type
*In text-003 -> Plant Date
Maybe you are looking for
-
Json, Failed to load resource
Hello, i'm trying to make a slide based on a .json file, but i can't manage in making the animation run. code for stage: $.getJSON("data.json").success( function(data){ $.each(data, function(index, item){
-
Hi There, I have recently migrated my SharePoint 2007 portal to SP2010, However, to my surprise i have noticed all the documents in different document libraries are having 'Approval status' as 'On going' status which suppose to be 'Approved' status.
-
Can anyone provide a clear picture in dealing with interfaces used in EJB. It can be confined to the use of only stateless session beans. Some links where I acn see some articles will also be very helpful. Thanks in Advance!!!
-
Hi I have to update Item(Product/Product category) Description in Lead duriing Creat/Change. 1..I can't do same in CRM_ORDERADM_I_BADI as Ited Guid is geting created after coming out of this Badi... 2..Also in ORDER_SAVE BadI~CHANGE_BEFORE_UPDATE doe
-
Dear Friends, I want to implelment the intercompany Sales flow. What I want to know is the concept of getting the same pricing as in Intercompany PO to flow in the Intercopmany Billing. Is this possible to achieve, as we usually have different pricin