Command Button on selection screen application tool bar
Hi All,
I want to add command Button on selection screen application bar.
it is my z progarm .
please suggest one sample code .
regards,
Ajay reddy
Goto SE41, create a Status and the call it in your app.
SET PF-STATUS 'TEST'.
Greetings,
Blag.
Similar Messages
-
How many push buttons can u place on selection screen application tool bard
hi
how many push buttons can u place on selection screen application tool bar
and what is default function code for that buttons.Hi Chaitanya,
You can place maximum 5 push buttons on Application Toolbar.
please award the points incase if you are able to get the solution.
Thanks
Sivaram -
Creating push button on Selection screen application toolbar
Hi Friends,
this is a HR-ABAP report. I have to create a push button on Selection screen. when user clicks on that push button 'MODAL DIALOG BOX' has to be displayed containing some data.
plz kindly give some sample code to do this.
Regards,
Radhika Dasharatha.Hi,
1)Use SELECTION-SCREEN PUSHBUTTON /10(20) PUSH USER-
COMMAND 'ABC'. in selection screen.
2) Give the static name to button in INITIALIZATION event like PUSH = 'PRESS'.
3) At selection screen.
if sy-ucomm eq 'ABC'.
call FM HR_BE_GE_MODAL_DIALOG
endif.
Thanks
Sandeep
Reward if useful -
How to create print button in the Application tool bar in the Std.SAPscreen
Hi,
I want to create a print button in Production order display:header screen in CO03 transaction.In that after Viewer button(i.e. in application tool bar) ,I have to create this print button. Can anyone suggest me How do i need to proceed further?hi,
Use this code..
REPORT Z_TEST999 .
DATA itab TYPE TABLE OF sy-ucomm.
PARAMETERS test(10) TYPE c.
AT SELECTION-SCREEN OUTPUT.
APPEND: 'E' TO itab.
CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = sy-pfkey
TABLES
p_exclude = itab.
Regards,
Sailaja. -
Copy as icon on Application Tool bar
Hi Friends,
My requirement is like this. There is an button as COPY on application tool bar. when u select a row and click tht button the same record is copied and inserted into a new row at the end of all the records.
Can any one explain me hw to solve this or if any one has does this can u post the code.
Thanks and I appreciate u r help.
with regards,
chaithanya.Hi Chaithanya,
Please check my sample code from other thread.
WHEN 'COPY'.
READ TABLE TC-COLS INTO COL WITH KEY SCREEN-INPUT = '1'.
IF SY-SUBRC = 0.
CALL SCREEN 200 STARTING AT 03 01 ENDING AT 32 4.
IF COPY_OK = 'ENTER'.
LOOP AT I_BINLOC INTO ZMBINLOC WHERE ZMARK = 'X'.
ZMBINLOC-WERKS = COPY_WERKS.
ZMBINLOC-LGORT = COPY_LGORT.
ZMBINLOC-ZMARK = ' '.
INSERT ZMBINLOC INTO I_BINLOC INDEX SY-TABIX.
ENDLOOP.
SORT I_BINLOC ASCENDING BY WERKS LGORT ZBINLOC.
DELETE ADJACENT DUPLICATES FROM I_BINLOC.
DESCRIBE TABLE I_BINLOC LINES TC-LINES.
ENDIF.
ENDIF.
Regards,
Ferry Lianto -
Add bottons on the application tool bar of the standard selection screen
Hi All,
I am having the standard selection screen in module pool programing. I wnat to add the bottons on the application tool bar of the standard selection screen.and hide the existing bottons (like std. execute and i bottons.)instead of these i want to give my won bottons like create and display.
pls help on this.Hi Sridhar,
Try the Code below. It places two buttons on the selection-screen along with the execute button.
TABLES sscrfields.
PARAMETERS: p_carrid TYPE s_carr_id,
p_cityfr TYPE s_from_cit.
SELECTION-SCREEN: FUNCTION KEY 1,
FUNCTION KEY 2.
INITIALIZATION.
sscrfields-functxt_01 = 'LH'.
sscrfields-functxt_02 = 'UA'.
AT SELECTION-SCREEN.
CASE sscrfields-ucomm.
WHEN'FC01'.
p_carrid = 'LH'.
p_cityfr = 'Frankfurt'.
WHEN 'FC02'.
p_carrid = 'UA'.
p_cityfr = 'Chicago'.
ENDCASE.
START-OF-SELECTION.
WRITE / 'START-OF-SELECTION'.
Just go to the table sscrfields to knoe the fields in it. I think this clears the issue.
Regards,
Swapna. -
Application tool bar at selection screen
HI.
For application tool bar iam using following code.
SELECTION-SCREEN: FUNCTION KEY 1,
FUNCTION KEY 2.
sscrfields-functxt_01 = 'Report'.
sscrfields-functxt_02 = 'Clear'.
But iam getting 3 application tool bar 1.Execute 2.Report 3.Clear.
I want only Report and Clear buttons,how can I remove default execute button from application tool bar.
Pls advice me .
Reward all helpful answers,
Regards.
Anil.hi,
AT SELECTION_SCREEN OUTPUT.
SET PF-STATUS 'SPACE' EXCLUDING 'EXECUTE'.
We can do the above way but handle the other buttons as per your requirement
Thanks & Regards,
Chandralekha. -
Regarding list display + button on application tool bar
Hi guru's
I have a requirement like i need to select one particular record in the list display and prees on the button which is placed on the application tool bar.Then i should get one more screen where i can enter some details.
As per my knowledge it is possible only in grid display.
Kindly let me know if it is possible.
It would be great help if sample coding is provided.Hi Ajay,
You can do this in alv list display also.
Copy the standard gui status in ur program using tcode SE51->user interface>copy->target prog name.activate it
and add a button there.Use FM <b>'REUSE_ALV_EVENTS_GET'</b> to get user-command event.
sample code :
form Z8_EVENTCAT using p_i_eventcat TYPE SLIS_T_EVENT.
DATA : L_EVENT TYPE SLIS_ALV_EVENT.
FOR GETTING ALL 17 EVENTS
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
ET_EVENTS = P_I_EVENTCAT
EXCEPTIONS
LIST_TYPE_WRONG = 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.
CLEAR L_EVENT.
READ TABLE P_I_EVENTCAT WITH KEY NAME = SLIS_EV_PF_STATUS_SET INTO L_EVENT.
IF SY-SUBRC = 0.
MOVE 'Z8_PF_STATUS' TO L_EVENT-FORM.
APPEND L_EVENT TO P_I_EVENTCAT.
ENDIF.
CLEAR L_EVENT.
READ TABLE P_I_EVENTCAT WITH KEY NAME = SLIS_EV_USER_COMMAND INTO L_EVENT.
IF SY-SUBRC = 0.
MOVE 'Z8_USER_COMMAND' TO L_EVENT-FORM.
APPEND L_EVENT TO P_I_EVENTCAT.
ENDIF.
form Z_MENU using p_extab type slis_t_extab.
SET PF-STATUS 'MENU_LIST'.
endform. " Z_MENU
form z8_user_command using p_ucomm type sy-ucomm
p_selfield type slis_selfield.
case p_ucomm.
WHEN '&IC1'.
call screen 100.
endcase
endform.
Reward points if helpful.
Regards,
Hemant -
How to add button on application tool bar of standardt ransaction
Hi All,
Can any one let me know how to ADD the button in on application tool bar of standard transaction by using SHD0 transaction or any other solution.While adding the button I don't want do any code modification.
Thanks,
Vijayhttp://help.sap.com/saphelp_nw04/helpdata/en/c8/19762743b111d1896f0000e8322d00/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/83/7a18cbde6e11d195460000e82de14a/frameset.htm
these are the avilable user Exits for the Tcode..C203
XCZD0004 Extend authority check for the material-recipe allocati
CMDI001 Determine explosion control for BOM
CPAU0001 Enhancement for Authorization Check in Task Lists
CPDO0001 Test units of measure for reference operation set
CPRE0001 Enhancement for Reorgnization Checks in Task Lists
Run this Program.. enter the Tcode. u'ii get teh BADI's exist for the Tcode
REPORT Z_FIND_BADI .
TABLES : TSTC,
TADIR,
MODSAPT,
MODACT,
TRDIR,
TFDIR,
ENLFDIR,
SXS_ATTRT ,
TSTCT.
DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
DATA : FIELD1(30).
DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
PARAMETERS : P_TCODE LIKE TSTC-TCODE,
P_PGMNA LIKE TSTC-PGMNA .
DATA wa_tadir type tadir.
START-OF-SELECTION.
IF NOT P_TCODE IS INITIAL.
SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
ELSEIF NOT P_PGMNA IS INITIAL.
TSTC-PGMNA = P_PGMNA.
ENDIF.
IF SY-SUBRC EQ 0.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'PROG'
AND OBJ_NAME = TSTC-PGMNA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
IF SY-SUBRC NE 0.
SELECT SINGLE * FROM TRDIR
WHERE NAME = TSTC-PGMNA.
IF TRDIR-SUBC EQ 'F'.
SELECT SINGLE * FROM TFDIR
WHERE PNAME = TSTC-PGMNA.
SELECT SINGLE * FROM ENLFDIR
WHERE FUNCNAME = TFDIR-FUNCNAME.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'FUGR'
AND OBJ_NAME EQ ENLFDIR-AREA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
ENDIF.
ENDIF.
SELECT * FROM TADIR INTO TABLE JTAB
WHERE PGMID = 'R3TR'
AND OBJECT in ('SMOD', 'SXSD')
AND DEVCLASS = V_DEVCLASS.
SELECT SINGLE * FROM TSTCT
WHERE SPRSL EQ SY-LANGU
AND TCODE EQ P_TCODE.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) P_TCODE,
45(50) TSTCT-TTEXT.
SKIP.
IF NOT JTAB[] IS INITIAL.
WRITE:/(105) SY-ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
Sorting the internal Table
sort jtab by OBJECT.
data : wf_txt(60) type c,
wf_smod type i ,
wf_badi type i ,
wf_object2(30) type C.
clear : wf_smod, wf_badi , wf_object2.
Get the total SMOD.
LOOP AT JTAB into wa_tadir.
at first.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 'Enhancement/ Business Add-in',
41 SY-VLINE ,
42 'Description',
105 SY-VLINE.
WRITE:/(105) SY-ULINE.
endat.
clear wf_txt.
at new object.
if wa_tadir-object = 'SMOD'.
wf_object2 = 'Enhancement' .
elseif wa_tadir-object = 'SXSD'.
wf_object2 = ' Business Add-in'.
endif.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 wf_object2,
105 SY-VLINE.
endat.
case wa_tadir-object.
when 'SMOD'.
wf_smod = wf_smod + 1.
SELECT SINGLE MODTEXT into wf_txt
FROM MODSAPT
WHERE SPRSL = SY-LANGU
AND NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
when 'SXSD'.
For BADis
wf_badi = wf_badi + 1 .
select single TEXT into wf_txt
from SXS_ATTRT
where sprsl = sy-langu
and EXIT_NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
endcase.
WRITE:/1 SY-VLINE,
2 wa_tadir-OBJ_NAME hotspot on,
41 SY-VLINE ,
42 wf_txt,
105 SY-VLINE.
AT END OF object.
write : /(105) sy-ULINE.
ENDAT.
ENDLOOP.
WRITE:/(105) SY-ULINE.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No.of Exits:' , wf_smod.
WRITE:/ 'No.of BADis:' , wf_badi.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'No userexits or BADis exist'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'Transaction does not exist'.
ENDIF.
AT LINE-SELECTION.
data : wf_object type tadir-object.
clear wf_object.
GET CURSOR FIELD FIELD1.
CHECK FIELD1(8) EQ 'WA_TADIR'.
read table jtab with key obj_name = sy-lisel+1(20).
move jtab-object to wf_object.
case wf_object.
when 'SMOD'.
SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
when 'SXSD'.
SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
endcase.
Please give me reward points... -
Icon with push button on application tool bar
hi
how we place icon along with pushbutton on application tool bar on selecteion screen.
thanks in advHi,
you can check the code below for test,
TYPE-POOLS icon.
TABLES sscrfields.
DATA functxt TYPE smp_dyntxt.
Parameters: test(1) TYPE C.
SELECTION-SCREEN: FUNCTION KEY 1.
INITIALIZATION.
functxt-icon_id = ICON_GRAPHICS.
functxt-quickinfo = 'graphics'.
functxt-icon_text = 'Graphics'.
sscrfields-functxt_01 = functxt.
AT SELECTION-SCREEN.
CASE sscrfields-ucomm.
WHEN 'FC01'.
Message 'Button 1 pressed' TYPE 'I'.
WHEN OTHERS.
ENDCASE.
START-OF-SELECTION. -
Button on report selection screen application toolbar
Hi,
I want to place Button (application tool bar)on report(executable program) selection screen.
Need your valuable suggestions.
Thanks,
Sreedevihii
1. create GUI status with "Status" name and "Short text"
2. Now a screen will appear with the following,
a. Menu Bar
b. Application tool bar
c. Function keys
3. Click the down arrow near the application toolbar
4. Enter the function code like SAVE, EXIT, etc., You
can also give ur own meaningful naming convention .
For example ( ZTEST)
5. Now press enter, it will ask for "Static text" or "Dynamic Text". Choose Static text and press enter
6. Now it will ask for function text and Icon name. Specify some function text ( what it does ) and Icon name u want to attach.
7. Press enter. It will ask for function keys. Specify a function key and press enter.
8. Now u can handle this function code (ZTEST) either in PBO/PAI like IF FUNCTION = ZTEST ...ENDIF
Note:
Don't forget to set the GUI status u have created in PBO event.
Example code to set PF status.
PROCESS BEFORE OUTPUT.
MODULE liste_initialisieren.
MODULE setstatus_0100.
LOOP AT extract WITH CONTROL
tctrl_ztufi_league CURSOR nextline.
MODULE liste_show_liste.
ENDLOOP.
In the above MODULE setstatus_0100 do the following,
SET PF-STATUS 'ZGUI'. ( The GUI status u have created).
Check this:
<b>http://www.sapdevelopment.co.uk/reporting/selscr/but_appbut.htm</b>
<b>http://www.sap-basis-abap.com/abap/add-button-to-alv-toolbar-with-reuse-alv-list-display.htm
Re: How to add push buttons in out put screen of ALV
http://www.planetsap.com/Tips_and_Tricks.htm</b>
Regards
Naresh -
Push buttons on application tool bar , should be changed based on radio but
Hi fndz,
i have 2 radio buttons on selection screen.
depend on the radio button i select , the push buttons on
application tool bar of basic list should be changed.
can u plz help me.
Thanks & Regards
kumarHii..
Parameters : r1 radiobutton group GRP1 ,
r2 radiobutton group GRP1 .
START-OF-SELECTION.
CASE 'X'.
WHEN R1.
SET PF-STATUS 'S1'.
WHEN R2.
SET PF-STATUS 'S2'.
ENDCASE.
Note: if you want to call the Same GUI Status (app toolbar), you can use the syntax
SET PF-STATUS 'S1' EXCLUDING <ITAB>
hope this solves ur issue. -
Push button in the application tool bar in the standard LDB PNP
Hi ABAPERS,
I have a requirement that in the selction screen to use the standard LDB PNP beyond that I need to pass one push button in the selection screen 1000 ( in the application tool bar beside execute button) actually i passes the push button in the gui status but its not refelcting in the output and in the initilization event also i passed even then its noty working,
initialization.
move 'Cluster ID'(010) to sscrfields-functxt_01.
Thanks and Regards,
Deepthi.Pavan,
write code like this
TABLES: USR02, "Logon data
SSCRFIELDS. "FIELDS ON SELECTION SCREENS
STANDARD SELECTION SCREEN FOR SCROLLING LEFT AND RIGHT
SELECTION-SCREEN: FUNCTION KEY 1.
SELECTION-SCREEN begin of BLOCK b1.
PARAMETERs p1 type i.
SELECTION-SCREEN end of BLOCK b1.
INITIALIZATION.
SCREEN ICON LEFT AND RIGHT
SSCRFIELDS-FUNCTXT_01 = 'Button'.
start-OF-SELECTION.
Thanks
Bala Duvvuri -
How can i disable a button in the application tool bar of a standard trans?
Hi Experts,
I want to disable the create button in the application tool bar of the standard transaction cv03n. Is there any method?Hi,
In the include 'LCV110F19', the GUI is being called for the screen.
This is the actual code being called.
WHEN c_dms_create.
SET PF-STATUS 'D100CREATE'.
SET TITLEBAR 'D100CREATE'.
You can try to code something like below.
DATA: itab TYPE TABLE OF sy-ucomm.
APPEND 'CREATE' TO itab.
SET PF-STATUS 'D100CREATE' EXCLUDING itab.
Kindly reward points by clikcing the star on the left of reply,if it helps. -
User exit/ BADI in f-32 / f-28 for adding application tool bar button
Hi Experts,
There is a requirement, for adding application tool bar button in the Transaction codes F-32 / F-28 / Feba_lockbox. So that while clearing documents with reference document, they can upload the data(Reference Documents) from local file and after the data is fetched for clearing, they need to download the data to local file for verification. If the data is verified to be okay, then they can go ahead with simulation and posting. They need this verification to be done in excel sheet, so need to download the data into local file.
I found a BADI in that screen is BADI_LAYER but I don't think it is relevant.
Any help is apreciated!
Is there any EXIT ? Because I can not find it too.
Regards,
Nitinwhere you did the enhancement?
I have to create the IDOC once Clear docuemnt is created.. It may help me.
Maybe you are looking for
-
Where to suggest a new forum?
From some of the issues and complaints in the Leopard forum, I think a separate Parental Control forum would be a good thing. How do I inform Apple, or is this enough for the idea to be considered? vty, Archie
-
Discoverer Patch 3.1.40
We have Discoverer 3.1.36 User Edition installed on about 50 Windows PCs, and the Disc. Admin 3.1.36 installed on my PC and my manager's PC. We're not ready to migrate to Discoverer 3i, but we think we should install one of the latest patchsets. A su
-
Photogene App crashes with some photos with iOS 8 update, not others when in edit
SInce the iOS 8 update some when I select a photograph or when scrolling pictures in an Album, the App crashes. This never happened before this new upgrade. I've used it for months. Any help appreciate. With certain pictures, no problem. I make
-
Subtype ctreation for the Infotype 0185
Hi, I am trying to create a subtype for the standard infotype 0185. I have followed below mentioned steps for that: 1) I have created an entry using v_t591a in SM31 and saved it. 2) In PM01, created a Customer Include under Enhancement of Single Scre
-
2.1 update and UConnect
I can't update til tonight, can anyone confirm that 2.1 fixes 2.0.X's incompatibility with Chrysler's UConnect?