A strange problem about batch input (VA01)

Dear experts,
I have created one batch input program about VA01,When the selection screen is full window and run,one error occurs.Opposition the screen is not full window ,and the error do not occur.
Could you help me?
Thanks and regards,
collysun

Hi Collysun,
     The problem what you are facing is due to the resolution setting of individual desktop. This is a known issue in BDC's. Pls do one more recording of VA01 by putting the screen into default size from the tri color button that comes at the right corner of the application tool bar of your session window.
     The advantage is that when the BDC is executed in background automatically the size of the session which is doing the job for you goes to the original size as the one in the recording and it will work irrespective of the windows screen resolution.
Cheers
JK
PS: Award points if this answer is helpful

Similar Messages

  • Problem in batch input method

    Hi wizards,
    please help me for the following problem:
    I have created a parent recording for MATERIAL MASTER in LSMW batch input method by selecting all of the fields that may be required for different material types.  Now I want to edit the recording and create new recordings from the parent one for specific material types.  For this, i have made a copy of the same recording with a different name in the same project.  In the copied recording, i have kept only the screen fields which i require for a particular material type and deleted the rest. I have created new structure relationships and field mapping rules for the new recording. Now when i upload the data, system is behaving normally upto the DISPLAY READ DATA stage, but gives a short dump on CONVERT DATA. On inspection i have found that during FIELD MAPPING, the _source field mapping is still showing mapping with the source structure of the parent recording for fields which have mapping rule as "Transfer" but it is picking up the new source structure for those source fields for which mapping rule is "Constant"_.
    Kindly help me solve this problem as i do not want to create a separate recording for each material type. Can creating a new subproject help in this regard?
    Thanks and regards
    Abhik

    Hi Harris,
    could you please let me know how to use the two methods you have mentioned? If you have any docs regarding the same then could you please mail it to me at [email protected]? Or else if you have any link for the same then please do send it to me.
    However, I would like to know that if separate recording is required for every material type, then why the "COPY RECORDING" and "DELETE SCREENFIELD" utilities have been provided.
    Thanks and regards
    Abhik

  • Problem with batch inputs

    Dear All
    Could you advise me, we have many batch inputs stored in our system, some of them are very old one.
    What is SAP recommendation?
    How long batch inputs should be stored?
    Maybe you have some experience in this matter and can advice us>
    Thank you in advance for your help.
    Best regards
    Maja

    Hi Maja,
    if you double click on each batch input session, u will find the status, (Error, Processed, Not Message). u can delete the batch inputs whose status is Error or no message. those are all not in use. Even if you leave that also not a problem.
    U can find the status in 2nd Column, if the 2nd column has symbles like (Execute, Create and Error). Based on that also u can find the status.
    Kumar

  • Short code causes a strange problem - About the list again -- please read!

    Hi again people. Maybe you remember my project - has a list, that you can search thru using a text field. During the work I got stuck on a strange problem ( Again :-( ) My app has one text field, one combo box, one list and a text field once more. The code should do the following ->
    *1. Load the list, no problem with that.*
    *2. Show the elements of the list, that match the selected group in the combo box,no problem.*
    *3. Search thru the list using the text field,no problem.*
    4. When the user selects an element from the list, it should display its info in the second text field. This also works fine, but when after looking at info of one of the elements the things on numbers 2 and 3 ( look up! ) stop working. I must say that everything works fine until user selects an element from the list. I couldnt understand this kind of behavior so I am asking you to help me please.
    The code is very simple:
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    class the_window extends JFrame implements DocumentListener, ItemListener, ListSelectionListener {
        FileReader reader;
        String data_base[][];
        String first_pass[];
        int number_of_elements;
        DefaultListModel dflm = new DefaultListModel();
        JList list;
        JTextField text_field = new JTextField();
        JTextField info_field = new JTextField();
        String groups[] = {"1. group" , "2. group"};
        JComboBox groups_cmbx = new JComboBox(groups);
        the_window(){
            super("the Window!");
            JPanel panel = new JPanel(null);
            Container c = this.getContentPane();
            c.add(panel);
            text_field.setBounds(10,10,170,25);
            text_field.getDocument().addDocumentListener(this);
            panel.add(text_field);
            groups_cmbx.setBounds(10,45,170,25);
            groups_cmbx.addItemListener(this);
            panel.add(groups_cmbx);
            list = new JList(dflm);
            list.setBounds(10,90,170,190);
            list.setFixedCellHeight(20);
            list.addListSelectionListener(this);
            panel.add(list);
            info_field.setBounds(10,280,170,25);
            panel.add(info_field);
            load_the_base();
            refresh();
            this.setSize(190,350);
            this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            this.setResizable(false);
            this.setVisible(true);
        public void itemStateChanged(ItemEvent e){
            refresh();
        public void valueChanged(ListSelectionEvent e){
            String str = (String) dflm.getElementAt(list.getSelectedIndex());
            int index = 0;
            for(int i = 0; i < number_of_elements; i++){
                if(str.equals(data_base[0])){
    index = i;
    break;
    info_field.setText(data_base[index][1]);
    private void load_the_base(){
    String data = "";
    try{
    reader = new FileReader("data.txt";);
    int r = 0;
    while((r = reader.read()) != -1){
    char c = (char) r;
    data += c;
    reader.close();
    }catch(IOException e){}
    first_pass = data.split(";");
    number_of_elements = first_pass.length;
    data_base = new String[number_of_elements][];
    for(int i = 0; i<number_of_elements; i++){
    data_base[i] = first_pass[i].split("#");
    private void refresh(){
    String search_str = text_field.getText();
    int selektovano = groups_cmbx.getSelectedIndex();
    dflm.clear();
    for(int i = 0; i < number_of_elements; i++){
    int grupa = Integer.parseInt(data_base[i][2]);
    if(grupa == selektovano){
    String at_the_moment = data_base[i][0]; // if you change this to String at_the_moment = data_base[i][1]; it works perfectly
    if(at_the_moment.startsWith(search_str)){
    dflm.addElement(at_the_moment);
    public void changedUpdate(DocumentEvent e){
    refresh();
    public void removeUpdate(DocumentEvent e){
    refresh();
    public void insertUpdate(DocumentEvent e){
    refresh();
    public class Main {
    public static void main(String[] args) {
    JFrame f = new the_window();
    Now, can you please tell me whats wrong with this?
    For the "data.txt" make a new text file using *notepad* and copy the following line into the document:
    _1. element#1. info#0;2. element#2. info#0;3. element#3. info#1;4. element#4. info#1;5. element#5. info#1;_                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Darryl.Burke wrote:
    Keith, thanks for making that readable. So here's the diagnosis -
    In the refresh() method, calling defaultListModel.clear() results in a valueChanged(...) event in which this method calldefaultListModel.getElementAt(list.getSelectedIndex())results in the exception noted, as getSelectedIndex returns -1, the list being empty... you can't getElementAt(-1).
    I haven't analyzed all the code nor checked whether is now works as desired, but this small change to valueChanged counters the exception being thrown.   public void valueChanged(ListSelectionEvent e) {
    infoField.setText(""); // do this unconditionally
    if (list.getSelectedIndex() != -1) {
    String value = (String)defaultListModel.getElementAt(list.getSelectedIndex());
    for(int i = 0; i < numFields; i++){
    if(value.equals(matrix[0])){
    infoField.setText(matrix[i][1]);
    break;
    db
    Yea! You were right! I didnt think that calling *list_model.clear();* will result in calling *valueChanged()* ........
    That was some *clear()* thinking :-) Thank you!
    corlettk wrote:
    I cleaned up some variable & method names (tut tut), imports (very naighty), and some thread stuff... but it remains fundamentally the same codeIs it so important to "clean" the imports? How much does it slow down the loading time? Should I do this on all my projects, because they are all "very naighty"?
    ps. Thanks to all that gave some help to answering this strange question :-)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • A strang problem about Resin database connection pool

    I am a beginner&#65292;hope somebody can help me.
    my web site occured a strange problem after I used the Resin database connection pool instead of
    connecting directly
    the error message as follows:java.lang.IllegalArgumentException: Request cannot be null
    at javax.servlet.ServletRequestWrapper.<init>(ServletRequestWrapper.java:100)
    at javax.servlet.http.HttpServletRequestWrapper.<init>(HttpServletRequestWrapper.java:92)
    at com.caucho.server.connection.RequestAdapter.<init>(RequestAdapter.java:96)
    at com.caucho.server.webapp.DispatchRequest.<init>(DispatchRequest.java:97)
    at com.caucho.server.webapp.IncludeDispatchRequest.<init>(IncludeDispatchRequest.java:77)
    at com.caucho.server.webapp.IncludeDispatchRequest.createDispatch(IncludeDispatchRequest.java:87)
    at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:389)
    at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:345)
    at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:807)
    at _jsp._intro__jsp._jspService(/intro.jsp:60)
    at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
    at com.caucho.jsp.Page.pageservice(Page.java:571)
    at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:155)
    at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:211)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
    at com.caucho.server.port.TcpConnection.run(TcpConnection.java:331)
    at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:464)
    at com.caucho.util.ThreadPool.run(ThreadPool.java:408)
    at java.lang.Thread.run(Thread.java:595)

    <!--
    - Resin 3.0 configuration file.
    -->
    <resin xmlns="http://caucho.com/ns/resin"
    xmlns:resin="http://caucho.com/ns/resin/core">
    <!--
    - Logging configuration for the JDK logging API.
    -->
    <log name='' level='info' path='stdout:' timestamp='[%H:%M:%S.%s] '/>
    <log name='com.caucho.java' level='config' path='stdout:'
    timestamp='[%H:%M:%S.%s] '/>
    <log name='com.caucho.loader' level='config' path='stdout:'
    timestamp='[%H:%M:%S.%s] '/>
    <!--
    - For production sites, change dependency-check-interval to something
    - like 600s, so it only checks for updates every 10 minutes.
    -->
    <dependency-check-interval>2s</dependency-check-interval>
    <!--
    - You can change the compiler to "javac" or jikes.
    - The default is "internal" only because it's the most
    - likely to be available.
    -->
    <javac compiler="internal" args=""/>
    <!-- Security providers.
    - <security-provider>
    - com.sun.net.ssl.internal.ssl.Provider
    - </security-provider>
    -->
    <!--
    - If starting bin/resin as root on Unix, specify the user name
    - and group name for the web server user.
    - <user-name>resin</user-name>
    - <group-name>resin</group-name>
    -->
    <!--
    - Configures threads shared among all HTTP and SRUN ports.
    -->
    <thread-pool>
    <!-- Maximum number of threads. -->
    <thread-max>128</thread-max>
    <!-- Minimum number of spare connection threads. -->
    <spare-thread-min>25</spare-thread-min>
    </thread-pool>
    <!--
    - Configures the minimum free memory allowed before Resin
    - will force a restart.
    -->
    <min-free-memory>1M</min-free-memory>
    <server>
    <!-- adds all .jar files under the resin/lib directory -->
    <class-loader>
    <tree-loader path="$resin-home/lib"/>
    </class-loader>
    <!-- Configures the keepalive -->
    <keepalive-max>500</keepalive-max>
    <keepalive-timeout>120s</keepalive-timeout>
    <!-- The http port -->
    <http server-id="" host="*" port="8080"/>
    <!--
    - SSL port configuration:
    - <http port="8443">
    - <openssl>
    - <certificate-file>keys/gryffindor.crt</certificate-file>
    - <certificate-key-file>keys/gryffindor.key</certificate-key-file>
    - <password>test123</password>
    - </openssl>
    - </http>
    -->
    <!--
    - The local cluster, used for load balancing and distributed
    - backup.
    -->
    <cluster>
    <srun server-id="" host="127.0.0.1" port="6802" index="1"/>
    </cluster>
    <!--
    - Enables/disables exceptions when the browser closes a connection.
    -->
    <ignore-client-disconnect>true</ignore-client-disconnect>
    <!--
    - Enables the cache
    -->
    <cache path="cache" memory-size="10M"/>
    <!--
    - Enables periodic checking of the server status.
    - With JDK 1.5, this will ask the JDK to check for deadlocks.
    - All servers can add <url>s to be checked.
    -->
    <ping>
    <!-- <url>http://localhost:8080/test-ping.jsp</url> -->
    </ping>
    <!--
    - Defaults applied to each web-app.
    -->
    <web-app-default>
    <!--
    - Sets timeout values for cacheable pages, e.g. static pages.
    -->
    <cache-mapping url-pattern="/" expires="5s"/>
    <cache-mapping url-pattern="*.gif" expires="60s"/>
    <cache-mapping url-pattern="*.jpg" expires="60s"/>
    <!--
    - Servlet to use for directory display.
    -->
    <servlet servlet-name="directory"
    servlet-class="com.caucho.servlets.DirectoryServlet"/>
    </web-app-default>
    <!--DataSource jndi configuration-->
    <database>
    <jndi-name>jdbc/artunion</jndi-name>
    <driver type="org.gjt.mm.mysql.Driver">
    <url>jdbc:mysql://localhost:3306/union</url>
    <user>as</user>
    <password>as</password>
    </driver>
    <prepared-statement-cache-size>8</prepared-statement-cache-size>
    <max-connections>20</max-connections>
    <max-idle-time>30s</max-idle-time>
    </database>
    <!--
    - Default host configuration applied to all virtual hosts.
    -->
    <host-default>
    <class-loader>
    <compiling-loader path='webapps/WEB-INF/classes'/>
    <library-loader path='webapps/WEB-INF/lib'/>
    </class-loader>
    <!--
    - With another web server, like Apache, this can be commented out
    - because the web server will log this information.
    -->
    <access-log path='logs/access.log'
    format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
    rollover-period='1W'/>
    <!-- creates the webapps directory for .war expansion -->
    <web-app-deploy path='webapps'/>
    <!-- creates the deploy directory for .ear expansion -->
    <ear-deploy path='deploy'>
    <ear-default>
    <!-- Configure this for the ejb server
    - <ejb-server>
    - <config-directory>WEB-INF</config-directory>
    - <data-source>jdbc/test</data-source>
    - </ejb-server>
    -->
    </ear-default>
    </ear-deploy>
    <!-- creates the deploy directory for .rar expansion -->
    <resource-deploy path='deploy'/>
    <!-- creates a second deploy directory for .war expansion -->
    <web-app-deploy path='deploy'/>
    </host-default>
    <!-- includes the web-app-default for default web-app behavior -->
    <resin:import path="${resinHome}/conf/app-default.xml"/>
    <!-- configures the default host, matching any host name -->
    <host id=''>
    <document-directory>D:/artunion</document-directory>
    <!-- configures the root web-app -->
    <web-app id='/'>
    <!-- adds xsl to the search path -->
    <class-loader>
    <simple-loader path="$host-root/xsl"/>
    </class-loader>
    <servlet-mapping url-pattern="/servlet/*" servlet-name="invoker"/>
    </web-app>
    </host>
    </server>
    </resin>
    Thank you!

  • A strange problem about InputStream

    I meet a strange problem.
    I have a data file named data.dat whose size is 16k.
    I write a passage of code to read the binary data from data.dat
           byte[] gbData = new byte[8177 * 2];
           // it's length equals to the size of data.dat
           InputStream in = ClassLoader.getSystemResourceAsStream(
               "com/sunway/james/st/res/data.dat");
           in.read(gbData);
           in.close();When I run the program, It's can work well. Then I put all class and resources into a jar file.
    When I run the jar file, I can only get first 600 (and serval more) bytes right. left bytes are 0.
    Who can tell me what happen?

    Thank you.
    I tried to use java.nio to read the data, and there is still the problem.
    flowing is the new codes:
            FileInputStream in =
                new FileInputStream("com/sunway/james/st/res/BIG5.dat");
            ByteBuffer buffer = ByteBuffer.allocateDirect(1024);
            in.getChannel().read(buffer);
            byte[] big5Data = buffer.array();
            in.close();

  • Is there anyone there who can tell me about batch input?

    What is batch input?
    Thanks.

    HI,
    this is a technique to update the sap database from non-sap database.
    non-sap data will be stored to some flat file first and the it will be moved to sap data base.
    here is an example which will update the purchase order details from flat file check it.
    report ZBH_PURORDER no standard page heading line-size 255.
    PARAMETERS:P_FILE LIKE IBIPPARMS-PATH.
    DATA FILENAME TYPE STRING.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
    CALL FUNCTION 'F4_FILENAME'
       EXPORTING
          program_name  = sy-cprog
          dynpro_number = sy-dynnr
       IMPORTING
          file_name     = P_FILE.
    START-OF-SELECTION.
    FILENAME = P_FILE.
    DATA:BEGIN OF XTAB OCCURS 0,
    TYP,
    DES(255) TYPE C,
    END OF XTAB.
    DATA:BEGIN OF ITAB OCCURS 0,
    SUPERFIELD LIKE MEPO_TOPLINE-SUPERFIELD,
    EKORG LIKE MEPO1222-EKORG,
    EKGRP LIKE MEPO1222-EKGRP,
    BUKRS LIKE MEPO1222-BUKRS,
    END OF ITAB.
    DATA:BEGIN OF JTAB OCCURS 0,
    N(4) TYPE C,
    EMATN LIKE MEPO1211-EMATN,
    MENGE(13) TYPE C,
    NETPR(13) TYPE C,
    NAME1 LIKE MEPO1211-NAME1,
    END OF JTAB.
    DATA:BDCTAB LIKE BDCDATA OCCURS 0 WITH HEADER LINE.
    DATA:DELIMITER VALUE '*'.
    DATA A TYPE I.
    DATA M(4) TYPE N.
    DATA L_FNAM(30) TYPE C.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                      = FILENAME
       FILETYPE                      = 'ASC'
      TABLES
        DATA_TAB                      = XTAB.
    LOOP AT XTAB.
    IF XTAB-TYP = 'H'.
      SPLIT XTAB-DES AT DELIMITER INTO ITAB-SUPERFIELD ITAB-EKORG ITAB-EKGRP
      ITAB-BUKRS.
      JTAB-N = JTAB-N + 1.
      APPEND ITAB.
    ELSEIF XTAB-TYP = 'I'.
      SPLIT XTAB-DES AT DELIMITER INTO JTAB-EMATN JTAB-MENGE JTAB-NETPR
      JTAB-NAME1.
    APPEND JTAB.
    ENDIF.
    ENDLOOP.
    CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
       CLIENT                    = SY-MANDT
       GROUP                     = 'PORDER'
       KEEP                      = 'X'
       USER                      = SY-UNAME.
    LOOP AT ITAB.
    A = SY-TABIX.
    REFRESH BDCTAB.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO_TOPLINE-SUPERFIELD'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  'NB'.
    perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                                  ITAB-SUPERFIELD.
    perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                                  '09.02.2007'.
    perform bdc_field       using 'DYN_6000-LIST'
                                  '                                      1'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MEV4000BUTTON'.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  'NB'.
    perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                                  ITAB-SUPERFIELD.
    perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                                  '09.02.2007'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO1222-EKORG'.
    perform bdc_field       using 'MEPO1222-EKORG'
                                  ITAB-EKORG.
    perform bdc_field       using 'MEPO1222-EKGRP'
                                  ITAB-EKGRP.
    perform bdc_field       using 'MEPO1222-BUKRS'
                                  ITAB-BUKRS.
    perform bdc_field       using 'DYN_6000-LIST'
                                  '                                      1'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MEV4001BUTTON'.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  'NB'.
    perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                                  ITAB-SUPERFIELD.
    perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                                  '09.02.2007'.
    perform bdc_field       using 'MEPO1222-EKORG'
                                  ITAB-EKORG.
    perform bdc_field       using 'MEPO1222-EKGRP'
                                 ITAB-EKGRP.
    perform bdc_field       using 'MEPO1222-BUKRS'
                                 ITAB-BUKRS.
    M = 1.
    LOOP AT JTAB.
    IF JTAB-N = A.
    WRITE:/ JTAB.
    CONCATENATE 'MEPO1211-EMATN(' M ')' INTO L_FNAM.
    perform bdc_field       using 'BDC_CURSOR'
                                  L_FNAM.
    perform bdc_field       using L_FNAM
                                  JTAB-EMATN.
    CONCATENATE 'MEPO1211-MENGE(' M ')' INTO L_FNAM.
    perform bdc_field       using L_FNAM
                                  JTAB-MENGE.
    CONCATENATE 'MEPO1211-NETPR(' M ')' INTO L_FNAM.
    perform bdc_field       using L_FNAM
                                  JTAB-NETPR.
    CONCATENATE 'MEPO1211-NAME1(' M ')' INTO L_FNAM.
    perform bdc_field       using L_FNAM
                                  JTAB-NAME1.
    M = M + 1.
    ENDIF.
    ENDLOOP.
    perform bdc_field       using 'DYN_6000-LIST'
                                  '                                      1'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  'NB'.
    perform bdc_field       using 'MEPO_TOPLINE-SUPERFIELD'
                                  ITAB-SUPERFIELD.
    perform bdc_field       using 'MEPO_TOPLINE-BEDAT'
                                  '09.02.2007'.
    perform bdc_field       using 'MEPO1222-EKORG'
                                  ITAB-EKORG.
    perform bdc_field       using 'MEPO1222-EKGRP'
                                  ITAB-EKGRP.
    perform bdc_field       using 'MEPO1222-BUKRS'
                                  ITAB-BUKRS.
    perform bdc_field       using 'DYN_6000-LIST'
                                  '                                      1'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO1319-MATKL'.
    perform bdc_field       using 'MEPO1319-SPINF'
                                  'X'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MESAVE'.
    CALL FUNCTION 'BDC_INSERT'
    EXPORTING
       TCODE                  = 'ME21N'
      TABLES
        DYNPROTAB              = BDCTAB.
    ENDLOOP.
    CALL FUNCTION 'BDC_CLOSE_GROUP'.
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCTAB.
      BDCTAB-PROGRAM  = PROGRAM.
      BDCTAB-DYNPRO   = DYNPRO.
      BDCTAB-DYNBEGIN = 'X'.
      APPEND BDCTAB.
    ENDFORM.
    FORM BDC_FIELD USING FNAM FVAL.
        CLEAR BDCTAB.
        BDCTAB-FNAM = FNAM.
        BDCTAB-FVAL = FVAL.
        APPEND BDCTAB.
    ENDFORM.
    FLAT FILE:
    H1171611000001*1000
    ICPU116000*1000
    ILEY BOARD1010000*1000
    IMOUSE66000*1000
    H1171711000001*1000
    ICPU580000*1000
    H1171701000001*1000
    IMOUSE33000*1000
    ILEY BOARD1010000*1000
    reward if helpful.
    rgds,
    bharat.

  • Strange problems about my projects(efficiency,event structure,queue)

    hey,guys,i am a labview user from china,so forgive me about the chinese words of my projest. i found something wrong with my work. .
    there are two functions in my "While loop", the first one depends on "queue" and  is to get information from UART, the second one is "event structure" to send information through UART. my problems:
    1. i can not stop while loop by pressing "停止“, and i find two ways to stop it. first, i press"停止”,then, i press any buttons that can trigger "event structure"twice, at last, while loop can stop.the second way, i press buttons for "event structure" one time, then "停止”, and then the same button for"event". it also works
    2.my work does not run efficiently. you guys can try. once you press buttons for "event structure", it responses very slowly,and if you press many times,the whole program seems like suspending.i have added a LED named test at the front panel, it should light once you press "运行“. and it also shows how slow the whole program is.
    i have attached my work, and my main vi is "串口通信 主VI".
    can any body give me some suggestions? thanks a lot
    Attachments:
    Uart.zip ‏140 KB

    Your event structure will execute exactly once per loop of the main loop, thus the other three loops must stop before handlig the next event. You will also get a race condition between the top loop and the events when writing.
    I'd put the top loop as the timeout case in the event and place the loop around the event for starters.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Strange Problem about KeyListener, and FocusListener

    Hi,Please help me with this problem.
    I create a JTable and setCellEditor by using my customerized TextField
    The problem is: when I edit JTable Cell, the value can not be changed and I can not get Key Event and Focus Event.
    here is my source:
    //create normal JTable instance,and then initlize it
    private void initTable(Vector folders)
    TableColumn tempcol = getColumnModel().getColumn(0);
    tempcol.setCellEditor(new DefaultCellEditor(new MyTextField()));
    for(int i=0;i<folders.size();i++)
    mddDataSource ds=(mddDataSource) folders.get(i);
    String name = ds.getDataSourceName();
    layers.add(name);
    for(int i=0;i<layers.size();i++){
    Vector temp = new Vector();
    temp.add(layers.get(i));
    temp.add(layers.get(i));
    dtm.addRow(temp);
    // My Text Field cell
    class MyTextField extends JTextField implements FocusListener, KeyListener
    MyTextField()
    setOpaque (false);
    addKeyListener(this);
    addFocusListener(this);
    MyTextField(String text)
    setOpaque (false);
    addKeyListener(this);
    addFocusListener(this);
    public void focusGained(FocusEvent e) {
    System.out.println("get Focus");
    public void focusLost(FocusEvent e) {
    instance.setValue(getText());
    public void keyTyped(KeyEvent e){
    instance.setValue(getText());
    public void keyPressed(KeyEvent e){
    System.out.println("get Key ");
    public void keyReleased(KeyEvent e){
    instance.setValue(getText());
    If there are some good sample, please tell me the link or give me some suggestion.
    Thanks in advanced

    Thanks for your help.
    The problem still exist. It does not commit the value that I input.
    Maybe I should say it clearly.
    I have create JPanel include three JPanel:
    Left Panel and right upper-panel and right borrom panel.
    The JTable instance is on right-upper Panel.
    If I edit one of row at JTable and then click JTable other row,the value can be commited. if I edit one of row and then push one Button on
    the right-bottom button to see the editting cell value.It does not commit value.
    when I use debug style, and set breakpoint the
    foucsGained or KeyTyped,
    It never stopes at there,So I assume that the Editing cell never get focus.
    Is there a bug at Java if we move focus on other Panel, that JTable can not detect the Focus lost or focus gained event?
    Thanks

  • Strange problem about navigation tree loading.

    Hi all:
       I have one workset which contains 2 iviews. And there is one navigation tree in the left.
       Sometime when some users click on the navigation tree, the EP always display "loading..." and it seems hangs......
       The problem is very strange and I cannot see any error log.
       Anybody have same experience ?
       We are using EP7 sp9.

    Please have a look at SAP Note : 976331 
    Regards,
    Nitin

  • Strange problem about using JSTL

    Dear all,
    I've got a strange proble when using JSTL with tomcat.
    I've got two strings as the following:
         String id_string = (String)session.getAttribute("user_id");
         System.out.println(id_string);
         String valid_user = (String)session.getAttribute("valid_user");
    The "println" call tells me that "id_string" has a valid value.
    But when I use it like this in the same page:
    <a href="springapp/blog.htm?id=<c:out value=${ id_string " /><c:out value="${ valid_user }" />" >test
    I can only get "valid_user"'s value.
    "id_string" is not print out to the page.
    Would anyone please help me out?
    Any help would appreciated and thanks in advance.
    Edited by: haoniukun on Sep 15, 2007 9:57 PM

    haoniukun wrote:
         String id_string = (String)session.getAttribute("user_id");
    <a href="springapp/blog.htm?id=<c:out value=${ id_string " /><c:out value="${ valid_user }" />" >test
    I can only get "valid_user"'s value.
    "id_string" is not print out to the page.Your session attribute is called "user_id" which you're fetching correctly earlier. But in the <c:out> tag, you're trying to read "id_string" which is the name of your local variable and not in any scope. "valid_user" works because you've named your local variable the same as your scope attribute, so the value being printed out is from the scope and not your local variable. As far as I know, JSTL doesn't work with local scriptlet variables, it only access variables in the four scopes: page, request, session and application
    You should use the <c:set> tag to set a variable value. Try not to mix scriptlets and tags, it's frowned upon and will probably cause you problems later.

  • A strange problem about mighty mouse's trackball

    My mighty mouse's trackball works very well on OSX, but it failed to work on Windows, it worked very well on Windows XP and 2008 previously, what is the problem? Thanks!

    Solved the problem myself. It's weird that the bluetooth caused the problem, I installed the bootcamp correctly, and my mouse work properly except trackball, and I found that the bluetooth driver is not properly installed. But how come my mouse could still work? Hate Windows...
    Message was edited by: JohnShu

  • Strange Problems When Batch Digitising

    I'm having some bizzare digitising issues.
    Sometimes while batch loading clips I get the broken TC message ( with dvc pro) no actual timecode breaks
    Other times it will capture what I thought was moving video but once loaded the clip has frozen parts
    Also now having some sync issues with audio and video clips
    I upgraded to the latest pro apps support before these issues.
    Lots of storage space, trashed prefs etc.

    Here is an update...It has been narrowed down to my x raid.
    Doesn't matter what is batch captured 10Bit u or just DV it dropps frams when loading to the xserve raid. Now I've narrowed it down to audio only. Capture video without any issues but capture with video + sound or sound only it will drop frames.

  • Very strange problem about GameCanvas.getHeight()

    i wrote a class extends GameCanvas and call getHeight() to get the screen height.When i used WTK emulater,everything is ok,
    But when i used the Nokia S60 emulater whose height is 208, i got just 144!
    I thought that may be S60's problem,and i opened the Nokia S60's MIDP2 sample "Sheepdog",added the method getHeight().Then I got the right result 208!
    Even i used SetFullScreenMode(true),the problem existed also.
    Nokia's code is all based on MIDP2 without any Nokia's own package,But Why i get the difference by the same method and the same emulater???
    THX!!!

    Thanks for ur reply.
    that's a segment code of Nokia demo project SheelpDog
    class SheepdogCanvas
    extends GameCanvas
    implements Runnable
    // shared direction constants
    static final int NONE = -1;
    static final int UP = 0;
    static final int LEFT = 1;
    SheepdogCanvas(SheepdogMIDlet midlet)
    super(true);
    this.midlet = midlet;
    System.out.println(Integer.toString(this.getHeight())); //i added
    setFullScreenMode(true);
    System.out.println(Integer.toString(this.getHeight()));//i added
    graphics = getGraphics();
    Both outputs are 208.
    And this code below is mine:
    public class Displayable1 extends GameCanvas implements CommandListener {
    public Displayable1(boolean suppressKeyEvents) {
    super(suppressKeyEvents);
    System.out.println(Integer.toString(this.getHeight()));
    setFullScreenMode(true);
    System.out.println(Integer.toString(this.getHeight()));
    Both outputs are 144
    moreover,the Sheepdog is a sample of Nokia Developer's Suite 2.2 for J2ME(TM) (15.6.2004),u can find it in http://www.forum.nokia.com/main/0,,034-2,00.html
    the emulater tested by both codes is Nokia S60_J2ME SDK 2nd FP2,u can find it in http://www.forum.nokia.com/main/0,,034-483,00.html

  • Help, strange problem about SOAP receiver adapter

    Hi XI guru,
    Secnario as following:
    ABAP proxy -> XI -> SOAP receiver
    I am using SOAP receiver to send data to legacy system. It looks good in sxmb_moni, so we go to RWB, I see the following error:
    <b>2007-08-13 13:48:53 Success SOAP: continuing to response message df934151-4960-11dc-a195-0015c5f7cd3b
    2007-08-13 13:48:53 Error SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    2007-08-13 13:48:53 Success SOAP: sending a delivery error ack ...
    2007-08-13 13:48:53 Success SOAP: sent a delivery error ack
    2007-08-13 13:48:53 Error MP: exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    2007-08-13 13:48:53 Error Exception caught by adapter framework: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    2007-08-13 13:48:53 Error Delivery of the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: SOAP: response message contains an error XIAdapter/PARSING/ADAPTER.SOAP_EXCEPTION - soap fault: java.lang.StringIndexOutOfBoundsException: String index out of range: 0.
    2007-08-13 13:48:53 Success The asynchronous message was successfully scheduled to be delivered at Mon Aug 13 13:53:53 CST 2007.</b>
    So I use XMLSpy to simulate XI to send SOAP request to legacy system, it works fine.In XI, I use WSDL file which legacy system provided to build the mapping, so I think it should be fine. Please comments, thank you for your time.

    Hi
    For receiver webservice you need to configure a receiver soap adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/frameset.htm
    Check this blog:
    /people/siva.maranani/blog/2005/05/23/communication-between-sap-system-webservice-using-proxies
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    /people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    Check out these threads..
    RFC -> XI -> External web service
    How to resolve this RFC_adapter_sender to SOAP_adapter_receiver Exception?
    Why getting "DeliveryExcetion" in SOAP->XI->RFC scenario?
    You may refer these fallowing weblogs
    /people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i
    /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
    Pls reward if useful

Maybe you are looking for

  • How to convert a numeric field representing UNIX time to a standard report

    Looking for some help on the creation of a formula that will allow me to convert a numeric string which represent Unix time to a standard date format. Sample string value "1199149200", Jan 1 2008, 1 AM

  • Can you connect older 27" LED Display to current iMacs?

    Hi - finding conflicting information via Apple support pages and google and wanted to throw this out to the community for verification. My endstate is to run dual 27" LEDs...one being on a current iMac and the other being a first-generation Apple 27"

  • HP w2558hc 25.5-inch Vivid Color Full HD Widescreen Flat Panel Monitor Remote Does Not Do Anything

    I just got the monitor and trying the new stuff out.  Hit a couple issues like ... I have tried the remote came attached to the monitor ... the little one in the slot ... but it does not change the volume or anything else . Is there something else I

  • How to trace BAPI access by Websphere Broker WICS

    Hello experts, An external middleware-like application is calling SAP using rfc to create documents in SAP. The 1st BAPI was called successfully but the 2nd BAPI at step 4 seems not able to complete. I was trying to check what is happening to this 2n

  • Flex in Webdynpro

    Hai All, I want to implement FLEX in WENDYNPRO ABAP for that i want these files                                        ( FLASHISLANDLIBIMP1.SWF, WDISLANDLIBRARY.SWC).I dont have those files in my server. Can anybody tell me how to configer the files.