‎2009 Aug 10 2:44 PM
Hi All,
once the back ground processing of the scheduled job for customized alv report is done ,want to save the output of the alv report on the desktop.
Thanks
Vasumathi
‎2009 Aug 10 3:07 PM
Hi,
Its not possible to save the output of the background spool output of the alv to the desktop as no GUI based operations are allowed during background processing. Instead you can store the output in the application server in background mode.
Regards,
Vik
‎2009 Aug 11 8:40 AM
Hi,
SAP system looses the connection from external GUI system once background processing start. You can not save your report output to GUI in such case. however you can use associated spool to provide output later.
rgds
sudhanshu
‎2009 Aug 11 8:44 AM
The Background processing can be done and the file output will be written to a folder in the Application Server. Then PI System can be used to establish a connection to pick up the file from the application server and move it to a particular location in PC.
Contact your PI/XI system developer for more details
Regards,
Janani
‎2009 Aug 11 8:44 AM
Its said thousand of times here in the forum: in background processing there is no connection to the client nor a gui. Thats why it called background processing. Next time use forum search before instead of reasking those questions.
‎2009 Aug 11 8:51 AM
Hi,
You can save your Output on your desktop in background by FTP.
I have done the same senario.
The file get stored at FTP root folder in your desktop.
To connect to FTP use following FM,
SET EXTENDED CHECK OFF.
g_slen = STRLEN( p_pwd ).
CALL FUNCTION 'HTTP_SCRAMBLE'
EXPORTING
SOURCE = p_pwd
sourcelen = g_slen
key = g_key
IMPORTING
destination = p_pwd.
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
user = p_user <----- User ID
password = p_pwd <------ Pwd
host = p_host <------ IP address of your DEsktop
rfc_destination = p_dest <------ RFC destination like SAPFTP
IMPORTING
handle = g_hdl
EXCEPTIONS
not_connected = 1
OTHERS = 2.
IF sy-subrc <> 0.
sy-msgty = 'E'.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
* MESSAGE SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4 TYPE 'I'.
ENDIF.
To Read file from FTP,
CALL FUNCTION 'FTP_SERVER_TO_R3'
EXPORTING
handle = g_hdl
fname = p_fname
* CHARACTER_MODE =
IMPORTING
BLOB_LENGTH = l_xml_table_size
TABLES
BLOB = l_xml_table
* TEXT =
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3
OTHERS = 4To Write file on FTP,
CALL FUNCTION 'FTP_R3_TO_SERVER'
EXPORTING
handle = g_hdl
fname = g_docid
BLOB_LENGTH = g_slen
CHARACTER_MODE = 'X'
TABLES
* BLOB =
TEXT = gt_log
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3
OTHERS = 4Thanks & regards,
ShreeMohan