Skip to Content
author's profile photo Former Member
Former Member

SAP ABAP

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2012 at 06:02 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.