Convert Table into string, No FM is working good for this

Hi all,
i want to convert a table into string, but while convert, i found out that the string has special lenght , and i am getting only some rows of the table  wihle converting, even if i am using concatinate, i got the same problem,
please let me know if there is a way to convert all the table into string and not a littel bit of it.
BR

I remember that you were facing the problem with the below function module
types:begin of ty_string,
      field1 type char1024,
      end of ty_string.
data:it type table of ty_string.
data:wa type ty_string.
data:out type string,
line type string,
rest type string.
do 100 times.
  do 1024 times.
    concatenate 'A' wa-field1 into wa-field1.
  enddo.
  append wa to it.
enddo.
call function 'CONVERT_TABLE_TO_STRING'
  exporting
    i_tabline_length = '1024'
  importing
    e_string         = out
  tables
    it_table         = it.
For me the variable out holds 102400 characters.

Similar Messages

  • Convert tables into text

    Is it possible to convert tables into text (easy way and no changes)?
    Thanks!

    After copy & paste use DW's Find & Replace feature (Ctrl+F)
    Find in: Current document
    Search: Specific Tag   table
    Action:  Strip tag.
    Repeat for tr,  th, td,  tbody, etc...
    Nancy O.

  • I want to convert two image files into strings and than to compare them. This is easy, but how to mention where the difference exist?

    I have two image file in bmp file format. How to convert them into string and to check if they are differnt or same. If different how to mention or find that where the difference exists. This idea have to be extented with video application as well.

    Hi,
    if you have vision, you could use the functin IMAQ Image to Array to have a 2D array of the pixel values.
    You can then compare pixel by pixel; if your images come from a camera, I would recommend to set a treshold of acceptance.
    This is a time consuming solution anyway.
    Alternative methods:
    1) Make a subtraction of the two images, the resulting image will be the difference of them
    2 ) Use IMAQ LogDiff function (operators palette)
    3) Calculate the histogram of both image and compare the histogram reports
    Good luck,
    Alberto

  • How to convert byte into string

    can any tell me how to convert byte into string
    when im an debugging thid code in eclipse it shows the result in integer format instead of string but in command prompt it is showing result in string format..........plz help
    package str;
    import java.io.*;
    public class Testfile {
    public static void main(String rags[])
    byte b[]=new byte[100];
    try{
    FileInputStream file=new FileInputStream("abc.txt");
    file.read(b,0,50);
    catch(Exception e)
         System.out.println("Exception is:"+e);
    System.out.println(b);
    String str=new String(b);
    System.out.println(str);
    }

    Namrata.Kakkar wrote:
    errors: count cannot be resolved and Unhandled exception type Unsupported Encoding Exception.
    If i write an integer value instead of "count" then Unhandled exception type Unsupported Encoding Exception error is left.This is elementary. You need to go back to [http://java.sun.com/docs/books/tutorial/|http://java.sun.com/docs/books/tutorial/] .

  • Got error message with web based application that it would only work on MS Explorer 6.0 or newer. Any work around for this?

    When accessing a web based program I got a message that it could only be accessed using MS Explorer 6.0 or newer. Is there a work around for this?

    There is a way to do this.
    But it works or not, I have no idea.
    Enable  "Develop menu".
    Safari > Preference > Advanced
    Checkmark the box for "Show Develop menu in menu bar".
    Develop menu will appear in the Safari menu bar.
    Click the Develop menu and select "User Agent"
    There are choices. Do not forget to make Safari default again afterwards.

  • I need to access (Ultra) scsi-2 drives but the card is dead. Is there an adapter/converter out there somewhere like my IDE to USB for this? Any other suggestions appreciated.

    I need to access (Ultra) scsi-2 68 pin drives but the card is dead. Is there an adapter/converter out there somewhere like my IDE to USB for this? Any other suggestions appreciated.

    Might be hard to find, but long ago there were a couple of Firewire<->SCSI adapters, if you have USB2 those might be available also...
    http://www.ratocsystems.com/english/products/FR1SX.html
    http://www.ratocsystems.com/english/products/U2SCX.html
    http://www.ebay.com/sch/i.html?_sacat=0&_nkw=scsi+to+firewire&_frs=1
    I think Belkin made one also.
    Might be far cheaper to buy an old Mac or even PC with SCSI.

  • Itunes has sent a lot of my music into iCloud. I have not asked for this. I can't log on to icloud, since I only have an ipod. How do I get my music back? It seems to have disappeared from my computer.

    itunes has sent a lot of my music into iCloud. I have not asked for this. I can't log on to icloud, since I only have an ipod. How do I get my music back? It seems to have disappeared from my computer.

    I have read the the advice you gave, and I had already tried that. It did not help.
    When I tried to download an album with nine songs, (I have paid for the complete album), two songs were missing. One of them has showed up/disappeared a couple of times, but with a cloud/arrow-symbol next to it, what I thought to be a symbol for downloading from the cloud. When I click it, it starts a downloading process, and then I am told it cannot be done, "please try again later".  The other song is nowhere to be seen.  The song with the cloud/arrow-symbol, I bought 3 times, once with the album, twice just the song. That didn't change matters. iTunes tells me I have downoladed all songs I have purchased.
    I do not really understand why you do not understand what I am writing, I only describe what happens when I use iTunes.
    If a person want to use iCloud, one needs an iPhone, iPad or an iPod Touch. That information is not given until you have downloaded and installed the iCloud program. That is why I have it on my computer, but cannot use it. To set up an iClod account, you have to connect one of the above mentioned devices. I don't have one, so I cannot do it.
    If you want the (13013) problem explained, I suggest you google it. I am not the only one to have that problem.
    I am thankful that you spend time on trying to help me, but I cannot explain things clearer than this.

  • In OBIEE mobile apps designer there is no option for multi select prompts?The navigation page gives option only for single select?Is there a work around for this?

    In OBIEE mobile apps designer there is no option for multi select prompts?The navigation page gives option only for single select?Is there a work around for this?

    Nic, for me the iTunes window looks like this, when I connect my iPad 3:
    I select the iPad in the "devices" section of the Sidebar (use: "View > Show Sidebar" if the sidebar is hidden).
    Click the "Apps" tab in the "Devices" pane.
    Scroll all the way down in the Devices pane to "File Sharing" "Apps" section.
    Then do I click "GarageBand" to select the documents in the right panel.
    Which part is different for you? Perhaps you could post a screenshot?
    Regards
    Léonie

  • Whilst updating itunes software to latest version I get runtime error R6034 and cannot get into itunes. Is there a fix for this problem?

    Whilst updating itunes software to latest version I get runtime error R6034 and cannot get into itunes. Is there a fix for this problem?

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99376)

  • Loop at  field-symbol  (any table) into string ?

    Hi Everyone,
    I need little help, I have a requirement to extract table content with columns names as the header.
    After doing some search I figured out the best way to this since table name will be only avaialbe at runtime through
    a selection field . my problem is to loop through field-symbol and convert a structure to string value so that I can
    write to the file.
    REPORT  zlab_tbl_export.
    DATA table_name(30) VALUE 'ZSMARTTS_HTML'.
    DATA v_file(100) VALUE 'c:\sap_export.txt'.
    DATA line(1000).
    DATA: o_data TYPE REF TO data.
    CREATE DATA o_data TYPE TABLE OF (table_name).
    FIELD-SYMBOLS: <table> TYPE ANY TABLE.
    ASSIGN o_data->* TO <table>.
    SELECT * UP TO 100 ROWS FROM (table_name) INTO TABLE <table>.
    OPEN DATASET v_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    >>>>>>> LOOP at <table> into line.   >>>>>>>>>>>>  " Here the code breaks and fail
      TRANSFER line to v_file. 
      WRITE :/ line.          
    ENDLOOP.
    CLOSE DATASET v_file.
    Exception Message
    |Error analysis                                                                                |
    |    You attempted to move one data object to another.                                             |
    |    This is not possible here because the conversion of a data object                             |
    |    of type "v" to type "C" is not supported.                                                     |
    |                                                                                |
    |      List of internal ABAP types:                                                                |
    |                                                                                |
    |      C    Text (Character)                                                                       |
    |      N    Numerical text                                                                         |
    |      D    Date (YYYYMMDD)                                                                        |
    |      T    Time (HHMMSS)                                                                          |
    |      X    Hexadecimal                                                                            |
    |      I    Integer                                                                                |
    |      P    Packed number                                                                          |
    |      F    Floating point number                                                                  |
    |                                                                                |
    |      h    Internal table                                                                         |
    |      r    Object reference                                                                       |
    |      l    Data reference                                                                         |
    |      g    String of type C                                                                       |
    |      y    String of type X                                                                       |
    |      s    2-byte integer with plus/minus sign                                                    |
    |      b    1-byte integer without plus/minus sign                                                 |
    |      u    Structure (flat structure)                                                             |
    |      v    Structure (deep structure)                                                             |

    Hi Everyone, I need little help, I have a requirement to extract table content with columns names as the header. After doing some search I figured out the best way to this since table name will be only avaialbe at runtime through a selection field . my problem is to loop through field-symbol and convert a structure to string value so that I can write to the file.
    thie is the code
    REPORT  zlab_tbl_export.
    DATA table_name(30) VALUE 'ZSMARTTS_HTML'.
    DATA v_file(100) VALUE 'c:\sap_export.txt'.
    DATA line(1000).
    DATA: o_data TYPE REF TO data.
    CREATE DATA o_data TYPE TABLE OF (table_name).
    FIELD-SYMBOLS: <table> TYPE ANY TABLE.
    ASSIGN o_data->* TO <table>.
    SELECT * UP TO 100 ROWS FROM (table_name) INTO TABLE <table>.
    OPEN DATASET v_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    LOOP at <table> into line.   " Fail here
      TRANSFER line to v_file. 
      WRITE :/ line.           
    ENDLOOP.
    CLOSE DATASET v_file.
    and this is the exception:
    Error analysis                                                                               
    You attempted to move one data object to another.                                            
        This is not possible here because the conversion of a data object                            
        of type v to type C is not supported.                                                    
    Edited by: Misbah on Jan 7, 2010 11:50 PM

  • Convert document into string with unicode

    I want to convert my document into string with all <,>,& to be converted into <, >, and &. When I am doing transformation, I am getting <,> etc.
    Can anybody suggest me how to do that.
    regards,
    Ranjan

    I don't know of any way to tell the parser to convert is for you, you'll have to replace the characters yourself after you got the string from the parser.
    Aviran
    http://www.aviransplace.com

  • Convert Inputstructure into String and store into DB2

    Hello All
    My requirement is I want to convert total input structure into string then stored into database single field as clob. Can anyone suggest me how will i retive input structor, is there any user defined function will i write or is there any inbuilt functionality in SAP PI. Plese suggest me
    Thanks&Regards,
    VenkatK

    Hi Swarup / Shamly
      My input structure is nearly 60 fields. Sample Structure
    <?xml version="1.0" encoding="utf-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
          <SOAP-ENV:Body>
             <create xmlns="urn:MySoapServices">
                <PurchaseOrder>
                   <BuyerDetails>
                        <Organization>University of Washington</Organization>
                        <Authorized_Person>
                             <FisrtName>Cease</FisrtName>
                             <LastName>Wayne</LastName>
                        </Authorized_Person>
                        <Street>Savery Hall</Street>
                        <City>Seattle</City>
                        <State>Wa</State>
                        <Zip>98195</Zip>
                        <Contact_Numbers>
                                  <Phone>888-846-6638</Phone>
                                  <Fax>212-629-1158</Fax>
                        </Contact_Numbers>
                        <Email>hidekiu.washington.edu</Email>
                   </BuyerDetails>
                   <SupplierDetails>
                        <Organization>Thomas Industrial Network</Organization>
                        <Authorized_Person>
                             <FisrtName>Cease</FisrtName>
                             <LastName>Wayne</LastName>
                        </Authorized_Person>
                        <Street>5 Penn Plaza, 10th Floor</Street>
                        <City>New York</City>
                        <State>NY</State>
                        <Zip> 10001</Zip>
                        <Contact_Numbers>
                                  <Phone>888-846-6638</Phone>
                                  <Fax>212-629-1158</Fax>
                        </Contact_Numbers>
                   </SupplierDetails>
                   <PurchaseOrderInformation>
                        <Order_Number>4556</Order_Number>
                        <Order_Delivery_Date>10-10-2006</Order_Delivery_Date>
                        <PO_Type>Finished</PO_Type>
                        <status>PO sent</status>
                   </PurchaseOrderInformation>
                   <Address>
                        <Shipping_Address>
                             <Organisation>University of Washington</Organisation>
                        <Authorized_Person>
                             <FisrtName>Cease</FisrtName>
                             <LastName>Wayne</LastName>
                        </Authorized_Person>
                             <Street>Savery Hall</Street>
                             <City>Seattle</City>
                             <State>Wa</State>
                             <Zip>98195</Zip>
                             <Email>hidekiu.washington.edu</Email>
                        </Shipping_Address>
                        <Billing_Address>
                             <Organisation>University of Washington</Organisation>
                        <Authorized_Person>
                             <FisrtName>Cease</FisrtName>
                             <LastName>Wayne</LastName>
                        </Authorized_Person>
                             <Street>Savery Hall</Street>
                             <City>Seattle</City>
                             <State>Wa</State>
                             <Zip>98195</Zip>
                             <Email>hideki</Email>
                        </Billing_Address>
                   </Address>
                   <Payment_Terms>
                        <Purchase_Order>
                             <PO_Number>456</PO_Number>
                             <Payment_Type>Bank</Payment_Type>
                             <Payment_Type_PO>
                                  <Bank>
                                       <BankName>Citibank</BankName>
                                       <AccountNumber>654987456</AccountNumber>
                                       <BranchCode>564</BranchCode>
                                  </Bank>
                                  <Credit_Card>
                                       <Payment_Type_CC>VISA</Payment_Type_CC>
                                       <CC_Number>1234 4567 7890 0123</CC_Number>
                                       <CC_Expire_Date>10-12-2012</CC_Expire_Date>
                                  </Credit_Card>
                             </Payment_Type_PO>
                        </Purchase_Order>
                        <Currency>USD</Currency>
                   </Payment_Terms>
                   <Purchase_Items>
                        <Item>
                             <Part_Name>6 foot wide 5 foot high cabinet</Part_Name>
                             <Quantity>9</Quantity>
                             <Description>Cabinets of systems</Description>
                        </Item>
                        <Item>
                             <Part_Name>6 foot wide shelves</Part_Name>
                             <Quantity>6</Quantity>
                             <Description>Shelves for books</Description>
                           </Item>
                   </Purchase_Items>
              </PurchaseOrder>           
             </create>
          </SOAP-ENV:Body>
       </SOAP-ENV:Envelope>
               I need to store whole XML structure (Including  XML version) into Database single field as a clob. not  field values. Please help me out from this issue.

  • How convert integer into string

    Hi,
    I need to convert answer3 from double into String
    answer3 = Double.parseDouble(dij3)/(1 + Math.pow(( Double.parseDouble(tesside_luas_i) / Double.parseDouble(tesside_luas_j) ),0.5847));

    Now the integer value is string but why i cannot get valur from my servlet to my web page
    package net.mybizaid.isodms.servlet;
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import net.mybizaid.isodms.*;
    public class SPLDataInputServlet extends HttpServlet {
         public void doPost (HttpServletRequest request, HttpServletResponse response)
         throws IOException, ServletException
    System.out.println( "******************** Calculation Servlet ******************" );
                   String dij     ;
                   String population_i ;
                   String population_j ;
                   String project_name = "";
                   String project_status = "";
                   double answer;
                   String handler = "";
                   String url                    = "";
                   double answer3;
                   String dij3 ="";
                   String tesside_luas_i ="";
                   String tesside_luas_j ="";
                   double answer2;
                   String dij2 ="";
                   String luas_i ="";
                   String luas_j ="";
                   String counter                    = "";
                   String i                                   = "";
                   handler                          = request.getParameter( "handler" );
                   dij                    = request.getParameter("dij");
                   population_i               = request.getParameter("population_i");
                   population_j               =     request.getParameter( "population_j");
                   project_name               =     request.getParameter( "project_name");
                   project_status               =     request.getParameter( "project_status");
                   dij2                    = request.getParameter("dij2");
                   luas_i               = request.getParameter("luas_i");
                   luas_j               =     request.getParameter( "luas_j");
                   dij3                    = request.getParameter("dij3");
                   tesside_luas_i               = request.getParameter("tesside_luas_i");
                   tesside_luas_j               =     request.getParameter( "tesside_luas_j");
                   HttpSession session = null;
                   session = request.getSession(true);
                   int cnt = counter != null && !counter.equals("") ? Integer.parseInt(counter) : 0;
                   int ii = i != null && !i.equals("") ? Integer.parseInt(i) : 0;
    //Tesside
    if (handler != null && !handler.equals( "" ) && handler.equals( "cal3" ))
                   try
    System.out.println("The DIJ3 value is :"+dij3);
    System.out.println("The tesside_luas_i value is :"+tesside_luas_i);
    System.out.println("The tesside_luas_j value is :"+tesside_luas_j);
                        answer3 = Double.parseDouble(dij3)/(1 + Math.pow(( Double.parseDouble(tesside_luas_i) / Double.parseDouble(tesside_luas_j) ),0.5847));
                        String str = String.valueOf( answer3 );
    System.out.println("The answer value is :"+str);
                         url = "/jsp/model/tessideAnswer.jsp";
                         dispatchErrorMsg( request, response, url, "" );
              catch (Exception e)
                        request.setAttribute("pd.errorMessage", e.getMessage());
                        dispatchErrorMsg( request, response, "/jsp/Error.jsp", e.getMessage() );
    //PotensiPasaran
    if (handler != null && !handler.equals( "" ) && handler.equals( "cal2" ))
                   try
    System.out.println("The DIJ2 value is :"+dij2);
    System.out.println("The luas_i value is :"+luas_i);
    System.out.println("The luas_j value is :"+luas_j);
                        answer2 = Double.parseDouble(dij2)/(1 + Math.sqrt(( Double.parseDouble(luas_i) / Double.parseDouble(luas_j) )));
    System.out.println("The answer value is :"+answer2);
                         url = "/jsp/model/potensiPasaranAnswer.jsp";
                         dispatchErrorMsg( request, response, url, "" );
              catch (Exception e)
                        request.setAttribute("pd.errorMessage", e.getMessage());
                        dispatchErrorMsg( request, response, "/jsp/Error.jsp", e.getMessage() );
    //Reilly
         if (handler != null && !handler.equals( "" ) && handler.equals( "add" ))
                   try
                        System.out.println("The DIJ value is :"+dij);
                        System.out.println("The population_i value is :"+population_i);
                        System.out.println("The population_j value is :"+population_j);
                        answer = Double.parseDouble(dij)/(1 + Math.sqrt(( Double.parseDouble(population_i) / Double.parseDouble(population_j) )));
    System.out.println("The answer value is :"+answer);
                         url = "/jsp/model/reillyAnswer.jsp";
                         dispatchErrorMsg( request, response, url, "" );
              catch (Exception e)
                        request.setAttribute("pd.errorMessage", e.getMessage());
                        dispatchErrorMsg( request, response, "/jsp/Error.jsp", e.getMessage() );
         public void doGet (HttpServletRequest request, HttpServletResponse response)
         throws IOException, ServletException
              doPost(request, response);
         }//end doGet
         public void dispatchErrorMsg(HttpServletRequest req, HttpServletResponse res,
                                                           String target, String message)
              try
                   RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(target);
                   req.setAttribute("eshop.ErrMessage",message);
                   dispatcher.forward(req, res);
              catch (Exception e)
                   System.err.println( e.getMessage() );
    }//end class

  • Mail is linking unrelated emails into conversation threads - is there a fix for this?

    Mail is putting unrelated email messages into conversation threads. This is making it hard for me to find emails relating to different projects. The emails don't have anything in common apart from being addressed to me - different senders, subject lines, no content in common. I like working with conversations, but this is a pain.
    I've seen several discussions online about this issue going back some years, so it's a real shame Apple haven't found a fix for this. I've read a couple of recent discussions here that link this issue to Yosemite - however I'm not using Yosemite (it's a work computer and they are slow to allow us to upgrade). My details are as follows:
    MacBook Pro (13-inch, Mid 2012)
    OS Mountain Lion 10.8.5
    Mail v6.6
    I know how to switch off 'Organize by conversations' in the View menu, but that isn't fixing the problem, it's taking away functionality that I like. I have tried unchecking 'Include related messages' in Preferences, but that doesn't change anything. I've tried rebuilding the Mailbox, nothing changed.
    One thing that I hope Apple developers take note of - there doesn't seem to be a way to manually disassociate individual email messages from threads. That function would be really useful.
    Anyone got any ideas?
    GM

    Try re-indexing the mailboxes. This can take awhile if you have a lot of mail.
    Reindex messages       Mountain Lion
    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Mail Feedback

  • Does anyone know of a work around for this problem? : iphone 5 will not work on Chryslers uconnect.  I found out that they are working on it but have no ETA.   However, they will not help you if your vehicle is older thatn 2008.

    Do not get an iphone 5 if you want to use it with a Chrysler product.  The Chrysler Uconnect system might pair with your phone but the uconnect system will usually abend and become unusable after a few telephone conversations.  I have been to the dealer twice.  They have reset the uconnect system twice and I find it works for about 2 to 3 phone calls then it abends and uconnect becomes useless.  They had me call Chrysler at 1-800-247-9753.  I was told that the iphone five is not compatable at this time with any chrysler uconnect phone through the dash system, even the new vehicles.  He had me get on this web site: www.uconnectphone.com as a place to monitor as when it would be compatable.  They told me that Samsung seems to be working harder to make it compatible than apple is and they had no idea when it would begin to work.  In effect Chrysler was telling me dump the iphone and get a Samsung if you want it to work in a Chrysler.  Also, the site would only give you information for Chrysler that were 2008 or newer, they gave the following number to call if your vehicle was older.    I called that number and they told me that Chrysler and Uconnect had no plans at all to make the iphone 5 work, in the future, on any Chrysler older than 2008.  So.......If you have a Chrysler or Dodge that is older than 2008 you will NEVER  be able to use an iphone5 on the uconnect through the dash system.   Do not buy an iphone if you have an older vehicle.  It will never be supported for the $1,000 you paid for this uconnect system on your car.  My car is a 2005 Town and Country.  I asked both Chrysler and uconnect if their was some sort of work around so I could use my phone.  They both told me their was not and that they had no plans to resolve this situation for my vehicle.  This means that I need to either get rid of my $42,000 vehicle with low milage or get rid of my Iphone 5.  Niether are really good options. 
    I was also givne the following places to send formal complaints, even though I was told that neither Chrysler, Dodge or Apple were going to do anything to correct my problem: 
    for email:   [email protected]   or Mail:  Chrysler customer Assistance  P.O. Box 218004, Auburn Hills, Michigan  48321
    If anyone hears of a work around to be able to use an Iphone 5 in a Chrysler or Dodge product, please let me know. 

    This response is a little late as I just read about your problem. I have a 2012 Dodge Charger and a 2012 Chrysler Town and Country and both worked flawlessly with the iPhone 5s my wife and I had. However, we just upgraded to the iPhone 6 and Uconnect will receive calls but you cannot answer them. You can callout successfully, however. the annoyance being the inability to answer incoming calls in the HandsFree mode.

Maybe you are looking for