XML File Creation Problem in FTP Server

Hi.. Experts
My Internal Table is as follows
Types: Begin of ty_xmlfile,
         xmlline(60000)        type C,
       End of ty_xmlfile.
Data: it_xmlfile type standard table of ty_xmlfile,
        wa_xmlfile type ty_xmlfile.
When I download the file to my desktop using  GUI_DOWNLOAD. It works fine
CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            BIN_FILESIZE = lv_size
            FILENAME     = lv_file_name
            FILETYPE     = 'ASC'
          TABLES
            DATA_TAB     = it_xmlfile
          EXCEPTIONS
            OTHERS       = 10.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
In the debug mode when I download the internal table(IT_XMLFILE) into an excel file it doesn't open and it says tag is missinig(/basic_material_text) and also when I create the file in Application Server and transfer it to FTP Server it doesn't open there..and also in debug mode I find the length until  DIMENSION AN.. for that row when I double click on that line in debug mode it shows all the text until </baisc_material_Text>
<basic_material_text>4.500 +.000/-.010 O.D. X 213.0&quot; LG.(F)                      (A)ASTM A276 CONDITION &quot;A&quot; 317LTYPICAL MILL CERTS REQ&apos;D.DIMENSION REFERENCE:(A) = ALLOWANCE IS INCLUDED FOR MACHINING(F) = THIS IS A FINISHED DIMENSION AN*
The above statement is incomplete when the file is open in FTP Server.
But when the file is created on to my desktop. It displays all the text....
<basic_material_text>4.500 +.000/-.010 O.D. X 213.0" LG.(F) (A)ASTM A276 CONDITION "A" 317LTYPICAL MILL CERTS REQ'D.DIMENSION REFERENCE:(A) = ALLOWANCE IS INCLUDED FOR MACHINING(F) = THIS IS A FINISHED DIMENSION AND WILL BE USED AS RECEIVED(T) = TO FINISH TO THIS DIMENSION FOR FORGING AND BILLET MATERIAL ONLYVENDOR TO SUPPLY THE FOLLOWING ENGINEERING/QUALITY ASSURANCE DATATYPICAL MILL TEST CERTIFICATES/CERTIFICATES MUST ACCOMPANY THE MATERIAL.* COPIES REQUIRED:(2)ALL CERTIFICATES MUST HAVE LIGHTNIN PART NO.CLEARLY MARKED ON THEM.* COPIES REQUIRED:(2)</basic_material_text> *
I could not understand why it takes only until DIMENSION AN
Any suggestions would be very helpful...
Thanks,
Chaitanya
-Points will be awarded for helpful answers.

Hi...
I think each XML Line will be of length 256. So I have to split the String into 256 of each Line.
XML DOM Processing in ABAP part I -  Convert an ABAP table into XML file using SAP DOM Approach.
Hope  it works out....I will try for that and Close the Post...
Thanks,
chaitanya K

