2006 Feb 06 12:42 PM
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
2006 Feb 06 12:48 PM
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
2006 Feb 06 12:43 PM
2006 Feb 06 12:48 PM
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.
2006 Feb 06 12:58 PM
Hi Hema,
Please check the func
<b>RSPO_SX_OUTPUT_TEXTDATA</b> or
also check RSPO* Functions in 45B.
Thanks&Regards,
Siri.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |