Size (in Bytes) of data in response.

Hi;
Is there a quick way of getting the size (length of data) in the response?
The api, as I see it, only has a reponse.getBufferSize. I need something like string.length().
Thank you much.
nat

Use the good old "let's put my hands on this" approach:TEST> create table test_number
  2  (
  3  a number(1),
  4  b number(2),
  5  c number(3),
  6  d number(38)
  7  );
Table created.
TEST> insert into test_number
  2  values
  3  (1,11,111,to_number(rpad('9',38,'9')));
1 row created.
TEST> insert into test_number
  2  values
  3  (1,1,11,to_number(rpad('9',15,'9')));
1 row created.
TEST> COMMIT;
Commit complete.
TEST> select vsize(A),vsize(B),vsize(C), vsize(D) from test_number;
  VSIZE(A)   VSIZE(B)   VSIZE(C)   VSIZE(D)
         2          2          3         20
         2          2          2          9
TEST> truncate table test_number;
Table truncated.
TEST> alter table test_number modify (D NUMBER(38,5));
Table altered.
TEST> insert into test_number
  2  values
  3  (1,11,111,to_number(rpad('9',33,'9')));
1 row created.
TEST> insert into test_number
  2  values
  3  (1,11,111,to_number(rpad('9',33,'9') || ',99'));
1 row created.
TEST> insert into test_number
  2  values
  3  (1,11,111,to_number(rpad('9',33,'9') || ',99999'));
1 row created.
TEST> COMMIT;
Commit complete.
TEST> select vsize(A),vsize(B),vsize(C), vsize(D) from test_number;
  VSIZE(A)   VSIZE(B)   VSIZE(C)   VSIZE(D)
         2          2          3         18
         2          2          3         19
         2          2          3         21Yoann.

