cancel
Showing results for 
Search instead for 
Did you mean: 

To get the spool Number

Former Member
0 Kudos

How to get the spool number when i trigger a print from smartform .

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi guys when i try to get values i always get this

OUTPUTDONE C 1 X

ARCHDONE C 1

USEREXIT C 1

TDFORMS N 5 00001

TDNEWID C 1 X

SPOOLIDS h 8 Table[1x4]

FAXIDS h 8 Table[initial]

MAILIDS h 8 Table[initial]

OTFDATA h 8 Table[initial]

XMLOUTPUT v 96

Former Member
0 Kudos

SPOOLIDS h 8 Table[1x4]

SPOOLIDS is an internal table loop the table u will geth ids

raymond_giuseppi
Active Contributor
0 Kudos

You will get the spool no. in the parameter <b>JOB_OUTPUT_INFO</b> after calling the Smartforms function module in print program.

Field is <b>JOB_OUTPUT_INFO-SPOOLIDS</b>

CALL FUNCTION fm_name
EXPORTING
* ARCHIVE_INDEX =
* ARCHIVE_PARAMETERS =
* CONTROL_PARAMETERS =
* MAIL_APPL_OBJ =
* MAIL_RECIPIENT =
* MAIL_SENDER =
* OUTPUT_OPTIONS =
* USER_SETTINGS = 'X'
* your parameters
 IMPORTING
* DOCUMENT_OUTPUT_INFO =
  JOB_OUTPUT_INFO = JOB_OUTPUT_INFO
* JOB_OUTPUT_OPTIONS =
  TABLES
* your tables
  EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
IF SY-SUBRC <> 0.
  <error handling>
ENDIF.

Regards

Former Member
0 Kudos

hi

in the JOB_OUTPUT_INFO-SPOOLIDS as import parameters of the