End-of-selection
hi,
what happend if i give select statement in end- of- selection.
end-of-selection.
select XXXX XXXX XXXXX from lfa1 into table itab where lifnr = lfa1-lifnr.
could u tell me clearly
Hi Rajesh,
When we will give select statement at end of selection, it will work.
Basically End of selection does not restrict any select statement.
Preferably we should not use select statement in end of selection. It is basically meant for displaying of data after all the operations are performed within the program.
Regards,
Reward points if useful.
Navin
Similar Messages
-
What is the use of "end of selection" event in report
Hi all
As we can display the outputs in the "start-of-selection "using the write statement.
Then what is the use of "end-of-selection" in reports.
Please tell me with some real tiem examples.
God points will be rewarded.
ThanksHi,
The END-OF-SELECTION event is triggered in type executable programs once the logical database has finished reading all data and before the list processor is started.
It tells the server that all the database reading is completed and no further reading is going to take place..
For more details go through the following link:
http://help.sap.com/saphelp_me21sp2/helpdata/en/9f/db9aca35c111d1829f0000e829fbfe/content.htm
END-OF-SELECTION is used mostly when you are using Logical data base in your report. It is triggered when all selection get finished from the data base.
You can use write statments in start of selection and end of selection also.
But the one use of end of selection is... if you want to stop the processing of a certain code and directly display some message you can use this.
start-of-selection.
select data..
process data
if no data .
stop.
endif.
write data
end-of-selection.
write : 'No data to display.
Stop command will take the control to end of selection event.
thanks,
mahesh
Message was edited by:
I Can Solve It -
Proper use of END-OF-SELECTION event in report programme
Hi,
If we will write "WRITE" statements in side START-OF-SELECTION then it will help me to display the output.Then what is the need of END-OF-SELECTION .
Can any body please tell me the <b>proper use of END-OF-SELECTION event in report programme.</b>This is the last of the events called by the runtime environment to occur. It is triggered after all of the data has been read from the logical database, and before the list processor is started.
<b>In report programs using LDB for every value selected the program issues the output, to control this you would use END-OF-SELECTION.</b> Now if you call your output in this event, the output is made only after all the values are selected as per the selection criteria.
suppose while coding, u need a logic like below:
if a condition is satisfied continue with the report
and if not satisfied, then display a message and end the report.
then u can code like below.
start-of-slection.
if a = <condition>.
do the following.......
else.
stop.
end-of-selection.
write: 'THIS IS END'.
stop command triggers end-of-slection from anywhere.
I hope it helps.
Best Regards,
Vibha
*Please mark all the helpful answers -
About start-of-selection and end-of-selection
Hi all,
what is the functionality of start-of-selection and end-of-selection events in reports.Here we go :
Start-of-selection is the event where you will code ur sql statements, this is the event which will be triggered automatically even for normal programs, not only for reports even if you dont specify this event in the program.
At Selection screen is the event to validate the input values given in the selection screen using initialization event.
First in the sequence AT SELECTION SCREEN event will be triggered and then START-OF-SELECTION.
END-OF-SELECTION, will fire only when you actually write it after the selection of the data is over. Usually between the START and END OF SELECTION you fetch the data and after the END OF SELECTION, you process the data and write that as output as display the same as ALV.
If helpful pl reward.
Cheers. -
Infoset Using Join - End of Selection
I have created a Infoset from 2 tables and created a query based on the Infoset. Now I need to write the output from the query to a file in the app server. I think I need to write the code ' END OF SELECTION'.
1) How do I retrieve the values of the output table to write it in the file.
2) I tried writing a small text in a file in End of Selection of the Infoset . When I executed the query.It didnt call that section of the code whereas same code when placed in start of selection, it worked. When is the Code in End of Selction is triggered.hi
good
go through these links, i hope thesell help you to solve your problem
http://help.sap.com/saphelp_erp2004/helpdata/en/11/723c3b35703079e10000000a114084/content.htm
http://help.sap.com/saphelp_46c/helpdata/EN/d2/cb43cc455611d189710000e8322d00/content.htm
thanks
mrutyun^ -
Hi all:
When an end-user clicks a link/button to connect to a URL, the security dialog automatically appears giving them the options of "Allow," "Block" or "Cancel". Should they select "Block" or "Cancel," can we trigger a message box informing them they blocked or cancelled the connection?
With traditional message boxes, we're causing them, ie
var rtnFromBox = xfa.host.messageBox("Information is missing.\n\n Are you sure you want to continue?", "Missing Information",1,2);
if (rtnFromBox == 4){
xfa.host.messageBox("Okay, we'll keep going.","",1,0);
But with the URL security dialog, we're not calling it from a variable - it just happens.
I guess a similar question could be applied to a "Save" button. Where if the end-user selects "cancel" on the "Save As" dialog, a warning could pop-up reminding them to save soon.
Thoughts? Thanks!
BrianRadz,
I didn't think so but figured I'd ask. Thanks for the response though!
Best,
Brian -
What is the need of END-OF-SELECTION event in ABAP reporting
Hi,
Can anyone explain the need of the END-OF-SELECTION event in ABAP Reports?
This event is used to terminate the previous event. Is that right? or is there any specific use of it?
and when exactly we use this event while writing a report? I mean what purpose?
Thanks,
Paddu.Hi,
END-OF-SELECTION makes more sense when you are using logical database in your program.
See these links.
http://help.sap.com/saphelp_46c/helpdata/en/34/8e74266df74873e10000009b38f9b8/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/9f/db9aca35c111d1829f0000e829fbfe/frameset.htm
After all the data has been selected END-OF-SELECTION event writes the data to the screen
The END-OF-SELECTION event is triggered in executable programs once the logical database has finished reading all data and before the list processor is started.
Try to go thro this link.
http://help.sap.com/saphelp_46c/helpdata/en/9f/db9a1435c111d1829f0000e829fbfe/frameset.htm
Mostly end-of-selection is used in logical data base. It is not mandatory.
Ex:
If you use a logical database in your report then this event is mandatory because when all the data selection from the database is finished this events get triggers.
For example if you are populating a internal table using a logical data base event 'GET' then you need this event because if you don't use this you get display again and again for each selection.
START-OF-SELECTION.
GET PERNR.
itab-pernr = pernr-pernr.
append itab.
*this get triggers after all selection from database.
END-OF-SELECTION.
loop at itab.
write:/ itab-pernr.
endloop.
Regards,
Padmam. -
Pass control to end of selection
hi all..
in a certain consition i want control to be pass to
END-OF-SELECTION. it is working with STOP but on compiling warning message 'Obsolete Statement ' comes.
IS there any alternative.
Message was edited by: sharadha sharmaHello Sharadha,
In which version u r working. U can also try REJECT stmt to leave the start-of-selection. However I did an extended program check and it didn't give me error abt obsolete stmt. -
Where does the control moves at first at END-OF PAGE or END-OF-SELECTION
Is END-OF PAGE triggered like TOP-OF-PAGE from the AT-SELECTON-SCREEN automatically with a write statement & where does the control moves at first
at END-OF PAGE or END-OF-SELECTION?Hi,
1. End-of-selection:
This event is triggered after the start-of-selection. to display the contents on the report.
2.Top-of-page: Every time a new page is triggered. Mainly this is used for header of the report.
3. End-of-page : every time the list data reaches the footer region of the page.
This way first data is disaplyed then it reaches the footer..
first End-of-selection then End-of-page
These example may help u in detail...
Leaving Event Blocks Using STOP
If you use the STOP statement within an event block, the system stops processing the block immediately. The ABAP runtime environment triggers the next event according to the following diagram:
Before and during selection screen processing, the next event in the prescribed sequence is always called. From the AT SELECTION-SCREEN event onwards, the system always jumps from a STOP statement directly to the END-OF-SELECTION statement. Once the corresponding event block has been processed, the system displays the list.
The following program is connected to the logical database F1S.
REPORT EVENT_TEST.
NODES: SPFLI, SFLIGHT, SBOOK.
START-OF-SELECTION.
WRITE 'Test program for STOP'.
GET SBOOK.
WRITE: 'Bookid', SBOOK-BOOKID.
STOP.
END-OF-SELECTION.
WRITE: / 'End of Selection'.
This produces the following output:
Test Program for STOP
Bookid 00010001
End of Selection
As soon as the first line of SBOOK has been read, the system calls the END-OF-SELECTION event block.
Exiting Event Blocks Using EXIT
If you use the EXIT statement within an event block but not in a loop, the system stops processing the block immediately. The ABAP runtime environment triggers the next event according to the following diagram:
Before and during selection screen processing, the next event in the prescribed sequence is always called. From the START-OF-SELECTION event onwards, the system starts the list processor directly when the EXITstatement occurs, and displays the list.
If the EXIT statement occurs inside a DO, WHILE, or LOOP loop, it is the loop that terminates, not the processing block.
The following executable program is connected to the logical database F1S.
REPORT demo_program_exit_1.
NODES: spfli, sflight, sbook.
START-OF-SELECTION.
WRITE 'Test Program for EXIT'.
GET sbook.
WRITE: 'Bookid', sbook-bookid.
EXIT.
END-OF-SELECTION.
WRITE: / 'End of selection'.
This produces the following output:
Test Program for EXIT
Bookid 00010001
After the first line of SBOOK has been read, the list is displayed immediately.
The following executable program is connected to the logical database F1S.
REPORT demo_program_exit_2.
NODES: spfli, sflight, sbook.
DATA flag(1) TYPE c.
AT SELECTION-SCREEN.
IF carrid-low IS INITIAL.
flag = 'X'.
EXIT.
ENDIF.
START-OF-SELECTION.
IF flag = 'X'.
WRITE / 'No input for CARRID'.
EXIT.
ENDIF.
GET spfli.
GET sflight.
GET sbook.
END-OF-SELECTION.
WRITE / 'End of Selection'.
If the user does not enter a value for CARRID-LOW, the output appears as follows:
No selection made for CARRID
After the first EXIT statement, the next START-OF-SELECTION event is triggered. After the second EXITstatement, the output list is displayed.
Regards. -
Hi - I am obviously new to Encore but this is what I want to do.
In a wedding video I want them to be able to:
1. Play the movie from start to finish.
2. Select a sequence (say Speeches) that plays from the start of the sequence until the END of the whole video.
So do I need 1 video for the play all one, as well as the 4 sequences - Reception, Cake, Speeches, Dancing?
ColinYou can use separate videos, or a single video. The single video is easier for your desired navigation. You will find more people asking how to get the "chapter" or scene video to back to a menu when it ends, and also have a play all. So ignore the advice on those.
Single video:
Your single video goes on one Encore timeline. "Play all" is a button to the timeline, and the timeline has an end action of "last menu."
Chapter menu has 4 buttons (plus a fifth to go back to the main menu), going to each respective chapter marker. There are no end actions on the chapter markers, so when another chapter is reached, it keeps playing through just like the play all.
Multiple videos:
Each video goes on its own timeline. The end action of video one timeline is video two timeline etc. Play all is a button that goes to timeline one. The chapter menu also has a button going to chapter one, and it works the same as the play all. Each of the chapter buttons go to their respective chapter timelines.
Encore can have some issues with lags, but I don't think they affect either of these workflows. Do not rely on the Encore preview; burn a test disk and play on a DVD player. -
'Abnormal condition' whenever i try to click on End Action selection button
Cannot choose an End Action or Menu Remote action for anything as this message comes up every time I try to select, in any context (I have tried on several different timelines in different places).
Full message is 'Sorry, an abnormal condition has been detected. Before quitting, you have one chance to save your project (don't use the same name as the original).I am finding I am getting the same error.
I have a single 23Gb file (created in Premiere) with Chapter points created and named in Encore. Chapter playlists work for start point for menus but when I try to select an end action (or any action on the Properties box for that matter) I get the same error as JXT.
I rebuilt the DVD again, mostly from scratch but using the same menus. Same error. I built it with new menus (thinking some sort of corruption) but same error. If I could type the end action that would be a good workaround, but you can't.
Any ideas???? -
ABAP QUERY - SQ02 addition of logic in infoset (END-OF-SELECTION)
I guys I have read this discussion: http://scn.sap.com/message/8193608#8193608
but solve partially my problem.
In particular I need special logic to interpret the single field from field symbol, for example:
loop at <goo> assigne <goo_wa>.
tot_qty = tot_qty + <goo_wa>vbap-zmeng.
endloop.
I would like to add new row, with my logic into stracture of query %G00.
thanks for any idea Omarresolved, it is must to use for all filed-symbols
example
types: beging of l_summary,
matnr type matnr,
end of l_summary.
data: lt_summary type standard table of l_summary,
ls_summary type line of lt_summary,
lf_string type string.
fiel-symbols: <gt> type standard table,
<ls> type any,
<lf> type any.
lf_string = '%G00[]'.
unassign <gt>
assign (lf_string) to <gt>.
if <gt> is assigned.
loop at <gt> assigning <ls>.
lf_string = '<ls>-vbap-matnr'.
unassign <lf>.
assign (lf_string) to <lf>.
if <lf> is assigned.
ls_summary-matnr = <lf>.
endloop -
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 -
GET PERNR thows to end Of Selection
Hi
i am new to the HR-ABAP
I am writing one custoized Payslip Z program. i have used Get Prnr macro. However, it does not populate the PERNR structure and the related infotypes.
Can someone help me where i am missing.
I used appropriate LDB in Program attriutes.
regards,
venkat- [GET|http://help.sap.com/abapdocu_70/en/ABAPGET-.htm] PERNR is not a macro but an Abap statement (actually an event) used in logical database (check nodes via SE36 on ldb like PNP), RP_READ_INFOTYPE is a macro as example.
- Did you define PERNR as [TABLES|http://help.sap.com/abapdocu_70/en/ABAPTABLES.htm] or [NODES|http://help.sap.com/abapdocu_70/en/ABAPNODES.htm] in your report
Sample
REPORT RPABAP05.
TABLES: PERNR.
INFOTYPES: 2001 MODE N.
GET PERNR.
RP-READ-ALL-TIME-ITY PN/BEGDA PN/ENDDA.
LOOP AT P2001.
WRITE: / P2001-ABWTG.
ENDLOOP.
other sample
REPORT RPABAP01.
TABLES: PERNR.
INFOTYPES: 0001.
GET PERNR.
PROVIDE * FROM P0001 BETWEEN PN-BEGDA AND PN-ENDDA.
WRITE: / P0001-PERNR,
P0001-STELL,
P0001-BEGDA,
P0001-ENDDA.
ENDPROVIDE.
(look at help.sap.com or sdn.sap.com with correct keywords, you will find many samples)
Regards,
Raymond -
CR+LF Code at the end of each record selected in sql cursor
i am selecting some data records in a sql cursor and writing it into a file using UTL_FILE.puT in a plsql procedure.
at the end of select statement if i add ||chr(13||chr(10) iam getting CR+CR+LF code
if i add only || chr(10) i am getting LF code.
What i need is only CR+LF code. Kindly help to use any other commands.
Thanks,
Shivaji.
Edited by: Shivaji M on Apr 22, 2010 12:11 AM
Edited by: Shivaji M on Apr 22, 2010 12:36 AMIt's in the book!
"PUT_LINE terminates the line with the platform-specific line terminator character or characters."
http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10577/u_file.htm#i997640
Maybe you are looking for
-
I've been using Steve Lambert's SelfControl to block myself from certain time-sucking internet sites for a certain period of time every day. I've automated the program launch using an AppleScript that runs based on an iCal alarm, but the problem is t
-
Update on a Table is Slow After a New Trigger is Applied on Table.
Hi All, Here is the situation: 1. Table A - we have INSURANCE Records. If we have to cancel Insurance for an agent we have to update cancellation_date & INS_Flag sysdate & 'N' respectively. It is having thousands of records. - > Every time we update
-
Airport Extreme Cards for Powerbook Ti
So, why noy make an internal airport extreme card for the Ti Powerbooks? It's not like theyre that old of a model. and if other companys can make em for external use why cant Apple do this? Hopefully someone at Apple reads this. Ive been an avid supp
-
Photoshop CS6 extended doesn't qualify for discounted Creative Cloud?
I have Photoshop CS6 extended already installed on my mac. I want to upgrade to Creative Cloud, £27.34 a month for CS customers but it tells me I don't qualify even though that program is linked to my Adobe ID? How is that the case?
-
Multiple channels definitions for AI
All examples for analog input use one channel only. I would like to see and example using multiple channel inputs.