Skip to Content
author's profile photo Former Member
Former Member

Program works but background job for that program fails....

I have a requirement where I have to collect the details of the purchase order and put the details in XML file format and FTP the XML file to an external third party FTP Server.

To realize this I developed a report program which follows following logic.

1) First I collected the PO details by calling the BAPI BAPI_PO_GETDETAIL1.

2) Then using the following link "/people/r.eijpe/blog/2005/11/10/xml-dom-processing-in-abap-part-i--convert-an-abap-table-into-xml-file-using-sap-dom-approach

I converted these PO details to the XML file format that the third party people accept.

In the code I used u201CCALL METHOD cl_gui_frontend_services=>gui_downloadu201D and in this process first the XML file is generated and is getting stored on my deskytop.

3) Then I called HTTP_SCRAMBLE, FTP_CONNECT, FTP_COMMAND , FTP_DISCONNECT and RFC_CONNECTION_CLOSE.

This works perfectly well and each time I execute the report the file is getting FTPu2019ed to the third party FTP server.

Now I tried to schedule a batch job for this and the batch job fails with follwing errors

02/25/2009 15:08:47 Error in Control Framework
Message Class  = FES          
Message Number = 022   
Message Type   = E
02/25/2009 15:08:47 Job cancelled after system exception ERROR_MESSAGE  
Message Class  = 00         
Message Number = 564   
Message Type   = A                 

Can some one tell me what is going wrong. My report works perfect in front end but fails if I try to schedule a background job for it in SM36.

Can you please tell me whatz going wrong with batch job? Any Help is highly appreciated.

Regards,

JEssica SAm

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 25, 2009 at 09:20 PM

    in background, you don't have access to your front end so you can't use GUI DOWNLOAD.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Robert,

      Our SAP Server is installed on UNIX Operating System. So i need to find the path of this server and use OPEN DATA SET and store the files there and FTP them right?

      But i was using DOM for converting my PO detailsl to XML files. Will DOM work with OPEN DATA SET ?

      i was using robert ejpies blog

      "/people/r.eijpe/blog/2005/11/10/xml-dom-processing-in-abap-part-i--convert-an-abap-table-into-xml-file-using-sap-dom-approach for converting the details of PO to XML file format that the external third party accepts.

      Can u please let me know if the Roberts aaproch works with open..dataset..

      Kindly help.

      Regards,

      Jessica Sam

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.