Creation of xml file in r3 application server (AL11)

Hi All
I need to create xml file in r3 application server (AL11) using PI.Can we achieve this using file adapter or we need to proceed with proxy. As I tried with file adapter with FTP transport protocol. Its giving the error as "Unable to create new pooled resource:FTPEx:Login incorrect".
Thanks in advance
Regards,
Kartikeya

Hi
need to create xml file in r3 application server (AL11) using PI.Can we achieve this using file adapter or we need to proceed with proxy.
To generate file at AL11 file directory use File adapter. Proxy is not required for this
Its giving the error as "Unable to create new pooled resource:FTPEx:Login incorrect".
1. Check with the Login credentials for the FTP service.
2. FTP User you use in communication channel must have 777 access to FTP location.
Thanks
Gaurav

Similar Messages

  • Error while extracting XML file from the application server

    Hi ,
    I am writing a XML file into the application server, after which when i try to extract the file to the local server using the report - RFASLDPC ,
    the file is extracted, but with a '#' symbol at the first position.
    Because of which the XML File does not open. But after i open the file in notepad and manually delete the '#' symbol and then reopen the file, it works fine.
    Is there any way to remove the '#' symbol while extracting itself ??
    Thanks in advance,
    Vikas.

    Select the option "No Character Set Conversion" in stead of Code page 1100.
    However, I still have troubles -> the downloaded xml file misses a space on several places. This causes errors too.

  • Issue: XML File Downloading to Application Server

    Hi All,
    I am experiencing an issue downloading an XML File to the Application Server.
    I'm using FM SAP_CONVERT_TO_XML_FORMAT to convert SAP data to XML Format.
    After getting the XML data into XMLTAB, I'm using:
    OPEN DATASET pfile_fs FOR OUTPUT IN BINARY MODE .
         LOOP AT xmltab INTO xmltab_w.
         TRANSFER xmltab_w TO pfile_fs.
          CLEAR xmltab_w.
         ENDLOOP.
       CLOSE DATASET pfile_fs.
    The xml file is downloaded show an Error in 'XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    Invalid at the top level of the document. Error processing resource 'file:/shared/TEST/2009'
    But when i download xml file using the FM  WS_Download , the XML page has no errors .
    I am unable to figure out what could be the issue, If this issue is due to some characters like Chinese or Japanese then .. is there any solution for this .
    Please, give me your valuable suggestions.
    Thank you,
    Prasead

    Dear Prasead,
            Hope things are good at your end, i have got the same issue as well, could you please care to share the solution...Wud be of a gr8 help if you could do that, hope to have your response back.
    Regards,
    Abdul.

  • Not able to open XML file in the application server..........

    Hi,
    I have downloaded a XML file to the application server.....
    File is created but i am not able to open the file there....
    Plz advice ....how to open it.....
    Regards.

    Use Notepad. Drag and drop in notepad.
    Aman

  • XML File opening in application server

    Hi sap Gurus,
    I am trying to open XML file in the application server  But it is giving dump,
    Please tell me why it is giving dump .
    Thanks,
    Prasad.

    Thanks ..... It is working .
    Thanks,
    Prasad.

  • XML file in the Application server

    Hi all
    I am transferring the XML data in to application server but it is not transferring complete data .
    why it is not transferring complete data please tell me.
    Points will  be rewarded .
    Thanks.
    Prasad.

    tables: t005s,
            a911 ,
            konp .
    data: begin of it_t005u occurs 0,
            bland like t005u-bland,
            bezei like t005u-bezei,
          end  of  it_t005u .
    data: begin of it_a911 occurs 0,
           regio like a911-regio,
           knumh like a911-knumh,
          end  of  it_a911 .
    data: begin of it_konp occurs 0,
           knumh like konp-knumh,
           kbetr like konp-kbetr,
          end  of  it_konp .
    data: begin of it_download occurs 0,
            string(54),
          end   of it_download.
    data: it_textno like zdms_textno occurs 0,
          wa_textno like line of it_textno   .
    data : gv_filenum like zdms_textno-filenumber  ,
           gv_filenumc(10) type c .
    data: gv_file1 type string.
    data: f1(2),
          f2(2),
          f3(2),
          gv_vat_app(1),
          gv_kbetr(12) .
    *********Start of Inserted by Durai.V 26-May-2008 *****
    data : w_app_ser_nme type msxxlist-name value 'r3prod_EEP_05'.
    data : lv_flag_con type c.
    data : it_download_app_ser like dxrawdata occurs 0.
    *********End of Insert by Durai.V 26-May-2008 *********
    start-of-selection.
      select bland
             bezei
        into table it_t005u
        from t005u
       where spras eq 'EN'
         and land1 eq 'IN'.
      if not it_t005u[] is initial.
        select regio
               knumh
          into table it_a911
          from a911
           for all entries in it_t005u
         where kschl eq 'JIVP'
           and regio eq it_t005u-bland
           and taxk1 eq '1'
           and taxm1 eq 'A'
           and datbi ge sy-datum
           and datab le sy-datum .
      endif.
      if not it_a911[] is initial.
        select knumh
               kbetr
          into table it_konp
          from konp
           for all entries in it_a911
         where knumh eq it_a911-knumh.
      endif.
      it_download-string = 'STATE' .
      append it_download .
      clear it_download .
      it_download-string = '{' .
      append it_download .
      clear it_download .
      loop at it_t005u.
        clear: it_a911,
               it_konp,
               gv_vat_app,
               gv_kbetr.
        read table it_a911 with key regio = it_t005u-bland.
        if sy-subrc = 0.
          read table it_konp with key knumh = it_a911-knumh.
          if sy-subrc = 0.
            gv_vat_app = 'Y' .
          else.
            gv_vat_app = 'N' .
          endif.
        endif.
        if ( it_t005u-bland ne '' ).
          gv_kbetr = it_konp-kbetr / 10 .
          if it_t005u-bezei eq ''.
            f1 = ' ~'.
          else.
            f1 = '~'.
          endif.
          if gv_vat_app eq ''.
            f2 = ' ~'.
          else.
            f2 = '~'.
          endif.
          if gv_kbetr eq ''.
            f3 = ' ~'.
          else.
            f3 = '~'.
          endif.
          concatenate 'STATE'
                      '~'
                      '001'
                      '~'
                      it_t005u-bland
                      '~'
                      it_t005u-bezei
                      f1
                      gv_vat_app
                      f2
                      gv_kbetr
                      f3
                 into it_download-string.
          append it_download .
          clear  it_download .
        endif.
      endloop.
      if sy-subrc = 0.
        lv_flag_con = 'X'.
      endif.
      it_download-string = '}' .
      append it_download .
      clear  it_download .
      clear:  gv_filenum ,
               gv_filenumc,
               gv_file1   ,
               wa_textno  .
      select single filenumber
             from   zdms_textno
             into   gv_filenum
             where  filename eq 'DMS_' .
      move  gv_filenum to gv_filenumc  .
      shift gv_filenumc left deleting leading '0'.
       if gv_filenum < 10 .
         concatenate '0' gv_filenumc into gv_filenumc .
       endif.
      concatenate 'DMS_'
                  gv_filenumc
                  '.txt'
             into gv_file1 .
    *Downloading the file to Application Server**
    Start of Commented by Durai.V 26-May-2008 **********
    *open dataset gv_file1 for output in text mode ENCODING DEFAULT  .
       loop at it_download.
         transfer it_download-string to gv_file1.
       endloop.
    *close dataset gv_file1.
    End of Commented by Durai.V 26-May-2008 ************
    *********Start of Inserted by Durai.V 26-May-2008 *********
      data : lv_serv_file_pth type dxfile-filename.
      lv_serv_file_pth = gv_file1.
      it_download_app_ser[] = it_download[].
      if it_download_app_ser[] is not initial and lv_flag_con = 'X'.
        call function 'DX_FILE_WRITE'
          exporting
            filename            = lv_serv_file_pth
            server              = w_app_ser_nme
            pc                  = ''
          tables
            data_tab            = it_download_app_ser[]
          exceptions
            no_file_on_server   = 1
            no_data_on_server   = 2
            gui_download_failed = 3
            no_authority        = 4
            others              = 5.
    *********End of Inserted by Durai.V 26-May-2008 ***********
        if sy-subrc = 0.
          wa_textno-filename   = 'DMS_'         .
          wa_textno-filenumber = gv_filenum + 1 .
          modify zdms_textno from wa_textno .
        endif.
      else.
        write / 'No Data Selected, So file not created in Appllcation Server'.
      endif.
    check this report ........it is doing the same
    reward IF...................
    Regards
    Anbu

  • Send .txt file format to application server (AL11)

    Hi friends,
    As per the user requirement, I need to send the BEx report through open hub/APD to application server (AL11) in .txt format with 'tab' delimiter.
    I am aware that it can be done in .csv format but not about .txt.
    Please help me with urgent requirement.
    Regards,
    Ankita

    Hi Ankita,
    Sorry I don't have any idea aside from openhub and APD..
    Try the function module GUI_DOWNLOAD, maybe this will help you..
    Regards,
    Loed

  • How to write data to an XML file present under application server

    frnds: can ne one tell me, how to write data in to a file, which is present under a application server
    Ex: i want to write a string data in to a file test.txt which is present under "http://localhost:8080/<some_webapp>/test.txt"
    Note:i have deploted a service<some_webapp> under Tomcat/webapps dir

    Very simple. A servlet can writes to that file if it has the good rights.
    In the servlet get (or post) method, use a code like this:
    import java.io.*;
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) {
    try {
    String filePath = this.getServletContext().getRealPath("/text.txt");//See http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletContext.html#getRealPath(java.lang.String)
             PrintWriter writer = new PrintWriter (filePath);
            //or BufferedWriter out = new BufferedWriter(new FileWriter(filePath));
            writer .println("aString");
           writer.flush();
            writer .close();
        } catch (Exception e) {
           e.printStackTrace();
    }Hope That Helps

  • Urgent :- Unable to deploy EAR file in Oracle application server

    Hello folks,
    I am trying to deploy an application containing jsps and servlets
    packaged into EAR using ant. However when am trying to do so by using
    the Deploy EAR option in the Enterprise manager, it throws the
    following error -
    "Invalid J2EE application file specified - Jar file:
    /var/tmp/jar47241.tmp is missing its standard xml descriptor located at
    META-INF/ejb-jar.xml"
    I suspect that something could be wrong with regards to the way the ear
    file has been created.
    Please if someone could pin point the problem and help me understand
    the the above error message , it will be of great help to me and I d
    really appreciate this.
    Many Thanks,
    Ramn.

    Hello,
    I try to deploy an ear file (contains jar and war files) in Oracle Application server in linux, but the time is so long. The same file I deploy in a OAS in windows and the deploy time was 2 minutes, but in linux I leave the hole night and the session close and the deploy in unable.
    I don't know if I need configure an especial option in the OAS in Linux, how I can load my ear file.
    The OAS in windows was installed with oc4j options only, but the OAS in linux was full installation
    Please help me....
    Thanks.

  • How to run ear file in java application server

    i want how to run .ear file in java application server
    1. i m created ear file
    2. i m created jar file (bean,home,remote)
    3.i m created war file(in the form of jsp)
    but till now i couldnt run ear file
    how to run
    please hel me

    You must create :
    1.Jar file
    2.War file
    And then put them into an ear file
    Exemple : myapp.ear contains
    myappEJB.jar
    myappWEB.war
    META-INF/application.xml
    and application.xml looks like this :
    <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com /xml/ns/j2ee
                            http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
        <display-name>myapp</display-name>
        <description>Demo application</description>
        <module>
            <ejb>myappEJB.jar</ejb>
        </module>
        <module>
          <web>
             <web-uri>myappWAR.war</web-uri>
             <context-root>/myapp</context-root>
          </web>
        </module>
    </application>Good luck

  • Loading an XML File in an Application!

    Hy Guys!
    I'm quite new on Java, so I'm missing some important knowledge, for example: how to load an XML file in an Application downloaded by Java WebStart:
    In Details:
    I'm downloading an Application which needs an XML File for setting up an Legend. As far as I know, the XMLParser needs a File as argument to parse. By Java WebStart/jnlp, I can't download the XML-File to the local machine, and trying to create an instance by the url (as String), doesn't work. So now I'm missing some information, and I hope you can help me:
    Is there a possiblility to download the XML file via the application explicitly,
    or is there a possibility to "convert" the ResourceInputStream into a "parseable" class?
    I'm happy for every suggestion ..
    some code:
    public class EvalXML extends org.xml.sax.helpers.DefaultHandler {
    /** Creates a new instance of EvalXML */
    public EvalXML() {
    * @param args the command line arguments
    public static int main(String[] args) {
    DefaultHandler handler = new EvalXML();
    SAXParserFactory factory = SAXParserFactory.newInstance();
    String url = new String();
    //String url = EvalXML.class.getClassLoader().getResource("com/msgis/res/Lcc_Test_XML_Addressen.xml").getPath();
    //String url= "msgis.jar!/com/msgis/res/Lcc_Test_XML_Addressen.xml";
    if (args[0] + "empty" != "empty") url = args[0];
    else{
    System.out.println("no argument");
    return 0;
    System.out.println("PATH: \n" + url + "\n");
    try{
    SAXParser saxParser = factory.newSAXParser();
    //saxParser.parse(new File(EvalXML.class.getClassLoader().getResource("com/msgis/res/Lcc_Test_XML_Addressen.xml").getPath()), handler);
    saxParser.parse(new File(url), handler);
    System.out.println("pascht");
    catch(Throwable t){
    System.out.println(t.getMessage());
    return 1;
    regards dominik

    Although nobody wrote back, it is the quality of a forum depends on soluted problems so:
    the following function loads the file from the server to the box:
    public boolean loadResource(String pURL){
    DownloadService ds;
    URL lURL;
    boolean lLoaded = true;
    try{
    lURL = new URL(pURL);
    try {
    ds = (DownloadService)ServiceManager.lookup("javax.jnlp.DownloadService");
    } catch (UnavailableServiceException e) {
    ds = null;
    lLoaded = false;
    if (ds != null) {
    try {
    // determine if a particular resource is cached
    //URL url = new URL("http://java.sun.com/products/javawebstart/lib/draw.jar");
    boolean cached = ds.isResourceCached(lURL, "1.0");
    // remove the resource from the cache
    if (cached) {
    ds.removeResource(lURL, "1.0");
    // reload the resource into the cache
    DownloadServiceListener dsl = ds.getDefaultProgressWindow();
    ds.loadResource(lURL, "1.0", dsl);
    } catch (Exception e) {
    e.printStackTrace();
    lLoaded = false;
    catch(MalformedURLException mue)
    System.out.println(mue.getMessage());
    lLoaded =false;
    return lLoaded;
    dominik

  • How to Increase the memory size of a File in the Application Server

    Hello Abaper's
    I have generated a XML file for the data of  internal table (with 10 Records). When i download , i can see the XML file for the Entire 10 Records.
    But , while transferring the XML file to Applicationserver , it's  transferring only upto max 4 Records.I     assume that the memory is insufficient to  allocate 10  Records. Can we Increase the Memory size of the File on Application server. OR,  is there any error in My Source Code.
    Code i used to Transfer the XML File to Application server.
    OPEN DATASET FNAME FOR OUTPUT IN BINARY MODE.
    IF sy-subrc EQ 0.
       LOOP AT it_xmltab INTO wa_xmltab.
           TRANSFER wa_xmltab TO FNAME.
       ENDLOOP.
    ELSE.
      MESSAGE e004(zmsg5) WITH 'File FNAME not opened'.
    ENDIF.
    CLOSE DATASET FNAME.
    Regards
    Jv

    Hi,
    DATA : filename TYPE rlgrap-filename.
    DATA : doc_name TYPE char30.
    DATA : bin_size TYPE i.
    SELECT matnr matkl meins
           FROM mara INTO TABLE it_mara
           UP TO 10 ROWS.
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
      EXPORTING
        i_filename           = filename
        i_xml_doc_name       = doc_name
      IMPORTING
        pe_bin_filesize      = bin_size
      TABLES
        i_tab_sap_data       = it_mara         "  contains  10 Records
      CHANGING
        i_tab_converted_data = it_xmltab.
    placing XML File in Appl. Server
    DATA : FNAME(60) VALUE 'xyz_File'.
    DATA : num TYPE i.
    DATA : xmldata(256) TYPE x.
      For Writing The data in Application Server
    OPEN DATASET FNAME FOR OUTPUT IN BINARY MODE. " ENCODING DEFAULT.
    IF sy-subrc EQ 0.
      LOOP AT it_xmltab INTO wa_xmltab.
        TRANSFER wa_xmltab TO FNAME.
      ENDLOOP.
    ELSE.
      MESSAGE e004(zmsg5) WITH 'File FNAME not opened'.
    ENDIF.
    CLOSE DATASET FNAME.
      For Reading The data in Application Server
    OPEN DATASET FNAME FOR INPUT IN BINARY MODE. " ENCODING DEFAULT.
    DO.
      IF sy-subrc EQ 0.
        READ DATASET fname INTO xmldata.
        WRITE :/ xmldata.
        Clear xmldata.
      ELSE.
        EXIT.
      ENDIF.
    ENDDO.
    CLOSE DATASET FNAME.
    at runtime i can see   
    it_mara  --> contain 10 records
    it_xmltab --> contain 7 lines (Each line size is 255 char). This table have XML format data,  (unknow format , with all numeric 
                        digits)
    it_xmltab is trasferred to application server , but the xml format is generated upto 4 records, and for the remaining records
    the XML format is not generated.
    the XML data in application server file is
    <?xml version="1.0"?><TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">0-BUY1</MATNR><MATKL Datatype="C" Length="18">012</MATKL><MEINS Datatype="C" Length="6">PC
    </MEINS>
    </TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">0-BUY2</MATNR><MATKL Datatype="C" Length="18">012</MATKL><MEINS Datatype="C" Length="6">
    PC </MEINS>
    </TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">000000000000000001</MATNR><MEINS Datatype="C" Length="6">EA</MEINS>
    </TY_MARA><TY_MARA><MATNR Datatype="C" Length="36">000000000000000002</MATNR
    Regards
    JV

  • Upload and download of  excel file in the application server in background

    Hi all,
    i want to download the excel file from application server into internal table and after processing i have to upload to excel file in the application server in the background mode..
    i mean i'll schedule the program in background.
    im using FM ALSM_EXCEL_TO_INTERNAL_TABLE its working fine in fore ground but not in back ground.
    what method i have to follow ?

    Hi Ankit,
    I think this is not possible to open a Excel-File from the application server because the Excel format before Office 2007 where a binary format (Suffix: .xls). The newer Office file format (Suffix: xlsx) is a zipped XML Format. To read the binary Excel-Format you need an OLE Connection between SAP GUI and Office. But at the application server in background you doesn't have this OLE Connection.
    In my opinion you have two possibilities:
    1. Convert all files in the CSV format. This file format can be read with open dataset.
    2. Upload the files from the presentation server in forground. There are some funktion modules in the standard which can read the xls format. But they have some limits regarding the length of cells content.
    My recommendation is solution no. 1. If you know an VBA expert, he can write an Excel-macro which converts all Excel Files in the CSV-Fomat.
    Regards
    Dirk

  • File transfer into application server

    Hi folks.
    I need to retrieve header records from table MCHB and RESB and transfer it into file.
    Again for the corresponding header record, i need to transfer item records retrived from table MKOL and LFA1 as well.
    One file each is to be create per plant.
    But,i am not able to get item data into file.
    My coding....
    LOOP AT i_mchb INTO wa_mchb.
        l_clabs = wa_mchb-clabs.
        SHIFT l_clabs LEFT DELETING LEADING space.
    Summarize requirement quantity
        LOOP AT i_resb INTO wa_resb.
          wa_sum-charg = wa_resb-charg.
          wa_sum-bdmng = wa_resb-bdmng.
          COLLECT wa_sum INTO i_sum.
          SORT i_sum BY charg.
        ENDLOOP.
        READ TABLE i_sum INTO wa_sum WITH KEY charg = wa_mchb-charg.
        IF sy-subrc EQ 0.
          l_bdmng = wa_sum-bdmng.
          SHIFT l_bdmng LEFT DELETING LEADING space.
        ENDIF.
    Calculation on Available quantity
        l_avqty = l_bdmng - l_clabs.
        SHIFT l_avqty LEFT DELETING LEADING space.
        AT NEW werks.
    *Creation of file
          PERFORM sub_create_file.
    Open File on the application server for processing
          OPEN DATASET g_file_name FOR OUTPUT IN TEXT MODE
          ENCODING DEFAULT.
          IF sy-subrc NE 0.
    *Display error message
            MESSAGE i055 WITH g_file_name.
            " Error in opening file
            LEAVE LIST-PROCESSING.
          ENDIF.
        ENDAT.
    Transfering data to file
        CONCATENATE c_header         "Header indentification
                    wa_mchb-matnr    " Material number
                    wa_mchb-werks    " Plant
                    wa_mchb-lgort    " Storage location
                    wa_mchb-charg    " Batch number
                    l_clabs           " Valuated stock-unrestricted use
                    l_bdmng           " Requirement quantity
                    l_avqty           " Avalable quantity.
        INTO l_record.
        TRANSFER l_record TO g_file_name.
        CLEAR: l_clabs,
               l_bdmng,
               l_avqty,
               l_record.
        READ TABLE i_mkol INTO wa_mkol WITH KEY matnr = wa_mchb-matnr
                                                werks = wa_mchb-werks
                                                lgort = wa_mchb-lgort
                                                charg = wa_mchb-charg
                                                BINARY SEARCH.
        IF sy-subrc EQ 0.
          l_tabix = sy-tabix.
          LOOP AT i_mkol INTO wa_mkol FROM l_tabix.
    *Population of consignment stock-unrestricted use
            l_slabs = wa_mkol-slabs.
            SHIFT l_slabs LEFT DELETING LEADING space.
            READ TABLE i_lfa1 INTO wa_lfa1 WITH KEY lifnr = wa_mkol-lifnr.
    sy-subrc check not done
            CONCATENATE c_item           " Item identification
                        l_slabs
                        " Consignment stock-unrestricted use
                        wa_mkol-lifnr    " Vendor account number
                        wa_lfa1-name1    " Vendor name
            INTO l_record.
            TRANSFER l_record TO g_file_name.
            CLEAR: l_slabs,
                   l_record.
          ENDLOOP.
        ENDIF.
        AT END OF werks.
    Close File
          CLOSE DATASET g_file_name.
          CLEAR   g_file_name.
        ENDAT.
      ENDLOOP.

    Hi,
    Yes thats correct. When using AT NEW. The field in internal table after the WERKS field will have ASTERSIK .
    So before AT NEW. Assign the work area to another work area. Eg.
    WA_mchb1 = wa_mchb.
    Later on i.e. After ENDAT use everywhere WA_MCHB1 and not not WA_MCHB.
    This will solve the problem.
    wa_sum-charg = wa_resb-charg.
    wa_sum-bdmng = wa_resb-bdmng.
    COLLECT wa_sum INTO i_sum.
    SORT i_sum BY charg.
    ENDLOOP.
    READ TABLE i_sum INTO wa_sum WITH KEY charg = wa_mchb-charg.
    IF sy-subrc EQ 0.
    l_bdmng = wa_sum-bdmng.
    SHIFT l_bdmng LEFT DELETING LEADING space.
    ENDIF.
    Calculation on Available quantity
    l_avqty = l_bdmng - l_clabs.
    SHIFT l_avqty LEFT DELETING LEADING space.
    <b>clear wa_mchb_new.</b>
    <b>wa_mchb_new = wa_mchb.</b>
    AT NEW werks.
    *Creation of file
    PERFORM sub_create_file.
    Open File on the application server for processing
    OPEN DATASET g_file_name FOR OUTPUT IN TEXT MODE
    ENCODING DEFAULT.
    IF sy-subrc NE 0.
    *Display error message
    MESSAGE i055 WITH g_file_name.
    " Error in opening file
    LEAVE LIST-PROCESSING.
    ENDIF.
    ENDAT.
    Transfering data to file
    CONCATENATE c_header "Header indentification
    <b>wa_mchb_new-matnr " Material number
    wa_mchb_new-werks " Plant
    wa_mchb_new-lgort " Storage location
    wa_mchb_new-charg " Batch number</b>l_clabs " Valuated stock-unrestricted use
    l_bdmng " Requirement quantity
    l_avqty " Avalable quantity.
    INTO l_record.
    TRANSFER l_record TO g_file_name.
    CLEAR: l_clabs,
    l_bdmng,
    l_avqty,
    l_record.
    READ TABLE i_mkol INTO wa_mkol WITH KEY matnr = <b>wa_mchb_new-matnr
    werks = wa_mchb_new-werks
    lgort = wa_mchb_new-lgort
    charg = wa_mchb_new-charg</b>BINARY SEARCH.
    IF sy-subrc EQ 0.
    l_tabix = sy-tabix.
    LOOP AT i_mkol INTO wa_mkol FROM l_tabix.
    *Population of consignment stock-unrestricted use
    l_slabs = wa_mkol-slabs.
    SHIFT l_slabs LEFT DELETING LEADING space.
    READ TABLE i_lfa1 INTO wa_lfa1 WITH KEY lifnr = wa_mkol-lifnr.
    sy-subrc check not done
    CONCATENATE c_item " Item identification
    l_slabs
    " Consignment stock-unrestricted use
    wa_mkol-lifnr " Vendor account number
    wa_lfa1-name1 " Vendor name
    INTO l_record.
    TRANSFER l_record TO g_file_name.
    CLEAR: l_slabs,
    l_record.
    ENDLOOP.
    ENDIF.
    AT END OF werks.
    Close File
    CLOSE DATASET g_file_name.
    CLEAR g_file_name.
    ENDAT.
    ENDLOOP.
    Best regards,
    Prashant
    PS : Please reward all helpful answers
    Message was edited by: Prashant Patil
    Message was edited by: Prashant Patil

  • Checking the file content in application server

    Hi,
    I am writing an XML file from the raw XSF data from a smartform auto generated function module through OPEN DATASET command in BINARY MODE. When I go to tcode AL11 to check the content of the XML file, I can see only the first few bytes of it as it looks like one single line in AL11. Is there any way so that I can read the whole content of the file in the application server itself without downloading it into my local machine.
    Thanks in advance
    Nilay Ghosh

    You may try eigther transaction AL11 with allows you to browse files and display their content(as long they are textfiles).
    If you need specific conversion an own report may help:
    first read the file via dataset commands
    if content is non readable convert it to chars
    split the string into a char or string table
    use the command 'editor-call' (check online help) to display this table.
    Kind Regards
    Klaus

Maybe you are looking for

  • Missing Points "Issued points"

    HI, I recently made a purchase at my local best buy (10/30/14), I also used a 3X points coupon with it. I checked my points today and it says that my points from my last purchase (10/30/14)  was issued but its not showing on my total point. I tried t

  • Asian double-byte characters

    Hello, When importing English data into the CRM field lengths are defined for example "Name" = 100 chartacters. When im importing some Asian languages these are defined as double byte. Can anyone confirm if this has any effects on the field lenghts i

  • File button and last message

    The button for file and other option has disappeared in upper left. Text of last message no longer shows. How can I restore them?

  • How to get rid of revolving beachball when I open my MaBook?

    How do I get rid of the revolving beachball when I open my MacBook?

  • How do I delete all calendar entries from iPhone 3G S

    My iPhone calendar is out of sync with Outlook (2007, connected to an Exchange server). There are appointments no longer in Outlook that are still on the iPhone, and appointments with the wrong time on the iPhone. SO I want to remove all the calendar