Skip to Content
0
Former Member
Feb 25, 2009 at 09:18 PM

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

633 Views

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