<?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 about uploading into application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-uploading-into-application-server/m-p/2336012#M514350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i have a flat file with different record types in the sense&lt;/P&gt;&lt;P&gt;first line will be a file header &lt;/P&gt;&lt;P&gt;second line will be a invoice header&lt;/P&gt;&lt;P&gt;third line will be a invoice item&lt;/P&gt;&lt;P&gt;fourth will be a Invoice Item Tax Lines&lt;/P&gt;&lt;P&gt;and at last there will be file trailer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;under second line the third and fourt line may or may not repeat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the thing is file we have different fields for the different lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so my question is how can we catch that flat file in the internal table &lt;/P&gt;&lt;P&gt;means what are the fields to be declared &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone pls help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2007 12:54:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-31T12:54:58Z</dc:date>
    <item>
      <title>about uploading into application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-uploading-into-application-server/m-p/2336012#M514350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i have a flat file with different record types in the sense&lt;/P&gt;&lt;P&gt;first line will be a file header &lt;/P&gt;&lt;P&gt;second line will be a invoice header&lt;/P&gt;&lt;P&gt;third line will be a invoice item&lt;/P&gt;&lt;P&gt;fourth will be a Invoice Item Tax Lines&lt;/P&gt;&lt;P&gt;and at last there will be file trailer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;under second line the third and fourt line may or may not repeat&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the thing is file we have different fields for the different lines&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so my question is how can we catch that flat file in the internal table &lt;/P&gt;&lt;P&gt;means what are the fields to be declared &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone pls help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 12:54:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-uploading-into-application-server/m-p/2336012#M514350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T12:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: about uploading into application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-uploading-into-application-server/m-p/2336013#M514351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;You can simply use the TCODE&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CG3Z&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;for copying the contensts of your local file to Application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 12:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-uploading-into-application-server/m-p/2336013#M514351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T12:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: about uploading into application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-uploading-into-application-server/m-p/2336014#M514352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;first declare a structure and an internal table in the format you expect the file to contain data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use&lt;/P&gt;&lt;P&gt;where p_logic is the path of file from selection screen&lt;/P&gt;&lt;P&gt;    w_nom = p_flogic.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'FILE_GET_NAME'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        logical_filename = w_nom&lt;/P&gt;&lt;P&gt;        parameter_1      = w_numlot1&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        file_name        = w_fichier&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        file_not_found   = 1&lt;/P&gt;&lt;P&gt;        OTHERS           = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: wa type tt_erreur,&lt;/P&gt;&lt;P&gt;      len type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    OPEN DATASET w_fichier FOR input IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      do.&lt;/P&gt;&lt;P&gt;      READ DATASET w_fichier INTO ws_file.&lt;/P&gt;&lt;P&gt;      IF sy-SUBRC = 0.&lt;/P&gt;&lt;P&gt;        APPEND ws_file TO wt_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        exit.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;      enddo.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    CLOSE DATASET p_flogic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 13:04:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-uploading-into-application-server/m-p/2336014#M514352</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2007-05-31T13:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: about uploading into application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-uploading-into-application-server/m-p/2336015#M514353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ibrahim,&lt;/P&gt;&lt;P&gt;when i understand you right in your flat-file are several record-type.&lt;/P&gt;&lt;P&gt;insert in your flat-file an ident-field.&lt;/P&gt;&lt;P&gt;fill this for example with 1 for for header 2 for invoce etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;upload the flat-file in an internal table with no structure.&lt;/P&gt;&lt;P&gt;loop at this table and check if the ident is 1 then put it an other table&lt;/P&gt;&lt;P&gt;for header, if 2 put it an the internaltable for invoice etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 13:06:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-uploading-into-application-server/m-p/2336015#M514353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T13:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: about uploading into application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-uploading-into-application-server/m-p/2336016#M514354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ANJI,&lt;/P&gt;&lt;P&gt;thank you very much for giving such a wonderful suggestion and information.&lt;/P&gt;&lt;P&gt;i have sent a thread again if you can please help me out in that matter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;md.ibrahim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 04:37:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-uploading-into-application-server/m-p/2336016#M514354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T04:37:39Z</dc:date>
    </item>
  </channel>
</rss>

