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
what precautions or prerequisites do you follow to update a record into database table and how
How to pass data from list to report?
What abap statement will trigger list generation?
What are the different types of the sap abap data dictionary objects?
Fallback class
What are the different modules of sap? : sap abap hr
Explain the uses of the simple maintenance interface? : sap abap hr
What are the events used for logical database?
What is design pattern? Provide example .Why are we using it?
Explain the inside concept in select-options?
Badi concepts
What is a badi?
Where can you find error log for call transaction? : abap bdc
What is the use of the raising exception?
What is delivery class? : abap data dictionary