How to get the spool number in smartforms?

Answer Posted / purnaiah

CALL FUNCTION FM_NAME
EXPORTING
CONTROL_PARAMETERS = CONTROL
OUTPUT_OPTIONS = OUTPUT
USER_SETTINGS = ' '
EKKO = L_DOC-XEKKO
PEKKO = L_DOC-XPEKKO
DRUVO = L_DRUVO
IMPORTING
JOB_OUTPUT_INFO = JOB_OUTPUT_INFO " Add this parameter
JOB_OUTPUT_OPTIONS = JOB_OUTPUT_OPTIONS
TABLES
EKPO = L_DOC-XEKPO
PEKPO = L_DOC-XPEKPO
XAEND = IT_XAEND
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.

Smartfrom Fm has one more structure under the IMPORTING parameters i.e. JOB_OUTPUT_INFO

Which you have not used in your FM. Use that you can get the spool number returened in the JOB_OUTPUT_INFO structure

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the three components of a work process?

632


what are Hana Basics

899


How to maintain lists?

617


What is an “on input filed” statements?

632


What are the organizational related Infotypes

1568






In which cluster time results are stored? : abap hr

591


How can we send data to external programs?

622


What is the difference between dialog program and a report?

620


What will you code in start-of-selection & end-of-selection ?

595


What is a view? : abap data dictionary

660


What is the client concept in sap?

558


Hi, I have a requirement for locking the fax field in user master records. As you know user can edit the details using the System>profile>own data (SU3), it is causing some security threat to our model. What i want is users should not be able to change the fax field under communications when they get into su3.I have heard of user Exist functionality but don't know how to implement it. Can you suggest something, it will be greatly appreciated.

1466


Can anyone done BDC/LSMW/BAPI for F-02 and F-04.If yes let me know the processs

1872


What are the list of screen elements?

532


What should be declared explicitly in the corresponding abap/4 statements to access internal tables without header lines & why?

597