<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem uploading a text file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-uploading-a-text-file/m-p/2559049#M583498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;     I don't have any field separator in my file. As I said I go by the length of each field. I'm able to successfully load data into my internal table which is of type character. But I get problem only when moving the data from this text field to the actual fields in another structure wa_struct1(which has the standard SAP fields). Thanks for your reply though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saravana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jul 2007 15:26:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-20T15:26:26Z</dc:date>
    <item>
      <title>Problem uploading a text file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-uploading-a-text-file/m-p/2559047#M583496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;   I'm trying to upload data from a file in the application server. The file that I read is a 'dat' file and the length for each field is preserved meaning if the currency key field is of length 5 and the file has 'USD' it is filled with spaces for the remaining 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an internal table t_data which has all the records from the file. I loop through t_data into wa_data. Then I move the contents of my wa_data to the structure work area wa_struct1 which has all my table fields(same length as the fields in the file and all the fields are standard SAP fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the structure wa_struct1 always gets some junk values in fields like exchange rate and amount field (simply it doesn't like any packed number). Because of this all the other fields that come after these fields have the data messed up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I thought maybe it's because of the character to Packed conversion, but then I use a MOVE statement and I'm pretty sure a conversion exists between these two data types. Also the SAP document for conversion between two data types say the source fields can be blank when converting from character to packed and in my case it is sometimes blank and sometimes filled with value. In both cases I always get a junk value like 2020.2020222. Please give me some suggestions. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saravana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 14:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-uploading-a-text-file/m-p/2559047#M583496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T14:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem uploading a text file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-uploading-a-text-file/m-p/2559048#M583497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   from application server you will get as a string.. then you split at comma and store into internal table right.. in this internal table first take it as a charater for the currency and quantity fields after splitting.. you can use the move command and get it done.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 15:16:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-uploading-a-text-file/m-p/2559048#M583497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T15:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem uploading a text file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-uploading-a-text-file/m-p/2559049#M583498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mahesh,&lt;/P&gt;&lt;P&gt;     I don't have any field separator in my file. As I said I go by the length of each field. I'm able to successfully load data into my internal table which is of type character. But I get problem only when moving the data from this text field to the actual fields in another structure wa_struct1(which has the standard SAP fields). Thanks for your reply though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saravana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 15:26:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-uploading-a-text-file/m-p/2559049#M583498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T15:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem uploading a text file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-uploading-a-text-file/m-p/2559050#M583499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably you need to move field by field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE: FILE-FIELD1 TO WA_STRUC-FIELD1,&lt;/P&gt;&lt;P&gt;            ......................................................,&lt;/P&gt;&lt;P&gt;           FILE-FIELDN  TO WA_STRUC-FIELDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably some value has to be converted before moving to SAP structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 15:56:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-uploading-a-text-file/m-p/2559050#M583499</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T15:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem uploading a text file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-uploading-a-text-file/m-p/2559051#M583500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;    I've kept that as the last option. I have around 20 fields in the header structure and around 40 fields in the item structure. Meanwhile I'll try to figure out some way. I even tried ASSIGN with CASTING but doesn't seem to like it either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saravana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 16:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-uploading-a-text-file/m-p/2559051#M583500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T16:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem uploading a text file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-uploading-a-text-file/m-p/2559052#M583501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Max and Mahesh, I solved the issue. I needed an intermediate structure to port my line type data into fields of type character and then used a MOVE-CORRESPONDING to move it to the structure that had the standard fields. I have awarded points for both of you guys, just for trying to help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saravana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 18:50:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-uploading-a-text-file/m-p/2559052#M583501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-20T18:50:41Z</dc:date>
    </item>
  </channel>
</rss>

