Push button "Select Block" on the list screen?Interactive report
Hi, i am developing a plain report(Use read data & write output, not ALV).
And there was a checkbox(itab-chx) before each line of the output list.
The customer wants me to add 4 buttons on the menu bar, they are 'Delete', 'Select ALL', 'Deselect all', <b>'Select block'</b>.
As far as i know that 'Delete' button is for the user to delete the entries which they have checked using the checkbox.
As for 'Select ALL' is that when they push this button, all the checkbox on the output list are checked.
As for 'Deselect all' is that ...all are unchecked.
<b>BUT</b> i dont have any idea on 'Select Block' function?? What it is and how to program and handling with this button???
Below is my code for those button, just dont know what 'Select block' means
at user-command.
case sy-ucomm.
when 'DLT'. 'Delete
'Do delete things...
when 'SLL'. 'Select all
loop at itab.
itab-chx = 'X'.
modify itab index sy-tabix.
endloop.
sy-lsind = 0.
perform output.
when 'DSL'. 'Deselect all
loop at itab.
itab-chx = ' '.
modify itab index sy-tabix.
endloop.
sy-lsind = 0.
perform output.
when 'SBL'. 'Select block
'???? No idea at all!!!
endcase.
Great thanks!!! Any helps?
Hoo lala
Message was edited by:
Hoo lala
Message was edited by:
Hoo lala
Refer this demo report, it is having 2 buttons one Call (defined in PF status) and other one PA30 one.
u have to create a PF status, and there in Application Toolbar option i have cretaed a button Named Call. like tht u can create more buttons as per ur requirement.
REPORT ZGILL_CALLREPORT .
DATA: L_PERNR(20).
parameters : p_rname(20) obligatory DEFAULT 'NONE'.
INCLUDE <icon> .
selection-screen pushbutton 60(20) gocfg user-command amit.
AT SELECTION-SCREEN OUTPUT.
write icon_configuration as icon to gocfg.
concatenate gocfg 'Go to PA30' into gocfg.
AT SELECTION-SCREEN.
if sy-ucomm = 'AMIT'.
SET PARAMETER ID 'PER' FIELD '10000000'.
call transaction 'PA30'.
ENDIF.
Start-of-selection.
write: 'This Report is called by report',' ',p_rname left-justified.
set pf-status 'TEST'.
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'CALL'.
submit zgill_it using selection-set 'TESTING_IT'
exporting list to memory and return.
perform get_output.
WHEN '&F03'.
LEAVE SCREEN.
WHEN '&F15'.
LEAVE PROGRAM.
ENDCASE.
*& Form get_output
* text
* --> p1 text
* <-- p2 text
form get_output .
data : listobject like abaplist occurs 0.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = listobject
* EXCEPTIONS
* NOT_FOUND = 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.
CALL FUNCTION 'DISPLAY_LIST'
* EXPORTING
* FULLSCREEN =
* CALLER_HANDLES_EVENTS =
* STARTING_X = 10
* STARTING_Y = 10
* ENDING_X = 60
* ENDING_Y = 20
* IMPORTING
* USER_COMMAND =
TABLES
listobject = listobject
* EXCEPTIONS
* EMPTY_LIST = 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.
refresh listobject.
endform. " get_output
Similar Messages
-
Where to write the code when the push button is clicked in the screen
I have designed a screen with a push button and a text box
If i click on the push button it should display a value 'hello' in the text box. How to doWhen you are using module pool programming,
handle the push button function code in the PAI module and make sure the text field is updated whenever that function code for push button gets executed.
And one more thing is that make sure you set the next screen to the same screen number because after executing the function code then again it has to go back to the PBO of that screen for displaying the text field.
For inital display, the text field is displayed blank and it is filled when that function code is executed.
Regards,
Balaji Reddy G
Note:Please reward if the answers are helpful -
HI all,
When i am calling another screen from my report program to display the result. I am Able to display the result on the intended screen but when i click on back the back button it is returing to the list screen first and than next to the selection screen.
I dont want to get the list screen in between but only the selection screen should be displayed when i click on the back button.
How to avoid the display of the list screen.
Thanks in advance.
Regards
Satish.Hi,
Could u plz give the part of code where u get this problem. Need to know whether u r calling a transaction?
Try this
MODULE user_command_9100 INPUT.
CASE sy-ucomm.
WHEN 'EXIT' OR 'CANC'.
LEAVE. " to SCREEN 0.
WHEN 'BACK'.
SET SCREEN '0'.
LEAVE SCREEN.
This leaves the program but you may need to re-call the
transaction to go back to the original screen
WHEN OTHERS.
ENDCASE.
ENDMODULE. " USER_COMMAND_9100 INPUT
Message was edited by: Judith Jessie Selvi -
As I downloaded new software upgrade in my iPod nano 7 th gen and also new iTunes upgrade then all data on my iPod got erased and now when I am trying to sync it again then sync button is disabled on the windows screen . Kindly help
From the OP: "My old computer got a virus and when that happened all my music was lost. "
They don't have the music on their computer so they cannot transfer the iTunes folder, from the computer to their iPod and then to the new computer. And if they try to enable disk use on the iPod it will erase all the music that is on it. The method you cited is moving the files in a data format using the iPod as a flash drive. It doesn't work if they are in music format. That is why I suggested Yamipod. -
can anyone help please. how do i get the home button to appear on the touch screen my home button has stopped working?
I have same problem.
However, I am unable to turn on Assistive Touch.
At one time I was able to activate it, but it went away and now I cant reactivate.
What is the solution? -
Push button in one of the columns of Table Control
Hi,
I have a requirement, where i have to display a push button in one of the columns of table control for long text. When user clicks on the control, a pop up has to be appeared in which user should be able to enter some meaning ful description and save it. please suggest me how to do this requirement.
Best Regards,
Phani Kumar. SHai,
You can drag n drop a button to the required column in the table control and give the required parameters like ok_code , name etc.
You can now place a text field as the heading of the column.
Now when the user clicks the the button in a row, read the corresponding line in which he has clicked.For that u can use
get cursor lines wrk_line.
now u'll get the data in that row using
Read table it_tab into wa_tab index wrk_line.
now u can call the text editor (using FM's READ_TEXT ,EDIT_TEXT and CREATE_TEXT in which the user can enter the meaningful description and save it.
When u save the text entered save it with a key part of the row that was read earlier(keep it as the text name).
So now if u need to get the description which was entered earlier u can easily read the text (using READ_TEXT ).
I hope this will be helpful for u .
Thanks
Neeraj -
Custom Infotype not displaying locked records in the list screen (3000)
I have a custom infotype (9xxx) that will not display the locked records (locked indicator (sprps) is set to X) in the list screen (3000) in PA20 and PA30.
Any ideas on what may be causing the records to not display in the list screen?
Thanks,
TedHi,
for creating both employee and appliciant infotype you must check 'Both' in PM01 IT tab.
Regards. -
How to stop Mail from selecting addresses from the list of Previous Recipients?
How to stop Mail from selecting addresses from the list of Previous Recipients?
This is a related question.
I deleted ALL my previous recipients and when I create a new e-mail it STILL is getting addresses that I don't want - they pop up and I don't know how to stop this!
I switched from one ISP to another - I deleted the old e-mail account in MAIL - I DID use the same name on the account - is that why it keeps bringing up the old address?
ARGH! -
Since yesterday my Apple TV will not load the movies or tv at all. I select it from the home screen, it goes black, tries to load then goes back to the home screen. YouTube and Netflix works though. I've reset the Apple TV and the modem. No change. Any ideas what the problem is?
Apple TV: Unable to access Movies, TV Shows, or other iTunes features after updating
http://support.apple.com/kb/TS4526 -
How to find the list of Queries/Reports which are using Exceptional Aggregation in SAP BI?
Hi All,
We are interested to know how to find the list of Queries/ Reports which are using Exceptional aggregation in SAP BI.
Please let us know is there any table's to check the list of reports using Exceptional Aggregation in SAP BI.Hi,
Here you go..
1) Go to table RSZCALC and get list of ELTUID where AGGREXC is not INITIAL and AGGRCHA is not initial; now you get only exception aggregation set based on some chars. Also you can further add STEPNR = 1 since your intention is just to get query name , not the calculation details; this will reduce number of entries to lookup and save DB time for next steps.
Here you will get list of exception aggregation UUID numbers from which you can get properties from RSZELTDIR.
2) Pass list of RSZCALC-ELTUID to table RSZELTXREF - TELTUID and get list of RSZELTXREF -SELTUID - this table stores query to it's elements maping kind.
3) Now again pass RSZELTXREF - SELTUID into same table but into different field RSZELTZREF - TELTUID and get RSZELTXREF - SELTUID
This step you get query reference sheet or column or query general UUID for next step.
4) Pass list of RSZELTXREF - SELTUID into RSZELTDIR - ELTUID with DEFTP as 'REP'. Now you get list of query names in RSZELTDIR - MAPNAME and description in TXTLG.
Note: you can also get the reference chars used for exception aggregation from RSZCALC - AGGRCHA field.
Hope this helps.
Please keep in mind, it might take more time depends on how many query elements you have in the system...
Comments added for better DB performance by: Arun Thangaraj -
How to find the list of custom reports?
Hello All,
I am trying to get a list of all the custom reports that we have by responsiblity in 11.5.10.2. This to identify and move them into the our newly upgraded R12 instance.
Is there a query that can be written against the FND tables to get this listing?
Pls. help
Thanks,
Monkey.I am trying to get a list of all the custom reports that we have by responsiblity in 11.5.10.2. This to identify and move them into the our newly upgraded R12 instance.
Is there a query that can be written against the FND tables to get this listing?There is no direct way to get the list of custom reports unless you followed the naming convensions when you created those reopports (i.e. your object/file name starts with XX_%).
https://forums.oracle.com/forums/search.jspa?threadID=&q=List+AND+Custom&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
In this case, you can query FND_CONCURRENT_PROGRAMS_TL/FND_CONCURRENT_PROGRAMS/FND_CONCURRENT_PROGRAMS_VL -- Search the forum for those objects and you will find many helpful queries.
Thanks,
Hussein -
Unable to retrieve the list of Standard Reports
Hi,
User needs an aging report in PW90 paper but gets an error message when clicking on to the report tab once logged into SAP portal.
Error message:
Unable to retrieve the list of Standard Reports. Please call the Help Desk to report the problem. Error encountered while connecting to R/3. java.lang.NullPointerException.
I checked the java support in Internet explorer and deleted the cookies and temporary files but he kept having the same issue.
Please Help on this !!
Thanks in advance.Hi,
Try to restart the portal server.
Regards, -
What are the events in interactive reports?
what are the events in interactive reports?
could plz explainhi,
First event -
Initialization : triggered when the report is loaded in memory.
At selection-screen output : triggered when the selection screen is loaded in memory before being displayed.
At selection-screen : before leaving the selection screen.
start-of-selection : the first event for displaying the report.
This event keyword defines an event block whose event is triggered by the ABAP runtime environment
when calling the executable program selection screen processing of a selection screen.
In an executable program, all statements that are not declarations,
and are listed before the first explicit processing block, are assigned to this event block.
If the program does not contain an explicitly defined event block START-OF-SELECTION,
these statements form the complete event block START-OF-SELECTION.
If a program contains an explicitly defined event block START-OF-SELECTION,
these statements are added to the beginning of the event block.
If the program contains no explicitly defined event blocks,
these statements form the entire event block START-OF-SELECTION.
end-of-selection : after the start-of-selection is completed.
classiscal report events.
top-of-page : every time a new page is started in the list.
end-of-page : every time the list data reaches the footer region of the page.
interactive report events.
top of page during line selection : top of page event for secondary list.
at line-selection : evey time user dbl-clicks(F2) on the list data.
at pF<key> : function key from F5 to F12 to perform interactive action on the list.
at user-command
<b>http://help.sap.com/saphelp_47x200/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm</b>
Rgds
Anver -
What is difference between interactive list and interactive reports?
what is difference between interactive list and interactive reports?
hi check this..
interactive report/list means any input(double click or single click or user command ) on the screen will results a new screen with the corresponding fields....this is upto 20 levels only check this..
report .
start-of-selection.
write:/ 'this is the source list'.
at line-selection .
if sy-lsind = 1 .
write:/ ' this is the 1st list'.
elseif.
if sy-lsind = 2 .
write:/ ' this is the 2 list'.
if sy-lsind = 3 .
write:/ ' this is the 3 list'.
if sy-lsind = 4 .
write:/ ' this is the 4 list'.
if sy-lsind = 5 .
write:/ ' this is the 5 list'.
if sy-lsind = 6 .
write:/ ' this is the 6 list'.
if sy-lsind = 7 .
write:/ ' this is the 7 list'.
if sy-lsind = 8.
write:/ ' this is the 8 list'.
if sy-lsind = 9 .
write:/ ' this is the 9 list'.
if sy-lsind = 10 .
write:/ ' this is the 10 list'.
endif.
regards,
venkat -
What is the difference between interactive report and alv interactive repor
what is the difference between interactive report and alv interactive report
could u plz explain clearly.Hi Rajesh,
interactive report or alv interactive report , both are same but except the viewer, Abap List Viewer (ALV).
Here in i am placing a sample simple ALV Interactive report.
Just double click on the customer number to go to the next screen.
*& Report ZKAL_ALV_INTERACTIVE_1 *
REPORT ZKAL_ALV_INTERACTIVE_1 .
TYPE-POOLS: SLIS.
TYPES: BEGIN OF TY_KNA1,
KUNNR TYPE KUNNR,
NAME1 TYPE NAME1,
ORT01 TYPE ORT01,
END OF TY_KNA1.
TYPES: BEGIN OF TY_VBAK,
VBELN TYPE VBELN,
ERNAM TYPE ERNAM,
ERDAT TYPE ERDAT,
NETWR TYPE NETWR,
WAERK TYPE WAERK,
END OF TY_VBAK.
&--WORK AREA & TABLE DECLARATION--
DATA: W_KNA1 TYPE TY_KNA1.
DATA: T_KNA1 TYPE STANDARD TABLE OF TY_KNA1 INITIAL SIZE 1.
DATA: W_VBAK TYPE TY_VBAK.
DATA: T_VBAK TYPE STANDARD TABLE OF TY_VBAK INITIAL SIZE 1.
&--FIELDCAT TABLE & WORK AREA--
DATA: W_FCAT TYPE SLIS_FIELDCAT_ALV.
DATA: T_FCAT TYPE SLIS_T_FIELDCAT_ALV.
DATA: W_FCAT1 TYPE SLIS_FIELDCAT_ALV.
DATA: T_FCAT1 TYPE SLIS_T_FIELDCAT_ALV.
&--EVENT TABLE AND WORK AREA--
DATA: W_EVENTS TYPE SLIS_ALV_EVENT.
DATA: T_EVENTS TYPE SLIS_T_EVENT.
DATA: W_EVENTS1 TYPE SLIS_ALV_EVENT.
DATA: T_EVENTS1 TYPE SLIS_T_EVENT.
&--COMMENT TABLE & WORK AREA--
DATA: W_COMMENT TYPE SLIS_LISTHEADER.
DATA: T_COMMENT TYPE SLIS_T_LISTHEADER.
DATA: W_COMMENT1 TYPE SLIS_LISTHEADER.
DATA: T_COMMENT1 TYPE SLIS_T_LISTHEADER.
&----APPENDING FCAT -
W_FCAT-COL_POS = 1.
W_FCAT-FIELDNAME = 'KUNNR'.
W_FCAT-SELTEXT_M = 'CUST. NO'.
W_FCAT-HOTSPOT = 'X'. "HOT SPOT HAND SYMBOL
W_FCAT-EMPHASIZE = 'C119'. "FOR COLORING THE COLUMN 1
APPEND W_FCAT TO T_FCAT.
CLEAR W_FCAT.
W_FCAT-COL_POS = 2.
W_FCAT-FIELDNAME = 'NAME1'.
W_FCAT-SELTEXT_M = 'CUST. NAME'.
APPEND W_FCAT TO T_FCAT.
W_FCAT-COL_POS = 3.
W_FCAT-FIELDNAME = 'ORT01'.
W_FCAT-SELTEXT_M = 'CITY'.
APPEND W_FCAT TO T_FCAT.
W_FCAT1-COL_POS = 1.
W_FCAT1-FIELDNAME = 'VBELN'.
W_FCAT1-SELTEXT_M = 'ORDER NO'.
W_FCAT1-EMPHASIZE = 'C519'.
APPEND W_FCAT1 TO T_FCAT1.
CLEAR W_FCAT.
W_FCAT1-COL_POS = 2.
W_FCAT1-FIELDNAME = 'ERNAM'.
W_FCAT1-SELTEXT_M = 'NAME OF PARTY'.
APPEND W_FCAT1 TO T_FCAT1.
W_FCAT1-COL_POS = 3.
W_FCAT1-FIELDNAME = 'ERDAT'.
W_FCAT1-SELTEXT_M = 'DATE'.
APPEND W_FCAT1 TO T_FCAT1.
W_FCAT1-COL_POS = 4.
W_FCAT1-FIELDNAME = 'NETWR'.
W_FCAT1-SELTEXT_M = 'ORDER VALUE'.
APPEND W_FCAT1 TO T_FCAT1.
W_FCAT1-COL_POS = 5.
W_FCAT1-FIELDNAME = 'WAERK'.
W_FCAT1-SELTEXT_M = 'CURRENCY'.
APPEND W_FCAT1 TO T_FCAT1.
&--APPEND COMMENTRY--
W_COMMENT-TYP = 'H'.
W_COMMENT-INFO = 'CUSTOMER DETAILS'.
APPEND W_COMMENT TO T_COMMENT.
CLEAR W_COMMENT.
&--APPEND EVENTS TABLE--
W_EVENTS-NAME = 'TOP_OF_PAGE'.
W_EVENTS-FORM = 'TOPPAGE'.
APPEND W_EVENTS TO T_EVENTS.
W_EVENTS-NAME = 'USER_COMMAND'.
W_EVENTS-FORM = 'SUB2'.
APPEND W_EVENTS TO T_EVENTS.
W_EVENTS1-NAME = 'TOP_OF_PAGE'.
W_EVENTS1-FORM = 'TOPPAGE1'.
APPEND W_EVENTS1 TO T_EVENTS1.
CLEAR W_EVENTS1.
W_EVENTS1-NAME = 'USER_COMMAND'.
W_EVENTS1-FORM = 'SUB3'.
APPEND W_EVENTS1 TO T_EVENTS1.
SELECT-OPTIONS: CUSTNO FOR W_KNA1-KUNNR.
SELECT KUNNR
NAME1
ORT01 FROM KNA1 INTO TABLE T_KNA1
WHERE KUNNR IN CUSTNO.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = 'ZKAL_ALV_INTERACTIVE_12'
I_BACKGROUND_ID = 'BIKE'
I_GRID_TITLE = 'CUSTOMER DETAILS'
IT_FIELDCAT = T_FCAT
IT_EVENTS = T_EVENTS
TABLES
T_OUTTAB = T_KNA1 .
FORM TOPPAGE.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = T_COMMENT
I_LOGO = 'LOGO_ALV'.
ENDFORM. "END OF TOPPAGE SUB.
FORM SUB2 USING UCOMM LIKE SY-UCOMM FIELDS1 TYPE SLIS_SELFIELD.
READ TABLE T_KNA1 INTO W_KNA1 INDEX FIELDS1-TABINDEX.
SELECT VBELN
ERNAM
ERDAT
NETWR
WAERK
FROM VBAK
INTO TABLE T_VBAK
WHERE KUNNR = W_KNA1-KUNNR.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = 'ZKAL_ALV_INTERACTIVE_12'
I_BACKGROUND_ID = 'KALEEM'
I_GRID_TITLE = 'LIST OF ORDERS'
IT_FIELDCAT = T_FCAT1
IT_EVENTS = T_EVENTS1
TABLES
T_OUTTAB = T_VBAK.
ENDFORM. "END OF SUB2.
FORM TOPPAGE1.
&--APPEND COMMENTRYOF SECONDRY SCREEN--
W_COMMENT1-TYP = 'H'.
W_COMMENT1-INFO = 'LIST OF ORDERS'.
APPEND W_COMMENT1 TO T_COMMENT1.
W_COMMENT1-TYP = 'S'.
W_COMMENT1-KEY = 'CUSTOMER'.
W_COMMENT1-INFO = W_KNA1-KUNNR.
APPEND W_COMMENT1 TO T_COMMENT1.
CLEAR W_COMMENT.
W_COMMENT1-TYP = 'A'.
W_COMMENT1-INFO = W_KNA1-NAME1.
APPEND W_COMMENT1 TO T_COMMENT1.
CLEAR W_COMMENT1.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = T_COMMENT1
I_LOGO = 'LOGO_ALV'
REFRESH T_COMMENT1.
ENDFORM. "END OF TOPPAGE1
FORM SUB3 USING UCOMM LIKE SY-UCOMM FIELDS1 TYPE SLIS_SELFIELD.
READ TABLE T_VBAK INTO W_VBAK INDEX FIELDS1-TABINDEX.
SET PARAMETER ID 'AUN' FIELD W_VBAK-VBELN.
CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN.
ENDFORM.
U can also find some of the useful codes on WIKI-SDN.
Reward helpful Answers.
Regds,
Kaleem.
Maybe you are looking for
-
Canon i860 driver no longer shows in airport express
I've been printing to a canon i860 via airport express without incident for a year now. I only do it when I travel on business, so its like twice a quarter. Im out on a trip now and got everything setup only to find that in printer setup utility it
-
ITunes Match won't recognize my MBA equipped with a new SSD
Hi, Here's the situation: I replaced the SSD in my late 2010 MBA to add storage space. Everything went perfectly well and I have been using it for weeks, no problem whatsoever with any of my iCould stuff - calednar entries, contacts etc. as everythin
-
Namespace problem while updating a desktop app
Hello, I've searched on a lot of forums but didn't find anything accurate on my problem. I have an old AIR 2.0 desktop app that updated itself. I want to update it to the last 3.4 framework. So I followed instructions for the intermediate application
-
How can I type Lao language in my iPad?
I can read lao language in my iPad2 but i can type it. How can I add lao font in my iPad? Any suggestion for me plz.
-
ICal and contact duplicates in my iPhone and MacBook
Hi, I have seen other discussions related to this subject but I can't seem to fix it. I have duplicates in my iPhone and MacBook of both iCal events and contacts. I am probably doing something wrong because if I add an event on my MacBook it will app