cancel
Showing results for 
Search instead for 
Did you mean: 

SAP ABAP

Former Member
0 Kudos

I have add the print button in application tool bar. When i am executing the output in ALV format & click the print button output directly to printer. Already i have to add the print button but codding is not working. Can any one respond me it's very urgent.

if r_ucomm EQ '&PRINT'.

DATA: params   LIKE PRI_PARAMS,

         arcparams LIKE ARC_PARAMS,

         DAYS(1)  TYPE N VALUE 2,

         COUNT(3) TYPE N VALUE 1,

         VALID    TYPE C.

CALL FUNCTION 'GET_PRINT_PARAMETERS'

         EXPORTING

            DESTINATION            = 'LT50'

             COPIES                 = COUNT

             LIST_NAME              = 'TEST'

             LIST_TEXT              = 'SUBMIT ... TO SAP-SPOOL'

             IMMEDIATELY            = 'X'

             RELEASE                = 'X'

             NEW_LIST_ID            = 'X'

             EXPIRATION             = DAYS

             LINE_SIZE              = 255

             LINE_COUNT             = 23

             LAYOUT                 = 'X_PAPER'

             SAP_COVER_PAGE         = 'X'

             COVER_PAGE             = 'X'

             RECEIVER               = 'SAP*'

             DEPARTMENT             = 'System'

             SAP_OBJECT             = 'RS'

             AR_OBJECT              = 'TEST'

             ARCHIVE_ID             = 'XX'

             ARCHIVE_INFO           = 'III'

             ARCHIVE_TEXT           = 'Description'

             NO_DIALOG              = ' '

          IMPORTING

             OUT_PARAMETERS         = params

             OUT_ARCHIVE_PARAMETERS = arcparams

             VALID                  = VALID.

IF VALID <> SPACE.

   SUBMIT ZBOM_VS_OFFER TO SAP-SPOOL

     SPOOL PARAMETERS Params

     ARCHIVE PARAMETERS arcparams

     WITHOUT SPOOL DYNPRO.

    NEW-PAGE PRINT ON PARAMETERS params NO DIALOG.

ENDIF.

endif.

ENDFORM.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Please post this in the ABAP forum. This is pure ABAP query and you would get appropriate response from the said forum.