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

Spool req in smartforms!

Former Member
0 Likes
395

Dear SDNers,

I have a requirement for barcode in smartforms.My output sounds good in development server as well as in production server.My problem is it wont create spool request in production server instead it come back to selection-screen.so i cant take print out.

Urgently needed...

Reward sure.... if it is useful....

Thanks and regards,

Senthil kumar.

2 REPLIES 2
Read only

Former Member
0 Likes
372

Hi Senthil,

After smartforms are generated, send it to spool. this will fix your issue..

Use the function module 'GET_PRINT_PARAMETERS'.

sample:

CALL FUNCTION 'GET_PRINT_PARAMETERS'

EXPORTING

  • ARCHIVE_ID = C_CHAR_UNKNOWN

  • ARCHIVE_INFO = C_CHAR_UNKNOWN

  • ARCHIVE_MODE = C_CHAR_UNKNOWN

  • ARCHIVE_TEXT = C_CHAR_UNKNOWN

  • AR_OBJECT = C_CHAR_UNKNOWN

  • ARCHIVE_REPORT = C_CHAR_UNKNOWN

  • AUTHORITY = C_CHAR_UNKNOWN

copies = g_copies

  • COVER_PAGE = C_CHAR_UNKNOWN

  • DATA_SET = C_CHAR_UNKNOWN

department = ''

destination = g_destination

expiration = g_days

immediately = ' '

  • IN_ARCHIVE_PARAMETERS = ' '

  • IN_PARAMETERS = ' '

layout = 'X_65_200'

line_count = 65

line_size = 200

list_name = g_listname

list_text = g_listtext

  • MODE = ' '

new_list_id = 'X'

  • PROTECT_LIST = C_CHAR_UNKNOWN

no_dialog = 'X'

receiver = 'SAP*'

release = ' '

  • REPORT = C_CHAR_UNKNOWN

sap_cover_page = 'X'

  • HOST_COVER_PAGE = C_CHAR_UNKNOWN

  • PRIORITY = C_NUM1_UNKNOWN

  • SAP_OBJECT = C_CHAR_UNKNOWN

  • TYPE = C_CHAR_UNKNOWN

  • USER = SY-UNAME

  • USE_OLD_LAYOUT = ' '

  • UC_DISPLAY_MODE = C_CHAR_UNKNOWN

  • DRAFT = C_CHAR_UNKNOWN

  • ABAP_LIST = ' '

  • USE_ARCHIVENAME_DEF = ' '

  • DEFAULT_SPOOL_SIZE = C_CHAR_UNKNOWN

  • PO_FAX_STORE = ' '

  • NO_FRAMES = C_CHAR_UNKNOWN

IMPORTING

  • OUT_ARCHIVE_PARAMETERS =

out_parameters = g_params

valid = g_valid.

IF g_valid <> space.

NEW-PAGE PRINT ON PARAMETERS g_params NO DIALOG.

*

IF NOT tb_output3[] IS INITIAL.

LOOP AT tb_output3 INTO wa_output3.

PERFORM write_summary.

ENDLOOP.

ENDIF.

*

<b>Reward if useful...</b>

Read only

0 Likes
372

Hi,

Could you explain in another easy way.

Thanks for ur reponse.

Senthil kumar.