Similar Messages

  • Hibernate mapping XML files for the two SQL Server tables below.

    Hello all..,
    Question 1:
    I am working on a project that needs to support a database with an inherited legacy schema that you cannot change. The schema is provided below.Hibernate mapping XML files for the two SQL Server tables below. Please provide those two XML files. Assume some hypothetical package and class names. Assume that no "fancy" stuff such as lazy initialization, optimistic locking etc is needed at this time.
    CREATE TABLE [SURVEY_ANSWERS] (
    [ANSWER_ID] [int] IDENTITY (1,1) NOT NULL,
    [QUESTION_ID] [int] NOT NULL,
    [POSITION] [int] NULL,
    [TEXT] [varchar](350) NULL
    CREATE TABLE [dbo].[SURVEY_QUESTIONS] (
          [QUESTION_ID] [int] IDENTITY (1, 1) NOT NULL ,
          [TEXT] [varchar] (350) NULL
    GO
    ALTER TABLE SURVEY_ANSWERS
    ADD CONSTRAINT pk_SURVEY_ANSWERS PRIMARY KEY(ANSWER_ID,QUESTION_ID);
    ALTER TABLE [dbo].[SURVEY_QUESTIONS] ADD
           PRIMARY KEY  CLUSTERED
                [QUESTION_ID]
    GO
    ALTER TABLE [dbo].[SURVEY_ANSWERS] ADD
           FOREIGN KEY
                [QUESTION_ID]
          ) REFERENCES [dbo].[SURVEY_QUESTIONS] (
                [QUESTION_ID]
          )Question 2:
    Assume that you are working on a project developing, say, a banking application. You are the Architect and thinking that Hibernate ORM should be used for the entire access to the relational database. As usual, you have created (or auto-generated) a set of HBM XML files as well as POJOs for which you define the mappings. Assume now that a new requirement has just popped up. The system needs to be able to import new bank accounts and user information in bulk from a very large XML file at once and store it in the database. Assume the XML file contains all necessary information to populate fields in database tables. As performance is very important for this operation. Given this description, how would you approach the problem?
    Please describe briefly.
    -Thanks and regards
    Praveen Soni

    You're not fooling anyone Dennis_Mox. But nice try.Jeez, man. Mail me at denismox[at]yandex.ru, I will show you that exact test, dammit.

  • Automate a BI report to flat file on to a FTP server.

    Hello all,
    I have an same issue like the following thread. After extract CSV file successfully to the directory, but unable to find the file. Any thought?
    Automate a BI report to flat file on to a FTP server.
    Regards!

    Need to analyze the business purpose ,however heres my take on it..
    You can utilize 3 options to export query result on to the SAP directories as below and map that path to your FTP server.
    1. Transaction RSCRM_BAPI (still valid in nw2004s)
    2. Transaction RSANWB (analytical Process designer)
    3. Information Broadcasting - KM folder has to be mapped as a file system location.
    Hope it Helps
    Chetan
    @CP..

  • How to read XML file kept on NON-SAP server using the Http URL ?

    Dear Experts,
    I am working on CRM2007 web UI. I need to read a XML file placed on a shared server location by a third party program. Then process that XML file into CRM and create a quotation using the data extracted from the file.
    All i have with me is the http URL that points to the location of the file.
    I am supposed to read the file , create quotation and at later point of time i would be asked to update the quotation and then generated new XML representing updated quotation and replace the XML file on shared server location with this new updated XML file.
    I know how to extract data from XML file into ABAP but i have no clue as to how to access the file on some other server using the http url i have and how to read it ?
    I searched on the forum and i found the codes for reading XML file that is located either on client machine OR on the Application server wheareas my file is on some other than sap application server.
    Please help me as its an urgent issue .
    Points will be rewarded for sure.
    Please help.
    Thanks in advance,
    Suchita.
    p.s. : the http url to the file location is like -->
    http://SomeServerDomain/SomeDirectory/file.xml

    hi,
    interesting task.
    to request the file by a http call you need to create an if_http_client object.
    More info is [here|http://help.sap.com/saphelp_nwmobile71/helpdata/en/e5/4d350bc11411d4ad310000e83539c3/frameset.htm]
    to parse the file you either have to work with the ixml packages ([info|http://help.sap.com/saphelp_nwmobile71/helpdata/en/47/b5413acdb62f70e10000000a114084/content.htm]) or you use an XSLT transformation ([info|http://help.sap.com/saphelp_nwmobile71/helpdata/en/a8/824c3c66177414e10000000a114084/content.htm]).
    uploading the final file isn't so easy. if you only have http, you should write a server script to allow uploading of the new file and copying it into the place of the old file. but you definitely need the script.
    now it's your take. depending on how experienced you are in ABAP and networking this might turn out to be easy or pretty complicated.
    have fun,
    anton

  • Problem in creatinga sales order idoc into XML file in the same appl server

    Hai....friends....
    I am tring to send an  sales order as iDOC  to a xml port in the same application server....
    1. have created a xml port with path..\usr\sap\RRM\SYS\global\.
    2. assigned it to logical system.
    3.Have a RFC destination of TCP/ip(LOCAL_EXEC)
    but in bd64 after creating  model view when i am generating partner profiles  a tRFC PORT has been automatically created.
    then finally the IDOc has been created but its saying....IDOC CANNOT OR SHOULD NOT BE SENT...
    Pls help me regarding this...
    thx,
    ram

    Hi Thanks for your updates,
    But I got the same error, while pass the data from abap into XML.
    error message,what I am getting is
    The XML page cannot be displayed
    Cannot view XML input using 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:///C:/tempcustomers.xml'. Line 1, Position 1
    #<?xml version="1.0" encoding="utf-16"?>
    Thanks
    Gowrishankar

  • Load XML file to XMLTable from FTP site Problem Oracle9i Release 9.2.0.7.

    Hi,
    I was wondering if it is possible to load XML file from FTP address directly to XMLType Table?
    Can someone help me?
    For example I have ftp site "ftp://test" and on this site I have file "file.xml"
    and I would like to load "file.xml" to table "xml_tab" ?
    I tried to use "load_xml" procedure and set DIRECTORY "xml_dir" to 'ftp://test' but I get this error
    exec load_xml(p_dir=>'XML_DIR', p_filename=>'file.xml');
    ERROR at line 1:
    ORA-22288: file or LOB operation FILEOPEN failed
    The network path was not found.
    ORA-06512: at "SYS.DBMS_LOB", line 504
    ORA-06512: at "P.LOAD_XML", line 8
    ORA-06512: at line 1
    Procedure looks like this:
    (p_dir IN VARCHAR2,
    p_filename IN VARCHAR2) AS
    l_bfile BFILE := BFILENAME(p_dir, p_filename);
    l_clob CLOB;
    BEGIN
    DBMS_LOB.createtemporary (l_clob, TRUE);
    DBMS_LOB.fileopen(l_bfile, DBMS_LOB.file_readonly);
    DBMS_LOB.loadfromfile(l_clob, l_bfile, DBMS_LOB.getlength(l_bfile));
    DBMS_LOB.fileclose(l_bfile);
    INSERT INTO xml_tab (
    id,
    filename,
    xml
    VALUES (
    xml_tab_seq.NEXTVAL,
    p_filename,
    XMLTYPE.createXML(l_clob)
    COMMIT;
    DBMS_LOB.freetemporary (l_clob);
    END;
    I have tried also with this
    select xdburitype('ftp://test/file.xml').getCLob() from dual;
    but i get error
    ERROR:
    ORA-31001: Invalid resource handle or path name "ftp://test/file.xml"
    Can you pleeeeeeas show me a way to do this, thanks ???

    This will not work.. Ypu cannot use FTP to 'PULL' a document into the database. (Yes I know there's a placeholder for an FTPURITYPE() but it was never implemented).
    However you can use an FTP client to PUSH content into the XML DB repository. If the content is schema based XML associated with a known (registered) XML schema the content of the file will automatically be stored in the default table associated with the root element of the file. If the content is not associated with an known XML schema you can then use xdburitype to read the resource that was created when the document was uploaded into the repository

  • Creating an XML file with CFFILE on UNIX server

    I've run into a problem with creating an XML file on a UNIX
    server. I don't have access to the server and I'm trying to create
    an XML file so an outside agency can read it through the site URL.
    On a Windows machine I use GetDirectoryFromPath and
    ExpandPath to return the drive/path info, then I create the file
    with this and the query result. On the Unix web server I am only
    being returned a relative path, because of this I can't write the
    XML file to the web server. Any idea how to get around this?

    Knowing as little as I do about Unix I thought you still needed
    a drive "letter" to write the XML file to. I've been told I can get
    to the root but that it's root is "/bottomFolderName" (I was
    expecting R:\webRootPath\yourFolder\etc\XMLFileWrittenHere).
    No, that is Windows thinking. You were told right. In Linux,
    a path usually begins with the forward slash /.
    I had doubts about your code itself. Did you run your version
    of my example on Windows? If it works, then you will only have to
    replace the Windows path with something like the following. The
    rest of the code remains the same.

  • Batch File Creation Problem CS5.5

    I am having an issue creating aep files on our farm using aerender in CS5.5.  We have a script that uses a template aep to generate a new file for various shots.  It works fine in CS4.  When I use the same script in CS5.5 it creates a file, but when you try to open it, it gives the following messages:
    After Effects warning: Reading past end of file
    After Effects error: strange situation [0/2].  (26 :: 84)
    At which point AE either crashes or leaves a blank file.
    However, if you try to import the same file, it works fine and everything appears as desired.
    If I run the same script through the CS5.5 UI (AfterFX.exe as opposed to aerender.exe) the file generated opens without issue.
    I also tried stripping out parts of the script to see if removing elements fixed the issue.  It did not - in fact I made a new script to try in batch mode that only saves a file.  This results in the the same
    After Effects warning: Reading past end of file
    but no errors, though I imagine that's because it's a blank project to begin with. 
    Here is the code for that script:
    function testBuild() {
        var saveMe = new File("//server/job/comp/dev/work/test/shot/file_test.aep");
        app.project.save(saveMe);
    We are using a slightly modified version of commandLineRenderer.jsx that allows extra flags to run pre-render scripts and submit without rendering.  I merged our custom edits with the version that ships with CS5.5 to ensure continuity.  Again, the script works in CS4 (even w/ the updated custom CS5.5 version of the commandLineRenderer.jsx).
    Here's the command that runs on the farm:
    aerender -s 1 -e 1  -norender -script //server/job/bin/dev/testBuild.jsx -command "testBuild()"  2>&1
    the -norender -script and -command flags were things we added to commandLineRenderer.jsx, -norender indicates not to render the project, -script gives the script to load and -command the command to run.
    The issue seems directly related to saving using aerender.exe in CS5.5 since everyting works correctly in CS4 and in the CS5.5 UI
    We are running Windows 7 64-bit.
    Thanks for any help you can provide!

    Hi Johny,
    I forgot to come back to this thread, sorry.
    So it seems that the save file in noui batch do not complete his job, in fact, when you save your file in aepx (xml file) you could see the change between a NOUI file and an UI file, there is 3 lines missing, near the end :
    </Fold>
    <wsns bdata="XXXX"/>
    <wsnm bdata="XXXXXXXX"/>
    <string>Standard</string>
    <fcid bdata="XXXXX"/>
    <LSIf>
    If you add those three line in your .aepx (at the right place) you can open your file in Ae without any problem (I do not know what it refers too and you should get your own figures, in place of XXX).
    Moreover, I tried too to contact adobe support, but even if you suceed to reach them, they will tell you that the problem come from your script, even if it's quite obvious that the save option for noui do not complete his job.
    Hope it will help you and other members,
    Best Regards.

  • 10.3.9 problems with FTP server - port not open?

    I have set up the ftp server in MacOSX Server 10.3.9 and I think the configuration is correct, but I am unable to access it from a client. When I check the open ports on the server from the client (running 10.4.10), ports 20 and 21 are not open, even though the firewall is not running. How do I open these ports, or start the server listening on them? The FTP server is running as far as Server Admin is concerned, although I have to say that I can't see a process in Activity Monitor with ftp in its name.

    I think I might have got a bit farther with this problem, but this just gets me nearer to the problem, not to a solution.
    When I stop the ftp service I get an error message in the console that says:
    server servermgr_ftp: ftp config:Error:Unable to hup xinetd - pid file shows pid='(null)'
    I believe that this means that Server Admin has tried to get xinetd to read its config file but since xinetd is not running (and hence no pid is available) it is unable to do this.
    If I try and start xinetd from the terminal I get the following error message:
    server xinetd[5484]: bind failed (Permission denied (errno = 13)). service = ftp
    server xinetd[5484]: 5484 {init_services} no services. Exiting...
    I now know that xinetd is the process that (amongst other things) listens on port 20-21 for an attempt to establish an ftp session and then launches ftpd to service that connection. At least I think that is how it works! Or should work...

  • File transfer from a FTP server to another External FTP server

    Hi,
    I have one FTP server , I need to transfer a file from this FTP server to aother external FTP server. Could any one please help me how to write a batch file on FTP server so that my file is transfered to another FTP server by executing the Batch file. I don't want to use SAP server for this.
    best regards
    bobby

    CREATE CONTROLFILE
    Caution:
    Oracle recommends that you perform a full backup of all files in the database before using this statement. For more information, see Oracle9i User-Managed Backup and Recovery Guide.
    Purpose
    Use the CREATE CONTROLFILE statement to re-create a control file in one of the following cases:
    All copies of your existing control files have been lost through media failure.
    You want to change the name of the database.
    You want to change the maximum number of redo log file groups, redo log file members, archived redo log files, datafiles, or instances that can concurrently have the database mounted and open.
    Note:
    If it is necessary to use the CREATE CONTROLFILE statement, do not include in the DATAFILE clause any datafiles in temporary or read-only tablespaces. You can add these types of files to the database later.
    An alternative to the CREATE CONTROLFILE statement is ALTER DATABASE BACKUP CONTROLFILE TO TRACE, which generates a SQL script in the trace file to re-create the controlfile. If your database contains any read-only or temporary tablespaces, that SQL script will also contain all the necessary SQL statements to add those files back into the database.
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_54a.htm#SQLRF01203

  • Transfer file to an external FTP SERVER

    HI Gentelemen!!,
    I'm trying to open an external FTP connection, sending a file from the  MiniSAP.
    Which is the appropiate RFC connection that I have to use??
    Anybody know how to set RFC connection to access an external FTP server.
    This are the MF that I use:
    CALL FUNCTION 'SCRAMBLE_STRING'
    To encrypt password
    CALL FUNCTION 'FTP_CONNECT'
    here i have an import value for RFC DESTINATION
    return handle - I use it to close the connection
    CALL FUNCTION 'FTP_COPY'
    CALL FUNCTION 'FTP_DISCONNECT'
    Use HANDLE numbre to close the connection
    Thanks for your help.
    POLAK.-

    I am not sure minisap has sapftp and sapftpa executable.
    Anyway the two RFC destination used to do FTP are SAPFTPA and SAPFTP. This are 2 TCP/IP RFC destination (Type T) that launch either the program sapftp or sapftpa on the application server.
    If these rfc destination are not setup in transaction SM59 you can try to define them but it might not work on minisap.
    Regards

  • Xml file not loading from different server

    Hi,
    I have a simple flash banner that is pulling a number from an xml file on a different server. When it gets to the frame where the number should be it just says "transferring data from eckul.com" and will not actually pull in the number. Unfortunately I can't put the files on the same servers. Any help would be much appreciated, below are the links and the xml code I'm using followed by the action script. Cheers
    http://www.sainters.net/newsletters/2010/flash_test_membership2.html
    http://www.eckul.com/number.xml
    <?xml version="1.0"?>
    <inventors>
        <person>
            <name>892</name>
            </inventors>
    function loadXML(loaded) {
    if (loaded) {
    _root.inventor = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
    _root.comments = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
    name_txt.text = _root.inventor;
    comment_txt.text = _root.comments;
    } else {
      trace("file not loaded!");
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("http://www.eckul.com/number.xml");

    so, in frame 1 of your fla before you execute that cross-domain load method, use:
    System.security.loadPolicyFile("http:www.yourcrossdomain.com/subdirectoriesIfNeeded/crossd omain2.xml");
    where the following (crossdomain.xml) is in www.yourcrossdomain.com's root (IF you want to allow allow subdirectory policy files):
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <site-control permitted-cross-domain-policies="all"/>
    </cross-domain-policy>
    and in the subdirectory (and its descendents) that you want to allow access put crossdomain2.xml:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
      <allow-access-from domain="www.thedomainthatstryingtoloadcrossdomaindata.com" />
    </cross-domain-policy>

  • XML file creation in Tool 8.45

    Hello All,
    I am on tools 8.45. I have a requirement to create an XML file from peoplesoft and send it to an ESB server(Enterprise Service Bus).
    How can i achieve this. I need to do delta as well as full publish.
    For example whenever there is job data update i need to send the a file to the esb server and at the end of the day i need to send a large single file again
    Can i acheive this in PS 8.8 and tools 8.45

    May be try to define as below and see what happens.
    types : gty_line_t(100) TYPE x.
    data : gt_restab        TYPE STANDARD TABLE OF gty_line_t,
             <gs_restab>        LIKE LINE OF gt_restab.
    OPEN DATASET l_file_name FOR OUTPUT IN BINARY MODE .
              IF sy-subrc = 0.
                LOOP AT gt_restab ASSIGNING <gs_restab>.
                  TRANSFER <gs_restab> TO l_file_name.
               endloop.
              endif.
    CLOSE DATASET l_file_name.

  • Export Table to flat file and upload to FTP server for external vendor

    I have done some extensive searches on the forums and I think I have an idea but really need some help. Basically have a table that needs to be exported to a flat file and uploaded to a FTP server so that our vendor can get the data Monday-Saturday and automated by sysdate. This data is used to produce daily letters that go out to customers.
    After doing some searching I came across the UTL_FILE package and reading more into this right now but I am not sure if it is what I should be using to create the file.
    I am using TOAD right now and can see how to do it manually however really need the file to create itself and send automatically at 6 am Monday - Saturday with the date at the end of the file name making it a unique file for each day.
    Thanks in advance for all of your help.

    As Justin and others have mentioned I wrote [XUTL_FTP|http://www.chrispoole.co.uk/apps/xutlftp.htm] so you wont find it in the Oracle documentation. It's pure PL/SQL and uses UTL_TCP and implements an integrated PL/SQL FTP client / API. One of it's many overloaded procedures FTP's the contents of a refcursor straight to a FTP server of your choice, meaning no intervening file is required. Since it is pure PL/SQL, it is trivial to schedule using DBMS_JOB/DBMS_SCHEDULER.
    Any questions just ask.
    HTH Chris

  • Placing the File in ISeries AS400 FTP Server

    Hi,
    I am working in IDOC to file Scenario and trying to append the Records in the flat file in AS400 FTP Server Directory.
    I am unable to place to file in the FTP Server and getting the error message as below.
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: An error occurred while connecting to the FTP server 'xx.xx.xxx.xxx:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 501  File identifier not valid in MKD subcommand.'. For details, contact your FTP server vendor
    Please provide your valuable suggestion on this.

    Now I am getting the error message as below
    Delivering the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: An error occurred while connecting to the FTP server xx.xx.xxx.xx:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 426 Unable to open or create target file SPD3INTMCD.txt in library FTPLIB. Data transfer ended.'. For details, contact your FTP server vendor..
    Please suggest on this.

Maybe you are looking for

  • Using the BusinessDelegate pattern at lower levels

    I was hoping to elicit some feedback on general J2EE architecture... We have an application that we separate into three general tiers: web/client tier, service tier (with 'services' that implement business logic) and a data tier (with 'controllers' w

  • Can't install 64 Bit Windows 7 on 13" MBP???

    Hello everyone! I'm trying to install 64 Bit Win 7 on my 13" MBP The version of the Bootcamp Assistant I am running (3.02) only allows for the 32 bit version to be installed. I am fully updated on my OSX updates, yet I see that I should be running Bo

  • Report for deleted documents

    Hi How can we get the report of all the deleted documents. The documents were deleted for many times by running MCDOKDEL program. Now the client wants the report of all the deleted documents with user & date information. Regards Harshini

  • Dynamic roles in ALBPM

    Hi, How to user parameter roles? Any code samples are appreciated. We have a role like RM for a country. so we specifiy RM as parametric for each country. But some of the participants are global that means when they login they should get access to al

  • When do the preorders for the iphone6 come in ?

    my step dad orders the iPhone's 6 that monday 2 days after u could start pre ordering and I was just wondering when I will ever get the iphone6