10-13-2010 3:39 AM
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.
10-13-2010 4:41 AM
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
10-13-2010 4:54 AM
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.