Push button in output list
Hi,
Im displaying one text in output and next to that i need to create one push button as shown below. Is it possible in normal list or ALV ?
text PUSH BUTTON.
I dont want to create a push button in application tool bar, or menu bar. I need to create it in output list. Can anyone tell me how to do this?
Thanks,
Amal
Hi, Amal
In Normal List it is not possible i don't know your goal exactly there are some Ideas which you can use if your requirements are as i am thinking you can Check HOTSPOT with Write Statement. just write hotspot and Press F1 you will get info to use it on other way i am thinking if you want to select multiple record in ALV than Please have a look at the following Thread hope will help you out to take to step to solve your problem,
[Selecting Multiple rows in an ALV |Selecting Multiple rows in an ALV]
[Selecting Multiple Rows from ALV GRID Display|Selecting Multiple Rows from ALV GRID Display]
Sorry, if i didn't understand you.
Kind Regards,
Faisal
Similar Messages
-
Hi,
I am having a requirement in which, I need to display the report, in the output screen I should have a push button which when pressed the report output should be stored in the Application Layer.
Thanks and Regards,
V.K.HI Vikram,
You can create push button in the output list. You have to use SET PF-STATUS statement.
Just follow these stepts for creation of PUSH BUTTON.
1. write SET PF-STATUS 'TEST'.
2. double click on TEST.
3. It will ask you to create status object. click on YES.
4. give the short description and press enter.
5. next screen you will find three things like... MENU BAR, APPLICATION TOOL BAR and FUNCTION KEYS.
6. click on the down arrow that appears next to APPLICATION TOOL BAR.
7. in the items, in first box write your name and press down the text. one popup box will come. press enter.
8. give the function text and press enter.
9. assign key for your push button. and press enter.
10. press enter and activate.
and run your program. you will get push button on output list.
Adding event for the PUSHBUTTON
For the pushbutton use an sy-ucomm ie SAVE to appln toolbar
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'SAVE'.
write your code here to save in the appln server
Edited by: Raj on Jun 26, 2008 7:32 PM -
Hi all
Is this possible display the push buttons in output screen (not in selection screen).
ex:
write:/ 'name'.
output:
name [here i want to display the push button]
regards
Prajwal.Hi
we can put like thsi
We can Get this using READ LINE and MODIFY LINE statements.
Check the code below.
Execute it and Double click on the Basic list to see the effect.
data box.
do 5 times.
write: / box as checkbox, 'Hello click on me' .
enddo.
AT LINE-SELECTION.
IF SY-LSIND = 1.
SY-LSIND = 0.
DO.
READ LINE SY-INDEX FIELD VALUE BOX.
IF SY-SUBRC NE 0.
EXIT.
ENDIF.
BOX = 'X'.
MODIFY LINE SY-INDEX FIELD VALUE BOX.
ENDDO.
ENDIF.
<b>Reward if usefull</b> -
Hi ,
How can we insert a push button in a list and control it operatins.
Regards
ArunI am not sure about this, but you can give it a try.
Try
SET PF-STATUS '<YOUR PF-STATUS>'
and you can add buttons in the application toolbar. Have a gut feeling, it might work. Not sure though.
Regards,
Subramanian V. -
I want push button on output screen
Hi friends,
I want push button on toolbar output screen. After choosing this push button it will display one screen it having data below like this.
.Division channel
.Division
.Sales organization
.Sales Document
.Sales Document Type
.Sales Group
.Sales office
.Month
Plz help mehi sreerama,
to have a push button in ur report, u have to create a GUI status with command.
u can create gui status using command SET PF-STATUS 'XXXX'.
Create a button in GUI status, assign the function code for that button. Example FCODE.
After creating GUI status, u have to use AT USER-COMMAND event for button of GUI status in report program.
Then in ur report program, write like this.
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'FCODE'.
........................... " Your Logic to display what ever u want
ENDCASE.
sy-ucomm catches all the function codes of the system.
For further reference, check these links.
To create GUI status:
http://help.sap.com/saphelp_47x200/helpdata/en/d1/801d43454211d189710000e8322d00/frameset.htm
For List Events:
http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba3ae35c111d1829f0000e829fbfe/frameset.htm
http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba2c435c111d1829f0000e829fbfe/frameset.htm
<b><REMOVED BY MODERATOR></b>
Harimanjesh AN
Message was edited by:
Alvaro Tejada Galindo -
Need push button in output screen
Hi Friends,
I need to have a pushbutton in the output screen,how can i display it ? and if that push button is pressed ,it should perform an operation and display the output in next screen.
I have a condition that the select-option should act as parameter,How can I get it.
Thank you.
I Promise to Reward.Hi
See this code.
SELECTION-SCREEN BEGIN OF SCREEN 1001.
SELECTION-SCREEN: BEGIN OF BLOCK BL WITH FRAME TITLE TIT,
COMMENT /30(30) WEL,
SKIP 3.
PARAMETERS : FLIGHTNO LIKE ZFLIGHT-FNO,
FNAME LIKE ZFLIGHT-FNAME.
SELECTION-SCREEN: SKIP 2,
END OF BLOCK BL.
SELECTION-SCREEN : PUSHBUTTON 15(10) SH USER-COMMAND SHOW1,
PUSHBUTTON 30(10) IN USER-COMMAND INS1,
PUSHBUTTON 45(10) CL USER-COMMAND CLR1,
PUSHBUTTON 60(10) EX USER-COMMAND EX1,
PUSHBUTTON 73(10) NE USER-COMMAND NE1,
END OF SCREEN 1001.
INITIALIZATION.
TIT = 'WELCOME TO BLOCK'.
WEL = 'WELCOME TO SELECTION SCREEN'.
SH = 'SHOW'.
IN = 'INSERT'.
CL = 'CLEAR'.
EX = 'EXIT'.
NE = 'NEXT SCREEN'.
NEX = 'NEXT SCREEN1'.
CALL SELECTION-SCREEN 1001.
AT SELECTION-SCREEN.
CASE SY-UCOMM.
WHEN 'SHOW1'.
SELECT * FROM ZFLIGHT WHERE FNO = FLIGHTNO.
FNAME = ZFLIGHT-FNAME.
ENDSELECT.
WHEN 'INS1'.
ZFLIGHT-FNO = FLIGHTNO.
ZFLIGHT-FNAME = FNAME.
INSERT ZFLIGHT.
MESSAGE 'RECORD INSERTED' TYPE 'S'.
WHEN 'CLR1'.
FLIGHTNO = ' '.
FNAME = ' '.
WHEN 'EX1'.
LEAVE PROGRAM.
WHEN 'NE1'.
CALL SELECTION-SCREEN 1002.
WHEN 'NE2'.
CALL SELECTION-SCREEN 1001.
ENDCASE. -
Regarding Push Buttons in Output Screen
Hi All,
I want to add to buttons in the output screen(not in the selection-screen). I used the below code, but it was showing those buttons in selection screen. can any one help me how to get these two buttons in the output screen.
INITIALIZATION.
sscrfields-functxt_01 = 'AUTO POPULATE'.
sscrfields-functxt_02 = 'SAVE'.
AT SELECTION-SCREEN.
CASE sscrfields-ucomm.
WHEN 'FC01'.
WHEN 'FC02'.
ENDCASE.
Thanks in advance.
Regards,
Ramana Prasad. Thi
good
go through this code,which ll give you brief idea about create the button in output screen
*& Report ZSSCRBUTTON *
*& Adds buttons to selection screen. *
*& Demonstrates alteration of selection screen layout depending on *
*& which button is pressed. *
REPORT zsscrbutton NO STANDARD PAGE HEADING.
TABLES: t030, skat, sscrfields.
SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME
TITLE text-001.
SELECT-OPTIONS: p_ktopl FOR t030-ktopl,
p_komok FOR t030-komok,
p_ktosl FOR t030-ktosl.
SELECTION-SCREEN SKIP.
*SELECTION-SCREEN FUNCTION KEY 1. Adds button to application toolbar
Declaration of sel screen buttons
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN PUSHBUTTON (20) w_button USER-COMMAND BUT1.
SELECTION-SCREEN PUSHBUTTON (25) w_but2 USER-COMMAND BUT2.
SELECTION-SCREEN END OF LINE.
SELECT-OPTIONS: p_konts FOR t030-konts,
p_bklas FOR t030-bklas.
PARAMETER: gd_ucomm like sy-ucomm default BUT1′ no-display.
SELECTION-SCREEN END OF BLOCK block1.
TYPES: BEGIN OF t_t030,
ktopl TYPE t030-ktopl,
konts TYPE t030-konts,
txt20 TYPE skat-txt20,
bklas TYPE t030-bklas,
bkbez TYPE t025t-bkbez,
END OF t_t030.
DATA: it_t030 TYPE STANDARD TABLE OF t_t030 INITIAL SIZE 0,
wa_t030 TYPE t_t030.
DATA: gd_repsize TYPE i VALUE 83′.
*INITIALIZATION.
INITIALIZATION.
Add displayed text string to buttons
w_button = GL account selection.
w_but2 = Valuation class selection.
*AT SELECTION-SCREEN.
AT SELECTION-SCREEN.
Check if buttons have been
if sscrfields-ucomm eq BUT1′.
gd_ucomm = BUT1′.
clear: p_BKLAS.
refresh: p_BKLAS.
elseif sscrfields-ucomm eq BUT2′.
clear: p_KONTS.
refresh: p_KONTS.
gd_ucomm = BUT2′.
endif.
*AT SELECTION-SCREEN OUTPUT.
AT SELECTION-SCREEN OUTPUT.
if gd_ucomm eq BUT1′.
loop at screen.
if screen-name CS P_KONTS.
screen-active = 1.
elseif screen-name CS P_BKLAS.
screen-active = 0.
endif.
modify screen.
endloop.
elseif gd_ucomm eq BUT2′.
loop at screen.
if screen-name CS P_KONTS.
screen-active = 0.
elseif screen-name CS P_BKLAS.
screen-active = 1.
endif.
modify screen.
endloop.
endif.
thanks
mrutyun^ -
How to add push button in alv list
Dear all,
I am doing ALV report, in that i have some requirements as mentioned below
6. In the main report screen, each row should have a selection button at the left end. The entire row should be selectable by clicking on this button. By clicking on the button a second time the row gets deselected. The user should be able to select only one row at a time (i.e. he should not be able to select multiple rows simultaneously).
7. All Report screens should have standard SAP Navigation buttons.
8. The main Report Screen should have a Refresh Button. When the user clicks on this Refresh button the program should remember and re-execute (i.e. refresh) the last selection of the user in the Selection Screen above and the Main Report Screen should be re-displayed accordingly.
pleae help on me,
Regards ,
Sudhakar.hi
good
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
http://www.sap-img.com/abap/what-are-the-events-in-alv.htm
reward point if helpful.
thanks
mrutyun^ -
Execute in Back ground when push button clicked on alv output
Hi Friends,
I have a alv list display report with check boxes and a 'Detail' Push button in output
when i check the check boxes and click on the 'Detail' Push button detail report is
displayed using 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'. My requirement is if I click on 'Detail'
push button the code should also execute in back ground creating the spool. Request you
to help with sample code. I tried with below but not working.
WHEN 'DETAIL'.
call function 'START_OF_BACKGROUNDTASK'
exporting
startdate = sy-datum
starttime = sy-uzeit
exceptions
others = 1.
if sy-subrc = 1.
exit.
ELSE.
PERFORM determine_table_from_output CHANGING rs_selfield.
PERFORM call_alv_detail.
endif.
commit work.
Thanks,
Neetha.You could encapsulate the detail display in a separate report and call it in your 'DETAIL'-section like this:
DATA: lv_number TYPE tbtcjob-jobcount,
lv_name TYPE tbtcjob-jobname,
ls_rsparams TYPE rsparams,
lt_rsparams LIKE STANDARD TABLE OF ls_rsparams.
* Get free job number
CALL FUNCTION 'JOB_OPEN'
EXPORTING
jobname = lv_name
IMPORTING
jobcount = lv_number
EXCEPTIONS
cant_create_job = 1
invalid_job_data = 2
jobname_missing = 3
OTHERS = 4.
IF sy-subrc = 0.
SUBMIT 'ZDISPLAY_DETAIL'
VIA JOB lv_name NUMBER lv_number
WITH SELECTION-TABLE lt_rsparams
AND RETURN.
IF sy-subrc = 0.
* Submit
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
jobcount = lv_number
jobname = lv_name
strtimmed = 'X'
EXCEPTIONS
cant_start_immediate = 1
invalid_startdate = 2
jobname_missing = 3
job_close_failed = 4
job_nosteps = 5
job_notex = 6
lock_failed = 7
OTHERS = 8.
ENDIF.
Regards,
Ulrich -
Display output list by pressing a push button on selection screen.
Hi All,
Is there any possibility of displaying the output list by pressing a push button on the selection screen.
Thanks,
Neslin.Hi,
Just write the code like this
Case sy-ucomm.
when 'PRE'.
Here write the output list
" leave to list-processing. Write this statement
endcase.
Regards
Sarves -
Refreshing the list output upon clicking a push button
Hi All,
How do i refresh the <b>list output(not ALV)</b> already displayed upon clicking a push -button under AT USER-COMMAND ,if at all it is feasible ?
Any pointers will be rewarded with points.......
Regards
jaman
Message was edited by:
ABAP Techie
Message was edited by:
ABAP Techie
Message was edited by:
ABAP Techie
Message was edited by:
ABAP TechieHi,
Try with the method "refresh_table_display".
It has the syntax very similar to creating the table. It has two parameters. In the first one, you can mention if you want to refresh only the data (the icons are not refreshed)
Regards,
Bhaskar -
How to give push button in alv report output
hi,
my requirement is that , i have to give push button in alv report output(item level) not in application toolbar, i am using reuse_alv_grid_display FM, can any body provide me sample code
regards,
siva kumarhave a look at this thread, also has a sample report at the end from Uwe Schieferstein.
[button on alv list|How to add and program a pushbutton on ALV grid line;
seems not to work try this:
How to add and program a pushbutton on ALV grid line
Edited by: Micky Oestreich on May 15, 2008 10:20 PM -
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 lalaRefer 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 -
Wan to add push button in the output of ALV Grid display.
Hi Friends,
I wan to add a Push button in the output of ALV GRID display with STANDARD ikons.
How to copy standard ikons of GRID output.
How to apply the copied status into my code.
Regards,
VijiHi,
Goto SE41, create a pf-status for your alv report program.
On the next screen, click menu EXTRAS --> click option ADJUST TEMPLATES and select radiobutton LIST VIEWER --> you will get all standard buttons of alv in the pf-status.
Delete the unwanted buttons and also you can add new buttons if reqd.
Activate pf-status --> and apply in alv program.
Now to apply this pf-status in your alv report follow code:-
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = v_rep_id " report id
i_callback_pf_status_set = 'PF' " for PF-STATUS
i_callback_user_command = 'USER_COMMAND' " for User-Command
is_layout = wa_layout " for layout
it_fieldcat = it_field " field catalog
it_sort = it_sort " sort info
TABLES
t_outtab = it_final " internal table
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.
*& Form pf
* SUB-ROUTINE PF IS USED TO SET THE PF-STATUS OF THE SCREEN
* ON WHICH THE ALV GRID IS DISPLAYED
* -->RT_EXTAB
FORM pf USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZTG_STAT'. "<--pass pf-status name here
ENDFORM. "pf
*& Form USER_COMMAND
* SUB-ROUTINE USER_COMMAND IS USED TO HANDLE THE USER ACTION
* AND EXECUTE THE APPROPIATE CODE
* -->LV_OKCODE used to capture the function code
* of the user-defined push-buttons
* -->L_SELFIELD text
FORM user_command USING lv_okcode LIKE sy-ucomm l_selfield TYPE slis_selfield.
* assign the function code to variable v_okcode
lv_okcode = sy-ucomm.
* handle the code execution based on the function code encountered
CASE lv_okcode.
WHEN '<function_code>'. "<--to handle user actions
ENDCASE.
ENDFORM. "USER_COMMAND
Hope this helps you.
Regards,
Tarun -
Add button to QA33 ALV output list
Hi, SAP experts:
I need to add a custom button to the ALV output list display in QA33 transaction.
I´ve only found the BAdi ALV_SWITCH_GRID_LIST, but it doesn´t fit my requirements at all.
Any idea?
Thank you very much!Hi,
Please check if this explanation helps you,
Custom Butoon in REUSE_ALV_GRID_DISPLAY_LVC
Regards
Ram
Maybe you are looking for
-
Hi, I'm developing an ESB that polls for a file (unix), truncates a table (using a database adapter) and then uses the data file to re-populate the table (database adapter). My file has 4900 records. The file adapter has been created to process recor
-
Need invoice numbers for material masters.
Dear experts, I have a list of approx. 200 PO numbers (not SO numbers) and material masters. I need to find invoice# for each PO#. Could you please help me what is the fastest way to find the invoice# using the data mentioned above? I do not want to
-
My MacBook powes up , white screen chimes then starts to beep beep beep ! Please help
MacBook powers up then chimes and the beeps three times then stops then three times Please help
-
Adding mail ids & Removing mail ids from the last step of process chain
Hi Can you please guied me how to do this. Adding mail ids & Removing mail ids from the last step of process chain. Thanks Subbu
-
Is it possible to upgrade the software version of the C40 from TCNC to TC?
Our end user have existing C40 unit which supports TCNC sw and is currently using TCNC6.2. their HO tried upgrading their unit to TC7.1.4.908e4e9 and it's successful unfortunately the "missing RK" message appear. I believe the TCNC is totally differe