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

how to create new spool request in smartforms??????

Former Member
0 Likes
1,121

hi all,

i have to ctreate a new spool request for a smartform...

The driver program for this smartform is a standard program.

when i run the transaction, the spool for standard sap-script gets created but not for my smartform.

the code is something like this:-

wa_ssfcompop-TDDEST = 'LOCL'.

wa_ssfcompop-TDIMMED = space.

wa_ssfcompop-TDNEWID = 'X'.

wa_ssfcompop-TDFINAL = 'X'.

*wa_ssfcompop-XSF = 'X'.

wa_SSFCTRLOP-no_dialog = 'X'.

CALL FUNCTION v_fm_name

EXPORTING

  • CONTROL_PARAMETERS = wa_SSFCTRLOP

OUTPUT_OPTIONS = wa_ssfcompop

wa_rldri = xrldri

wa_rldrp = xrldrp

wa_rldru = xrldru

wa_t329p = xt329p

wa_resb = xresb

wa_rldrc = xrldrc

wa_vblkk = xvblkk

wa_vblkp = xvblkp

wa_rldrh = xrldrh

wa_rlvek = xrlvek

wa_reftab = xreftab

wa_lthu = xlthu

v_date = v_date

v_time = v_time

v_label = v_label

v_bzeit = v_bzeit

v_name1 = v_name1

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

TABLES

it_rldri = xrldri

it_rldrh = xrldrh

it_rldrc = xrldrc

it_vblkk = it_vblkk

it_vblkp = it_vblkp

it_rldrp = it_rldrp

it_rldru = it_rldru

it_t329p = it_t329p

it_resb = it_resb

it_rlvek = it_rlvek

it_reftab = it_reftab

it_lthu = it_lthu

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

IF sy-subrc NE 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Help would be greatly appreciated and definitely rewarded

hi all,

i have to ctreate a new spool request for a smartform...

The driver program for this smartform is a standard program.

when i run the transaction, the spool for standard sap-script gets created but not for my smartform.

the code is something like this:-

wa_ssfcompop-TDDEST = 'LOCL'.

wa_ssfcompop-TDIMMED = space.

wa_ssfcompop-TDNEWID = 'X'.

wa_ssfcompop-TDFINAL = 'X'.

*wa_ssfcompop-XSF = 'X'.

wa_SSFCTRLOP-no_dialog = 'X'.

CALL FUNCTION v_fm_name

EXPORTING

  • CONTROL_PARAMETERS = wa_SSFCTRLOP

OUTPUT_OPTIONS = wa_ssfcompop

wa_rldri = xrldri

wa_rldrp = xrldrp

wa_rldru = xrldru

wa_t329p = xt329p

wa_resb = xresb

wa_rldrc = xrldrc

wa_vblkk = xvblkk

wa_vblkp = xvblkp

wa_rldrh = xrldrh

wa_rlvek = xrlvek

wa_reftab = xreftab

wa_lthu = xlthu

v_date = v_date

v_time = v_time

v_label = v_label

v_bzeit = v_bzeit

v_name1 = v_name1

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

TABLES

it_rldri = xrldri

it_rldrh = xrldrh

it_rldrc = xrldrc

it_vblkk = it_vblkk

it_vblkp = it_vblkp

it_rldrp = it_rldrp

it_rldru = it_rldru

it_t329p = it_t329p

it_resb = it_resb

it_rlvek = it_rlvek

it_reftab = it_reftab

it_lthu = it_lthu

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

IF sy-subrc NE 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Help would be greatly appreciated and definitely rewarded

2 REPLIES 2
Read only

Former Member
0 Likes
506

Hi Preeti,

Check these links ,

Hope this helps,

http://www.zebra.com/id/zebra/na/en/documentlibrary/misc/sap_smartforms_technical.File.tmp/SAPSmartF...

http://help.sap.com/saphelp_nw2004s/helpdata/en/d9/4a8f2f51ea11d189570000e829fbbd/content.htm

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7a5f4061-0a01-0010-c9bc-a4e4cb10...

FM to create spool requests.

try this FM "RSPO_OPEN_SPOOLREQUEST".

or check if this can serve ur purpose ( Without using BDC )

SUBMIT rep ... TO SAP-SPOOL. ( See SAP help )

Regards,

Pritha.

Reward if helpful.

Read only

Former Member
0 Likes
506

hi

good

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.

*

Reward if useful...

thanks

mrutyun^