on 08-30-2007 3:12 PM
Hi all,
I am running Driver prog as Background job. Every time i run the background job. spool is getting appended to same spool request.
I am calling two smartfrom from driver prog. Please help me how can i avoid this.
Here is the code which i am using.
DATA: gs_control TYPE ssfctrlop.
gs_control-no_dialog = 'X'.
gs_control-preview = 'X'.
gs_control-no_open = 'X'.
gs_control-no_close = 'X'.
CALL FUNCTION 'SSF_OPEN'
struc_ssfcompop-tdimmed = SPACE.
struc_ssfcompop-tddest = 'LOCL'.
struc_ssfcompop-tdnewid = 'X'.
struc_ssfcompop-tdfinal = SPACE.
CALL FUNCTION smartform1
EXPORTING
control_parameters = gs_control
output_options = struc_ssfcompop
struc_ssfcompop-tdimmed = 'X'.
struc_ssfcompop-tddest = 'LOCL'.
struc_ssfcompop-tdnewid = SPACE.
struc_ssfcompop-tdfinal = 'X'.
CALL FUNCTION smartform2
EXPORTING
control_parameters = gs_control
output_options = struc_ssfcompop
CALL FUNCTION 'SSF_CLOSE'
* IMPORTING
* JOB_OUTPUT_INFO =
EXCEPTIONS
Hi
Try this:
DATA: E_SSFCOMPIN TYPE SSFCOMPIN,
E_SSFCTRLOP TYPE SSFCTRLOP.
E_SSFCOMPIN-TDDEST = '*'.
E_SSFCOMPIN-TDIMMED = '*'.
E_SSFCOMPIN-TDDELETE = '*'.
CALL FUNCTION 'SSF_OPEN'
EXPORTING
INPUT = E_SSFCOMPIN
EXCEPTIONS
ERROR = 1
OTHERS = 2.
E_SSFCTRLOP-NO_OPEN = 'X'.
E_SSFCTRLOP-NO_CLOSE = 'X'.
CALL FUNCTION SMARTFORM1
EXPORTING
CONTROL_PARAMETERS = E_SSFCTRLOP
...............................
CALL FUNCTION SMARTFORM2
EXPORTING
CONTROL_PARAMETERS = E_SSFCTRLOP
...............................
CALL FUNCTION 'SSF_CLOSE'.
Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is caused by,
struc_ssfcompop-tdimmed = 'X'.
struc_ssfcompop-tddest = 'LOCL'.
struc_ssfcompop-tdnewid = SPACE.
struc_ssfcompop-tdfinal = 'X'.
The field TDNEWID is blank, so the second form will append to the already open spool request.
Regards,
Nick
<i>Please acknowledge those that help you by giving points</i>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.