How to create buttons in Standard DYNPRO
I have to show an LVA in VA01/02/03. I have to create a button in the standard dynpros, but i wouldn't like to registry the object. How can i do this?
Thanks!
There is indeed ..you can modify..additional data A and additional data B screens in VA01/02/03 transactions both at item and header level....to know how to implement it go to SPRO>Sales and Distribution>System Modifications>User Exits in Sales>User Exits in Sales Document processing and read the documentation by clicking page icon beside the node
User exits in the screens
Additional header data is on screen SAPMV45A 0309, additional item data on screen SAPMV45A 0459. These screens contain the Include screens SAPMV45A 8309 or SAPMV45A 8459 as user exits.Fields which are also to be included in the sales document for a specific installation should be included on the Include screens for maintaining. If an application-specific check module is needed for the fields, this can be included in the Include MV45AIZZ. The module is called up in the processing logic of the Include screens.
For field transports, you do not have to make changes or adjustments.
Example
A new field, VBAK-ZZKUN, should be included in table VBAK.
If the check is defined via the Dictionary (fixed values or check table) the field must be included with the fullscreen editor in the Include screen SAPMV45A 8309. In this case, no change has to be made to the processing logic.
this is the extract..however the whole process is very cumbersome and requires careful designing..
Please note that these are user-exits and not customer exits..to implement these you require ACCESS KEYS..however, modification in such a way is completely supported by SAP..
Similar Messages
-
Creating button in standard tool bar
Hi gurus,
I hve to create button in standard tool bar along with the existing icons and buttons, plz help
how to suppres the fields other than screen table methods?
reward asure
with regards,
thambehi,
if u using ALV then go to SE41.
Give SAPLKKBL as program name and STANDARD_FULLSCREEN as status....
now click on Copy Status and in that give ur program and status name into To.....
now in REUSE_ALV_GRID_DISPLAY
FORM display_list.
g_f_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = g_f_repid
i_callback_user_command = 'USER_COMMAND'
i_callback_pf_status_set = 'SET_STAT'
it_fieldcat = g_t_fieldcat[]
it_events = g_t_events[]
TABLES
t_outtab = g_t_itab
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.
ENDFORM. " display_list
FORM set_stat USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZSTAT' EXCLUDING rt_extab.
ENDFORM. "set_stat
here my status name is ZSTAT which i gave in SE41...
and in user_command form...
FORM user_command USING u_comm LIKE sy-ucomm selfield TYPE slis_selfield.
CASE u_comm.
WHEN 'DET'.
........ur logic.........
ENDCASE.
ENDFORM. "user_command
reward if usefull... -
How to create calendar in web dynpro abap
Hi ,
how to create calendra in web dynpro abap.
Thanks in advance.
Regards, Chetanhi,
For calender control, there is Date Navigator under "complex tab". You can just click and drag it and provide calender control.
One more easy way is to create a input field. In the context, create a node and attribute of type "D"(which means DATE). And bind the context to your input field under "values" in property window. While running the program, you will see an calender attached to lt on the input field.
Regards,
Jithin -
How to Create Buttons With some operation
Hello friends How can create button so that when i click that button it should open another new window so that i can select some options in that new window and do some calculations.
Kindly help me .
byeeHi JN,
I have created a Frame which has some checkboxes , a button and text field. when i check some checkboxes and press the Button (ie in my program Metrics level Button ) it should display the result as number of checkboxes that are checked divided by total number of chechboxes. ie if i check some 6 check boxes and press the Metrics level button it should display 6 divided by 12 ie 0.5 in the Result Textfield.
I am sending the code i have written.
Thanks in advance.
public class Frame extends java.awt.Frame {
/** Creates new form Frame */
public Frame() {
initComponents();
setSize(800, 800);
private void initComponents() {
label1 = new java.awt.Label();
checkbox1 = new java.awt.Checkbox();
checkbox2 = new java.awt.Checkbox();
checkbox3 = new java.awt.Checkbox();
checkbox4 = new java.awt.Checkbox();
checkbox5 = new java.awt.Checkbox();
checkbox6 = new java.awt.Checkbox();
checkbox7 = new java.awt.Checkbox();
checkbox8 = new java.awt.Checkbox();
checkbox9 = new java.awt.Checkbox();
checkbox10 = new java.awt.Checkbox();
checkbox11 = new java.awt.Checkbox();
checkbox12 = new java.awt.Checkbox();
button1 = new java.awt.Button();
textField1 = new java.awt.TextField();
setLayout(null);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
exitForm(evt);
label1.setText("Select the Metrics below");
add(label1);
label1.setBounds(320, 20, 136, 20);
checkbox1.setLabel("Architecture Metrics");
add(checkbox1);
checkbox1.setBounds(240, 80, 84, 20);
checkbox2.setLabel("Runtime Metrics");
add(checkbox2);
checkbox2.setBounds(240, 200, 115, 20);
checkbox3.setLabel("Documentation Metrics");
add(checkbox3);
checkbox3.setBounds(240, 320, 152, 20);
checkbox4.setLabel("Size");
add(checkbox4);
checkbox4.setBounds(280, 110, 49, 20);
checkbox5.setLabel("Structure");
add(checkbox5);
checkbox5.setBounds(280, 130, 75, 20);
checkbox6.setLabel("Complexity");
add(checkbox6);
checkbox6.setBounds(280, 150, 86, 20);
checkbox7.setLabel("Size");
add(checkbox7);
checkbox7.setBounds(290, 230, 49, 20);
checkbox8.setLabel("Structure");
add(checkbox8);
checkbox8.setBounds(290, 250, 75, 20);
checkbox9.setLabel("Complexity");
add(checkbox9);
checkbox9.setBounds(290, 270, 86, 20);
checkbox10.setLabel("Size");
add(checkbox10);
checkbox10.setBounds(300, 350, 49, 20);
checkbox11.setLabel("Structure");
add(checkbox11);
checkbox11.setBounds(300, 370, 75, 20);
checkbox12.setLabel("Complexity");
add(checkbox12);
checkbox12.setBounds(300, 390, 86, 20);
button1.setLabel("Metrics level");
add(button1);
button1.setBounds(290, 470, 83, 24);
textField1.setText("Result");
textField1.setName("Result");
add(textField1);
textField1.setBounds(400, 470, 60, 20);
pack();
public void actionPerformed(ActionEvent e) {
****** I think code should be added here for the button pressed event*******
/** Exit the Application */
private void exitForm(java.awt.event.WindowEvent evt) {
System.exit(0);
* @param args the command line arguments
public static void main(String args[]) {
new Frame().show();
// Variables declaration - do not modify
private java.awt.Button button1;
private java.awt.Checkbox checkbox1;
private java.awt.Checkbox checkbox10;
private java.awt.Checkbox checkbox11;
private java.awt.Checkbox checkbox12;
private java.awt.Checkbox checkbox2;
private java.awt.Checkbox checkbox3;
private java.awt.Checkbox checkbox4;
private java.awt.Checkbox checkbox5;
private java.awt.Checkbox checkbox6;
private java.awt.Checkbox checkbox7;
private java.awt.Checkbox checkbox8;
private java.awt.Checkbox checkbox9;
private java.awt.Label label1;
private java.awt.TextField textField1;
// End of variables declaration
this is the output when i execute the program -
hi experts,,,,,
1)can u explain the use of it.......
how to create diff type of variants.......
2)......how to give batch number assignment alpha numerically.......
here in the system only numbe\rically available, and i have to assign the batch number internal assignment.........for a particular production order.Hi,
<b>creating Transaction Variants</b>
Step 1:
Execute transaction SHD0 and create a Transaction Variant against the original transaction.
Step 2:
As soon as you press the create button, the original screen of the transaction will appear. After pressing any button/tab on the screen a menu variant screen will appear. Make sure to check any field or tab or any button you want to disappear from the menu functions. Press the exit and save button when you are sure that no further settings are required on sub-screens (if present). After pressing the exit and save button another menu variant screen will appear. Press the save button here and save as a local object or under any development class.
Step 3:
When you are back on the Transaction Variant (SHD0) screen, press shift+F6 or click the goto menu and press the create variant transaction button. Through this transaction SE93 will be executed. Enter the transaction name you want to create and any other required field and now press the save button.
Step 4:
Now execute the transaction you create through create Transaction Variant and enjoy the results.
Case two for creating Transaction Variants
Step 1:
Create a dialogue transaction through SE93 and enter the program name and screen number of the original transaction you want to make a variant on (e.g., PFCG). Press the save button and check whether the replica transaction (PFCG) has been created successfully by executing it on a new session.
Step 2:
Execute transaction SHD0 to create a Transaction Variant. Specify the transaction name (replica of PFCG) which you have just created and create a Transaction Variant against the replica transaction.
Step 3:
As soon as you press the create button, the original screen of the transaction will appear. After pressing any button/tab on the screen a menu variant screen will appear. Make sure to check any field or tab or any button you want to disappear from the menu functions. Press the exit and save button when you are sure that no further settings are required on sub-screens (if present). After pressing the exit and save button another menu variant screen will appear. Press the save button here and save as a local object or under any development class.
Step 4:
When you are back on the main screen of the SHDO (Transaction Variant) click the edit option on the menu tab and activate Standard Variant. Through this a Standard Variant will be assigned to the transaction specified (replica transaction).
Note: Make sure you activate the Standard Variant against a replica transaction and not on the original one.
Regards
Sudheer -
How to hide buttons on standard FPM tool bar
Hi,
I have to hide two buttons on standard FPM tool bar....buttons are price simulation and useractions.
Technical details are...
FPM_OIF_COMPONENT and Configname is DPVMS_CC_VD
When i start configuration and open view : Web Dynpro Built in...
i can see..
CNRVIEW
....TC MAIN AREA
......TOOLBAR TOP
.......BUTTON CONTAINER
i can't able to see button names existed here...
Can anybody guide me how to get button names here ....i want to hide few buttons on button container...
Thanks,
SubbaHallo Subba,
You should not be in Webdynpro build in.
I might be wrong ! i think you have started the wda component configuration and not the FPM application configuration->Component configuration.
In Se80,Navigate to your application,open the application node, select the application configuration,open it.
From there select the component and go to component configuration->press display button would lead you to the FPM configuration editor. -
How to: disable buttons in standard forms
Hi all,
does anybody know how to disable session date button from standard forms?
I cannot find in forms (through Form Builder) the right data block / canvas where this button is.
Thanks all.
JacopoI'm not aware of any "session date button". A button on a form can be disabled using the set_item_property.
Use the layout editor and double-click the button. It will tell you what button it is. The button will also be highlighted in the Object Navigator window.
Message was edited by:
Mark Roberts -
How to create button programmatically and assign trigger for it and add code
is that possible ?
How can I create item a button for example programmatically (at run time)
and create trigger (when-button-pressed) programmatically and write a code
in the trigger body as well programmatically.
thankxHello David
I used the way list and go button which is more safer than creating buttons because
you can populate the list on fly.
| dropdown list \/
| go button |
PROCEDURE populate_user_function_list IS
rg_list_id RECORDGROUP;
ret_code NUMBER;
BEGIN
rg_list_id := FIND_GROUP('RG_LIST');
IF NOT ID_NULL(rg_list_id) THEN
DELETE_GROUP(rg_list_id);
END IF;
rg_list_id := CREATE_GROUP_FROM_QUERY('RG_LIST','SELECT FUNCTION_ID, FUNCTION_ID FROM SMS_ROLE_FUNCTION WHERE SMS_ROLE_FUNCTION.DB_ROLE ='||''''||:GLOBAL.USER_ROLE||''''||' ORDER BY SEQUENCE_NO');
ret_code := POPULATE_GROUP(rg_list_id);
--Populate record group.
IF ret_code <> 0 THEN
bell;
MESSAGE('Record Group could not be populated');
RAISE FORM_TRIGGER_FAILURE;
END IF;
POPULATE_LIST('DYNAMIC_BLK.USER_FUNCTION','RG_LIST');
DELETE_GROUP(rg_list_id);
END;
--this is the button to go the user selection
begin
if :DYNAMIC_BLK.USER_FUNCTION is not null then
--go to selected form
call_form(:DYNAMIC_BLK.USER_FUNCTION,NO_HIDE,DO_REPLACE,NO_QUERY_ONLY,NO_SHARE_LIBRARY_DATA);
else
bell;
message('Please select a function');
end if;
end; -
How to remove buttons from standard check in page
Hi,
Can any one tell me how to hide buttons from the standard check in page and re-arrange field in UCM. I want to just display Check In, Reset and Quick Help.
Thanks,
Abhijit
Edited by: AbhijijitPr on Sep 6, 2010 2:28 PMHey Tim,
Even i am facing a similar situation but i have to hide the field on the selection of an option list
How can i do it through profile and rules?
Can it be done by using custom includes in the fields?
if yes how?
Thanks, -
Hello,
I am trying to create a simple flash piece but no luck so
far.
I'd like to create 4 text buttons. When each button clicked,
an image will slide into the scene...That's it. WHen the second
button is clicked, a new image will slide in. I dont care much
about sliding out the other one -- although it'd be nice...
I cant even find a tutorial that explains how to assign
actions to buttons. I know how to create the buttons and tweening.
BUt i cant put everything together to work. Can anyone help?
Thankx in adavnce and happy new year!yes, this is great. i see it's the exact effect i am looking
fir but this is way too complex for me. I am just trying to create
a button... and when clicked, an image will open. is there an
easier way to do this? thanks again advance for any help. -
How to create Variants in Web Dynpro using ABAP
Can anyone please tell how to create and save variants in a Web DynPro application using ABAP.
Also state the steps involved in saving and loading the variants.hi,
For calender control, there is Date Navigator under "complex tab". You can just click and drag it and provide calender control.
One more easy way is to create a input field. In the context, create a node and attribute of type "D"(which means DATE). And bind the context to your input field under "values" in property window. While running the program, you will see an calender attached to lt on the input field.
Regards,
Jithin -
How to create Button which size is calculated from its text ?
I think JButton works like this: either in constructor or by setText() method the text is set and according the lenght, font and fontRendererContext preffered size is calculated before the layout manager ask for the prefferedSize for first time.
I want to override paint() method because i want to draw my own text(and the only way i discovered how to force button not to paint text is to set text to
null or empty String). I want the button to be as long as length of text plus insets.
But layout manager ask for preffered size before paint method is invoked but i find out what size should be in paint method because i need graphics
parameter to get FontRendererContext from it. So layout manager shrink button to minimum because first time the preffered size calculated from null or
empty String is returned.
public class MyButton extends JButton {
public MyButton() {
this.setText(null); //or setText("");
this.setContentAreaFilled(false);
this.setFocusPainted(false);
this.setBorderPainted(false);
////already here i need to know what the size should be
@Override
public void paint(Graphics g) {
Graphics2D g2 = (Graphics2D) g;
TextLayout textLayout = new TextLayout("MyButton", this.getFont(), g2.getFontRenderContext());
Rectangle2D boundsOfText = textLayout.getBounds(); /////////here i find out what size should be
this.prefferedSize = new Dimension((int)boundsOfText.getWidth()+10,(int) boundsOfText.getHeight()+10);
g2.setColor(Color.WHITE);
g2.fillRoundRect(1, 1,(int)getPreferredSize().getWidth(),(int) getPreferredSize().getHeight(), 10, 10);
g2.setColor(Color.BLACK);
g2.drawRoundRect(1, 1,(int)getPreferredSize().getWidth(),(int)getPreferredSize().getHeight(), 10, 10);
g2.drawString("MyButton", 7, (int)boundsOfText.getHeight() + 6);
g2.dispose();
}So how can i do that? How can JButton know prefferedSize before its paint method is invoked?The previous example was simplified.
public class MyButton0 extends JButton {
private String myText;
public MyButton0(String text) {
this.myText = "Button";
//this.myText = text.toUpperCase();
this.setFont(new Font("SansSerif", Font.PLAIN, 13));
setContentAreaFilled(false);
setBorderPainted(false);
setFocusPainted(false);
@Override
public void paint(Graphics g) {
Graphics2D g2 = (Graphics2D) g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
//backround painting
GradientPaint background = new GradientPaint(0, 0, new Color(255, 255, 255), 0, getPreferredSize().height / 2, new Color(0, 0, 0), true);
if(getModel().isRollover()){
background = new GradientPaint(0, 0, new Color(255, 255, 255), getPreferredSize().width , getPreferredSize().height , new Color(0, 0, 0), true);
if(getModel().isPressed()){
background = new GradientPaint(0, 0, new Color(255, 255, 255), 0, getPreferredSize().height / 2, new Color(210, 210, 210), true);
g2.setPaint(background);
g2.fillRoundRect(1, 1, getPreferredSize().width - 3 , getPreferredSize().height - 3, 10, 10);
//Border painting
g2.setColor(new Color(255, 255, 255));
g2.setStroke(new BasicStroke(2.0f, BasicStroke.CAP_BUTT, BasicStroke.CAP_BUTT, 10.0f));
g2.draw(new RoundRectangle2D.Double(1, 1, getPreferredSize().width - 3, getPreferredSize().height - 3, 10, 10));
//text paiting
g2.setFont(getFont());
TextLayout tl = new TextLayout(this.myText, getFont(), g2.getFontRenderContext());
int startPositionOfText = getPreferredSize().width - (int) tl.getBounds().getWidth();
startPositionOfText = startPositionOfText / 2;
g2.setColor(new Color(255, 255, 255));
g2.drawString(this.myText, startPositionOfText -2, getHeight() / 2 + 5);
g2.dispose();
@Override
public Dimension getPreferredSize() {
return new Dimension(133, 31);
}Assume text is so long as doesn't fit inside button. I have hard-set preffered size but i would like to calculate preffered size from text lenght.
Or i need calculate startPosition of text to center it. But i don't want have preffered size hard-set. -
How to create Buttons for Excel,Print & help!
Hi Experts
Anyone has an experience how to create a Buttopn Group for the following options.
1.Excel
2.Printchart
3.Printtable
4.Printreport
5.Help
Pls revert to me <removed by moderator>.
Thanks
BI Learner
Edited by: Siegfried Szameitat on Dec 1, 2008 10:46 AMHi,
Your PDF output and the output of the Template on Web should be similar, ideally. But, if the width of the 2 reports are bigger and that cannot fix in one page, then the PDF output will not be as you require it to be.
You have to decrease the dimensions of the Analysis item in the Template and see how the output size varies in the Web.
Also, when you have defined the command for converting to PDF, select the checkbox which allows you to see the "Page Setup" while you are converting it to PDF in the Web, ie in the output of the template. Here, set the margins to the minimum (Left, right, top and bottom). This also ensures that the Analysis item gets the maximum area in the output.
Just try this piece of code too,
<bi:CAPTION value="Print PDF" />
<bi:TOOLTIP value="Print to PDF Document" />
<bi:ACTION type="CHOICE" value="INSTRUCTION" >
<bi:INSTRUCTION >
<bi:EXPORT >
<bi:REPEAT_KEYCOL value="" />
<bi:PAPER_ORIENTATION value="LANDSCAPE" />
<bi:MARGIN_RIGHT value="10" />
<bi:MARGIN_LEFT value="10" />
<bi:MARGIN_TOP value="10" />
<bi:MARGIN_BOTTOM value="10" />
Here the margins are set to 10. You can even try decreasing this depending on your requirement. -
How to create button in application toolbar in sap standard tcode va03
Hi Gurus,
I want to create a button in the application tool bar of a sap standard tcode : va03.
Can some one help me with this..!
Best Regards,
Navin Fernandes.
Edited by: NAVIN FERNANDES on Aug 12, 2010 10:02 AM
Edited by: NAVIN FERNANDES on Aug 12, 2010 10:07 AMGo to the coresponding PF status and edit using modification assistant.
http://help.sap.com/saphelp_nw04/helpdata/en/c8/19762743b111d1896f0000e8322d00/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/83/7a18cbde6e11d195460000e82de14a/frameset.htm
Regards,
Nikhil -
How to add button in standard SAP transaction
Hi All,
I would like to know how to add a button in the application toolbar of the standard SAP transaction CO01/CO02. Is there a screen exit for this?
Hope you can help. Thanks
Regards,
AprilCheck Enhancment CCOWB001. If not then u can search the below list, all of which are called from the T-code.
CCOWB001 Customer exit for modifying menu entries
COIB0001 Customer Exit for As-Built Assignment Tool
COZF0001 Change purchase req. for externally processed operation
COZF0002 Change purchase req. for externally procured component
PPCO0001 Application development: PP orders
PPCO0002 Check exit for setting delete mark / deletion indicator
PPCO0003 Check exit for order changes from sales order
PPCO0004 Sort and processing exit: Mass processing orders
PPCO0005 Storage location/backflushing when order is created
PPCO0006 Enhancement to specify defaults for fields in order header
PPCO0007 Exit when saving production order
PPCO0008 Enhancement in the adding and changing of components
PPCO0009 Enhancement in goods movements for prod. process order
PPCO0010 Enhancement in make-to-order production - Unit of measure
PPCO0012 Production Order: Display/Change Order Header Data
PPCO0013 Change priorities of selection crit. for batch determination
PPCO0015 Additional check for document links from BOMs
PPCO0016 Additional check for document links from master data
PPCO0017 Additional check for online processing of document links
PPCO0018 Check for changes to production order header
PPCO0019 Checks for changes to order operations
PPCO0021 Release Control for Automatic Batch Determination
PPCO0022 Determination of Production Memo
PPCO0023 Checks Changes to Order Components
STATTEXT Modification exit for formatting status text lines
Maybe you are looking for
-
I have been having trouble installing Windows 7 Home Premium on my 2008 iMac while using BootCamp. It has OS X Mavericks 10.9.1. Every time I try and use bootcamp I come across a blank black screen with a flashing white curser in the top left hand
-
How can I play f4f file on my ipad?
I was wondering if there exists any solution for playing f4f files on ipad? Can't I make a player using java coz iOS doesn't support flash.
-
Safe PDF version when merge files
I've worked in separate .indd files and export each file to PDF (version 1.3). When I merge PDFs in Acrobat, merget files is with changed version (probably default). I tried to find where are settings in merging, but failed. Can you help me?
-
Since I upgraded to Adobe Created Cloud, my photo editing processes are taking more than 10 times longer than they used to. Why would this be?
-
HELP - IM UNABLE TO USE MY MOBILE NETWORK CONNECTION
guys i need your help. Im unabble to use my mobile network connection in spite of all the directives given by the various institutions. I was told by an expert that this has happened to a few BB10 users and that if I did not receive mobile network co