<?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: Querry in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/querry/m-p/2469028#M554846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use the fun module&lt;/P&gt;&lt;P&gt;EXCEL_OLE_STANDARD_GET&lt;/P&gt;&lt;P&gt;or GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare an internal table (with final data) with all char fields and pass to above fun modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&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>Fri, 06 Jul 2007 06:22:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-06T06:22:10Z</dc:date>
    <item>
      <title>Querry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/querry/m-p/2469026#M554844</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;i HAVE TO TAKE O/P IN EXCEL FILE. HERE IS SOME CODE WHICH I HAVE WRITTEN FOR DOWNLOADING IN EXCEL FILE.&lt;/P&gt;&lt;P&gt;BUT IT IS NOT DOWNLOADING.SO PLS HELP ME WHWT MISTAKE I AM DOING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: s_ekorg FOR ekko-ekorg,&lt;/P&gt;&lt;P&gt;WHEN 'EXCEL'.                                           &lt;/P&gt;&lt;P&gt;      PERFORM excel_exportieren_xxl&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'D01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********SOME SELECT QUERRIES ARE WRITTEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********eND OF SOME SELECT QUERRIES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM excel_exportieren_xxl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Tabelle Online-Texte&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA BEGIN OF xmplt_o OCCURS 1.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE gxxlt_o.&lt;/P&gt;&lt;P&gt;  DATA END OF xmplt_o.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Tabelle Print-Texte&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA BEGIN OF xmplt_p OCCURS 1.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE gxxlt_p.&lt;/P&gt;&lt;P&gt;  DATA END OF xmplt_p.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Tabelle HKEY - horizontale Merkmale&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA BEGIN OF xmplt_h OCCURS 1.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE gxxlt_h.&lt;/P&gt;&lt;P&gt;  DATA END OF xmplt_h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Tabelle VKEY - vertikale Merkmale&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA BEGIN OF xmplt_v OCCURS 1.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE gxxlt_v.&lt;/P&gt;&lt;P&gt;  DATA END OF xmplt_v.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Tabelle SEMA - semantische Informationen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA BEGIN OF xmplt_s OCCURS 1.&lt;/P&gt;&lt;P&gt;          INCLUDE STRUCTURE gxxlt_s.&lt;/P&gt;&lt;P&gt;  DATA END OF xmplt_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Spaltenüberschriften in Übergabetabelle einfügen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  xmplt_h-col_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'EkOrg'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 2.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'EkGrpB'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 3.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'LiefNr'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 4.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'LiefName'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 5.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'BestellNr'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 6.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'Pos'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 7.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'BestDat'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 8.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'MatNr'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 9.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'MatKurztext'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 10.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'BGS'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 11.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'EkGrpM'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 12.                                  "do060327&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.                                   "do060327&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'Dis'.                               "do060327&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 13.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'ZeichNr'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 14.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'EkGrpE'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 15.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'EtNr'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 16.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'LiefDat'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 17.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'StatLiefDat'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 18.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'AuftragsbestNr'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 19.                                  "do060118&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.                                   "do060118&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'K'.                                 "do060118&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.                                           "do060118&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 20.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'ZBed'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 21.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'ZTg1'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 22.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'ZTg2'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 23.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'ZTg3'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 24.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'ZPr1'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 25.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'ZPr2'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 26.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'NTg'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 27.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'BestMenge'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 28.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'OffBestMenge'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 29.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'OffReMenge'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 30.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'BME'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 31.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'BestWert'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 32.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'OffBestWert'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 33.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'OffReWert'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_no     = 34.&lt;/P&gt;&lt;P&gt;  xmplt_h-row_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_h-col_name   = 'Waer'.&lt;/P&gt;&lt;P&gt;  APPEND xmplt_h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Semantische Informationen in Übergabetabelle einfügen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  xmplt_s-col_no     = 1.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_ops    = 'DFT'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 1.         "EkOrg&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 2.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 2.         "EkGrpB&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 3.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 3.         "LiefNr&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 4.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 4.         "LiefName&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 5.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 5.         "BestellNr&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 6.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 6.         "Pos&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 7.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'DAT'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 7.         "BestDat&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 8.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 8.         "MatNr&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 9.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 9.         "MatKurztext&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 10.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 10.        "BGS&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 11.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 11.        "EkGrpM&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 12.                                  "do060227&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.                               "do060327&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 12.        "Dis                      "do060327&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 13.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 13.        "ZeichNr&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 14.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 14.        "EkGrpE&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 15.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 15.        "EtNr&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 16.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'DAT'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 16.        "LiefDat&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 17.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'DAT'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 17.        "StatLiefDat&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 18.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 18.        "AuftragsbestNr&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 19.                                  "do060118&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.                               "do060118&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 19.        "K                        "do060118&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.                                           "do060118&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 20.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 20.        "ZBed&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 21.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'NUM'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 21.                                  "ZTg1&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 22.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'NUM'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 22.                                  "ZTg2&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 23.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'NUM'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 23.                                  "ZTg3&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 24.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'NUM'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 24.                                  "ZPr1&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 25.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'NUM'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 25.                                  "ZPr2&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 26.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'NUM'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 26.        "NTg&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 27.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'NUM'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 27.        "BestMenge&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 28.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'NUM'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 28.        "OffBestMenge&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 29.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'NUM'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 29.        "OffReMenge&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 30.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 30.        "BME&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 31.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'NUM'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 31.        "BestWert&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 32.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'NUM'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 32.        "OffBestWert&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 33.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'NUM'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 33.        "OffReWert&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_no     = 34.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_typ    = 'STR'.&lt;/P&gt;&lt;P&gt;  xmplt_s-col_src    = 34.        "Waer&lt;/P&gt;&lt;P&gt;  APPEND xmplt_s.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Export in Excel&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'XXL_FULL_API'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            n_vrt_keys        = 0&lt;/P&gt;&lt;P&gt;            n_att_cols        = 34&lt;/P&gt;&lt;P&gt;            n_hrz_keys        = 1&lt;/P&gt;&lt;P&gt;            sema_type         = 'X'&lt;/P&gt;&lt;P&gt;            no_dialog         = space&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            vkey              = xmplt_v&lt;/P&gt;&lt;P&gt;            hkey              = xmplt_h&lt;/P&gt;&lt;P&gt;            data              = itab&lt;/P&gt;&lt;P&gt;            sema              = xmplt_s&lt;/P&gt;&lt;P&gt;            online_text       = xmplt_o&lt;/P&gt;&lt;P&gt;            print_text        = xmplt_p&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            file_open_error   = 71&lt;/P&gt;&lt;P&gt;            file_write_error  = 72&lt;/P&gt;&lt;P&gt;            inv_winsys        = 73&lt;/P&gt;&lt;P&gt;            inv_xxl           = 74&lt;/P&gt;&lt;P&gt;            cancelled_by_user = 75&lt;/P&gt;&lt;P&gt;            OTHERS            = 99.&lt;/P&gt;&lt;P&gt;  CASE sy-subrc.&lt;/P&gt;&lt;P&gt;    WHEN 0.      "WRITE  /'in Ordnung'.&lt;/P&gt;&lt;P&gt;    WHEN OTHERS.  WRITE: /'Fehler', sy-subrc.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM excel_exportieren_ole.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Feld-Symbol,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; FIELD-SYMBOLS: &amp;lt;fn&amp;gt;.   "z.Zt. nur Doku&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Tabelle der Feldnamen entsprechend der Listüberschriften&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: BEGIN OF li_fname OCCURS 0,&lt;/P&gt;&lt;P&gt;    fname(60) TYPE c,&lt;/P&gt;&lt;P&gt;  END OF li_fname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Felder zum Ermitteln des Dateinamens&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    lw_file LIKE rlgrap-filename,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  lw_type  TYPE c,                    "z.Zt. nur Doku&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  lw_ind1  LIKE sy-tabix,             "z.Zt. nur Doku&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  lw_ind2  LIKE sy-tabix,             "z.Zt. nur Doku&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  lw_kname LIKE help_info-dynprofld.  "z.Zt. nur Doku&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    xyz      .                          "Dummy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Tabelle der Spalteninhalte entsprechend der Liste&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: BEGIN OF li_data OCCURS 0,&lt;/P&gt;&lt;P&gt;    col01 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col02 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col03 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col04 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col05 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col06 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col07 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col08 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col09 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col10 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col11 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col12 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col13 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col14 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col15 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col16 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col17 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col18 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col19 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col20 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col21 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col22 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col23 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col24 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col25 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col26 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col27 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col28 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col29 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col30 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col31 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col32 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col33 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col34 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col35 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col36 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col37 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col38 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col39 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;    col40 LIKE cdpos-value_new,&lt;/P&gt;&lt;P&gt;  END OF li_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;temporäres Verzeichnis auf Präsentationsserver ermitteln&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM temp_bestimmen CHANGING lw_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Dateiname anhängen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CONCATENATE lw_file 'ZAMM28_' sy-datum sy-uzeit INTO lw_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Spaltenüberschriften in Übergabetabelle einfügen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  li_fname-fname = 'EkOrg'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'EkGrpB'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'LiefNr'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'LiefName'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'BestellNr'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'Pos'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'BestDat'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'MatNr'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'MatKurztext'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'BGS'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'EkGrpM'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'Dis'.                                   "do060327&lt;/P&gt;&lt;P&gt;  APPEND li_fname.                                          "do060327&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'ZeichNr'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'EkGrpE'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'EtNr'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'LiefDat'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'StatLiefDat'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'AuftragsbestNr'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'K'.                                     "do060118&lt;/P&gt;&lt;P&gt;  APPEND li_fname.                                          "do060118&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'ZBed'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'ZTg1'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'ZTg2'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'ZTg3'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'ZPr1'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'ZPr2'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'NTg'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'BestMenge'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'OffBestMenge'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'OffReMenge'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'BME'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'BestWert'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'OffBestWert'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'OffReWert'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;  li_fname-fname = 'Waer'.&lt;/P&gt;&lt;P&gt;  APPEND li_fname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Daten in Übergabetabelle einfügen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT itab.&lt;/P&gt;&lt;P&gt;    WRITE:  itab-ekorg         TO li_data-col01,&lt;/P&gt;&lt;P&gt;            itab-ekgrp_ekko    TO li_data-col02,&lt;/P&gt;&lt;P&gt;            itab-lifnr         TO li_data-col03,&lt;/P&gt;&lt;P&gt;            itab-name1         TO li_data-col04,&lt;/P&gt;&lt;P&gt;            itab-ebeln         TO li_data-col05,&lt;/P&gt;&lt;P&gt;            itab-ebelp         TO li_data-col06,&lt;/P&gt;&lt;P&gt;            itab-bedat         TO li_data-col07,&lt;/P&gt;&lt;P&gt;            itab-ematn         TO li_data-col08,&lt;/P&gt;&lt;P&gt;            itab-txz01         TO li_data-col09,&lt;/P&gt;&lt;P&gt;            itab-matkl         TO li_data-col10,&lt;/P&gt;&lt;P&gt;            itab-ekgrp_marc    TO li_data-col11,&lt;/P&gt;&lt;P&gt;            itab-ekgrp_marc    TO li_data-col12,            "do060327&lt;/P&gt;&lt;P&gt;            itab-zeinr(12)     TO li_data-col13,&lt;/P&gt;&lt;P&gt;            itab-ekgrp_eine    TO li_data-col14,&lt;/P&gt;&lt;P&gt;            itab-etenr         TO li_data-col15,&lt;/P&gt;&lt;P&gt;            itab-eindt         TO li_data-col16,&lt;/P&gt;&lt;P&gt;            itab-slfdt         TO li_data-col17,&lt;/P&gt;&lt;P&gt;            itab-labnr         TO li_data-col18,&lt;/P&gt;&lt;P&gt;            itab-knttp         TO li_data-col19,            "do060118&lt;/P&gt;&lt;P&gt;            itab-zterm         TO li_data-col20,&lt;/P&gt;&lt;P&gt;            itab-zbd1t         TO li_data-col21,&lt;/P&gt;&lt;P&gt;            itab-zbd2t         TO li_data-col22,&lt;/P&gt;&lt;P&gt;            itab-zbd3t         TO li_data-col23,&lt;/P&gt;&lt;P&gt;            itab-zbd1p         TO li_data-col24,&lt;/P&gt;&lt;P&gt;            itab-zbd2p         TO li_data-col25,&lt;/P&gt;&lt;P&gt;            itab-zbd4t         TO li_data-col26,&lt;/P&gt;&lt;P&gt;            itab-menge_eket    TO li_data-col27,&lt;/P&gt;&lt;P&gt;            itab-menge_offen   TO li_data-col28,&lt;/P&gt;&lt;P&gt;            itab-rmenge_offen  TO li_data-col29,&lt;/P&gt;&lt;P&gt;            itab-meins         TO li_data-col30,&lt;/P&gt;&lt;P&gt;            itab-netwr_eket    TO li_data-col31,&lt;/P&gt;&lt;P&gt;            itab-netwr_offen   TO li_data-col32,&lt;/P&gt;&lt;P&gt;            itab-rwert_offen   TO li_data-col33,&lt;/P&gt;&lt;P&gt;            itab-waers         TO li_data-col34.&lt;/P&gt;&lt;P&gt;    APPEND li_data.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Export in Excel&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            file_name                 = lw_file&lt;/P&gt;&lt;P&gt;            data_sheet_name           = 'ZAMM28'&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            data_tab                  = li_data&lt;/P&gt;&lt;P&gt;            fieldnames                = li_fname&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            file_not_exist            = 1&lt;/P&gt;&lt;P&gt;            filename_expected         = 2&lt;/P&gt;&lt;P&gt;            communication_error       = 3&lt;/P&gt;&lt;P&gt;            ole_object_method_error   = 4&lt;/P&gt;&lt;P&gt;            ole_object_property_error = 5&lt;/P&gt;&lt;P&gt;            invalid_filename          = 6&lt;/P&gt;&lt;P&gt;            invalid_pivot_fields      = 7&lt;/P&gt;&lt;P&gt;            download_problem          = 8&lt;/P&gt;&lt;P&gt;            OTHERS                    = 9.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;temporäres Verzeichnis auf Präsentationsserver ermitteln&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM temp_bestimmen CHANGING fc_file LIKE rlgrap-filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;  lw_len LIKE sy-tabix,&lt;/P&gt;&lt;P&gt;  lw_zeich TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;nach 'TEMP' bzw. 'TMP' suchen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'WS_QUERY'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            environment    = 'TEMP'&lt;/P&gt;&lt;P&gt;            query          = 'EN'  " Umgebungsvariable abfragen&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            return         = fc_file&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            inv_query      = 1&lt;/P&gt;&lt;P&gt;            no_batch       = 2&lt;/P&gt;&lt;P&gt;            frontend_error = 3&lt;/P&gt;&lt;P&gt;            OTHERS         = 4.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'WS_QUERY'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              environment    = 'TMP'&lt;/P&gt;&lt;P&gt;              query          = 'EN'  " Umgebungsvariable abfragen&lt;/P&gt;&lt;P&gt;         IMPORTING&lt;/P&gt;&lt;P&gt;              return         = fc_file&lt;/P&gt;&lt;P&gt;         EXCEPTIONS&lt;/P&gt;&lt;P&gt;              inv_query      = 1&lt;/P&gt;&lt;P&gt;              no_batch       = 2&lt;/P&gt;&lt;P&gt;              frontend_error = 3&lt;/P&gt;&lt;P&gt;              OTHERS         = 4.&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      fc_file = 'C:/'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ggf. '/' anhängen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lw_len = strlen( fc_file ) - 1.&lt;/P&gt;&lt;P&gt;  lw_zeich = fc_file+lw_len(1).&lt;/P&gt;&lt;P&gt;  IF lw_zeich &amp;lt;&amp;gt; ''.&lt;/P&gt;&lt;P&gt;    CONCATENATE fc_file '' INTO fc_file.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 06:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/querry/m-p/2469026#M554844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T06:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: Querry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/querry/m-p/2469027#M554845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = l_ftemp&lt;/P&gt;&lt;P&gt;    filetype                = 'DAT'&lt;/P&gt;&lt;P&gt;      wk1_n_size              = 'X'&lt;/P&gt;&lt;P&gt;     wk1_n_format            = 'X'&lt;/P&gt;&lt;P&gt;      wk1_t_format            = 'X'&lt;/P&gt;&lt;P&gt;      wk1_t_size              = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = lt_headers&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_write_error        = 1&lt;/P&gt;&lt;P&gt;      no_batch                = 2&lt;/P&gt;&lt;P&gt;      gui_refuse_filetransfer = 3&lt;/P&gt;&lt;P&gt;      invalid_type            = 4&lt;/P&gt;&lt;P&gt;      no_authority            = 5&lt;/P&gt;&lt;P&gt;      unknown_error           = 6&lt;/P&gt;&lt;P&gt;      header_not_allowed      = 7&lt;/P&gt;&lt;P&gt;      separator_not_allowed   = 8&lt;/P&gt;&lt;P&gt;      filesize_not_allowed    = 9&lt;/P&gt;&lt;P&gt;      header_too_long         = 10&lt;/P&gt;&lt;P&gt;      dp_error_create         = 11&lt;/P&gt;&lt;P&gt;      dp_error_send           = 12&lt;/P&gt;&lt;P&gt;      dp_error_write          = 13&lt;/P&gt;&lt;P&gt;      unknown_dp_error        = 14&lt;/P&gt;&lt;P&gt;      access_denied           = 15&lt;/P&gt;&lt;P&gt;      dp_out_of_memory        = 16&lt;/P&gt;&lt;P&gt;      disk_full               = 17&lt;/P&gt;&lt;P&gt;      dp_timeout              = 18&lt;/P&gt;&lt;P&gt;      file_not_found          = 19&lt;/P&gt;&lt;P&gt;      dataprovider_exception  = 20&lt;/P&gt;&lt;P&gt;      control_flush_error     = 21&lt;/P&gt;&lt;P&gt;      OTHERS                  = 22.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward points if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 06:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/querry/m-p/2469027#M554845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T06:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Querry</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/querry/m-p/2469028#M554846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Use the fun module&lt;/P&gt;&lt;P&gt;EXCEL_OLE_STANDARD_GET&lt;/P&gt;&lt;P&gt;or GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare an internal table (with final data) with all char fields and pass to above fun modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&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>Fri, 06 Jul 2007 06:22:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/querry/m-p/2469028#M554846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-06T06:22:10Z</dc:date>
    </item>
  </channel>
</rss>

