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

output to screen and printer

Former Member
0 Likes
595

Hi,

<b>version 4.5B</b>

I have developed a BDC report and the output screen shows the total number of records, success and failure records.

If I want to send that screen directly to a spool, is there any function module for that.

Can any one tell me if there is any way I can do that.

Also in the screen there is Push Button, when selected give the details of the session.


AT USER-COMMAND.
  CASE SY-UCOMM.
    WHEN 'LOG'.
      LOG-MODUS = 'C'.
      LOG-QUID = S_APQI-QID.
      SET PARAMETER ID 'BDC' FIELD LOG.


*Calling the report RSBDCOLG and passing the parameter values using
*structure log to display the details of the session which is processed
      SUBMIT RSBDCOLG AND RETURN.
    WHEN 'EXIT' OR 'CANC'.
      LEAVE LIST-PROCESSING.
  ENDCASE.

The output of this statement will contain one screen with the details of the session for all the records in the session.

I also want to send this output to a spool by default when ever this report is executed.

Can any one pls tell me how to do that.

thanks

Message was edited by: Hema K

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
567

you need to use this..logic.

     CALL FUNCTION 'GET_PRINT_PARAMETERS'
       EXPORTING
         IMMEDIATELY                  = 'X'
         LINE_SIZE                    = 220 
         RELEASE                      = 'X'
         MODE                         = 'CURRENT'
         NO_DIALOG                    = ' '
       IMPORTING
*     OUT_ARCHIVE_PARAMETERS       =
         OUT_PARAMETERS               = L_PARAMS
         VALID                        = L_VALID
       EXCEPTIONS
         ARCHIVE_INFO_NOT_FOUND       = 1
         INVALID_PRINT_PARAMS         = 2
         INVALID_ARCHIVE_PARAMS       = 3
         OTHERS                       = 4.

      NEW-PAGE PRINT ON   PARAMETERS L_PARAMS NO DIALOG.

      "write your report here....
      NEW-PAGE PRINT OFF.

Hi,

<b>version 4.5B</b>

I have developed a BDC report and the output screen shows the total number of records, success and failure records.

If I want to send that screen directly to a spool, is there any function module for that.

Can any one tell me if there is any way I can do that.

Also in the screen there is Push Button, when selected give the details of the session.


AT USER-COMMAND.
  CASE SY-UCOMM.
    WHEN 'LOG'.
      LOG-MODUS = 'C'.
      LOG-QUID = S_APQI-QID.
      SET PARAMETER ID 'BDC' FIELD LOG.


*Calling the report RSBDCOLG and passing the parameter values using
*structure log to display the details of the session which is processed
      SUBMIT RSBDCOLG AND RETURN.
    WHEN 'EXIT' OR 'CANC'.
      LEAVE LIST-PROCESSING.
  ENDCASE.

The output of this statement will contain one screen with the details of the session for all the records in the session.

I also want to send this output to a spool by default when ever this report is executed.

Can any one pls tell me how to do that.

thanks

Message was edited by: Hema K

3 REPLIES 3
Read only

FredericGirod
Active Contributor
0 Likes
567

Hi,

Do you have try with the New-page print on ?

Rgd

Frédéric

Read only

Former Member
0 Likes
568

you need to use this..logic.

     CALL FUNCTION 'GET_PRINT_PARAMETERS'
       EXPORTING
         IMMEDIATELY                  = 'X'
         LINE_SIZE                    = 220 
         RELEASE                      = 'X'
         MODE                         = 'CURRENT'
         NO_DIALOG                    = ' '
       IMPORTING
*     OUT_ARCHIVE_PARAMETERS       =
         OUT_PARAMETERS               = L_PARAMS
         VALID                        = L_VALID
       EXCEPTIONS
         ARCHIVE_INFO_NOT_FOUND       = 1
         INVALID_PRINT_PARAMS         = 2
         INVALID_ARCHIVE_PARAMS       = 3
         OTHERS                       = 4.

      NEW-PAGE PRINT ON   PARAMETERS L_PARAMS NO DIALOG.

      "write your report here....
      NEW-PAGE PRINT OFF.

Read only

Former Member
0 Likes
567

Hi Hema,

Please check the func

<b>RSPO_SX_OUTPUT_TEXTDATA</b> or

also check RSPO* Functions in 45B.

Thanks&Regards,

Siri.