I need to add a button in std transaction
I need to add abutton in standard transaction IE03 (Equipment Display)
I need to write a code to open a new screen.
How to do this .
Points will be awarded.
Is there any user/menu.customer exit.
If it had then how to proceed.
Regards,
Jayasimha Jangam
Hi Jayasimha,
I found these exits and badis, pls have a look at these....
Enhancement/ Business Add-in
Description
Enhancement
IEQM0001
Add. checks for equip. installation at functional locations
IEQM0002
Additional checks for definition of equipment hierarchies
IEQM0003
Additional checks before equipment update
IEQM0004
Object is allowed for contract partner (Order->MaintCont.)
IEQM0005
Object allowed for SD contract (MaintContract->MaintCont.)
IEQM0006
Object allowed for SD contract (Maintain maintenance cont.)
IEQM0007
Check/change manufacturer field in equipment master
Business Add-in
EQUI_SERLV_CHECK
External Inspections for MARA_SERLV
EQUI_SCR_CC
Implementable Subscreen for Equipment for CCM
EQUI_SCR_06
Implementable Subscreen for Equipment No. 06
EQUI_SCR_05
Implementable Subscreen for Equipment No. 05
EQUI_SCR_04
Implementable Subscreen for Equipment No. 04
EQUI_SCR_03
Implementable Subscreen for Equipment No.
EQUI_SCR_02
Implementable Subscreen for Equipment No. 02
EQUI_SCR_01
Implementable Subscreen for Equipment No. 01
Thanks & regards
Similar Messages
-
Need to add new button in std program in std PF status.
Hello Gurus,
I have added a button +US4 in the GUI status E110 of Function group QEEM but it is not displaying in the QE51N transaction screen.
I have activated the function code and PF status as well, still this button is not displaying.
Can anybody please help me to display this button on the screen?Hi Isha,
How did you change the the standard pf-status of the standard program. I am trying to add a function code in standard pf-status. But it is asking for the access code. Kindly tell me the process to add a component. thanks in advance.
Thanks & Regards,
Suresh -
Need to Add a button in ALV Tool Bar
Hi,
I have a requirement where in i need to add a button to a standard ALV report. Its using the class CL_GUI_ALV_GRID. There is a Badi for the report. The Report is co05n and the Badi is WORKORDER_INFOSYSTEM . I am getting the handle of
CL_GUI_ALV_GRID object reference before screen display. Any guidance on how to add new button now to that toolbar?
Any help will be rewarded.
Thank you.
regards,
Deepthi lakshmi.A.Dear Deepthi Lakshmi.A.,
Refer the standard program BCALV_GRID_05 Add a Self-Defined Button to the Toolbar.
PROGRAM BCALV_GRID_05.
Purpose:
~~~~~~~~
Demonstrate the creation of an own toolbar button.
To check program behavior
~~~~~~~~~~~~~~~~~~~~~~~~~
The report shows a list of flights of one airline.
Select one or more lines and press the 'Detail'-Button to popup
a dialog window with related bookings.
Essential steps (Search for '§')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1.Apply steps for event handling for events TOOLBAR and
USER_COMMAND (see example for print events)
2.In event handler method for event TOOLBAR: Append own functions
by using event parameter E_OBJECT.
3.In event handler method for event USER_COMMAND: Query your
function codes defined in step 2 and react accordingly.
4.Call method 'set_toolbar_interactive' to raise event TOOLBAR.
INCLUDE .
Predefine a local class for event handling to allow the
declaration of a reference variable before the class is defined.
CLASS lcl_event_receiver DEFINITION DEFERRED.
DATA: ok_code LIKE sy-ucomm,
gt_sflight TYPE TABLE OF sflight,
gt_sbook TYPE TABLE OF sbook,
g_repid LIKE sy-repid,
g_max type i value 100,
gs_layout TYPE lvc_s_layo,
cont_on_main TYPE scrfname VALUE 'BCALVC_TOOLBAR_D100_C1',
cont_on_dialog TYPE scrfname VALUE 'BCALVC_TOOLBAR_D101_C1',
grid1 TYPE REF TO cl_gui_alv_grid,
grid2 TYPE REF TO cl_gui_alv_grid,
custom_container1 TYPE REF TO cl_gui_custom_container,
custom_container2 TYPE REF TO cl_gui_custom_container,
event_receiver TYPE REF TO lcl_event_receiver.
Set initial dynpro
SET SCREEN 100.
LOCAL CLASSES: Definition
*===============================================================
class lcl_event_receiver: local class to
define and handle own functions.
Definition:
~~~~~~~~~~~
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS:
handle_toolbar
FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object e_interactive,
handle_user_command
FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING e_ucomm.
PRIVATE SECTION.
ENDCLASS.
lcl_event_receiver (Definition)
*===============================================================
LOCAL CLASSES: Implementation
*===============================================================
class lcl_event_receiver (Implementation)
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD handle_toolbar.
§ 2.In event handler method for event TOOLBAR: Append own functions
by using event parameter E_OBJECT.
DATA: ls_toolbar TYPE stb_button.
E_OBJECT of event TOOLBAR is of type REF TO CL_ALV_EVENT_TOOLBAR_SET.
This class has got one attribute, namly MT_TOOLBAR, which
is a table of type TTB_BUTTON. One line of this table is
defined by the Structure STB_BUTTON (see data deklaration above).
A remark to the flag E_INTERACTIVE:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'e_interactive' is set, if this event is raised due to
the call of 'set_toolbar_interactive' by the user.
You can distinguish this way if the event was raised
by yourself or by ALV
(e.g. in method 'refresh_table_display').
An application of this feature is still unknown...
append a separator to normal toolbar
CLEAR ls_toolbar.
MOVE 3 TO ls_toolbar-butn_type.
APPEND ls_toolbar TO e_object->mt_toolbar.
append an icon to show booking table
CLEAR ls_toolbar.
MOVE 'BOOKINGS' TO ls_toolbar-function.
MOVE icon_employee TO ls_toolbar-icon.
MOVE 'Show Bookings'(111) TO ls_toolbar-quickinfo.
MOVE 'Detail'(112) TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled.
APPEND ls_toolbar TO e_object->mt_toolbar.
ENDMETHOD.
METHOD handle_user_command.
§ 3.In event handler method for event USER_COMMAND: Query your
function codes defined in step 2 and react accordingly.
DATA: lt_rows TYPE lvc_t_row.
CASE e_ucomm.
WHEN 'BOOKINGS'.
CALL METHOD grid1->get_selected_rows
IMPORTING et_index_rows = lt_rows.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'Error in Flush'(500).
else.
perform show_booking_table tables lt_rows.
ENDIF.
ENDCASE.
ENDMETHOD. "handle_user_command
ENDCLASS.
lcl_event_receiver (Implementation)
*===================================================================
FORM EXIT_PROGRAM *
FORM exit_program.
The instance grid2 is freed not until the program exits from the
main screen.
(It is created only once during the first selection of SBOOK,
no matter how many times the second window is called).
CALL METHOD custom_container1->free.
IF not custom_container2 is initial.
CALL METHOD custom_container2->free.
ENDIF.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'Error in Flush'(500).
ENDIF.
LEAVE PROGRAM.
ENDFORM.
*& Module PBO_100 OUTPUT
text
MODULE pbo_100 OUTPUT.
SET PF-STATUS 'MAIN100'.
SET TITLEBAR 'MAIN100'.
g_repid = sy-repid.
IF custom_container1 is initial.
select data from table SFLIGHT
PERFORM select_table_sflight CHANGING gt_sflight.
create a custom container control for our ALV Control
CREATE OBJECT custom_container1
EXPORTING
container_name = cont_on_main
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'The control could not be created'(510).
ENDIF.
create an instance of alv control
CREATE OBJECT grid1
EXPORTING i_parent = custom_container1.
Set a titlebar for the grid control
gs_layout-grid_title = 'Flights'(100).
allow to select multiple lines
gs_layout-sel_mode = 'A'.
CALL METHOD grid1->set_table_for_first_display
EXPORTING i_structure_name = 'SFLIGHT'
is_layout = gs_layout
CHANGING it_outtab = gt_sflight.
->Create Object to receive events and link them to handler methods.
When the ALV Control raises the event for the specified instance
the corresponding method is automatically called.
CREATE OBJECT event_receiver.
SET HANDLER event_receiver->handle_user_command FOR grid1.
SET HANDLER event_receiver->handle_toolbar FOR grid1.
§ 4.Call method 'set_toolbar_interactive' to raise event TOOLBAR.
CALL METHOD grid1->set_toolbar_interactive.
ENDIF. "IF grid1 IS INITIAL
CALL METHOD cl_gui_control=>set_focus EXPORTING control = grid1.
ENDMODULE. " PBO_100 OUTPUT
*& Module PAI_100 INPUT
text
MODULE pai_100 INPUT.
CASE ok_code.
WHEN 'EXIT'.
PERFORM exit_program.
ENDCASE.
CLEAR ok_code.
ENDMODULE. " PAI_100 INPUT
*& Module PBO_0101 OUTPUT
text
MODULE pbo_0101 OUTPUT.
IF custom_container2 is initial.
(the data from sbook is already selected)
create a custom container control for our ALV Control
CREATE OBJECT custom_container2
EXPORTING
container_name = cont_on_dialog
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'The control could not be created'(510).
ENDIF.
create an instance of alv control
CREATE OBJECT grid2
EXPORTING i_parent = custom_container2.
change title
gs_layout-grid_title = 'Bookings'(101).
gs_layout-sel_mode = ' '.
CALL METHOD grid2->set_table_for_first_display
EXPORTING i_structure_name = 'SBOOK'
is_layout = gs_layout
CHANGING it_outtab = gt_sbook.
ELSE.
CALL METHOD grid2->refresh_table_display.
ENDIF. "IF custom_container2 IS INITIAL.
CALL METHOD cl_gui_control=>set_focus EXPORTING control = grid2.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc ne 0.
add your handling, for example
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
titel = g_repid
txt2 = sy-subrc
txt1 = 'Error in Flush'(500).
ENDIF.
ENDMODULE. " PBO_0101 OUTPUT
*& Form SELECT_TABLE_SFLIGHT
text
<--P_GT_SFLIGHT text
FORM select_table_sflight CHANGING p_gt_sflight LIKE gt_sflight[].
SELECT * FROM sflight INTO TABLE p_gt_sflight up to g_max rows.
ENDFORM. " SELECT_TABLE_SFLIGHT
*& Form SELECT_TABLE_SBOOK
text
-->P_LS_SFLIGHT text
<--P_GT_SBOOK text
FORM select_table_sbook USING p_ls_sflight LIKE LINE OF gt_sflight
CHANGING p_gt_sbook LIKE gt_sbook[].
DATA: lt_sbook LIKE gt_sbook[].
Select data from sbook according to a line of sflight
and append that data to table p_gt_sbook
SELECT * FROM sbook INTO TABLE lt_sbook
WHERE carrid = p_ls_sflight-carrid
AND connid = p_ls_sflight-connid
AND fldate = p_ls_sflight-fldate.
APPEND LINES OF lt_sbook TO p_gt_sbook.
ENDFORM. " SELECT_TABLE_SBOOK
*& Module PAI_0101 INPUT
text
MODULE pai_0101 INPUT.
CASE ok_code.
WHEN 'RETURN'.
LEAVE TO SCREEN 0.
ENDCASE.
CLEAR ok_code.
ENDMODULE. " PAI_0101 INPUT
*& Form show_booking_table
text
-->P_ET_INDEX_ROWS text
FORM show_booking_table TABLES p_et_index_rows
STRUCTURE lvc_s_row.
DATA: ls_selected_line LIKE lvc_s_row,
lf_row_index TYPE lvc_index,
ls_sflight LIKE LINE OF gt_sflight.
CLEAR gt_sbook[].
LOOP AT p_et_index_rows INTO ls_selected_line.
lf_row_index = ls_selected_line-index.
read selected row from internal table gt_sflight
READ TABLE gt_sflight INDEX lf_row_index INTO ls_sflight.
select corresponding lines of table sbook
and append new lines to global table
PERFORM select_table_sbook USING ls_sflight
CHANGING gt_sbook.
ENDLOOP.
call dialog screen and display new alv control
CALL SCREEN 101 STARTING AT 10 5.
ENDFORM. " show_booking_table
Regards,
Naveen. -
I need to add push button to last extended price unit in sale order item B
i need to add push button to field last extended price unit in sale order item additional data B
i need to add push button to field last extended price unit in sale order item additional data B
-
Need to add custom button (xml) in VA05
I need to add a custom button (xml) to report output layout of VA05. Even the corrsponding functionality needs to be written for this button. Without changing the SAP standard code using Access keys, is there any other functionality in which we can add the button and write the code.
Please send me detail steps in this regard.Hi Ramesh,
As i knoew in case of va05 there is no badi or exit available to achieve this functionality.There is a provision to add some fields in report out put.I hope this is possible through a custom one.
Regards,
Madhu -
Can anyone help me add any type of ACTION EVENT /ACTION LISTENER TO THIS CODE
PLEASE REVIEW AND COMPILE IF NECESSARY. Ensure that it compiles without errors. Currently it compiles without errors. It opens up as a GUI window that accepts a password. If anyone could just add a button to it that will do just about anything, time check, date check whatever it would be great!!!!! THIS WAS COMPILED WITH THE JGRASP COMPILER JAVA ACCEPTED
Thank you all,
********************** Bruce's Code*****************************
import java.awt.*;
public class TimeEntryForm extends Panel
private Panel tallPanel = new Panel();
private Panel tallPanel2= new Panel();
public TimeEntryForm()
tallPanel.setLayout(new GridLayout(3, 1));
tallPanel.add(new Label("Hrs Total"));
tallPanel.add(new Label("Any"));
tallPanel.add(new Label("One"));
tallPanel2.setLayout(new GridLayout(3,1));
tallPanel2.add(new Label("Personal Leave "));
tallPanel2.add(new Label("Hrs Total "));
tallPanel2.add(new Label("Pay Calc "));
setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.gridx = 0; c.gridy = 2;
add(new Label("Social Security # "), c);
c.gridx = 1; c.gridy = 0;
add(new Label("TIME ENTRY FORM"), c);
c.gridx = 1;c.gridy = 1;
add(new Label("Enter Date Here "), c);
c.gridx = 3;c.gridy = 2;
add(new Label("Employee Name "), c);
c.gridx = 3;c.gridy = 4;
add(new Label("Sick Time "), c);
c.gridx = 0; c.gridy = 3;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 4;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 5;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 6;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 7;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 8;
add(new Label("IN OUT "), c);
c.gridx = 0; c.gridy = 9;
add(tallPanel2, c);
c.gridx = 1;c.gridy = 11; //note, sets y
add(new Label("Hrs Worked Today "), c);
c.gridx = 1;c.gridy = 12;
add(new Label("Pay Earned Today "), c);
c.gridx = 2;
add(tallPanel2, c);
public static void main(String args[])
Frame f = new Frame("Time Entry Form");
f.add(new TimeEntryForm());
f.pack();
f.setVisible(true);
}Hi java-luv,
I am not sure if I understand the problem. But I was able to add a JButton to your code (using the JBuilder designer). The button just exists the application. Please check the listing below. Hope this helps.
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class TimeEntryForm extends Panel
private Panel tallPanel = new Panel();
private Panel tallPanel2 = new Panel();
private JButton jButton1 = new JButton();
public TimeEntryForm() {
tallPanel.setLayout(new GridLayout(3, 1));
tallPanel.add(new Label("Hrs Total"));
tallPanel.add(new Label("Any"));
tallPanel.add(new Label("One"));
tallPanel2.setLayout(new GridLayout(3, 1));
tallPanel2.add(new Label("Personal Leave "));
tallPanel2.add(new Label("Hrs Total "));
tallPanel2.add(new Label("Pay Calc "));
setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.gridx = 0;
c.gridy = 2;
add(new Label("Social Security # "), c);
c.gridx = 1;
c.gridy = 0;
add(new Label("TIME ENTRY FORM"), c);
c.gridx = 1;
c.gridy = 1;
add(new Label("Enter Date Here "), c);
c.gridx = 3;
c.gridy = 2;
add(new Label("Employee Name "), c);
c.gridx = 3;
c.gridy = 4;
add(new Label("Sick Time "), c);
c.gridx = 0;
c.gridy = 3;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 4;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 5;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 6;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 7;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 8;
add(new Label("IN OUT "), c);
c.gridx = 0;
c.gridy = 9;
add(tallPanel2, c);
c.gridx = 1;
c.gridy = 11; //note, sets y
add(new Label("Hrs Worked Today "), c);
c.gridx = 1;
c.gridy = 12;
add(new Label("Pay Earned Today "), c);
c.gridx = 2;
add(tallPanel2, c);
jbInit();
public static void main(String args[]) {
Frame f = new Frame("Time Entry Form");
f.add(new TimeEntryForm());
f.pack();
f.setVisible(true);
private void jbInit() {
jButton1.setText("Exit");
jButton1.addActionListener(new TimeEntryForm_jButton1_actionAdapter(this));
this.add(jButton1, null);
void jButton1_actionPerformed(ActionEvent e) {
System.exit(0);
class TimeEntryForm_jButton1_actionAdapter implements java.awt.event.ActionListener {
TimeEntryForm adaptee;
TimeEntryForm_jButton1_actionAdapter(TimeEntryForm adaptee) {
this.adaptee = adaptee;
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e); -
Need To Add One Button in The Output
Hi Freinds,
can any one tell how to add one button in the application
tool bar, that is at the final ALV out put screenHi,
you just create a pf status and add buttons to it.
then you include that pfstatus in your function module in the
export parameter 'i_callback_pf_status_set'
i found this sample code somewhere you just see how this is done:
create one pfstatus. for example znewstatus is the created
pfstatus. double click on the pfstatus that was created then add the buttons that you require in the appilication tool bar.
pass the form names to the I_CALLBACK_PF_STATUS_SET and I_CALLBACK_USER_COMMAND in grid as shown below.
example for reference:
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
FORM SET_PF_STATUS USING RT_EXTAB TYPE SLIS_T_EXTAB.
SET PF-STATUS 'ZNEWSTATUS'.
ENDFORM.
FORM USER_COMMAND USING R_UCOM TYPE SY-UCOMM R_SELFIELD TYPE SLIS_SELFIELD.
case R_UCOM
when 'PRINT'. (print is the function code name given to the icon created)
leave to list-processing.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = pass the form name
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FMNAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
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 FMNAME.
reward if useful.
Nishant Rana -
Need to add a field in KE24 transaction
Hi,
I need to add a field Order Reason (VBAK-AUGRU) in the ALV output for the transaction KE24. I didn't find any suitable exit or BADI for adding this field. Right now I'm looking for some enhancement spots to get the field value and also to add the field in the catalog before calling the GRID display.
If you have come across this similar situation, please suggest me.
Regards
ItishreeHi,
check these enhancements
COPA0001 Enhancement for derivation in Profitability Analysis (C
COPA0002 Enhancement for valuation in Profitability Analysis (CO
COPA0003 Enhancement for assignment to profitability segment (CO
COPA0004 Enhancement for currency translation (CO-PA)
COPA0005 Enhancement for actual data update (CO-PA)
COPA0006 Enhancement for planning (CO-PA)
COPA0007 Enhancement for external data transfer (CO-PA)
i think you should get it provided you should follow proper procedure .
otherwise you need to create Implicit Enhancement spot.
regards
fareed -
ESS + EhP5: Need to add an Button to an FPM_FORM_UIBB based ESS Szenario
Hello Community,
I have an requirement to add an 'Upload' Button to an EhP5 ESS Szenario (Address Change). Hence (almost) all ESS based on the FPM framework, difficulties to modify/enhance in a "free way". In my case the ESS was created by an Component Configuration (HRESS_CC_PER_DTL_ADDRESS_AT) of WD Component FPM_FORM_UIBB. There is no problem to add fields of the underlaying infotype(s) but anything else will not be accepted.
So are there any suggestion how I can insert an 'Upload' button into an ESS Scenarion that is based on FPM_FORM_UIBB?
Thank you in advance, Christian1. Customizing the Fields in Overview Screens
http://help.sap.com/erp2005_ehp_05/helpdata/en/77/804c18e1844944b7f8baf5
3159be78/content.htm
2. Configuration of Personal Profile Services
http://help.sap.com/erp2005_ehp_05/helpdata/en/3a/fe6eac579d4a9ead651d77
9a2dbd23/content.htm
3. Personal Profile application Documentation
http://help.sap.com/erp2005_ehp_05/helpdata/en/14/60cd56b1514ae5aa811d2a
a4a59de3/content.htm
In EhP5 ESS Personal Profile application, in order to change the
Address overview page fields, you need to adapt the Address component
configuration HRESS_CC_PER_OVR_ADDRESS_XX. -
Add messages button in Custom transaction
Hi,
We have a Messages button in ME21N in order to select the output type (EDI, etc....). How can I add it to my Module Pool Program Transaction.Hi Ramesh,
Paul has identified the problem correctly, to over come this issue you need to create an implicit enhancement and code it to leave to transaction ZCC01(your custom tcode) at ok-code 'BACK'.
Make sure this will also be called at CC01 tcode.(In such case you dont want to disturb the standard behaviour).
So you need to identify the different calls CC01 or ZCC01, but the issue is sy-tcode always have CC01 value in it.
Use the following code to get the transaction variant name which you have created.
DATA: tcode_variant LIKE shdfv-tcvariant,
tcode_variant_cliidep TYPE char1.
New field: transaction variant
CALL 'DY_GET_TX_VARIANT'
ID 'VARIANT' FIELD TCODE_VARIANT
ID 'CLIENT_INDEPENDENT' FIELD TCODE_VARIANT_CLIIDEP.
TCODE_VARIANT will have the transaction variant value.
Now you can differentiate between CC01 and ZCC01 based on TCODE_VARIANT value.
Hope this will help.
Edited by: Kumar Gaurav on Nov 11, 2009 1:38 PM -
Need to add a field in standard transaction 'fs00'
hi,
can any one suggest me how to add a new field in the standard transaction 'fs00' under the field company code...
thanks ®ards'
prajwala.Hi Prajwala,
You can try the following user exit available for fs00:
GLX1028 User exit for BAPI_GLflex_GetDocItems (EXIT_SAPL1028_001)
Hope this will solve your problem... -
Need to add select-options on standard Transaction IH08
Hi All,
I have a requirement to add a select-options to the tcode IH08
but when I copy the report program to the Zreport the Enhancement points does not copy.
Any help to do that.
Thanks,
JatenderHello,
I think the Enhancement will not be copied to Y or Z because SAP provided the Enhancement for standard Programs or Tcode, when you copied the IH08 Tcode program to Y or Z program then wht is the use of Enhancement so you can directly write the code.
otherwise find the enhancement place in Copied program by comparing Standard program or Y or Z program.
After coverting to Z or Y program directly include the Select-option in the selection screen.
Edited by: Santosh Marupally on Nov 3, 2008 5:48 AM -
How to add new button in Customized page....
Dear All,
I need to add new button to the page button bar in the UI page.I tried like this in the controller but still i can not get output:
OAPageButtonBarBean oapbb = (OAPageButtonBarBean)oawebbean.findIndexedChildRecursive("OrderPageButtons");
OAButtonBean cancelButton = (OAButtonBean)createWebBean(oapagecontext, OAWebBeanConstants.BUTTON_BEAN,
null, "cancelButton");
cancelButton.setText("Cancel");
oapbb.addIndexedChild(cancelButton);
Is there anything i missedout?
TIAwhat you are doing incorrectly is
trying to get the handle to the OAPageButtonBarBean.
This is a named child of the parent bean(OAPageLayoutBean), and what you are trying to do is find it as a indexed child, this should give you a nullpointer excp in this line oapbb.addIndexedChild(cancelButton);
since the handle should be null.
to get the handle to OAPageButtonBarBean, use some like this
pageContext.getPageLayoutBean().getPageButtons();
and then add buttons to it.
Thanks
Tapash. -
Need to add push botton in my selection screen
Hi
I am doing a report program . I need to add PUSH BUTTON in my selection screen can u give me any code or suggestions for this.
IF i press this push button i should get the basic list.
Regards
Rasheed.Hi Here is a another example.
U can place a Push button on selection screen by using the satatement..
SELECTION-SCREEN PUSHBUTTON 2(10) butt USER-COMMAND cli3.
The push button will start from second character position on Selection screen and of length 10 characters !!
check this program...
TABLES sscrfields.
DATA flag(1) TYPE c.
SELECTION-SCREEN:
BEGIN OF SCREEN 500 AS WINDOW TITLE tit,
BEGIN OF LINE,
PUSHBUTTON 2(10) but1 USER-COMMAND cli1,
PUSHBUTTON 12(10) text-020 USER-COMMAND cli2,
END OF LINE,
BEGIN OF LINE,
PUSHBUTTON 2(10) but3 USER-COMMAND cli3,
PUSHBUTTON 12(10) text-040 USER-COMMAND cli4,
END OF LINE,
END OF SCREEN 500.
AT SELECTION-SCREEN.
MESSAGE i888(sabapdocu) WITH text-001 sscrfields-ucomm.
CASE sscrfields-ucomm.
WHEN 'CLI1'.
flag = '1'.
WHEN 'CLI2'.
flag = '2'.
WHEN 'CLI3'.
flag = '3'.
WHEN 'CLI4'.
flag = '4'.
ENDCASE.
START-OF-SELECTION.
TIT = 'Four Buttons'.
BUT1 = 'Button 1'.
BUT3 = 'Button 3'.
CALL SELECTION-SCREEN 500 STARTING AT 10 10.
CASE FLAG.
WHEN '1'.
WRITE / 'Button 1 was clicked'.
WHEN '2'.
WRITE / 'Button 2 was clicked'.
WHEN '3'.
WRITE / 'Button 3 was clicked'.
WHEN '4'.
WRITE / 'Button 4 was clicked'.
WHEN OTHERS.
WRITE / 'No Button was clicked'.
ENDCASE.
Reward me if its helpful.
Regards
Ravi -
How can we add a button on our ALV Grid
Hello,
I need to add a button on the ALV Grid and write a code on that button to download a file on the desktop of the user's machine.
How can we write a code for the same and what would be the syntax of that code.Hi,
you should copy the 'STANDARD' GUI status from program SAPLKKBL using transaction SE90 >Programming SubObjects> Gui Status.
ENTER SAPLKKBL PROGRAM
STATUS STANDARD.
exexute.
select standard check box. copy to your zprogram and your gui status.
Enter your Z program name and the name you what for this status - you can keep it as 'STANDARD' to be simple.
then go to se 38 double click on pf status .it goes to me41 screen .
there you can add your button along with predefined buttons on application toolbar.
then write code for button using user command event.
Code:
Form Set_pf_status
Notes: Called by FM REUSE_ALV_GRID_DISPLAY
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZSTANDARD'.
ENDFORM. "Set_pf_status
In the above case the GUI status copied was named ZSTANDARD and adjusted accordingly, adding and removing the desired buttons. A button was added called '%DELETE'.
3). Create the following report:
Code:
Form User_command
Notes: Called by FM REUSE_ALV_GRID_DISPLAY
Detects whether the icon/button for
'Return Tag Deletion' has been pressed. If it has then
detect whether any rows have been highlighted and then
set the delete flag.
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
DATA: li_count TYPE I.
IF r_ucomm EQ '%DELETE'.
LOOP AT %g00 WHERE mark EQ 'X'.
ADD 1 TO li_count.
ENDLOOP.
IF li_count GT 0.
gc_delete_flag = 'X'.
r_ucomm = '&F03'. "Back arraow
ELSE.
MESSAGE W000 WITH 'Please highlight the rows to be deleted!'.
ENDIF.
ENDIF.
ENDFORM. "User_command
*reward points if usefull
Maybe you are looking for
-
Error while trying to retrieve text ......
Hello, while connecting to Oracle 8i from my VB program i get the following error. -2147217843[Oracle][ODBC][Ora] Error while trying to retrieve text for error ORA-12154. but i get the connection in debug mode. please give any guidance. I am using Or
-
I need a simple, nice looking pager for Openbox. Something like fluxter, but that plays nice with Openbox/PyPanel. I've tried wampager and fluxter, but neither are what I want. Looking for: - Transparency (pseudo) - Size configuration - no window bor
-
Qosmio x300 and Win7 - FN buttons dont work
I reinstalled Windows 7 and now the FN buttons dont work. I have installed the newest version of VAP, the flash card utility is running. So I have no idea. Did I forget to install something? Or is there a tool who installs all drivers for my Qosmio x
-
I signed up for the Cloud and downloaded photoshop for my photo class I'm taking. Only problem is, it won't open the RAW files. So I followed the link it gave me to determine which version of the update I needed. Downloaded it and it still doesn't wo
-
HT201272 how can i get all my audio books i purchased
How can i get back my autio books i had purchased