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
Is the basic list deleted when the new list is created?
What are the different function modules used in sapscript?
Differentiate between transparent tables, cluster tables and pooled tables
What will exactly the hide statement do?
What is difference between inner join and outer join?
singleton class
What are the different types of luws?
How do you work with semi colon se[arated files in BDC ?
What are the system fields you have worked with? Explain?
How to write a code for multiple transactions? : abap bdc
Write an abap program for creation of customer enquiry using BAPI 'BAPI_INQUIRY_CREATEFROMDATA'.
Will 50,000 records be uploaded directly into APP's Server?
The max number of calling modes stacked at one time is?
Explain Catch Command in ABAP?
What is the use of dequeue function module? : sap abap data dictionary