Similar Messages

  • Hi, I am using USB 8476s to communicat​e to a slave unit in LIN network using LabVIEW7.1​. Can anyone tell me how i can send a header file plus 1 byte of data to the slave in a LIN network. or how do i use ldf file. i want to read responses from the slave

    Hi,   I am using USB 8476s to communicate to a slave unit in LIN network. Can anyone tell me how i can send a header frame plus 1 byte of data to the slave in a LIN network. or how do I communictae with slave using LabVIEW7.1.
    I want to read responses from the slave. When i tried with labview exapmle programs or even using MAX also, while doing some switching action in my slave, i am getting response as Device inactive with timestamp but there is no data format. 
    And I have Lin Description File. Can you suggest me how to use ldf file.
    I am at customer place and It would be great help from you if you can suggest me at the earliest. Thank you

    you may use the LDF Starter Kit to use LDF informations in your application
    http://joule.ni.com/nidu/cds/view/p/id/665/lang/en

  • Reading 21576 bytes of data at offset 3 in a buffer of total size 114

    Logs claim it's a 'buffer overflow' - [2015-Jan-05 22:32:41] RDP (0): Exception caught: BufferOverflowException in file '../../gryps/misc/containers/flexbuffer.h' at line 421
    Specifics: 
    attempting to connect to virtual box running on localhost:55985
    OSX: 10.9.5
    RDP: 8.0.12
    VirtualBox: 4.3.20
    [2015-Jan-05 22:32:41] RDP (0): --- BEGIN INTERFACE LIST ---
    [2015-Jan-05 22:32:41] RDP (0): lo0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): lo0 af=30 (AF_INET6) addr=::1 netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
    [2015-Jan-05 22:32:41] RDP (0): lo0 af=2 (AF_INET) addr=127.0.0.1 netmask=255.0.0.0
    [2015-Jan-05 22:32:41] RDP (0): lo0 af=30 (AF_INET6) addr=fe80::1%lo0 netmask=ffff:ffff:ffff:ffff::
    [2015-Jan-05 22:32:41] RDP (0): gif0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): stf0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): en0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): en0 af=30 (AF_INET6) addr=fe80::2acf:e9ff:fe1a:cc0d%en0 netmask=ffff:ffff:ffff:ffff::
    [2015-Jan-05 22:32:41] RDP (0): en0 af=2 (AF_INET) addr=192.168.10.108 netmask=255.255.255.0
    [2015-Jan-05 22:32:41] RDP (0): en4 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): en5 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): bridge0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): p2p0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): vboxnet0 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): vboxnet1 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): vboxnet2 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): vboxnet3 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): vboxnet4 af=18 addr= netmask=
    [2015-Jan-05 22:32:41] RDP (0): --- END INTERFACE LIST ---
    [2015-Jan-05 22:32:41] RDP (0): correlation id: 10b4ea14-964f-83df-bf55-4ff43fb10000
    [2015-Jan-05 22:32:41] RDP (0): Resolved 'localhost' to '127.0.0.1' using NameResolveMethod_DNS(1)
    [2015-Jan-05 22:32:41] RDP (0): Resolved 'localhost' to '::1' using NameResolveMethod_DNS(1)
    [2015-Jan-05 22:32:41] RDP (0): Resolved 'localhost' to 'fe80:1::1' using NameResolveMethod_DNS(1)
    [2015-Jan-05 22:32:41] RDP (0): Exception caught: BufferOverflowException in file '../../gryps/misc/containers/flexbuffer.h' at line 421
    User Message : Reading 12112 bytes of data at offset 3 in a buffer of total size 82
    [2015-Jan-05 22:32:41] RDP (0): correlation id: 10b4ea14-964f-83df-bf55-4ff43fb10000
    [2015-Jan-05 22:32:41] RDP (0): Resolved 'localhost' to '127.0.0.1' using NameResolveMethod_DNS(1)
    [2015-Jan-05 22:32:41] RDP (0): Resolved 'localhost' to '::1' using NameResolveMethod_DNS(1)
    [2015-Jan-05 22:32:41] RDP (0): Resolved 'localhost' to 'fe80:1::1' using NameResolveMethod_DNS(1)
    [2015-Jan-05 22:32:41] RDP (0): Exception caught: BufferOverflowException in file '../../gryps/misc/containers/flexbuffer.h' at line 421
    User Message : Reading 21576 bytes of data at offset 3 in a buffer of total size 114
    [2015-Jan-05 22:32:41] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2015-Jan-05 22:32:41] RDP (0): Protocol state changed to: ProtocolNegotiatingCredentials(2)
    [2015-Jan-05 22:32:41] RDP (0): Protocol state changed to: ProtocolConnectingNetwork(1)
    [2015-Jan-05 22:32:41] RDP (0): Protocol state changed to: ProtocolNegotiatingCredentials(2)
    [2015-Jan-05 22:32:41] RDP (0): Protocol state changed to: ProtocolDisconnecting(7)
    [2015-Jan-05 22:32:41] RDP (0): Protocol state changed to: ProtocolDisconnected(8)
    [2015-Jan-05 22:32:41] RDP (0): ------ END ACTIVE CONNECTION ------
    ps: the editor for posting on this forum is absolutely the most terrible I had ever seen.

    Hi,
    Please let us know which OS you are trying to connect. Because if you are running Windows 8 and not Windows 8 Pro then you won't be able to connect to your PC from any device. Windows 8 can't host an RDP session.  
    Remote Desktop Client on Mac: FAQ
    http://technet.microsoft.com/en-in/library/dn473006.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • TCP connection error when sending MODBUS commands to WAGO 750-881 controller after 113655 bytes of data have been sent

    Hi all,
    I am new to the world of labview and am attempting to build a VI which sends commands to a 750-881 WAGO controller at periodic intervals of 10ms. 
    To set each of the DO's of the WAGO at once I therefore attempt to send the Modbus fc15 command every 10ms using the standard Labview TCP write module. 
    When I run the VI it works for about a minute before I recieve an Error 56 message telling me the TCP connection has timed out. Thinking this strange, I decided to record the number of bytes sent via the TCP connection whilst running the program. In doing so I noticed that the connection broke after exactly 113655 Bytes of data had been sent each time. 
    Thinking that I may have been sending too many messages I increased the While-loop delay from 10ms to 20, 100 and 200 ms but the error remained. I also tried playing with the TCP connection timeout and the TCP write timeout but neither of these had any effect on the problem. 
    I cannot see why this error is occuring, as the program works perfectly up untill the 113655 Bytes mark. 
    I have attached a screenshot of the basic VI (simply showing a MODBUS command being sent every second) and of a more advanced VI (where I am able to control each DO of the WAGO manually by setting a frequency at which the DO should switch between ON and OFF). 
    If anybody has any ideas on where the problems lie, or what I could do to further debug the program this would be greatly appreciated. 
    Solved!
    Go to Solution.
    Attachments:
    Basic_VI.png ‏84 KB
    Expanded_VI.png ‏89 KB

    AvdLinden wrote:
    Hi ThiCop,
    Yes the error occurs after exactly 113655 bytes every time. The timeout control I would like to use is 10ms, however even increasing this to 1s or 10s does not remove the error, which leads me to believe that this is not the issue (furthermore, not adding any delay to the while loop, thus letting it run at maximum speed, has shown that the TCP connection is able to send all 113655 bytes in under 3 seconds again pointing towards the timeout control not being the issue here). 
    I attempted Marco's suggestion but an having difficulty translating the string returned into a readable string, (rightnow the response given is "      -#   +   ").
    As to your second suggestion, I implemented something similar where I created a sub VI to build a TCP connection, send a message and then close the connection. I now build each message and then send the string to this subVI which successfully sends the command to my application. Whilst not being the most elegant method of solving the issue, it has resolved the timeout problem meaning I am able to send as many commands as I want. So in that sense the problem has been solved. 
    If you still have tips on how to correctly read the TCP read output, I would however like to see if I could not get my first program to work as it is slightly more robust in terms of timing. 
    Modbus TCP RTU is a binary protocol, as you show in your Basic VI, where you format the data stream using byte values. So you have to interprete the returned answer accordingly with the Modbus RTU spec in hand. Now what is most likely happening is that the connection gets hung after a while since you do NOT read the data the device sends as response to your commands. The TCP/IP stack buffers those bytes and at some point the internal buffers overflow and the connection is blocked by the stack. So adding the TCP Read at strategic places (usually after each write) is the proper solution for this. Is there any reason that you didn't use the NI provided Modbus TCP library?
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Determination of array size in bytes

    Dear forum users,
    I want to determine the size of an array subset in bytes.
    At the moment I try to do this as shown in my attached program: Simply said, I am reading in my data (example data can also be found in the attachment) and convert them into an array. From this array I am taking the subset I am interested in. This array subset is saved in a new file from which I determine the byte size with the “Get File Size.vi”.
    That are a lot of steps with file saving (deletion of the compulsory created new file not mentioned) just to get the byte size of this array subset.  And with this approach the file size (the byte size of my array subset) is unfortunately depending on the format with which I save the file (%.6f or similar), but I would need the byte size of this subarray as it would be in the original file (see my comment on the front panel).
    Therefore, I want to know if there is a better, simpler, quicker and correct way to get the byte size of a subarray.
    I would be very happy about every comment and help!
    Attachments:
    ByteSizeOfArraySubsetLV2011.vi ‏18 KB
    ByteSizeOfArraySubsetLV8_6.vi ‏15 KB
    ExampleData.txt ‏1114 KB

    Dear GerdW and smercurio_fc,
    Thanks a lot for your replies! Perhaps I should have mentioned that I need the size of my array (string…, I am confused now) in bytes because I want to use later in my program the “Set File Position.vi” (which needs an offset in bytes). With this vi I want to read in my data again but starting after the data which I have used in my array (I try to make bunches out of my file).
    Ok, the suggestion of GergW is a step forward, but it does not work correctly. I have modified my program a bit (see attachment), so that it gives back the file size of the original file and the length of the string after the file has been read in. Interestingly, the numbers are not the same. The same is also true for my subarray (and the string length is still dependent on the format with which I convert my array to a string).
    So once again asked: If I take from my original file lines 3 to 12, copy them in a new file and save this file, then I can read out the size of the file (191 bytes). How can I get the same number in LabVIEW after reading in the original file and taking the same subarray? I hope my question is clearer now (it is surely suffering a bit from my bad English. I am sorry!).
    I hope to hear from you again!
    Attachments:
    ByteSizeOfArraySubsetLV2011_2.vi ‏14 KB
    ByteSizeOfArraySubsetLV8_6_2.vi ‏11 KB

  • Cluster size in bytes programatically

    Is there something that implements a C stype "sizeof" in labview? I need to call a dll and pass in a cluster value and it's size in bytes.
    Thanks
    Eugene

    If the cluster doesn't have variable length data (strings and arrays), flatten the cluster to string and get the string length.
    LabVIEW, C'est LabVIEW

  • How to find the size of the master data objects in the BW system?

    Hi,
    We would like to understand the size of the master data tables overall for a specific source system (Logical name is Ex.ABCD, which supplies all master data to BW). Can you please advise the procedure to find out this?
    Is there any table that will allows to see all the master data objects related to specific sources system so that we can find out that table size? Thanks.
    For example, we have many Texts, Hier & Attributes.
    0COUNTRY_TEXT
    0REGION_TEXT
    0PERSON_ATTR
    0MATERIAL_LPRH_HIER
    Advance Thanks.
    Edited by: BW USA on Feb 2, 2010 10:52 AM

    Hi,
    You can find out all the master data tales used in the BW system by
    Tcode : SE11
    Enter as /BIC/P* for master data tables and press F4 which gives list of master data tables currently used in BW system.
    Similarly for Texts  /BIC/T*  and press F4
    Similarly for Hierarchies /BIC/H-* press F4
    and can know the size of the all tables.
    Thanks,
    Gopal

  • How to get the file size (in bytes) for all files in a directory?

    How to get the file size (in bytes) for all files in a directory?
    The following code does not work. isFile() does NOT recognize files as files but only as directories. Why?
    Furthermore the size is not retrieved correctly.
    How do I have to code it otherwise? Is there a way of not converting f-to-string-to-File again but iterate over all file objects instead?
    Thank you
    Peter
    java.io.File f = new java.io.File("D:/todo/");
    files = f.list();
    for (int i = 0; i < files.length; i++) {
    System.out.println("fn=" + files);
    if (new File(files[i]).isFile())
         System.out.println("file[" + i + "]=" + files[i] + " size=" + (new File(files[i])).length() ); }

    pstein wrote:
    ...The following code does not work. Work?! It does not even compile! Please consider posting code in the form of an SSCCE in future.
    Here is an SSCCE.
    import java.io.File;
    class ListFiles {
        public static void main(String[] args) {
            java.io.File f = new java.io.File("/media/disk");
            // provides only the file names, not the path/name!
            //String[] files = f.list();
            File[] files = f.listFiles();
            for (int i = 0; i < files.length; i++) {
                System.out.println("fn=" + files);
    if (files[i].isFile()) {
    System.out.println(
    "file[" +
    i +
    "]=" +
    files[i] +
    " size=" +
    (files[i]).length() );
    }Edit 1:
    Also, in future, when posting code, code snippets, HTML/XML or input/output, please use the code tags to retain the indentation and formatting.   To do that, select the code and click the CODE button seen on the Plain Text tab of the message posting form.  It took me longer to clean up that code and turn it into an SSCCE, than it took to +solve the problem.+
    Edited by: AndrewThompson64 on Jul 21, 2009 8:47 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • DeserializeJSON - is there a limit on the size of the JSON data that can be converted?

    I have some valid JSON data that's being converted successfully by DeserializeJSON... until it gets to a certain size, or that's certainly what appears to be happening.  The breaking point seems to be somewhere in the neighborhood of 35,000 characters... about 35KB.  When the conversion fails, it fails with a "JSON parsing failure: Unexpected end of JSON string" message.  And when the conversion fails, the JSON data is deemed to be valid per tools like this one:  http://www.freeformatter.com/json-validator.html.
    So, is there a limit on the size of the JSON data that can be converted by DeserializeJSON?
    Thanks!

    Thanks Carl.
    The JSON is being submitted in its entirety, confirmed by Fiddler.  And it's actually being successfully saved to a SQL Server nvarchar(MAX) field too.  I can validate that saved JSON.
    I'm actually grabbing the JSON to convert directly from the SQL Server, and your comments / thoughts led me down the path of resolution.
    Turns out that the JSON was being truncated prior to getting to the DeserializeJSON command, but it was the cfquery pull that was doing the truncating.  The fix was to enable "long text retrieval (CLOB)" for this datasource in CF Admin.  I'd never run into that before or even knew that this setting existed.
    Thanks again for your comments!

  • I pull fiftyfour bytes of data from MicroProcessor's EEPROM using serial port. It works fine. I then send a request for 512 bytes and my "read" goes into loop condition, no bytes are delivered and system is lost

    I pull fiftyfour bytes of data from MicroProcessor's EEPROM using serial port. It works fine. I then send a request for 512 bytes and my "read" goes into loop condition, no bytes are delivered and system is lost

    Hello,
    You mention that you send a string to the microprocessor that tells it how many bytes to send. Instead of requesting 512 bytes, try reading 10 times and only requesting about 50 bytes at a time.
    If that doesn�t help, try directly communicating with your microprocessor through HyperTerminal. If you are not on a Windows system, please let me know. Also, if you are using an NI serial board instead of your computer�s serial port, let me know.
    In Windows XP, go to Start, Programs, Accessories, Communications, and select HyperTerminal.
    Enter a name for the connection and click OK.
    In the next pop-up dialog, choose the COM port you are using to communicate with your device and click OK.
    In the final pop
    -up dialog, set the communication settings for communicating with your device.
    Type the same commands you sent through LabVIEW and observe if you can receive the first 54 bytes you mention. Also observe if data is returned from your 512 byte request or if HyperTerminal just waits.
    If you do not receive the 512 byte request through HyperTerminal, your microprocessor is unable to communicate with your computer at a low level. LabVIEW uses the same Windows DLLs as HyperTerminal for serial communication. Double check the instrument user manual for any additional information that may be necessary to communicate.
    Please let me know the results from the above test in HyperTerminal. We can then proceed from there.
    Grant M.
    National Instruments

  • Limit size (in byte) of SELECT-OPTIONS in WHERE clauses

    hi,
    as far as I know there is a limit size (in byte) for SELECT-OPTIONS used in WHERE clauses. Is it true? What is the limit? If the SELECT-OPTIONS is based on lifnr (character type, 10 long) is the following calculation valid?
    sign - 1 byte
    option - 2 bytes
    low - 10 bytes
    high - 10 bytes
    23 bytes all together for one line, is this valid?
    thanks
    ec

    Hi,
    Check this link..
    https://forums.sdn.sap.com/click.jspa?searchID=6896082&messageID=2891787
    Regards,
    Omkar.

  • How to get folder size in bytes

    Hi all,
    Is there a easy way to get folder size in bytes?  I don't want to check each file in it and then add them up.
    Thanks for any help.
    Anne

    Years ago, I found my home PC was lacking disk space and could not exaplain where all of the space went.
    At the same time I was teaching myslef how to use the Picture control and Windows did not allow you to check the size of a folder and it sub-folders. So I used that situation to learn about the picture control and LV at the same time.
    It worked and ran but very slowly.
    Soon after Greg McKaskle was putting together the first version of "The Good The Bad and The Ugly" and was looking for fodder to beat up. I offered and he accepted. When the time came for the presentation, my code was chosen as "The bad" since I had not learned how to do a cluster sort at that time so I wrote my own version of a bubble sort (the VI presents a Pie Chart of disk usage and clcik on the sectors of the Pie Chart allowed you to drill down so I hd to sort by sizes).
    So why am I telling you this long boring story?
    That code is attached for you to look at laugh and tell me how dumb I was.
    Feel free to beat me up. It can't be any worse than the abuse I got from Greg (I felt like I was being raped).
    Have fun!
    Ben
    Code is probably 6 or thereabouts. "Disk_Utility" is top level. Remember this is an example of how NOT to code.
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    DIsk_Pie_Utility.zip ‏162 KB

  • How to get image size in bytes

    i have to get image size in bytes and accessing image from the a folder
    Thanks in advance

    If it's going to be accessed as a file on the filesystem, you can use java.io.File.length() to get the size in bytes.
    In other situations...it depends on what you're doing.

  • TEXT_CONVERT_XLS_TO_SAP uploading Zero Bytes of data

    Hi Guys,
                I am uploading an Excel data file.with GUI_Upload then next i am executing this FM but i am geetin 0 Bytes of data when data is there in the excel sheet.here is the codew
    START-OF-SELECTION.
        g_file = p_file.
        g_tab = cl_abap_char_utilities=>horizontal_tab.
        CALL METHOD cl_gui_frontend_services=>gui_upload
          EXPORTING
            filename                = g_file
            has_field_separator     = space
          CHANGING
            data_tab                = itab_text
          EXCEPTIONS
            file_open_error         = 1
            file_read_error         = 2
            no_batch                = 3
            gui_refuse_filetransfer = 4
            invalid_type            = 5
            no_authority            = 6
            unknown_error           = 7
            bad_data_format         = 8
            header_not_allowed      = 9
            separator_not_allowed   = 10
            header_too_long         = 11
            unknown_dp_error        = 12
            access_denied           = 13
            dp_out_of_memory        = 14
            disk_full               = 15
            dp_timeout              = 16
            not_supported_by_gui    = 17
            error_no_gui            = 18
            OTHERS                  = 19.
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
          EXPORTING
      I_FIELD_SEPERATOR          = ','
       I_LINE_HEADER              = 'X'
            i_tab_raw_data             = itab_text
            i_filename                 = p_file
          TABLES
            i_tab_converted_data       = it_file[]
       EXCEPTIONS
         conversion_failed          = 1
         OTHERS                     = 2
                                     can anybody tell me how to get the data rom Excel file based on the above logic?
    Thanks,
    Gopi.

    Hi Gopi,
    We can use the Function module  TEXT_CONVERT_XLS_TO_SAP  to read the Excel file into the internal table. From this internal table you can fill the target internal table. 
    Do not need to use CALL METHOD cl_gui_frontend_services=>gui_upload.
    just declare ur internal table with fields use above function module. u dont need to give field separator while uploading data from excell file.
      report  zvenkat-upload-xl  no standard page heading.
    "Declarations.
    "types
    types:
          begin of t_bank_det,
            pernr(8)  type c,
            bnksa(4)  type c,
            zlsch(1)  type c,
            bkplz(10) type c,
            bkort(25) type c,
            bankn(18) type c,
          end of t_bank_det.
    "work areas
    data:
          w_bank_det type t_bank_det.
    "internal tables
    data:
          i_bank_det type table of t_bank_det.
    " selection-screen
    selection-screen begin of block b1 with frame title text_001.
    parameters p_file type localfile.
    selection-screen end of block b1.
    "At selection-screen on value-request for p_file.
    at selection-screen on value-request for p_file.
      perform f4_help.
      "Start-of-selection.
    start-of-selection.
      perform upload_data.
      "End-of-selection.
    end-of-selection.
      perform display_data.
      "Form  f4_help
    form f4_help .
      data:
            l_file_name like  ibipparms-path  .
      call function 'F4_FILENAME'
        exporting
          program_name  = syst-cprog
          dynpro_number = syst-dynnr
          field_name    = 'P_FILE'
        importing
          file_name     = l_file_name.
      p_file = l_file_name.
    endform.                                                    " f4_help
    "Form  upload_data
    form upload_data .
      type-pools:truxs.
      data:li_tab_raw_data type  truxs_t_text_data.
      data:l_filename      like  rlgrap-filename.
      l_filename = p_file.
      call function 'TEXT_CONVERT_XLS_TO_SAP'
        exporting
          i_tab_raw_data       = li_tab_raw_data
          i_filename           = l_filename
        tables
          i_tab_converted_data = i_bank_det
        exceptions
          conversion_failed    = 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.                    " upload_data
    " Form  display_data
    form display_data .
      data: char100 type char100.
      loop at i_bank_det into w_bank_det .
        if sy-tabix = 1.
          write w_bank_det.
          write / '------------------------------------------------------------'.
        else.
          write / w_bank_det.
        endif.
      endloop.
    endform.                    " display_data
    I hope that it solves ur problem.
    Regards,
    Venkat.O

  • Lot Size different to master data

    Dear Gurus,
    In master recipe, when I am trying to save the following error message is appearing.
    Lot size different to master data
    Can anyone help me on this issue.
    Thanks in advance,
    Arul.

    Dear,
    Please check,
    When a master recipe is scheduled, the lot size can be proposed in two different units of measure
    If a base quantity is maintained in the material master (view Work scheduling), the lot size is entered in the base quantity of the material master. If no base quantity is maintained, it is entered in the unit of measure of the recipe header (header unit).
    That is, the unit of measure of the lot size is predefined by the system and you cannot choose it.
    If the lot size is entered in base unit of measure for scheduling, up to now, no conversion between base unit of measure and header unit occurs. The lot size (in base unit of measure) is converted into the operation quantity directly via the conversion factors of the operation. The scheduling result is incorrect. and system display the message   Lot Size different to master data.
    Regards,
    R.Brahmankar

Maybe you are looking for

  • GetURL(javascript) not working in flash player 9

    This action works well in flash player 8 but it doesnt in flash player 9 can someone please help me, its very urgent. getURL(javascript:openNewWindow(' http://www.macromedia.com','thewin', 'height=400,width=400,toolbar=no,scrollbars=yes'));

  • Need help in ACS group design

    I have 3 NDG's and 3 user groups. The NDG's are core devies, edge devices and AccessPoints. The user groups are End users, Guest users, Lan users and core users. I want to give the core users access to all network devices and access to wireless via e

  • Taking long time to activate

    i'm setting up my apple tv and it's taking forever to activate....this normal?

  • Premiere Pro CC and the New Mac Pro (2014)

    I'm expecting delivery soon of a new Mac Pro, nicely loaded, which I purchased mainly because of all the work I do with video. Yet, I read in a review that Adobe Premiere Pro isn't optimized to take advantage of the new Mac Pro, won't run faster, and

  • Cannot select playlists to sync because they do not appear on my screen?

    cannot select playlists to sync because they do not appear on my screen, how do I correct that?