Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 is meant by performance analysis? Have done anything to improve the performance?

934


What is your current client number?

1016


What are system fields for secondary lists?

1014


Where do you create indexes in abap?

1060


What are the Synchronous and asynchronous methods in bdc ?

1015


What is the syntax for call transaction? : abap bdc

1015


What are the events used in abap in the order of execution?

954


What do you mean by cluster tables in sap abap? Also explain what do you mean by table cluster? : abap data dictionary

974


In select-options, how to get the default values as current month first date and last date by default?

1058


Can we specify the next screen number with a variable?

919


Why do we use events and actions in web dynpro?

949


What is cts and what do you know about it? : abap hr

1156


how can you display data say "your name"in sap script without print program or driver program??

2136


What is sequence number

2108


Does the call transaction method allow multiple transactions to be processed by sap? : abap bdc

916