How to find function code for buttons on toolbar in oops alv
Hi experts,
I want to remove some buttons from toolbar in oops alv, i know the procedure like get function code and pass the value in a table and pass that table to IT_TOOLBAR_EXCLUDING of
method set_table_for_first_display but I WANT TO KNOW HOW TO FIND FUNCTION CODE FOR BUTTONS ON TOOLBAR IN OOPS ALV
Hi Prakash,
-->First you have to set the pf status in your alv program by,
{FORM pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'FIRST'.
ENDFORM. "PF_STATUS}
-->Pass this Subroutine name in the Function module, Reuse_alv_grid_display's parameters i.e,
i_callback_pf_status_set = 'PF_STATUS'}
*-->Then doble click on that pf status,
From the menu bar, select Extras->Adjust Template->List Viewer,
This will give you the existing statndard gui status of the program*
->Then catch that function codes in the User command Parameter of the Function module Reuse.. i.e,
i_callback_user_command = 'COMM'
And make a subroutine of the name 'COMM'i.e,
FORM comm USING ucomm LIKE sy-ucomm selfield TYPE slis_selfield.
DATA: okcode TYPE sy-ucomm.
okcode = ucomm.
CASE okcode.
WHEN 'REF'.
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = 'MANSI'
txt1 = 'CREATED BY'
txt2 = SY-UNAME
TXT3 = ' '
TXT4 = ' '
endcase.
Hope it helps you
Regrds
Mansi
Similar Messages
-
How to find function code for Dynamic generated program
Hi,
I have created a dynamic program for getting different selection screens depending on inputs . I am finding a flaw that, pressing 'BACK' buttn is leading some other action which was coded by me, instead of going back.
SY-UCOMM is also not working as it is dynamic program.
Help me for getting previous screen.
Please suggest me the inputs.Thank u
Regards
AdityaHi Klaus,
As per ur instructions, I replaced SY-UCOMM with SSCRFIELDS.
But no change in my problem.
The following screen shot is a program which is coded dynamically using fieldsymbols.
When I press BACK here for the following code selectionscreen, I am getting someother action which was coded by me. But not going back.
Twist is, SSCRFIELDS-UCOMM or SY-UCOMM is getting captured for 'F8', but not 'BACK'.
I hope, I have explained my issue clearly. Please let me know, if any deep clarifications needed.
Regards,
Aditya -
Dear SAP friends,
Does anybody knows an easy way to find function codes ( those of type ui_func) of standard ALV grid toolbar?
Searching this forum I learned that you can do se11 and read table RSMPTEXTS for program SAPLSVLV_FULLSCREEN or just se41 for program SAPLSVLV_FULLSCREEN.
Shouldn't there be some kind of complete Reference about function codes of standard ALV grid?
Please share if you know.
Thank you
TatyanaThank you, Ferry.
Reading method BUILD_COMPLETE_TOOLBAR of class CL_GUI_ALV_GRID you
can see an icon code, function code and text for the buttons of standard ALV grid toolbar.
Regards,
Tatyana -
How to find T-CODES for maintenance view of custom tables?
Hi,
I have a list of custom tables for which maintenance view is generated. Also, many of them might have a T-Codes assigned to them.
I need to know how to find out these T-codes?
Is there some table which maintains these or a function module which can give the t-code name?
Help will be appreciated.
Thanks.
ShreyasHi shreyas,
1. one way is
2. goto se93
3. Press Ctrl F
4. Expand the search criteria (from button on toolbar)
5. In program name enter SAPMSVMA (This program is for sm30)
6. In transaction code enter Z* or Y*
regards,
amit m. -
HI ALL,
I am working on MM01 Tcode . In recording I got all ok codes except save button .
can any one help me how to see the ok code for save button...I think some command is there to find.
Thanks in advance.before clicking SAVE. put /H on the command bar. hit enter.. debugger is switched on..
now click SAVE.
debugger starts.
now in debugger check the value of sy-ucomm
by the way, its BU for save button in MM01
Edited by: Soumyaprakash Mishra on Oct 28, 2009 4:31 PM -
Hello Folks ,
Iv'e Created a new screen using BDT technology and added a button inside screen .
how can i handle the function code within this screen in a way that i won't have system messeage "Unknown function code XXX" while clicking on this button.
tanks in advance.
Herzel .Hi,
You need to implement for your button a function module for the BDT event FCODE. You can have a look at the fms *_BUPA_EVENT_FCODE, to get an idea on how to implement it.
Thanks and warm regards,
Smita. -
How to find T-code for a business object
Hi,
Can anyone help me how to find out the t-code associated with a business object.
or I want to know what are the business objects are available for a t-code
Thanks and regards,
VenkatHi,
check this link,
https://wiki.sdn.sap.com/wiki/display/ABAP/How%20to%20find%20an%20Event%20for%20any%20transaction%20for%20triggering%20of%20a%20workflow
it will help you.
Regards,
Vijay -
HOW TO FIND T-CODES FOR SCRIPT FORMS?
HI EVERY BODY,
"ME9F" IS THE T-CODE FOR PRINTING "MEDRUCK" FORM ALONG WITH THE DATA FROM PRINT PROGRAM.
LIKE WISE WHAT ARE ALL THE OTHER T-CODES FOR SAP PROVIDED FORMS. PLEASE LET ME KNOW HOW TO FIND THESE T-CODES?
THANKS IN ADVANCE,
REGARDS,
MOUNIKA.Hi Mounika,
Please check this transaction as well.
ME9A - Message Output: RFQs
ME9E - Message Output: Sch. Agmt. Schedules
ME9F - Message Output: Purchase Orders
ME9K - Message Output: Contracts
ME9L - Message Output: Sched. Agreements
PJNA - Message Output
WLN14 - Message Output Agency Documents
WLN15 - Message Output for List Documents
Hope this will help.
Regards,
Ferry Lianto -
How to create function code for field in GRID like list box in screen
Hi all,
I have requirement like drop down is created for field1 in GRID,
and have given f4 help for it, as soon as i change the data in the field
event has to trigger to update thevalues in other field.
This scenario i worked on screens where field is created with listbox and assign function code to it
when the field value changes the event triggers .
Is there is anything like that which will fire the event for field value changes.
can i update anything through the fieldcatalogue.
anybody help me on this
Regards,
MadhaviHi Madhavi,
yes we can do that by registering edit events..
check the below example.. has both the variants dropdown/f4 hlp...
screen flow logic
PROCESS BEFORE OUTPUT.
MODULE pbo.
PROCESS AFTER INPUT.
MODULE pai AT EXIT-COMMAND.
program
* CLASS lcl_event_responder DEFINITION *
CLASS lcl_event_responder DEFINITION.
PUBLIC SECTION.
DATA : ls_changed_cell TYPE lvc_s_modi,
lv_language TYPE spras..
METHODS refresh_changed_data FOR EVENT data_changed
OF cl_gui_alv_grid
IMPORTING er_data_changed
e_ucomm.
ENDCLASS. "event_responder DEFINITION
DATA: go_handler TYPE REF TO lcl_event_responder,
go_container TYPE REF TO cl_gui_custom_container,
go_grid TYPE REF TO cl_gui_alv_grid,
gt_fieldcat TYPE lvc_t_fcat,
gv_language TYPE spras VALUE 'E',
gt_outtab TYPE TABLE OF makt WITH HEADER LINE.
PARAMETERS : dropdown TYPE char01 RADIOBUTTON GROUP grp,
f4help TYPE char01 RADIOBUTTON GROUP grp.
START-OF-SELECTION.
CALL SCREEN 100.
END-OF-SELECTION.
* MODULE PBO OUTPUT *
MODULE pbo OUTPUT.
SET PF-STATUS 'BASIC'.
PERFORM create_and_init_alv CHANGING gt_outtab[]
gt_fieldcat.
ENDMODULE. "pbo OUTPUT
* MODULE PAI INPUT *
MODULE pai INPUT.
SET SCREEN 0. LEAVE SCREEN.
ENDMODULE. "pai INPUT
FORM create_and_init_alv CHANGING pt_outtab LIKE gt_outtab[]
pt_fieldcat TYPE lvc_t_fcat.
CHECK go_container IS NOT BOUND.
CREATE OBJECT go_container
EXPORTING
container_name = 'CUSTOM'.
CREATE OBJECT go_grid
EXPORTING
i_parent = go_container.
PERFORM build_display_table.
PERFORM build_fieldcat CHANGING pt_fieldcat.
IF dropdown EQ abap_true.
PERFORM set_drdn_table.
ENDIF.
go_grid->set_table_for_first_display( CHANGING it_fieldcatalog = pt_fieldcat
it_outtab = pt_outtab ).
go_grid->set_ready_for_input( 1 ).
" raises the 'data_changed' event when we select another cell/any action after changing the data
go_grid->register_edit_event( EXPORTING i_event_id = cl_gui_alv_grid=>mc_evt_modified ).
CREATE OBJECT go_handler.
SET HANDLER go_handler->refresh_changed_data FOR go_grid.
ENDFORM. "CREATE_AND_INIT_ALV
FORM build_display_table.
FREE gt_outtab.
SELECT * FROM makt UP TO 20 ROWS INTO TABLE gt_outtab WHERE spras EQ gv_language.
ENDFORM. "build_display_table
FORM build_fieldcat CHANGING pt_fieldcat TYPE lvc_t_fcat.
DATA ls_fcat TYPE lvc_s_fcat.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'MAKT'
CHANGING
ct_fieldcat = pt_fieldcat.
LOOP AT pt_fieldcat INTO ls_fcat.
IF ls_fcat-fieldname EQ 'SPRAS'.
ls_fcat-edit = abap_true..
ls_fcat-outputlen = 8.
IF dropdown EQ abap_true.
ls_fcat-drdn_hndl = '1'.
ls_fcat-checktable = '!'. "do not check foreign keys
ENDIF.
MODIFY pt_fieldcat FROM ls_fcat.
ENDIF.
ENDLOOP.
ENDFORM. "build_fieldcat
FORM set_drdn_table.
CHECK go_grid->offline( ) IS INITIAL.
DATA: lt_dropdown TYPE lvc_t_drop,
ls_dropdown TYPE lvc_s_drop.
ls_dropdown-handle = '1'.
ls_dropdown-value = 'EN'.
APPEND ls_dropdown TO lt_dropdown.
ls_dropdown-handle = '1'.
ls_dropdown-value = 'DE'.
APPEND ls_dropdown TO lt_dropdown.
CALL METHOD go_grid->set_drop_down_table
EXPORTING
it_drop_down = lt_dropdown.
ENDFORM. " set_drdn_table
FORM change_display_table USING pv_language pv_rowno TYPE i.
READ TABLE gt_outtab INDEX pv_rowno.
SELECT SINGLE * FROM makt INTO gt_outtab WHERE matnr = gt_outtab-matnr AND spras = pv_language.
IF sy-subrc EQ 0.
DELETE gt_outtab INDEX pv_rowno.
INSERT gt_outtab INDEX pv_rowno.
ELSE.
CLEAR : gt_outtab-maktx,
gt_outtab-maktg.
DELETE gt_outtab INDEX pv_rowno.
INSERT gt_outtab INDEX pv_rowno.
ENDIF.
ENDFORM. "change_display_table
* CLASS event_responder IMPLEMENTATION *
CLASS lcl_event_responder IMPLEMENTATION.
METHOD refresh_changed_data.
READ TABLE er_data_changed->mt_mod_cells INTO ls_changed_cell INDEX 1.
CALL FUNCTION 'CONVERSION_EXIT_ISOLA_INPUT'
EXPORTING
input = ls_changed_cell-value
IMPORTING
output = lv_language.
PERFORM change_display_table USING lv_language ls_changed_cell-row_id.
go_grid->refresh_table_display( ).
ENDMETHOD. "click
ENDCLASS. "event_responder IMPLEMENTATION
Cheers,
Jose. -
How to find security code for Airport Extreme
I need to find the security code for my Airport Extreme to connect to my Smart TV
Unfortunately, locating the long 64 character code will rarely ever help, since most products will not accept a code of this length.
Nonetheless.......
Open Macintosh HD > Applications > Utilities > AirPort Utility
Click on the AirPort Extreme icon, then click Edit
Click the Base Station menu at the very top of the screen
Click Show Passwords -
How to find the code for a lost Mac App gift card?
I received a Back-to-School gift card with my purchase of my laptop that had $100 on it back in 2012. I used it once last year to purchase Roller Coaster Tycoon 3 Platinum. I wanted to buy The Sims 2 yesterday, but I had to update the version of OS X I had to run the program. I had to wait overnight to let it update since I had school in the morning. Long story short, the card somehow disappeared over night and I've been searching like crazy this morning to find it. To no avail, it didn't show up. I was wondering if there is any way I could find the code somewhere since I had made a purchase on it a while ago. I was able to view the purchase through iTunes, but I wasn't able to find a code. It's already been redeemed on my Apple ID and everything. All I need is the code. Any help, please?
I have a MacBook Air and the update I just installed was OS X Yosemite 10.10.1I know the amount left on it, which is about $60. The issue is I'd like to use my card again, but I lost it and I need the code on the back to use it again. When I tried to make the purchase, it wanted me to reenter the code despite that the gift card was already redeemed on the account.
There was no expiration date on the card and my account is still showing the amount left on it. -
How to find function codes of the buttons in ABAP Webdynpro
I had 2 buttons in my input screen of the WebDynpro, for both buttons some piece of logic is common. So i wrote that common logic in the default method 'WDDOBEFOREACTION', which will be triggered always before the corresponding methods got triggered.
Now my problem is the method 'WDDOBEFOREACTION' triggering even when user hits ENTER in the input screen, to prevent the common logic not to execute need to write some condition based on the user action. But unfortunately was not able to find the way. Could any one suggest me on this.For your specific requirement :
you should first determine the current action which triggered this WDDOBEFOREACTION method,
as this method triggers for every action performed on the webdynpro view.
For that below is the code
DATA lo_api_view_controller TYPE REF TO if_wd_view_controller.
DATA lo_action TYPE REF TO if_wd_action.
lo_api_view_controller = wd_this->wd_get_api( ).
lo_action = lo_api_view_controller->get_current_action( ).
IF lo_action IS NOT BOUND.
IF lo_action->name EQ 'BUTTON1' OR lo_action->name EQ 'BUTTON2'.
Where BUTTON1 and BUTTON2 are the actions associated with both the buttons.
Write your common logic here and now it would get executed only for both these button cliks only
ENDIF.
ENDIF.
Edited by: Avasarala Sampath on Oct 28, 2011 7:26 AM
Edited by: Avasarala Sampath on Oct 28, 2011 7:29 AM -
How to set Function Code for Radion Buttons in Screen painter
Hi,
I have faced problem of grouping 3 radio buttons in screen painter (no graphical editor). How to do it?
I have checked similiar threads in SDN, but those are for graphical editor.
Radio Buttons in custom screeen
http://****************/Tutorials/ABAP/Checkbox/page1.htm
http://****************/Tutorials/ABAP/Checkbox/page2.htm
Regards,
SukhboldHi,
U want to create radio button in the selection screen then u can create like this
PARAMETERS : c1 AS CHECKBOX USER-COMMAND cd,
r1 RADIOBUTTON GROUP rad,
r2 RADIOBUTTON GROUP rad.
AT SELECTION-SCREEN OUTPUT.
IF c1 = 'X'.
LOOP AT SCREEN.
IF screen-name = 'R1'.
screen-input = '0'.
screen-active = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ELSE.
LOOP AT SCREEN.
IF screen-name = 'R1'.
screen-input = '1'.
screen-active = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Thanks, -
How to find the code for ECC transaction enhancement (VA02) ?
Dear experts,
We have one field enhanced in the VA02 transaction, now we need to find out the logic of how this field is enhanced.
I am from BI area and not familiar with the ECC side transaction enhancement.
Can anybody let me know how can I identify where the enhancement program is (like is there any standard user exit/badi for VA02 field enhancement)? Or how can I debug into the enhancement logic of the specific field in VA02?
Any post will be appreciated, and thank you all for your time in advance!
Best regards,
TimHi Tim,
It can be a BADI, User exit, Repair, object enhanced using enhancement framework. It would be a good idea to talk to a local SD consultant. They might have some info or documentation. If all this does not work then unfortunately you will need someone to debug and find out where the change was made. And you would need an ABAPer for that.
Regards,
Shravan -
How to find T-codes for a list of User exits
Hi All,
We have been provided with the list of user exits found in the system. I need to find the T-codes where these user-exits have been used.
Can anyone provide pointers for this?
Thanks and Regards,
Sridevi Sridharuse logic of the program....
*& Report ZCG_USER_EXIT_FIND
*& Utility program to find out the User Exits within a transaction
REPORT ZCG_USER_EXIT_FIND.
tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
tables : 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 obligatory.
select single * from tstc where tcode eq p_tcode.
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 = 'SMOD'
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:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
write:/(95) sy-uline.
loop at jtab.
select single * from modsapt
where sprsl = sy-langu and
name = jtab-obj_name.
format color col_normal intensified off.
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
write:/ 'No of Exits:' , sy-tfill.
else.
format color col_negative intensified on.
write:/(95) 'No User Exit exists'.
endif.
else.
format color col_negative intensified on.
write:/(95) 'Transaction Code Does Not Exist'.
endif.
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen.
Maybe you are looking for
-
New Photosmart Plus B209 a-m Will not connect wirelessly **HELP**
I just purchased this printer and i have tried every option I can think of and find online to get this printer to connect to my netgear router, I had a wireless canon printer that i had for a while that quit so i went and bought this printer and now
-
Plese see above.
-
I get an error message that says power pc programs are not supported
I updated my Mac and now I can't open any of my Microsoft programs. What happened?
-
New Logical Column w/Case Statement
OBIEE 11g I have a created a logical column in the BMM that I would like to display a certain output if certain criteria are met. I have a case statement like the following: CASE WHEN COLUMN1 = 'Honda' AND COLUMN2 = 'Accord' THEN 'Sedan' ELSE NULL EN
-
Is it possible to integrate ADOBE with xPD screens?
We have a requirement to integrate the xPD screens with Adobe. The UI has to be completely Adobe and the xPD transactions would be triggered through Adobe. Is it possible?? Please let me know how if anyone worked on this. We are using SAP NW SP12 an