Doubt on dialog

hi experts
      I am new to the dialog programming.
     My requirement is 
    1) I have Sales document as Input in the Screen (vbeln)
    2) After enter vbeln then I press enter key, then i need to display the Sales
       document details like Material and its Description Order qty in the table
       control tc1.
    3) I have ztable also called zctlp but not having details of vbeln,material and all.
    4) These details i need to pick from vbap or some other tables.
      How to do this, pls help me on the same.
Thanks in advance
Regards
Rajaram

1. you can by naming the screen input as vbak-vbeln and check the "From dict" on tab "Dict" in the property.
2.,3. you need to code the program to select the data from vbak and vbap and move the data to your work area  (zctlp) in the table control .
4.you can code anytthing that you want in your program but if you want to assign value to the screen you need to set the name of variable and the name in the screen is the same.
you can use the wizard to generate table control also.
Regards
Wiboon

Similar Messages

  • Hi friends i have doubt in dialog programming.

    i am desiging the screen using table control. which is suppose to accept unit of measure as 'car' means carton, kg, and so on. so if i enter numerics it should not accept. can anybody tell me how  can i restrict the user to enter only alphanumerics. thanks in advance.

    Hello,
    U can use the system table field ABCDE for checking if it has only alphabets.
    system field == SY-ABCDE
    Regards
    Anurag

  • Doubt in dialog progms

    hi experts,
       if any one knows plz give me reply.
    1. Why we are using atleast empty loop in PBO,PAI while usign Table control in Screen painter. wht's the correct reason?
    2. Wht is the difference between call screen, set screen, leave screen?
    3. How the chain and end chain concept works in SE51.
    plz give some solutn, point will be sure.
    Gowri

    Hi
    Since Table control always holds a Range of records we use Loop..endloop..
    both in PBO and PAI
    see the doc for table control
    syntax:
    CONTROLS  ON CHAIN-INPUT|CHAIN-REQUEST.
    ENDCHAIN.
    Check this out
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/d1/801ca2454211d189710000e8322d00/frameset.htm
    Set screen and Leave Screen are used to leave the current screen
    SET SCREEN 100.LEAVE SCREEN.
    It is similar to LEAVE TO SCREEN 100.
    Reward points for useful Answers
    Regards
    Anji

  • Regarding Dialog Boxes

    hi, I am a novice in Labview. I have a doubt regarding dialog boxes. can i make a VI as a dialog without running the VI.
    Thanks in Advance
    Regards
    Soundarya

    Soundarya wrote:
    hi, I am a novice in Labview. I have a doubt regarding dialog boxes. can i make a VI as a dialog without running the VI.
    Thanks in Advance
    Regards
    Soundarya
    Hi Soundarya,
    what do you mean? You can make a vi and use it as a dialog, but why should the vi not run?
    Mike
    Message Edited by MikeS81 on 07-07-2009 09:03 AM

  • Regarding Dialog Box

    hi, This is Akhila.
    I am a novice in Laview. I have a small doubt regarding Dialog Boxes
    Can I add a dialog box in the project same like adding a VI
                                       Thanks in Advance
    Regards,
    Akhila

    You can create a VI that works like a dialog box. See the shipping examples for some examples on dialog boxes. You can also convert an Express VI dialog to a regular VI and save it as your own. See the Help on converting Express VIs to regular VIs.

  • Dialog prog. doubt

    hi alll,
    i've created one dialog prog. in that prog. i created inserted table control. in that control i placed two TXTNAME and TXTAGE (input/output field). BUT I activated, the folllowing error occurs during runtime :
    The txtname is not assigned to a loop "LOOP ... ENDLOOP" muthu appear in "PBO" and "PAI".
    pls solove my problem

    Hi,
    While defining a table control on a screen, the following statements are mandatory :
    1. CONTROLS : <TABLECONTROL> TYPE TABLEVIEW USING SCREEN <SCREENNO.>
    2. In the Flow Logic,
      a. In the PBO.
        Loop at itab with <tablecontrol>.
        endloop.
      b. In the PAI,
        loop at itab.
        endloop.
    In your case, ensure that the Statement 2 is present.
    Reward if helpful.
    Regards

  • Doubt about constructor and show.Input dialog

    Hi everybody!
    I wrote this program in java. It works, but I have some doubts. The points that are not clear to me are in comments. Thanks in advance:
    import javax.swing.JOptionPane;
    public class Bicicleta extends JOptionPane{
         int velocidad;
         int cambios;
         String color;
    public Bicicleta(){// Why we have to make a constructor without procedures, if we have the constructor public Bicicleta(values) down?
                             //I mean, if we delete this constructor,
                             // the program will not work.
    public Bicicleta(int cambiarVelocidad, int cambiarCambios, String cambiarColor){ //without the constructor bicicleta
         velocidad = cambiarVelocidad;                                                            // that is up of this procedure,     
         cambios = cambiarCambios;                                                                 // the program will not work, Why?
         color = cambiarColor;
    public int getVelocidad(){
         return velocidad;
    public int getCambios(){
         return cambios;
    public String getColor(){
         return color;
    public void setVelocidad(int nuevaVelocidad){
         velocidad = nuevaVelocidad;
    public void setCambios(int nuevoCambio){
         cambios = nuevoCambio;
    public void setColor(String nuevoColor){
         color = nuevoColor;
    public void showBici(){
         this.showMessageDialog(null, "Los valores de la nueva bicicleta son: Velocidad de "+velocidad+" tiene "
         cambios" cambios y es de color "+color);
    public Bicicleta getBici(){
         return (new Bicicleta(this.getVelocidad(),this.getCambios(),this.getColor()));
    public void setBicicleta(){
         velocidad = Integer.parseInt(this.showInputDialog("Inserte la velocidad de la bicicleta"));
         cambios = Integer.parseInt(this.showInputDialog("Inserte la cantidad de cambios de la bicicleta"));
         color = (this.showInputDialog ("Inserte el color de la bicicleta"));
    public static void main(String[] args){
         Bicicleta bike = new Bicicleta();
         bike.setBicicleta();
         Bicicleta nuevaBici; // I copy this segment of code form anyone else, but I dont understand it.
         nuevaBici = bike.getBici();          // Can someone explain it please?
         nuevaBici.showBici(); //
    }

    The program is supposed to recollect the data with:
    public void setBicicleta(){
    velocidad =
    = Integer.parseInt(this.showInputDialog("Inserte la
    velocidad de la bicicleta"));
    cambios =
    = Integer.parseInt(this.showInputDialog("Inserte la
    cantidad de cambios de la bicicleta"));
    color = (this.showInputDialog ("Inserte el color de
    e la bicicleta"));
    So, I think that the values of variables are defined
    by the user. So, we dont have to define any previous
    data, because it is a input of the program user.
    Maybe I?m wrong, so what is my error in this case?Not thinking about responsibilities? So when I go and create a new Bicycle, I have a bicycle with no color and no top speed. Have you ewver seen a bicycle like that? A bycicle that asks you about what color it should have? Shouldn't rather the one creating the bicycle be the one to ask you for the values, and then apply them to the bicycle he creates?
    Do the asking first, then call
    bike = new Bicicleta(theColor, theSpeed, theGears, whatever);That way you can also get rid of that c'tor you don't want, since it makes no sense anyway.

  • Dialog Box doubt

    Is there a way to get values from the YES_NO_CANCEL \ OK_CANCEL options in the standard dialog boxes, i.e, attaching actions to be performed when YES or NO is clicked?
    Thanks

    Just doswitch (JOptionPane.showConfirmDialog (...)) {
        case JOptionPane.YES_OPTION:
            break;
        case JOptionPane.NO_OPTION:
            break;
        default:
            break;
    }Kind regards,
      Levi

  • Doubt in skinning of dialog property

    Hi
    I have applied global skinning for dialog property, i have applied new close icon for dialog proprty
    whenever i hover/click that close icon  it is showing the default close icon even i have applied new image for that
    what can be applied in css file to change this
    currently am using the below code in css file
    af|dialog::close-icon-style,
    af|dialog::close-icon,
    af|dialog::focus,
    af|dialog::click,
    af|dialog::hover,
    af|dialog::close-icon-style-region{
    background-image: url("../images/btn_close_popup.png");
    width:13px;
    height:20px;  
    Help me in this ASAP
    Thanks

    Hi pavan.
    something is definitely wrong with your code: You have an internal table for display with fields from rpca 2 and additional some more fields. I do not see a field ORT01 for CITY or PSTLZ for POSTAL CODE, at least to in table GLPCA from where the data are extracted.
    You must fill PSTLZ and ORT01 (if it is for the supplier):
         SELECT SINGLE * FROM LFA1
             WHERE LIFNR = <glpca>-LIFNR AND
             SPRAS = SY-LANGU.
         IF SY-SUBRC eq 0.
            <glpca>-name1 = lfa1-name1.
            <glpca>-adrnr = lfa1-adrnr.
            <glpca>-stras = lfa1-stras.
    **** add here: ***
      select single ort01 pstlz
        into corresponding fields of <glpca>
        from adrc
        where adrnr = <glpca>-adrnr.
         ENDIF.
    Make sure that fields ORT01 and PSTLZ are defined for internal table i_glpca.
    Regards,
    Clemens

  • How can a JTextField in a Dialog gain focus while mainframe is clicked

    Hi
    I have been trying to develop a 3d application. I have some shapes on a Canvas3D laid on a JFrame.
    I open a new shape dialog after pressing the appropriate button.
    Once the dialog is open I need to select two shapes on canvas for reference hence there are two text fields to show the name of each.
    when I select the first shape the corresponding textfield is being updated.
    Now the Problem
    I place the cursor in the second tex field and click on second shape on canvas.
    I lose focus from text field to canvas.
    Now I am unsure if the second textfield has the focus or is the focus with the first text field. Based on this focus info I can update the text fields.
    I understand that only one field can have focus at a time.
    My doubt is How can the JTextField retain its focus while the components on main window are being clicked.
    The following code is enclosed in a listener that responds to picked shapes.
    if(gooi.getSketchDialog() != null && gooi.getSketchDialog().isShowing()){
                gooi.getPick1().getCanvas().setFocusable(false);
                if(gooi.getSketchDialog().getSelectedPlaneTextField().isFocusOwner()){
                        if( pickResult != null)
                            gooi.getSketchDialog().getSelectedPlaneTextField().setText(pickResult.getNode(PickResult.SHAPE3D).getUserData().toString());
                        else if (pickResult == null){
                            gooi.getSketchDialog().getSelectedPlaneTextField().setText("");
            }Any help is appreciated.
    Thanks in Advance
    Venkat
    Edited by: pushinglimits on Oct 31, 2008 6:52 AM

    Michael
    The text field still loses focus when its containing window is no longer focused.import java.awt.FlowLayout;
    import java.awt.event.FocusEvent;
    import java.awt.event.FocusListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JTextField;
    import javax.swing.SwingUtilities;
    public class NoFocusTransfer implements FocusListener {
       public static void main(String[] args) {
          SwingUtilities.invokeLater(new Runnable() {
             @Override
             public void run() {
                new NoFocusTransfer().makeUI();
       public void makeUI() {
          JTextField one = new JTextField(20);
          one.addFocusListener(this);
          JTextField two = new JTextField(20);
          two.addFocusListener(this);
          JFrame frameOne = new JFrame("");
          frameOne.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frameOne.setSize(400, 400);
          frameOne.setLocationRelativeTo(null);
          frameOne.setLayout(new FlowLayout());
          frameOne.add(one);
          frameOne.add(two);
          JButton button = new JButton("Click");
          button.setFocusable(false);
          JFrame frameTwo = new JFrame();
          frameTwo.add(button);
          frameTwo.pack();
          frameTwo.setFocusable(false);
          frameOne.setVisible(true);
          frameTwo.setVisible(true);
       public void focusGained(FocusEvent e) {
          try {
             System.out.println("Focus from: " +
                     e.getOppositeComponent().getClass().getName());
             System.out.println("Focus to: " +
                     e.getComponent().getClass().getName());
          } catch (NullPointerException npe) {
       public void focusLost(FocusEvent e) {
          try {
             System.out.println("Focus from: " +
                     e.getComponent().getClass().getName());
             System.out.println("Focus to: " +
                     e.getOppositeComponent().getClass().getName());
          } catch (NullPointerException npe) {
    }db

  • Doubt in user exit for transaction MM03

    Hi Friends,
        I have a doubt in user-exits. I have to add a button in MM03 which when clicked should open a particular URL taking material no. as the parameter.I have got the function for opening the URL, I just want to know which user exit should I be calling and in what way?Can anyone please give me step by step procedure as I am new in user exits.Thanks in advance....

    VA01 is a dialog program.  The use of WRITE statements in dialog program is really not done.
    You will need output your values to existing screen fields or create new ones in SE51.
    Sounds like you might want to review dialog prog in general.
    Also - the TABLES statement is for database tables.  It has nothing to do with internal tables.

  • Open/Save Dialogs: How to Set Min. Sidebar Width?

    I am now running Lion.  I cannot remember if I had this problem under Snow Leopard, but I certainly have it now.  Whenever I bring up the Open/Save dialog within some apps (for example, Illustrator CS5.0), no matter how large I've made that dialog overall, the sidebar width is always too narrow such that all the names inside the sidebar aren't perfectly visible horizontally.  Yes, I can make the sidebar wider by hand for a single session.  But if I close the dialog and open it again, the sidebar becomes narrow again.
    How can I define a minimum width for the Open/Save dialog sidebar, that all apps will obey perpetually?

    Perhaps, but in my many years of online forum participation, I've found that people are lazy (myself included at times). And unless we exert ourselves, we often don't post something for the benefit of others, even though we may have the answer.  As such, a somewhat provocative follow-up post, while having the potential to upset some, is usually sufficient to encourage at least one person to stand up and post a potential solution.  It got you to post a response (even though it was not the answer I sought), which I appreciate.  Hopefully, someone with the answer will be able to post back here.  I am a believer of "where there's a will there's a way," so no doubt someone out there far more clever than I has discovered a fix for it.
    I therefore look forward to hearing the thoughts of others on this issue.

  • How do I customize a Dialog Box theme for my macbook pro?

    I am tired of the gray dialog boxes. If possible, I would like to use a picture. I also want a different color bar on the top of the screen. I also would like a different color scroll bars. I also want different options (as in colors) for cursors. Thank you!

    I have no doubt that someone with too much time on his hands has written something you could use to customize your dock, cursors, dialog boxes, menu bar, and all manner of other things. What I'm suggesting is that that's a dumb thing for him and you to waste time and energy on, and a silly and completely unnecessary risk with little or no benefit. If you have things to get done with your computer, do them, and don't get bogged down fooling with the eye candy.
    And by the way, no one owes you answers to your questions. Everyone here is a volunteer.

  • After installing security update 10.6.8 I've seen dialog boxes asking me if I will permit certain root processes, e.g. configd, to receive unsolicited messages from the internet. What are the consequences of denying these requests?

    After installing security update 10.6.8 last night I've seen dialog boxes asking me if I will allow incoming network connections to certain root processes, e.g. configd.  I didn't see these dialog boxes prior to installing 10.6.8.  How do I make  informed decisions? In other words,
    (1) Where can I find 25-word summary descriptions of these processes?
    (2) Where can I find discussions of the consequences of granting or denying these requests?
    Alternatively (and at some risk of revealing metaphysical doubt) why am I being asked for these permissions?  And who expects me to make correct decisions?
    I have turned on th standard-issue OS X firewall and am running my system in stealth mode.

    After installing security update 10.6.8 last night I've seen dialog boxes asking me if I will allow incoming network connections to certain root processes, e.g. configd.  I didn't see these dialog boxes prior to installing 10.6.8.  How do I make  informed decisions? In other words,
    (1) Where can I find 25-word summary descriptions of these processes?
    (2) Where can I find discussions of the consequences of granting or denying these requests?
    Alternatively (and at some risk of revealing metaphysical doubt) why am I being asked for these permissions?  And who expects me to make correct decisions?
    I have turned on th standard-issue OS X firewall and am running my system in stealth mode.

  • New Dialog Instance Installation steps for Solaris

    Hi Basis Gurus,
    I have doubt regarding installation of a Dialog Instance.
    we are having 3 application servers with one DBCI (ECC 6.0 / Oracle 10.2 / Solaris 10). all application server & DBCI are running in Solaris OS in seperate box, now i want install additional new dialog instance in separate server, all the files systems are mounted NTFS under /sapcd.
    Please tell how can i start the installation ? which exe file i want to run ?
    Please guide me in this regard.
    Thanks in Advanc
    Kumarasamy.

    Read the installation guide available at SAP marketplace.
    Regards
    Juan

Maybe you are looking for