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 are the three components of a work process?
what are Hana Basics
How to maintain lists?
What is an “on input filed” statements?
What are the organizational related Infotypes
In which cluster time results are stored? : abap hr
How can we send data to external programs?
What is the difference between dialog program and a report?
What will you code in start-of-selection & end-of-selection ?
What is a view? : abap data dictionary
What is the client concept in sap?
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.
Can anyone done BDC/LSMW/BAPI for F-02 and F-04.If yes let me know the processs
What are the list of screen elements?
What should be declared explicitly in the corresponding abap/4 statements to access internal tables without header lines & why?