Application Development 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: 

Smart Form is not creating the Spool

Former Member
0 Kudos

Hi,

I have Created one program in E-recruitment which will run in bcackground. In this there will be a Smartform.

I have scheduled this program in background. The problem is Smart form data is not going to spool and spool request is also not creating. Following is the code. Please let me know where the problm is

ls_ctrl_param-NO_DIALOG = 'X'.

ls_ctrl_param-PREVIEW = ''.

ls_ctrl_param-GETOTF = 'X'.

ls_ctrl_param-DEVICE = 'PRINTER'.

LS_SSFCOMPOP-TDNOPREV = 'X'.

LS_SSFCOMPOP-TDNEWID = 'X'.

LS_SSFCOMPOP-TDDEST = 'LOCL'.

CALL FUNCTION gv_FMNAME "'/1BCDWB/SF00000076'

EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

CONTROL_PARAMETERS = ls_ctrl_param

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

OUTPUT_OPTIONS = LS_SSFCOMPOP

USER_SETTINGS = ''

REQ_INFO_WT = req_info_wt

REQ_INFO_UI_LABELS = REQ_INFO_UI_LABELS

REQ_JOB_INFO_WT = req_job_info_wt

REQ_BRANCH_ADDRESS = REQ_BRANCH_ADDRESS

REQ_JOB_INFO_UI_LABELS = REQ_JOB_INFO_UI_LABELS

REQ_ROLES_NAMES = REQ_ROLES_NAMES

REQ_ROLE_UI_LABELS = REQ_ROLE_UI_LABELS

POST_INFO_WT = POST_INFO_WT

POST_INFO_TEXTS = POST_INFO_TEXTS

POST_INFO_UI_LABELS = POST_INFO_UI_LABELS

POST_INST_REC = lS_p5122

POST_INST_UI_LABELS = POST_INST_UI_LABELS

IMPORTING

  • DOCUMENT_OUTPUT_INFO =

JOB_OUTPUT_INFO = GT_OTF_INT

  • JOB_OUTPUT_OPTIONS =

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5.

Thanks in advance.

giri.

2 REPLIES 2

Former Member
0 Kudos

Hi Vijay,

You first trigger the background job without giving the printer name in the structure. Check first that wheather it is creating spool or not with LOCL printer.

Another problem...may occour LOCL is your local printer so at the time of execution in background it may not be accessible. Give some other printer name like LP01 .. etc...

Reagrds,

Amitava

0 Kudos

Hi,

Thanks for the reply. I have tried by removing the printer option still it is not giving any result. in this system there are no other options other than LOCL. LP01 is not there. so i could not able to test that one. other than this is there any wrong in my code. if so let me know.

Thanks,

Giri.