Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

saving the report output on presentation server after batch processing

Former Member
0 Likes
741

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

5 REPLIES 5
Read only

Former Member
0 Likes
611

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

Read only

Former Member
0 Likes
611

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

Read only

Former Member
0 Likes
611

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

Read only

rainer_hbenthal
Active Contributor
0 Likes
611

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.

Read only

Former Member
0 Likes
611

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               = 4

To 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               = 4

Thanks & regards,

ShreeMohan